Changeset 5567 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
12/08/04 10:24:10 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r5565 r5567  
    2121                                                 -*-*- END OF LINE -*-*-
    2222
     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
    2334 2004/12/06: Abelardo Moralejo
    2435
     
    2940  * mtemp/mpadova/macros/resize.C
    3041    - Added containers MConcentration and MPointingPos to output.
     42
    3143
    3244
  • trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc

    r4648 r5567  
    270270// source code.
    271271//
    272 Bool_t MRawEvtHeader::DecodeTime(UInt_t abstime[2]) const
     272Bool_t MRawEvtHeader::DecodeTime(UInt_t abstime[2], UShort_t ver) const
    273273{
    274274    //
     
    292292    // ----------
    293293    //
     294    // The last 8 bits must be flipped.
     295    //
     296    abstime[1] ^= 0x000000ff;
     297
     298    //
    294299    // Due to a problem with one Digital Module, three of the less significant
    295300    // eight bits of the subsecond are corrupted. So, until new DM's arrive to
    296301    // 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;
    300306
    301307    //
     
    346352
    347353    if (ver>2)
    348         if (!DecodeTime(abstime))
     354        if (!DecodeTime(abstime, ver))
    349355            rc = kCONTINUE;
    350356
  • trunk/MagicSoft/Mars/mraw/MRawEvtHeader.h

    r4845 r5567  
    5353    MArrayB *fPixLoGainOn;     //! Array which tell you which pixels have lo gain on
    5454
    55     Bool_t DecodeTime(UInt_t abstime[2]) const;
     55    Bool_t DecodeTime(UInt_t abstime[2], UShort_t ver) const;
    5656
    5757    Int_t GetNumBytes() const;
  • trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc

    r5398 r5567  
    2929// Root storage container for the RUN HEADER information
    3030//
     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//
    3140//  Format Version 4:
    3241//  -----------------
     
    4251//   - added start time
    4352//   - added stop  time
     53//
     54//
     55//  MRawRunHeader CLASS VERSION
     56//  ===========================
    4457//
    4558//  Class Version 2:
     
    7083
    7184const UShort_t MRawRunHeader::kMagicNumber      = 0xc0c0;
    72 const Byte_t   MRawRunHeader::kMaxFormatVersion =      4;
     85const Byte_t   MRawRunHeader::kMaxFormatVersion =      5;
    7386
    7487// --------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.