Changeset 9462 for trunk/MagicSoft/Mars/mraw
- Timestamp:
- 06/20/09 10:14:33 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/mraw
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc
r9433 r9462 940 940 // to print it as readable text. 941 941 // 942 const char*MRawRunHeader::GetRunTypeStr() const942 const Char_t *MRawRunHeader::GetRunTypeStr() const 943 943 { 944 944 switch (fRunType) … … 960 960 default: 961 961 return "<unknown>"; 962 } 963 } 964 965 const Char_t MRawRunHeader::GetRunTypeChar() const 966 { 967 switch (fRunType&0xff) 968 { 969 case kRTData: 970 case kRTPointRun: 971 return 'D'; 972 case kRTPedestal: 973 return 'P'; 974 case kRTCalibration: 975 return 'C'; 976 case kRTLinearity: 977 return 'N'; 978 default: 979 return ' '; 962 980 } 963 981 } -
trunk/MagicSoft/Mars/mraw/MRawRunHeader.h
r9433 r9462 126 126 UInt_t GetFileID() const { return fRunNumber>1000000?(fRunNumber%1000000)*1000+(fFileNumber%1000):fRunNumber; } 127 127 TString GetStringID() const; 128 UShort_t GetTelescopeNumber() const { return f RunType; }128 UShort_t GetTelescopeNumber() const { return fTelescopeNumber; } 129 129 UShort_t GetRunType() const { return fRunType; } 130 130 const Char_t *GetRunTypeStr() const; 131 const Char_t GetRunTypeChar() const; 131 132 const Char_t *GetProjectName() const { return fProjectName; } 132 133 const Char_t *GetSourceName() const { return fSourceName; }
Note:
See TracChangeset
for help on using the changeset viewer.