| 1 |
/** @file |
/** @file |
| 2 |
* $Source: /afs/ba.infn.it/user/pamela/src/CVS/yoda/techmodel/PhysicsReader.cpp,v $ |
* $Source: /afs/ba.infn.it/user/pamela/src/CVS/yoda/techmodel/PhysicsReader.cpp,v $ |
| 3 |
* $Id: PhysicsReader.cpp,v 6.0 2006/02/07 17:11:10 kusanagi Exp $ |
* $Id: PhysicsReader.cpp,v 6.2 2006/08/23 14:39:44 pam-rm2 Exp $ |
| 4 |
* $Author: kusanagi $ |
* $Author: pam-rm2 $ |
| 5 |
* |
* |
| 6 |
* Implementation of the LogReader class. |
* Implementation of the LogReader class. |
| 7 |
* ToBeDone: |
* ToBeDone: |
| 54 |
*/ |
*/ |
| 55 |
std::string PhysicsReader::GetVersionInfo(void) const { |
std::string PhysicsReader::GetVersionInfo(void) const { |
| 56 |
return |
return |
| 57 |
"$Header: /afs/ba.infn.it/user/pamela/src/CVS/yoda/techmodel/PhysicsReader.cpp,v 6.0 2006/02/07 17:11:10 kusanagi Exp $\n"; |
"$Header: /afs/ba.infn.it/user/pamela/src/CVS/yoda/techmodel/PhysicsReader.cpp,v 6.2 2006/08/23 14:39:44 pam-rm2 Exp $\n"; |
| 58 |
} |
} |
| 59 |
|
|
| 60 |
/** |
/** |
| 79 |
*/ |
*/ |
| 80 |
void PhysicsReader::RunEvent(int EventNumber, long int dataLenght) throw (Exception){ |
void PhysicsReader::RunEvent(int EventNumber, long int dataLenght) throw (Exception){ |
| 81 |
char *subData = new char[dataLenght]; |
char *subData = new char[dataLenght]; |
| 82 |
|
memset(subData, 0, dataLenght*sizeof(char)); |
| 83 |
InputFile->read(subData, sizeof(unsigned char)*dataLenght); |
InputFile->read(subData, sizeof(unsigned char)*dataLenght); |
| 84 |
|
|
| 85 |
/*-----------------*/ |
/*-----------------*/ |