1 |
/** @file |
/** @file |
2 |
* $Author: messineo $ |
* $Author: mocchiut $ |
3 |
* $Date: 2008-06-13 11:58:58 $ |
* $Date: 2009/07/24 13:53:45 $ |
4 |
* $Revision: 1.22 $ |
* $Revision: 1.3 $ |
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. |
184 |
// catch (NotExistingAlgorithmException exc) {} |
// catch (NotExistingAlgorithmException exc) {} |
185 |
|
|
186 |
Run->FillTrees(type); |
Run->FillTrees(type); |
187 |
|
// cout << Header->GetCounter()->Get(type) << endl; |
188 |
Header->GetCounter()->Increment(type); |
Header->GetCounter()->Increment(type); |
189 |
|
// cout << Header->GetCounter()->Get(type) << endl; |
190 |
} |
} |
191 |
else |
else |
192 |
{ |
{ |
193 |
ret=-3; |
ret=-3; |
194 |
oss.str(""); |
oss.str(""); |
195 |
oss << " No way to read events of type " << type->GetName().c_str()<<". The Packet is skipped "; |
// oss << " No way to read events of type " << type->GetName().c_str()<<". The Packet is skipped "; |
196 |
|
oss << " No way to read events of type " << type->GetName()<<". The Packet is skipped "; |
197 |
oss << " Return "<<ret; |
oss << " Return "<<ret; |
198 |
msg=oss.str(); |
msg=oss.str(); |
199 |
PamOffLineSW::mainLogUtil->logWarning(msg); |
PamOffLineSW::mainLogUtil->logWarning(msg); |
214 |
unsigned int OrbitalTime = (((UINT32)buff[8]<<24)&0xFF000000) + (((UINT32)buff[9]<<16)&0x00FF0000) + (((UINT32)buff[10]<<8)&0x0000FF00) + (((UINT32)buff[11])&0x000000FF); |
unsigned int OrbitalTime = (((UINT32)buff[8]<<24)&0xFF000000) + (((UINT32)buff[9]<<16)&0x00FF0000) + (((UINT32)buff[10]<<8)&0x0000FF00) + (((UINT32)buff[11])&0x000000FF); |
215 |
unsigned int PacketLenght = (((UINT32)buff[12]<<16)&0x00FF0000) + (((UINT32)buff[13]<<8)&0x0000FF00) + (((UINT32)buff[14])&0x000000FF); |
unsigned int PacketLenght = (((UINT32)buff[12]<<16)&0x00FF0000) + (((UINT32)buff[13]<<8)&0x0000FF00) + (((UINT32)buff[14])&0x000000FF); |
216 |
unsigned char CRC = buff[15]; |
unsigned char CRC = buff[15]; |
217 |
unsigned char FileOffset = 0;// ?? |
// unsigned char FileOffset = 0;// ?? |
218 |
|
|
219 |
Header->GetPscuHeader()->SetPacketId(PacketId1, PacketId2); |
Header->GetPscuHeader()->SetPacketId(PacketId1, PacketId2); |
220 |
Header->GetPscuHeader()->SetCounter(Counter); |
Header->GetPscuHeader()->SetCounter(Counter); |
234 |
*/ |
*/ |
235 |
std::string EventReader::GetVersionInfo(void) const { |
std::string EventReader::GetVersionInfo(void) const { |
236 |
return |
return |
237 |
"$Header: /repository/PamOffLineSW/techmodel/EventReader.cpp,v 1.22 2008-06-13 11:58:58 messineo Exp $\n"; |
"$Header: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/PamOffLineSW/techmodel/EventReader.cpp,v 1.3 2009/07/24 13:53:45 mocchiut Exp $\n"; |
238 |
} |
} |
239 |
|
|
240 |
|
|