Changeset 8970 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
06/17/08 18:11:57 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8969 r8970  
    2828   * mjobs/MJStar.cc:
    2929     - Use File id instead of run number
     30     - fixed the units in the display (phe not \\gamma)
    3031
    3132   * mjobs/MSequence.[h,cc]:
  • trunk/MagicSoft/Mars/NEWS

    r8962 r8970  
    6666
    6767   * fixed mars (event display) for merpped raw-data and MC data
     68
     69   * adapted the synatx of sequence files to allow for the new run/file
     70     scheme. For more details see class description of MSequence
    6871
    6972 ;showplot
  • trunk/MagicSoft/Mars/mjobs/MJStar.cc

    r8969 r8970  
    218218
    219219    // ------------------ Setup histograms and fill tasks ----------------
    220     MHCamEvent evt0a(0, "Cleaned",   "Average signal after Cleaning;;S [\\gamma]");
    221     MHCamEvent evt0c(0, "Sparkless", "Average signal after Cleaning and Spark cuts;;S [\\gamma]");
    222     MHCamEvent evt0d(0, "Sparks",    "Average signal after Cleaning for Spark cuts;;S [\\gamma]");
     220    MHCamEvent evt0a(0, "Cleaned",   "Average signal after Cleaning;;S [phe]");
     221    MHCamEvent evt0c(0, "Sparkless", "Average signal after Cleaning and Spark cuts;;S [phe]");
     222    MHCamEvent evt0d(0, "Sparks",    "Average signal after Cleaning for Spark cuts;;S [phe]");
    223223    MHCamEvent evt0b(0, "UsedPix",   "Fraction of Events in which Pixels are used;;Fraction");
    224224    evt0a.SetErrorSpread(kFALSE);
  • trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc

    r8966 r8970  
    276276    if (fFormatVersion>10)
    277277    {
    278         if (GetRunID()!=fTelescopeNumber && GetRunID()!=fTelescopeNumber*10U && GetRunID()!=fTelescopeNumber*10U+5U)
     278        if (GetTypeID()!=fTelescopeNumber     &&
     279            GetTypeID()!=fTelescopeNumber*10U &&
     280            GetTypeID()!=fTelescopeNumber*10U+5U)
    279281        {
    280282            *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  
    106106    UInt_t   GetRunNumber() const         { return fRunNumber; }
    107107    UInt_t   GetFileNumber() const        { return fFileNumber; }
    108     UInt_t   GetRunID() const             { return (fRunNumber/1000000)%100; }
     108    UInt_t   GetTypeID() const            { return (fRunNumber/1000000)%100; }
    109109    UInt_t   GetFileID() const            { return fRunNumber>1000000?(fRunNumber%1000000)*1000+(fFileNumber%1000):fRunNumber; }
    110110    UShort_t GetTelescopeNumber() const   { return fRunType; }
     
    127127    const MTime &GetRunStart() const      { return fRunStart; }
    128128    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; }
    130130    Short_t GetPixAssignment(UShort_t i) const;
    131131    UShort_t GetMaxPixId() const;
Note: See TracChangeset for help on using the changeset viewer.