Changeset 3374 for trunk/MagicSoft/Mars/mraw
- Timestamp:
- 03/01/04 17:18:18 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mraw
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawEvtHeader.h
r3338 r3374 14 14 class MRawRunHeader; 15 15 16 //17 // Trigger Type (TT)18 //19 enum {20 kTTEvent = 0,21 kTTPedestal = 1,22 kTTCalibration = 223 };24 25 16 class MRawEvtHeader : public MParContainer 26 17 { 18 public: 19 // 20 // Trigger Type (TT) 21 // 22 enum { 23 kTTEvent = 0, 24 kTTPedestal = 1, 25 kTTCalibration = 2 26 }; 27 27 28 private: 28 29 MTime *fTime; //! object to store the time in (ReadEvt) -
trunk/MagicSoft/Mars/mraw/MRawFileWrite.cc
r3183 r3374 247 247 switch (type) 248 248 { 249 case kTTEvent:249 case MRawEvtHeader::kTTEvent: 250 250 fTData->Fill(); 251 251 return kTRUE; 252 252 253 case kTTPedestal:253 case MRawEvtHeader::kTTPedestal: 254 254 fTPedestal->Fill(); 255 255 return kTRUE; 256 256 257 case kTTCalibration:257 case MRawEvtHeader::kTTCalibration: 258 258 fTCalibration->Fill(); 259 259 return kTRUE; -
trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc
r3183 r3374 61 61 using namespace std; 62 62 63 const UShort_t MRawRunHeader::kMagicNumber = 0xc0c0; 64 const Byte_t MRawRunHeader::kMaxFormatVersion = 3; 65 63 66 // -------------------------------------------------------------------------- 64 67 // -
trunk/MagicSoft/Mars/mraw/MRawRunHeader.h
r3183 r3374 14 14 class MArrayS; 15 15 16 //17 // Magic number to detect the magic file type18 //19 const UShort_t kMagicNumber = 0xc0c0;20 const Byte_t kMaxFormatVersion = 3;21 22 //23 // enum for the Run Type. Monte Carlo Runs have24 // 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 = 0xffff32 };33 34 16 class MRawRunHeader : public MParContainer 35 17 { 18 public: 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 36 37 private: 37 38 /* ---- Run Header Informations ---- */ … … 105 106 Int_t GetNumTotalBytes() const; 106 107 108 Bool_t IsMonteCarloRun() const { return fRunType>0x00ff; } 109 107 110 void Print(Option_t *t=NULL) const; 108 111
Note:
See TracChangeset
for help on using the changeset viewer.