Changeset 8245 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 01/11/07 15:25:39 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibTest.cc
r8220 r8245 287 287 if (fSequence.IsValid()) 288 288 { 289 if (fSequence.SetupCalRuns(iter, fPathData, IsUseRawData())<=0)289 if (fSequence.SetupCalRuns(iter, 0, IsUseRawData())<=0) 290 290 return kFALSE; 291 291 } -
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r8220 r8245 246 246 if (fSequence.IsValid()) 247 247 { 248 if (fSequence.SetupDatRuns(iter, fPathData, IsUseRawData())<=0)248 if (fSequence.SetupDatRuns(iter, 0, IsUseRawData())<=0) 249 249 return kFALSE; 250 250 } -
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r8220 r8245 1698 1698 1699 1699 MDirIter iter; 1700 if (fSequence.SetupCalRuns(iter, fPathData, IsUseRawData())<=0)1700 if (fSequence.SetupCalRuns(iter, 0, IsUseRawData())<=0) 1701 1701 return kFALSE; 1702 1702 -
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r8220 r8245 1003 1003 fLog->Separator(GetDescriptor()); 1004 1004 *fLog << "Calculate MPedestalCam from " << type << "-runs "; 1005 *fLog << fSequence.Get Name() << endl;1005 *fLog << fSequence.GetFileName() << endl; 1006 1006 *fLog << endl; 1007 1007 … … 1023 1023 { 1024 1024 const Int_t n0 = IsUseData() 1025 ? fSequence.SetupDatRuns(iter, fPathData, IsUseRawData())1026 : fSequence.SetupPedRuns(iter, fPathData, IsUseRawData());1025 ? fSequence.SetupDatRuns(iter, 0, IsUseRawData()) 1026 : fSequence.SetupPedRuns(iter, 0, IsUseRawData()); 1027 1027 1028 1028 if (n0<=0) -
trunk/MagicSoft/Mars/mjobs/MJStar.cc
r8244 r8245 142 142 143 143 MDirIter iter; 144 if (fSequence.SetupDatRuns(iter, MSequence::kCalibrated , fPathData)<=0)144 if (fSequence.SetupDatRuns(iter, MSequence::kCalibrated)<=0) 145 145 return kFALSE; 146 146 -
trunk/MagicSoft/Mars/mjobs/MJob.cc
r7358 r8245 140 140 } 141 141 142 void MJob::SetPathData(const char *path)143 {144 fPathData = path;145 FixPath(fPathData);146 }147 148 142 const TEnv *MJob::GetEnv() const 149 143 { … … 184 178 if (!p.IsNull()) 185 179 SetPathIn(p); 186 187 p = GetEnv("PathData", "");188 if (!p.IsNull())189 SetPathData(p);190 180 191 181 SetMaxEvents(GetEnv("MaxEvents", fMaxEvents)); -
trunk/MagicSoft/Mars/mjobs/MJob.h
r7358 r8245 24 24 TString fPathOut; // Directory to write output file to (eg. calib*.root) 25 25 TString fPathIn; // Directory to read output from (eg. calib*.root) 26 TString fPathData; // Directory to read data files from (2004*.root)27 26 28 27 Bool_t fOverwrite; // Allow overwriting output files … … 58 57 void SetPathOut(const char *path="."); 59 58 void SetPathIn(const char *path="."); 60 void SetPathData(const char *path=".");61 59 62 60 void SetOverwrite(Bool_t b=kTRUE) { fOverwrite=b; } … … 71 69 TString GetPathOut() const { return fPathOut; } 72 70 TString GetPathIn() const { return fPathIn; } 73 TString GetPathData() const { return fPathData; }74 71 75 72 // Others -
trunk/MagicSoft/Mars/mjobs/MSequence.h
r7380 r8245 26 26 }; 27 27 private: 28 TString fFileName; 29 TString fDataPath; 30 28 31 UInt_t fSequence; 29 32 … … 63 66 MSequence() : fSequence((UInt_t)-1), fLastRun((UInt_t)-1), 64 67 fNumEvents((UInt_t)-1), fPeriod((UInt_t)-1) { } 65 MSequence(const char *fname );68 MSequence(const char *fname, const char *path=""); 66 69 MSequence(const MSequence &s) : fSequence(s.fSequence), fStart(s.fStart), 67 70 fLastRun(s.fLastRun), fNumEvents(s.fNumEvents), fPeriod(s.fPeriod), … … 114 117 const TString GetStandardPath() const { return "/magic/data/"; } 115 118 119 const TString &GetFileName() const { return fFileName; } 120 const TString &GetDataPath() const { return fDataPath; } 121 116 122 // Setter 117 123 void SetNight(const char*night);
Note:
See TracChangeset
for help on using the changeset viewer.