Changeset 2875
- Timestamp:
- 01/21/04 17:00:32 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2874 r2875 4 4 5 5 -*-*- END OF LINE -*-*- 6 7 2004/01/21: Thomas Bretz 8 9 * mraw/MRawRead.cc: 10 - restore the fake time for all runs (current time stamp in 11 the data seems to be toally nonsense) 12 13 * mraw/MRawEvtHeader.cc: 14 - removed decoding of real time (current time stamp in the data 15 seems to be toally nonsense) 16 6 17 7 18 2004/01/21: Abelardo moralejo … … 28 39 - Adapted to change above. Changed also task instance name from 29 40 mccalibcalc to mccalibupdate. 41 30 42 31 43 -
trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc
r2748 r2875 239 239 { 240 240 // BADC|1032 --> DCBA|3210 (Byte swap - exchange MSB and LSB) 241 *fLog << hex << all << endl << abstime[0] << " " << abstime[1] << endl; 241 /* 242 *fLog << hex << all << setfill('0') << setw(8) << abstime[0] << " " << setw(8) << abstime[1] << " "; 243 244 for (int i=4*8-1; i>=0; i--) 245 *fLog << (int)(abstime[0]&BIT(i)?1:0); 246 *fLog << " "; 247 for (int i=4*8-1; i>=0; i--) 248 *fLog << (int)(abstime[1]&BIT(i)?1:0); 249 */ 250 *fLog << endl; 242 251 243 252 abstime[0] = (abstime[0]<<16) | (abstime[0]>>16); … … 249 258 abstime[1] = abstime[1]<<8&0xff00 | abstime[1]>>8&0x00ff | abstime[1]&0xffff0000; 250 259 251 for (int i=4*8-1; i>=0; i--)252 *fLog << (int)(abstime[0]&BIT(i)?1:0);253 *fLog << " ";254 for (int i=4*8-1; i>=0; i--)255 *fLog << (int)(abstime[1]&BIT(i)?1:0);256 *fLog << endl;257 260 258 261 /* *fLog << hex << abstime[0] << " " << abstime[1] << endl; … … 286 289 // hms =3210 --> h=2:4 m=3:4 s=3:4 287 290 // subsec=DCBA --> subsec? 291 /* 288 292 *fLog << all << dec << setfill('0') << setw(2) << (int)h << ":" << setw(2) << (int)m << ":" << setw(2) << (int)s; 289 293 *fLog << " " << hex; … … 293 297 *fLog << (int)(abstime[0]>> 0 & 0xf); 294 298 *fLog << endl; 295 299 */ 296 300 // Update the time stamp with the current event time. 297 301 // Make sure, that the time stamp was initialized correctly … … 300 304 // Here the nanosec precision is ignored... (FIXME!) 301 305 306 return kTRUE; 307 302 308 static int i=0; 303 309 i++; 304 fTime->Print();305 fTime->UpdMagicTime(h, m, s, 0/*ms*/);306 fTime->Print();307 return i< 5;310 //fTime->Print(); 311 // fTime->UpdMagicTime(h, m, s, 0/*ms*/); 312 //fTime->Print(); 313 return i<25; 308 314 //return fTime->UpdMagicTime(h, m, s, ms); 309 315 } … … 324 330 fin.read((char*)&fDAQEvtNumber, 4); // Total=4 325 331 326 *fLog << "N: " << fDAQEvtNumber << endl;327 328 332 UInt_t abstime[2]; // BADC|1032 329 333 fin.read((char*)abstime, 8); // Total=12 334 /* 330 335 if (!DecodeTime(abstime)) 331 336 { … … 333 338 return kFALSE; 334 339 } 335 340 */ 336 341 Byte_t dummy[4]; 337 342 fin.read((char*)&fNumTrigLvl1, 4); // Total=16 … … 342 347 fin.read((char*)fPixLoGainOn->GetArray(), fPixLoGainOn->GetSize()); 343 348 344 *fLog << "T: " << fTrigType << endl;345 346 349 fNumLoGainOn = 0; 347 350 for (unsigned int i=0; i<fPixLoGainOn->GetSize(); i++) -
trunk/MagicSoft/Mars/mraw/MRawRead.cc
r2748 r2875 146 146 m %= 360; // 6h 147 147 148 fRawEvtTime->Set(fRawRunHeader->GetRunStart().Year(), 149 fRawRunHeader->GetRunStart().Month(), 150 fRawRunHeader->GetRunStart().Day(), 151 m/60, m%60, s, ms, ns); 148 fRawEvtTime->UpdMagicTime(m/60, m%60, s, ms/*, ns*/); 152 149 } 153 150 … … 203 200 // for which no time stamp was available. 204 201 // For this runs a fake time stamp is created 205 if (fRawRunHeader->GetRunNumber()<3490)206 202 //if (fRawRunHeader->GetRunNumber()<3490) 203 CreateFakeTime(); 207 204 208 205 // FIXME: For all other runs we should enhance the precision
Note:
See TracChangeset
for help on using the changeset viewer.