Changeset 6846 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 03/17/05 12:07:35 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MSequence.cc
r6845 r6846 248 248 } 249 249 250 LightCondition_t MSequence::ReadLightCondition(TEnv &env) const250 MSequence::LightCondition_t MSequence::ReadLightCondition(TEnv &env) const 251 251 { 252 252 TString str = env.GetValue("LightCondition", "n/a"); … … 326 326 return; 327 327 } 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; 338 346 gLog << "Runs:"; 339 347 for (int i=0; i<fRuns.GetSize(); i++) -
trunk/MagicSoft/Mars/mjobs/MSequence.h
r6604 r6846 18 18 class MSequence : public MParContainer 19 19 { 20 public: 21 enum LightCondition_t { kNA, kNoMoon, kTwilight, kMoon }; 20 22 private: 21 23 UInt_t fSequence; … … 28 30 UInt_t fPeriod; 29 31 MTime fNight; 32 33 LightCondition_t fLightCondition; 30 34 31 35 TString fProject; … … 43 47 void Split(TString &runs, TArrayI &data) const; 44 48 void GetFileNames(TEnv &env, const TArrayI &arr); 49 LightCondition_t ReadLightCondition(TEnv &env) const; 45 50 46 51 const char *GetFileName(UInt_t num); … … 81 86 UInt_t GetLastRun() const { return fLastRun; } 82 87 UInt_t GetPeriod() const { return fPeriod; } 88 LightCondition_t GetLightCondition() const { return fLightCondition; } 89 Bool_t HasMoon() const { return fLightCondition==kMoon; } 83 90 84 91 const UInt_t GetFirstRun() const { return fRuns[0]; }
Note:
See TracChangeset
for help on using the changeset viewer.