Changeset 2386 for trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc
- Timestamp:
- 10/15/03 19:15:13 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc
r2328 r2386 237 237 int MRawEvtHeader::ReadEvt(istream &fin) 238 238 { 239 fin.read((char*)&fDAQEvtNumber, 4); 239 fin.read((char*)&fDAQEvtNumber, 4); // Total=4 240 240 241 241 UInt_t fAbsTime[2]; 242 fin.read((char*)fAbsTime, 8); 242 fin.read((char*)fAbsTime, 8); // Total=12 243 243 244 244 // … … 246 246 // 247 247 const Double_t mhz = 9.375; // [1e6 ticks/s] 248 const Double_t t = (Double_t)fAbsTime[0]/mhz *1e-3;// [ns]249 const UShort_t ns = (UShort_t)fmod(t , 1e9);250 const Byte_t s = (Byte_t)fmod(t/1e 9, 60);251 const Byte_t m = (Byte_t)fmod(t/60e 9, 60);252 const Byte_t h = (Byte_t)(t/3600e 9);248 const Double_t t = (Double_t)fAbsTime[0]/mhz; // [ns] 249 const UShort_t ns = (UShort_t)fmod(t*1e-3, 1e9); 250 const Byte_t s = (Byte_t)fmod(t/1e12, 60); 251 const Byte_t m = (Byte_t)fmod(t/60e12, 60); 252 const Byte_t h = (Byte_t)(t/3600e12); 253 253 254 254 fTime->SetTime(h, m, s, ns); … … 257 257 Byte_t dummy[4]; 258 258 259 fin.read((char*)&fNumTrigLvl1, 4); 260 fin.read((char*)&fNumTrigLvl2, 4); 261 fin.read((char*)fTrigPattern, 8); 262 fin.read((char*)&fTrigType, 2); 263 fin.read((char*)dummy, 2); //was fAllLoGainOn259 fin.read((char*)&fNumTrigLvl1, 4); // Total=16 260 fin.read((char*)&fNumTrigLvl2, 4); // Total=20 261 fin.read((char*)fTrigPattern, 8); // Total=28 262 fin.read((char*)&fTrigType, 2); // Total=30 263 fin.read((char*)dummy, 2); // Total=32, was fAllLoGainOn 264 264 fin.read((char*)fPixLoGainOn->GetArray(), fPixLoGainOn->GetSize()); 265 265
Note:
See TracChangeset
for help on using the changeset viewer.