Ignore:
Timestamp:
03/17/05 12:04:06 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mjobs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.h

    r6768 r6845  
    112112    void SetExtractor(MExtractor* ext);
    113113    void SetUseData()                           { fExtractType = kUseData;   }
    114     void SetUseHists()                          { fIsUseHists = kTRUE;  }
     114    void SetUseHists( const Bool_t b=kTRUE)     { fIsUseHists = b;  }
    115115    void SetUsePedRun()                         { fExtractType = kUsePedRun; }
    116116    void SetDataCheckDisplay()                  { fDisplayType = kDisplayDataCheck; }
  • trunk/MagicSoft/Mars/mjobs/MSequence.cc

    r6604 r6845  
    248248}
    249249
     250LightCondition_t MSequence::ReadLightCondition(TEnv &env) const
     251{
     252    TString str = env.GetValue("LightCondition", "n/a");
     253    if (!str.CompareTo("n/a", TString::kIgnoreCase))
     254        return kNA;
     255    if (!str.CompareTo("NoMoon", TString::kIgnoreCase))
     256        return kNoMoon;
     257    if (!str.CompareTo("Twilight", TString::kIgnoreCase))
     258        return kTwilight;
     259    if (!str.CompareTo("Moon", TString::kIgnoreCase))
     260        return kMoon;
     261
     262    gLog << warn << "MSequence: LightCondition-tag not n/a, nomoon, twilight or moon." << endl;
     263    return kNA;
     264}
     265
    250266// --------------------------------------------------------------------------
    251267//
     
    269285    fNumEvents = env.GetValue("NumEvents", -1);
    270286    fPeriod    = env.GetValue("Period",    -1);
     287
     288    fLightCondition = ReadLightCondition(env);
    271289
    272290    str = env.GetValue("Start", "");
Note: See TracChangeset for help on using the changeset viewer.