1 |
/** @file |
/** @file |
2 |
* $Source: /repository/PamOffLineSW/physics/S4Reader.cpp,v $ |
* $Source: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/PamOffLineSW/physics/S4Reader.cpp,v $ |
3 |
* $Id: S4Reader.cpp,v 1.5 2008-03-05 11:37:37 messineo Exp $ |
* $Id: S4Reader.cpp,v 1.1.1.1 2008/09/23 07:20:23 mocchiut Exp $ |
4 |
* $Author: messineo $ |
* $Author: mocchiut $ |
5 |
* |
* |
6 |
* Implementation of the S4Reader class. |
* Implementation of the S4Reader class. |
7 |
*/ |
*/ |
26 |
*/ |
*/ |
27 |
std::string S4Reader::GetVersionInfo(void) const { |
std::string S4Reader::GetVersionInfo(void) const { |
28 |
return |
return |
29 |
"$Header: /repository/PamOffLineSW/physics/S4Reader.cpp,v 1.5 2008-03-05 11:37:37 messineo Exp $"; |
"$Header: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/PamOffLineSW/physics/S4Reader.cpp,v 1.1.1.1 2008/09/23 07:20:23 mocchiut Exp $"; |
30 |
} |
} |
31 |
|
|
32 |
/** |
/** |
50 |
* consequently supposing the Neutron data (12 Bytes) always present S4 start 18 Bytes before the end of the packet |
* consequently supposing the Neutron data (12 Bytes) always present S4 start 18 Bytes before the end of the packet |
51 |
*/ |
*/ |
52 |
void S4Reader::RunEvent(int EventNumber, const char subData[], long int length) { |
void S4Reader::RunEvent(int EventNumber, const char subData[], long int length) { |
53 |
int offset; |
// int offset; |
54 |
int index = haveData(&*subData, length); |
int index = haveData(&*subData, length); |
55 |
|
|
56 |
if (index > 0){ |
if (index > 0){ |