Ignore:
Timestamp:
03/17/05 12:07:35 (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/MSequence.cc

    r6845 r6846  
    248248}
    249249
    250 LightCondition_t MSequence::ReadLightCondition(TEnv &env) const
     250MSequence::LightCondition_t MSequence::ReadLightCondition(TEnv &env) const
    251251{
    252252    TString str = env.GetValue("LightCondition", "n/a");
     
    326326        return;
    327327    }
    328     gLog << "Sequence:     " << fSequence << endl;
    329     gLog << "Period:       " << fPeriod << endl;
    330     gLog << "Night:        " << fNight << endl << endl;
    331     gLog << "Start:        " << fStart << endl;
    332     gLog << "LastRun:      " << fLastRun << endl;
    333     gLog << "NumEvents:    " << fNumEvents << endl;
    334     gLog << "Project:      " << fProject << endl;
    335     gLog << "Source:       " << fSource << endl;
    336     gLog << "TriggerTable: " << fTriggerTable << endl;
    337     gLog << "HvSettings:   " << fHvSettings << endl << endl;
     328    gLog << "Sequence:       " << fSequence << endl;
     329    gLog << "Period:         " << fPeriod << endl;
     330    gLog << "Night:          " << fNight << endl << endl;
     331    gLog << "LightCondition: ";
     332    switch (fLightCondition)
     333    {
     334    case kNA:       gLog << "n/a" << endl;      break;
     335    case kNoMoon:   gLog << "NoMoon" << endl;   break;
     336    case kTwilight: gLog << "Twilight" << endl; break;
     337    case kMoon:     gLog << "Moon" << endl;     break;
     338    }
     339    gLog << "Start:          " << fStart << endl;
     340    gLog << "LastRun:        " << fLastRun << endl;
     341    gLog << "NumEvents:      " << fNumEvents << endl;
     342    gLog << "Project:        " << fProject << endl;
     343    gLog << "Source:         " << fSource << endl;
     344    gLog << "TriggerTable:   " << fTriggerTable << endl;
     345    gLog << "HvSettings:     " << fHvSettings << endl << endl;
    338346    gLog << "Runs:";
    339347    for (int i=0; i<fRuns.GetSize(); i++)
  • trunk/MagicSoft/Mars/mjobs/MSequence.h

    r6604 r6846  
    1818class MSequence : public MParContainer
    1919{
     20public:
     21    enum LightCondition_t { kNA, kNoMoon, kTwilight, kMoon };
    2022private:
    2123    UInt_t fSequence;
     
    2830    UInt_t fPeriod;
    2931    MTime  fNight;
     32
     33    LightCondition_t fLightCondition;
    3034
    3135    TString fProject;
     
    4347    void Split(TString &runs, TArrayI &data) const;
    4448    void GetFileNames(TEnv &env, const TArrayI &arr);
     49    LightCondition_t ReadLightCondition(TEnv &env) const;
    4550
    4651    const char *GetFileName(UInt_t num);
     
    8186    UInt_t GetLastRun() const  { return fLastRun; }
    8287    UInt_t GetPeriod() const   { return fPeriod; }
     88    LightCondition_t GetLightCondition() const { return fLightCondition; }
     89    Bool_t HasMoon() const { return fLightCondition==kMoon; }
    8390
    8491    const UInt_t GetFirstRun() const { return fRuns[0]; }
Note: See TracChangeset for help on using the changeset viewer.