Ignore:
Timestamp:
03/01/04 17:18:18 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mraw
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mraw/MRawEvtHeader.h

    r3338 r3374  
    1414class MRawRunHeader;
    1515
    16 //
    17 // Trigger Type (TT)
    18 //
    19 enum {
    20     kTTEvent       = 0,
    21     kTTPedestal    = 1,
    22     kTTCalibration = 2
    23 };
    24 
    2516class MRawEvtHeader : public MParContainer
    2617{
     18public:
     19    //
     20    // Trigger Type (TT)
     21    //
     22    enum {
     23        kTTEvent       = 0,
     24        kTTPedestal    = 1,
     25        kTTCalibration = 2
     26    };
     27
    2728private:
    2829    MTime   *fTime;            //! object to store the time in (ReadEvt)
  • trunk/MagicSoft/Mars/mraw/MRawFileWrite.cc

    r3183 r3374  
    247247    switch (type)
    248248    {
    249     case kTTEvent:
     249    case MRawEvtHeader::kTTEvent:
    250250        fTData->Fill();
    251251        return kTRUE;
    252252
    253     case kTTPedestal:
     253    case MRawEvtHeader::kTTPedestal:
    254254        fTPedestal->Fill();
    255255        return kTRUE;
    256256
    257     case kTTCalibration:
     257    case MRawEvtHeader::kTTCalibration:
    258258        fTCalibration->Fill();
    259259        return kTRUE;
  • trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc

    r3183 r3374  
    6161using namespace std;
    6262
     63const UShort_t MRawRunHeader::kMagicNumber      = 0xc0c0;
     64const Byte_t   MRawRunHeader::kMaxFormatVersion =      3;
     65
    6366// --------------------------------------------------------------------------
    6467//
  • trunk/MagicSoft/Mars/mraw/MRawRunHeader.h

    r3183 r3374  
    1414class MArrayS;
    1515
    16 //
    17 // Magic number to detect the magic file type
    18 //
    19 const UShort_t kMagicNumber      = 0xc0c0;
    20 const Byte_t   kMaxFormatVersion =      3;
    21 
    22 //
    23 // enum for the Run Type. Monte Carlo Runs have
    24 // to have a value greater than 255 (>0xff)
    25 //
    26 enum {
    27     kRTData        = 0x0000,
    28     kRTPedestal    = 0x0001,
    29     kRTCalibration = 0x0002,
    30     kRTMonteCarlo  = 0x0100,
    31     kRTNone        = 0xffff
    32 };
    33 
    3416class MRawRunHeader : public MParContainer
    3517{
     18public:
     19    //
     20    // enum for the Run Type. Monte Carlo Runs have
     21    // to have a value greater than 255 (>0xff)
     22    //
     23    enum {
     24        kRTData        = 0x0000,
     25        kRTPedestal    = 0x0001,
     26        kRTCalibration = 0x0002,
     27        kRTMonteCarlo  = 0x0100,
     28        kRTNone        = 0xffff
     29    };
     30
     31    //
     32    // Magic number to detect the magic file type
     33    //
     34    static const UShort_t kMagicNumber;
     35    static const Byte_t   kMaxFormatVersion;
     36
    3637private:
    3738    /* ---- Run Header Informations ---- */
     
    105106    Int_t GetNumTotalBytes() const;
    106107
     108    Bool_t IsMonteCarloRun() const { return fRunType>0x00ff; }
     109
    107110    void Print(Option_t *t=NULL) const;
    108111
Note: See TracChangeset for help on using the changeset viewer.