1 |
/** @file |
/** @file |
2 |
* $Author: mocchiut $ |
* $Author: mocchiut $ |
3 |
* $Date: 2006/11/14 15:41:41 $ |
* $Date: 2006/11/16 10:49:40 $ |
4 |
* $Revision: 6.11 $ |
* $Revision: 6.12 $ |
5 |
* |
* |
6 |
* Implementation of the functions of a sample Algorithm class. |
* Implementation of the functions of a sample Algorithm class. |
7 |
* This file can be used as a templace to develop your own algorithm. |
* This file can be used as a templace to develop your own algorithm. |
87 |
*/ |
*/ |
88 |
std::string EventReader::GetVersionInfo(void) const { |
std::string EventReader::GetVersionInfo(void) const { |
89 |
return |
return |
90 |
"$Header: /afs/ba.infn.it/user/pamela/src/CVS/yoda/techmodel/EventReader.cpp,v 6.11 2006/11/14 15:41:41 mocchiut Exp $\n"; |
"$Header: /afs/ba.infn.it/user/pamela/src/CVS/yoda/techmodel/EventReader.cpp,v 6.12 2006/11/16 10:49:40 mocchiut Exp $\n"; |
91 |
} |
} |
92 |
|
|
93 |
/** |
/** |
266 |
//plus the CRC legth (which varies for each type of packet) |
//plus the CRC legth (which varies for each type of packet) |
267 |
Header->GetPscuHeader()->SetPacketLenght(PacketLenght); |
Header->GetPscuHeader()->SetPacketLenght(PacketLenght); |
268 |
Header->GetPscuHeader()->SetCRC(CRC); |
Header->GetPscuHeader()->SetCRC(CRC); |
269 |
Header->GetPscuHeader()->SetFileOffset((unsigned long int)(InputFile->tellg() - 16)); |
Header->GetPscuHeader()->SetFileOffset(((unsigned long int)((unsigned long int)(InputFile->tellg()) - 16))); |
270 |
|
//(unsigned long int)(InputFile->tellg() - 16)); |
271 |
} else { |
} else { |
272 |
/*Here i should extract the block of Data for later analysis */ |
/*Here i should extract the block of Data for later analysis */ |
273 |
InputFile->seekg(-(13), std::ios::cur); |
InputFile->seekg(-(13), std::ios::cur); |