Ignore:
Timestamp:
06/20/09 10:14:33 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mraw
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc

    r9433 r9462  
    940940// to print it as readable text.
    941941//
    942 const char *MRawRunHeader::GetRunTypeStr() const
     942const Char_t *MRawRunHeader::GetRunTypeStr() const
    943943{
    944944    switch (fRunType)
     
    960960    default:
    961961        return "<unknown>";
     962    }
     963}
     964
     965const 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 ' ';
    962980    }
    963981}
  • trunk/MagicSoft/Mars/mraw/MRawRunHeader.h

    r9433 r9462  
    126126    UInt_t   GetFileID() const            { return fRunNumber>1000000?(fRunNumber%1000000)*1000+(fFileNumber%1000):fRunNumber; }
    127127    TString  GetStringID() const;
    128     UShort_t GetTelescopeNumber() const   { return fRunType; }
     128    UShort_t GetTelescopeNumber() const   { return fTelescopeNumber; }
    129129    UShort_t GetRunType() const           { return fRunType; }
    130130    const Char_t *GetRunTypeStr() const;
     131    const Char_t  GetRunTypeChar() const;
    131132    const Char_t *GetProjectName() const  { return fProjectName; }
    132133    const Char_t *GetSourceName() const   { return fSourceName; }
Note: See TracChangeset for help on using the changeset viewer.