/[PAMELA software]/yoda/event/PscuHeader.h
ViewVC logotype

Diff of /yoda/event/PscuHeader.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2.1 by kusanagi, Fri Dec 3 22:04:04 2004 UTC revision 6.0 by kusanagi, Tue Feb 7 17:11:07 2006 UTC
# Line 1  Line 1 
1  /** @file  /** @file
2   * $Source: /home/cvsmanager/yoda/event/PscuHeader.h,v $   * $Source: /home/cvsmanager/yoda/event/PscuHeader.h,v $
3   * $Id: PscuHeader.h,v 2.0 2004/09/21 20:49:57 kusanagi Exp $   * $Id: PscuHeader.h,v 5.1 2006/02/04 12:37:43 kusanagi Exp $
4   * $Author: kusanagi $   * $Author: kusanagi $
5   *   *
6   * Header file for the PscuHeader class.   * Header file for the PscuHeader class.
# Line 80  namespace pamela { Line 80  namespace pamela {
80          return oss.str().c_str();          return oss.str().c_str();
81      }      }
82    
83      ClassDef(PscuHeader, 1)    static const char* Print(char* buff){
84          static stringstream out;
85            out.str("");
86        out <<  "\n Packet Counter          : "  <<  hex << (((UINT32)buff[5]<<16)&0x00FF0000) + (((UINT32)buff[6]<<8)&0x0000FF00) + (((UINT32)buff[7])&0x000000FF)
87            <<  "\n Id1 - Id2               : "  <<  hex << (UINT16)buff[3] <<  " - " << hex << (UINT16)buff[4]
88            <<  "\n Orbital Time            : "  <<  hex << (((UINT32)buff[8]<<24)&0xFF000000) + (((UINT32)buff[9]<<16)&0x00FF0000) +  (((UINT32)buff[10]<<8)&0x0000FF00) + (((UINT32)buff[11])&0x000000FF)
89            <<  "\n Lenght                  : "  <<  hex << (((UINT32)buff[12]<<16)&0x00FF0000) +  (((UINT32)buff[13]<<8)&0x0000FF00) + (((UINT32)buff[14])&0x000000FF)
90            <<  "\n CRC                     : "  <<  hex << (UINT16)buff[15];
91        return out.str().c_str();
92      }
93            
94        ClassDef(PscuHeader, 1)
95    };    };
96  }  }
97    

Legend:
Removed from v.2.1  
changed lines
  Added in v.6.0

  ViewVC Help
Powered by ViewVC 1.1.23