Changeset 4695
- Timestamp:
- 08/20/04 16:15:37 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r4694 r4695 22 22 2004/08/20: Thomas Bretz 23 23 24 * mjobs/MSequence.[h,cc]: 25 - added path-option to SetupRuns 26 27 * mjobs/MJCalibration.cc, mjobs/MJExtractSignal.cc, MJPedestal.cc: 28 - changed file "UPDATE" to "RECREATE" 29 24 30 * macros/sql/filldotrbk.C: 25 31 - removed obsolete output -
trunk/MagicSoft/Mars/mjobs/JobsLinkDef.h
r4601 r4695 9 9 #pragma link C++ class MJPedestal+; 10 10 #pragma link C++ class MJCalibration+; 11 #pragma link C++ class MJCalibrateSignal+; 11 12 #pragma link C++ class MJExtractSignal+; 12 13 #pragma link C++ class MJExtractCalibTest+; -
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r4688 r4695 1425 1425 { 1426 1426 read.DisableAutoScheme(); 1427 static_cast<MRead&>(read).AddFiles(fSequence ? iter : *fRuns);1427 read.AddFiles(fSequence ? iter : *fRuns); 1428 1428 tlist.AddToList(&read); 1429 1429 } … … 1702 1702 *fLog << inf << "Writing to file: " << oname << endl; 1703 1703 1704 TFile file(oname, " UPDATE");1704 TFile file(oname, "RECREATE"); 1705 1705 1706 1706 *fLog << inf << " - MStatusDisplay..." << flush; -
trunk/MagicSoft/Mars/mjobs/MJExtractSignal.cc
r4445 r4695 89 89 *fLog << inf << "Writing to file: " << oname << endl; 90 90 91 TFile file(oname, " UPDATE");91 TFile file(oname, "RECREATE"); 92 92 93 93 if (fDisplay && fDisplay->Write()<=0) -
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r4641 r4695 451 451 *fLog << inf << "Writing to file: " << oname << endl; 452 452 453 TFile file(oname, " UPDATE");453 TFile file(oname, "RECREATE"); 454 454 455 455 if (fDisplay && fDisplay->Write()<=0) … … 560 560 read.DisableAutoScheme(); 561 561 if (fRuns || fSequence) 562 static_cast<MRead&>(read).AddFiles(fSequence ? iter : *fRuns);562 read.AddFiles(fSequence ? iter : *fRuns); 563 563 tlist.AddToList(&read); 564 564 } -
trunk/MagicSoft/Mars/mjobs/MJPedestal.h
r4641 r4695 42 42 TEnv *fEnv; // Input setup-file 43 43 MRunIter *fRuns; // Used pedestal runs 44 MSequence *fSequence; // Sequence44 const MSequence *fSequence; // Sequence 45 45 46 46 MExtractor *fExtractor; // Signal extractor, used to find the nr. of used FADC slices … … 84 84 void SetExtractor(MExtractor* ext) { fExtractor = ext; } 85 85 void SetInput(MRunIter *iter) { fRuns = iter; } 86 void SetSequence( MSequence *seq, Bool_t usedata=kFALSE) { fSequence = seq; }86 void SetSequence(const MSequence *seq, Bool_t usedata=kFALSE) { fSequence = seq; } 87 87 void SetOutputPath(const char *path="."); 88 88 void SetEnv(const char *env); -
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 } -
trunk/MagicSoft/Mars/mjobs/MSequence.h
r4609 r4695 36 36 37 37 void Split(TString &runs, TArrayI &data) const; 38 void SetupRuns(MDirIter &iter, const TArrayI &arr ) const;38 void SetupRuns(MDirIter &iter, const TArrayI &arr, const char *path) const; 39 39 40 40 public: … … 43 43 void Print(Option_t *o="") const; 44 44 45 void SetupPedRuns(MDirIter &iter ) const;46 void SetupDatRuns(MDirIter &iter ) const;47 void SetupAllRuns(MDirIter &iter ) const;48 void SetupCalRuns(MDirIter &iter ) const;45 void SetupPedRuns(MDirIter &iter, const char *path=0) const; 46 void SetupDatRuns(MDirIter &iter, const char *path=0) const; 47 void SetupAllRuns(MDirIter &iter, const char *path=0) const; 48 void SetupCalRuns(MDirIter &iter, const char *path=0) const; 49 49 50 50 // Getter -
trunk/MagicSoft/Mars/mjobs/Makefile
r4601 r4695 28 28 MJPedestal.cc \ 29 29 MJCalibration.cc \ 30 MJCalibrateSignal.cc \ 30 31 MJExtractSignal.cc \ 31 32 MJExtractCalibTest.cc
Note:
See TracChangeset
for help on using the changeset viewer.