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 3.0 2005/03/04 15:54:11 kusanagi Exp $ |
4 |
* $Author: kusanagi $ |
* $Author: kusanagi $ |
5 |
* |
* |
6 |
* Header file for the PscuHeader class. |
* Header file for the PscuHeader class. |
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 |
|
|