Changeset 4695 for trunk/MagicSoft/Mars/mjobs/MSequence.cc
- Timestamp:
- 08/20/04 16:15:37 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MSequence.cc
r4601 r4695 63 63 } 64 64 65 void MSequence::SetupRuns(MDirIter &iter, const TArrayI &arr ) const65 void MSequence::SetupRuns(MDirIter &iter, const TArrayI &arr, const char *path) const 66 66 { 67 TString d(path); 68 69 // Setup path 70 if (!path) 71 { 72 d = Form("/data/MAGIC/Period%03d/rootdata/", fPeriod); 73 d += fNight.GetStringFmt("%Y_%m_%d"); 74 } 75 67 76 for (int i=0; i<arr.GetSize(); i++) 68 77 { 69 TString d, n; 70 d = "/data/MAGIC/Period"; 71 d += Form("%03d", fPeriod); 72 d += "/rootdata/"; 73 d += fNight.GetStringFmt("%Y_%m_%d"); 78 TString n; 79 80 // Create file name 74 81 n = fNight.GetStringFmt("%Y%m%d_"); 75 n += Form("%05d", arr[i]); 76 n += "_*_E.root"; 82 n += Form("%05d_*_E.root", arr[i]); 77 83 84 // Add Path/File to TIter 78 85 iter.AddDirectory(d, n, 0); 79 86 } … … 146 153 } 147 154 148 void MSequence::SetupPedRuns(MDirIter &iter ) const155 void MSequence::SetupPedRuns(MDirIter &iter, const char *path) const 149 156 { 150 SetupRuns(iter, fPedRuns );157 SetupRuns(iter, fPedRuns, path); 151 158 } 152 159 153 void MSequence::SetupDatRuns(MDirIter &iter ) const160 void MSequence::SetupDatRuns(MDirIter &iter, const char *path) const 154 161 { 155 SetupRuns(iter, fDatRuns );162 SetupRuns(iter, fDatRuns, path); 156 163 } 157 164 158 void MSequence::SetupAllRuns(MDirIter &iter ) const165 void MSequence::SetupAllRuns(MDirIter &iter, const char *path) const 159 166 { 160 SetupRuns(iter, fRuns );167 SetupRuns(iter, fRuns, path); 161 168 } 162 169 163 void MSequence::SetupCalRuns(MDirIter &iter ) const170 void MSequence::SetupCalRuns(MDirIter &iter, const char *path) const 164 171 { 165 SetupRuns(iter, fCalRuns );172 SetupRuns(iter, fCalRuns, path); 166 173 }
Note:
See TracChangeset
for help on using the changeset viewer.