Changeset 5567
- Timestamp:
- 12/08/04 10:24:10 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5565 r5567 21 21 -*-*- END OF LINE -*-*- 22 22 23 2004/12/08: Thomas Bretz 24 25 * mraw/MRawRunHeader.cc: 26 - changed maximum allowed format version from 4 to 5 27 28 * mraw/MRawEvtHeader.[h,cc]: 29 - added correct decoding of the 200ns information as proposed by 30 Florian to DecodeTime 31 32 33 23 34 2004/12/06: Abelardo Moralejo 24 35 … … 29 40 * mtemp/mpadova/macros/resize.C 30 41 - Added containers MConcentration and MPointingPos to output. 42 31 43 32 44 -
trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc
r4648 r5567 270 270 // source code. 271 271 // 272 Bool_t MRawEvtHeader::DecodeTime(UInt_t abstime[2] ) const272 Bool_t MRawEvtHeader::DecodeTime(UInt_t abstime[2], UShort_t ver) const 273 273 { 274 274 // … … 292 292 // ---------- 293 293 // 294 // The last 8 bits must be flipped. 295 // 296 abstime[1] ^= 0x000000ff; 297 298 // 294 299 // Due to a problem with one Digital Module, three of the less significant 295 300 // eight bits of the subsecond are corrupted. So, until new DM's arrive to 296 301 // La Palma, we won't use the eight first bits of the subsecond. 297 // This reduces the precision from 200 ns to of 51.2 us. 298 // 299 abstime[1] &= 0xffffff00; 302 // This reduces the precision from 200 ns to of 51.2 us. (ver<5) 303 // 304 if (ver<5) 305 abstime[1] &= 0xffffff00; 300 306 301 307 // … … 346 352 347 353 if (ver>2) 348 if (!DecodeTime(abstime ))354 if (!DecodeTime(abstime, ver)) 349 355 rc = kCONTINUE; 350 356 -
trunk/MagicSoft/Mars/mraw/MRawEvtHeader.h
r4845 r5567 53 53 MArrayB *fPixLoGainOn; //! Array which tell you which pixels have lo gain on 54 54 55 Bool_t DecodeTime(UInt_t abstime[2] ) const;55 Bool_t DecodeTime(UInt_t abstime[2], UShort_t ver) const; 56 56 57 57 Int_t GetNumBytes() const; -
trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc
r5398 r5567 29 29 // Root storage container for the RUN HEADER information 30 30 // 31 // 32 // RAW DATA FORMAT VERSION 33 // ======================= 34 // 35 // Format Version 5: 36 // ----------------- 37 // - now the sub millisecond information of the time is valid and decoded 38 // which enhances the precision from 51.2us to 200ns 39 // 31 40 // Format Version 4: 32 41 // ----------------- … … 42 51 // - added start time 43 52 // - added stop time 53 // 54 // 55 // MRawRunHeader CLASS VERSION 56 // =========================== 44 57 // 45 58 // Class Version 2: … … 70 83 71 84 const UShort_t MRawRunHeader::kMagicNumber = 0xc0c0; 72 const Byte_t MRawRunHeader::kMaxFormatVersion = 4;85 const Byte_t MRawRunHeader::kMaxFormatVersion = 5; 73 86 74 87 // --------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.