Changeset 6691 for trunk/MagicSoft/Mars/mtemp/mucm/classes/MDataSetIter.h
- Timestamp:
- 03/01/05 19:08:59 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/mucm/classes/MDataSetIter.h
r4683 r6691 8 8 #ifndef MARS_MRunIter 9 9 #include "MRunIter.h" 10 #endif 11 12 #ifndef MARS_MSequence 13 #include "MSequence.h" 10 14 #endif 11 15 … … 25 29 TObjArray fSrcList; // List with the valid source names 26 30 27 Int_t fLastProcessedRun; // Runnumber of the last processed run 31 32 Int_t fInitialRun; // Runnumber of the first run to proccess 33 Int_t fEndRun; // Runnumber of the last run to proccess 34 Int_t fLastProcessedDataRun; // Runnumber of the last processed run 35 Int_t fLastDataRun; // Lst Data runnumber in fFileList 28 36 29 37 MRunIter* fPedRuns; 30 38 MRunIter* fCalRuns; 31 39 MRunIter* fDataRuns; 40 MSequence* fSequence; 32 41 33 42 TString fSrcName; 34 43 TString fDate; 35 44 45 Int_t fDefCalRun; 46 TString fDefCalRunPath; 47 36 48 MLog *fLog; 37 49 38 Int_t fDefCalRun;39 TString fDefCalRunPath;40 50 41 51 Int_t CheckSourceName(TString& src); 52 Int_t CompareSourceNames(TString& src1, TString& src2); 42 53 void AddToFileList(MDirIter& dir); 43 void ScanFileName(const TString& file, TString& name, TString& path, TString& date, TString& src, Int_t* run, char* type); 44 54 void ScanFileName(const TString& file, TString& name, TString& path, TString& date, TString& src, Int_t* run, char* type); 55 Int_t IsPreviousRunUsable(MRunIter& oldRun); 56 Int_t Loop(TString option, TString LockSrcName=""); 57 void FindLastDataRun(); 58 45 59 public: 46 60 … … 52 66 Int_t NextDataSet(); 53 67 54 void SetInitialRun(Int_t run) { fLastProcessedRun = run; } 68 void SetInitialRun(Int_t run) { fInitialRun = run; } 69 void SetEndRun(Int_t run) 70 { 71 fEndRun = run; 72 FindLastDataRun(); 73 } 74 void SetDefCalRun(Int_t run, const char* path) {fDefCalRun = run; fDefCalRunPath = path; } 75 76 Int_t GetLastProcessedRun() const { return fLastProcessedDataRun; } 55 77 56 78 TString* GetSrcName() { return &fSrcName; } … … 74 96 void Reset() 75 97 { 76 MDirIter::Reset(); 77 fLastProcessedRun = 0; 98 fLastProcessedDataRun = 0; 78 99 } 79 100 80 101 void Print(const Option_t *option="") const; 102 103 Bool_t HasFinishedSuccesfully(); 81 104 82 Int_t Loop(TString option, TString LockSrcName=""); 83 84 Int_t IsPreviousRunUsable(MRunIter& oldRun); 85 86 87 Int_t GetLastProcessedRun() const { return fLastProcessedRun; } 88 89 void SetDefCalRun(Int_t run, const char* path) {fDefCalRun = run; fDefCalRunPath = path; } 105 Int_t WriteSequence(); 90 106 91 107 92 ClassDef(MDataSetIter, 1) // Iterator for runs108 ClassDef(MDataSetIter, 1) // Iterator for data set made of Pec, Cal and Data runs 93 109 }; 94 110
Note:
See TracChangeset
for help on using the changeset viewer.