Changeset 4732 for trunk/MagicSoft/Mars/mjobs/MSequence.cc
- Timestamp:
- 08/25/04 17:30:31 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MSequence.cc
r4729 r4732 73 73 } 74 74 75 Int_t MSequence::SetupRuns(MDirIter &iter, const TArrayI &arr, const char *path ) const75 Int_t MSequence::SetupRuns(MDirIter &iter, const TArrayI &arr, const char *path, Bool_t raw) const 76 76 { 77 77 TString d(path); … … 80 80 if (d.IsNull()) 81 81 { 82 d = Form("/data/MAGIC/Period%03d/rootdata/", fPeriod); 82 d = Form("/data/MAGIC/Period%03d/", fPeriod); 83 d += raw ? "rawdata/" : "rootdata/"; 83 84 d += fNight.GetStringFmt("%Y_%m_%d"); 84 85 } … … 90 91 // Create file name 91 92 n = fNight.GetStringFmt("%Y%m%d_"); 92 n += Form("%05d_*_E.root", arr[i]); 93 n += Form("%05d_*_E", arr[i]); 94 n += raw ? ".raw" : ".root"; 93 95 94 96 // Add Path/File to TIter … … 182 184 // If path==0 the standard path of the data-center is assumed. 183 185 // If you have the runs locally use path="." 184 // Return the number of files added. 185 // 186 Int_t MSequence::SetupPedRuns(MDirIter &iter, const char *path) const 187 { 188 return SetupRuns(iter, fPedRuns, path); 186 // Using raw=kTRUE you get correspodning raw-files setup. 187 // Return the number of files added. 188 // 189 Int_t MSequence::SetupPedRuns(MDirIter &iter, const char *path, Bool_t raw) const 190 { 191 return SetupRuns(iter, fPedRuns, path, raw); 189 192 } 190 193 … … 194 197 // If path==0 the standard path of the data-center is assumed. 195 198 // If you have the runs locally use path="." 196 // Return the number of files added. 197 // 198 Int_t MSequence::SetupDatRuns(MDirIter &iter, const char *path) const 199 { 200 return SetupRuns(iter, fDatRuns, path); 199 // Using raw=kTRUE you get correspodning raw-files setup. 200 // Return the number of files added. 201 // 202 Int_t MSequence::SetupDatRuns(MDirIter &iter, const char *path, Bool_t raw) const 203 { 204 return SetupRuns(iter, fDatRuns, path, raw); 201 205 } 202 206 … … 206 210 // If path==0 the standard path of the data-center is assumed. 207 211 // If you have the runs locally use path="." 208 // Return the number of files added. 209 // 210 Int_t MSequence::SetupAllRuns(MDirIter &iter, const char *path) const 211 { 212 return SetupRuns(iter, fRuns, path); 212 // Using raw=kTRUE you get correspodning raw-files setup. 213 // Return the number of files added. 214 // 215 Int_t MSequence::SetupAllRuns(MDirIter &iter, const char *path, Bool_t raw) const 216 { 217 return SetupRuns(iter, fRuns, path, raw); 213 218 } 214 219 … … 218 223 // If path==0 the standard path of the data-center is assumed. 219 224 // If you have the runs locally use path="." 220 // Return the number of files added. 221 // 222 Int_t MSequence::SetupCalRuns(MDirIter &iter, const char *path) const 223 { 224 return SetupRuns(iter, fCalRuns, path); 225 } 225 // Using raw=kTRUE you get correspodning raw-files setup. 226 // Return the number of files added. 227 // 228 Int_t MSequence::SetupCalRuns(MDirIter &iter, const char *path, Bool_t raw) const 229 { 230 return SetupRuns(iter, fCalRuns, path, raw); 231 }
Note:
See TracChangeset
for help on using the changeset viewer.