1 |
/** @file |
/** @file |
2 |
* $Source: /afs/ba.infn.it/user/pamela/src/CVS/yoda/event/PscuHeader.h,v $ |
* $Source: /afs/ba.infn.it/user/pamela/src/CVS/yoda/event/PscuHeader.h,v $ |
3 |
* $Id: PscuHeader.h,v 6.0 2006/02/07 17:11:07 kusanagi Exp $ |
* $Id: PscuHeader.h,v 6.1 2006/09/29 10:19:13 mocchiut Exp $ |
4 |
* $Author: kusanagi $ |
* $Author: mocchiut $ |
5 |
* |
* |
6 |
* Header file for the PscuHeader class. |
* Header file for the PscuHeader class. |
7 |
*/ |
*/ |
68 |
/** Set the packet length. Intended to use by the raw reader. */ |
/** Set the packet length. Intended to use by the raw reader. */ |
69 |
void SetCRC(short var) { CRC = var; } |
void SetCRC(short var) { CRC = var; } |
70 |
/** Get the offset of the packet relative to the begin of the raw file. */ |
/** Get the offset of the packet relative to the begin of the raw file. */ |
71 |
int SetFileOffset(int var) { FileOffset = var; return(0); } |
int SetFileOffset(unsigned long int var) { if ( var > numeric_limits<unsigned int>::max() ) var -= numeric_limits<unsigned int>::max() ;FileOffset = (unsigned int)var; return(0); } |
72 |
|
|
73 |
const char* Print(){ |
const char* Print(){ |
74 |
oss.str(""); |
oss.str(""); |