Changeset 2461 for trunk/MagicSoft/Mars/mraw
- Timestamp:
- 11/03/03 18:08:26 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc
r2386 r2461 125 125 Clear(); 126 126 } 127 128 127 129 128 // -------------------------------------------------------------------------- … … 216 215 } 217 216 } 218 *fLog << endl; 217 if (fPixLoGainOn->GetSize()) 218 *fLog << endl; 219 219 } 220 220 … … 226 226 { 227 227 fDAQEvtNumber = uiN; 228 fTrigPattern[0] = (UInt_t) 229 fTrigPattern[1] = (UInt_t) 228 fTrigPattern[0] = (UInt_t)(ulTP/4294967296.0) ; 229 fTrigPattern[1] = (UInt_t)(ulTP-fTrigPattern[0]*4294967296.0); 230 230 } 231 231 … … 239 239 fin.read((char*)&fDAQEvtNumber, 4); // Total=4 240 240 241 UInt_t fAbsTime[2];242 fin.read((char*) fAbsTime,8); // Total=12241 UInt_t abstime[2]; 242 fin.read((char*)abstime, 8); // Total=12 243 243 244 244 // 245 245 // store the time of the event in the corresponding container 246 246 // 247 const Double_t mhz = 9.375; 248 const Double_t t = (Double_t) fAbsTime[0]/mhz;// [ns]247 const Double_t mhz = 9.375; // [1e6 ticks/s] 248 const Double_t t = (Double_t)abstime[0]/mhz; // [ns] 249 249 const UShort_t ns = (UShort_t)fmod(t*1e-3, 1e9); 250 250 const Byte_t s = (Byte_t)fmod(t/1e12, 60); 251 251 const Byte_t m = (Byte_t)fmod(t/60e12, 60); 252 252 const Byte_t h = (Byte_t)(t/3600e12); 253 254 253 fTime->SetTime(h, m, s, ns); 255 fTime->SetTime(fAbsTime[0], fAbsTime[1]);256 254 257 255 Byte_t dummy[4]; 258 259 256 fin.read((char*)&fNumTrigLvl1, 4); // Total=16 260 257 fin.read((char*)&fNumTrigLvl2, 4); // Total=20
Note:
See TracChangeset
for help on using the changeset viewer.