Changeset 8970 for trunk/MagicSoft/Mars/mraw
- Timestamp:
- 06/17/08 18:11:57 (17 years ago)
- Location:
- trunk/MagicSoft/Mars/mraw
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc
r8966 r8970 276 276 if (fFormatVersion>10) 277 277 { 278 if (GetRunID()!=fTelescopeNumber && GetRunID()!=fTelescopeNumber*10U && GetRunID()!=fTelescopeNumber*10U+5U) 278 if (GetTypeID()!=fTelescopeNumber && 279 GetTypeID()!=fTelescopeNumber*10U && 280 GetTypeID()!=fTelescopeNumber*10U+5U) 279 281 { 280 282 *fLog << err << "ERROR - Telscope number " << fTelescopeNumber << " doesn't match the first two digits of the run number " << fRunNumber << "." << endl; -
trunk/MagicSoft/Mars/mraw/MRawRunHeader.h
r8966 r8970 106 106 UInt_t GetRunNumber() const { return fRunNumber; } 107 107 UInt_t GetFileNumber() const { return fFileNumber; } 108 UInt_t Get RunID() const{ return (fRunNumber/1000000)%100; }108 UInt_t GetTypeID() const { return (fRunNumber/1000000)%100; } 109 109 UInt_t GetFileID() const { return fRunNumber>1000000?(fRunNumber%1000000)*1000+(fFileNumber%1000):fRunNumber; } 110 110 UShort_t GetTelescopeNumber() const { return fRunType; } … … 127 127 const MTime &GetRunStart() const { return fRunStart; } 128 128 const MTime &GetRunEnd() const { return fRunStop; } 129 Double_t GetRunLength() const { return fRunStop-fRunStart; }129 Double_t GetRunLength() const { return !fRunStart || !fRunStop ? 0 : fRunStop-fRunStart; } 130 130 Short_t GetPixAssignment(UShort_t i) const; 131 131 UShort_t GetMaxPixId() const;
Note:
See TracChangeset
for help on using the changeset viewer.