- Timestamp:
- 08/26/04 14:25:10 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r4741 r4742 28 28 and SetSourcePosition 29 29 30 31 2004/08/26: Markus Gaug 32 33 * mjobs/MJExtractCalibTest.[h,cc] 34 - derived from MJob 35 - removed obsolete code (which has been moved to MJob) 36 37 * macros/calibration.C 38 - adapt code to changes done in MJob 39 30 40 31 41 2004/08/26: Thomas Bretz -
trunk/MagicSoft/Mars/mjobs/MJExtractCalibTest.cc
r4658 r4742 71 71 #include "MContinue.h" 72 72 #include "MFillH.h" 73 #include "MCalibrate .h"73 #include "MCalibrateData.h" 74 74 #include "MCalibrateRelTimes.h" 75 75 #include "MPedPhotCalc.h" … … 233 233 234 234 235 void MJExtractCalibTest::SetOutputPath(const char *path)236 {237 fOutputPath = path;238 if (fOutputPath.EndsWith("/"))239 fOutputPath = fOutputPath(0, fOutputPath.Length()-1);240 }241 242 235 const char* MJExtractCalibTest::GetOutputFile() const 243 236 { 237 238 if (fSequence.IsValid()) 239 return Form("%s/test%06d.root", (const char*)fPathOut, fSequence.GetSequence()); 240 244 241 if (!fRuns) 245 242 return ""; 246 243 247 return Form("%s/%s-Test.root", (const char*)fOutputPath, (const char*)fRuns->GetRunsAsFileName()); 244 return Form("%s/%s-Test.root", (const char*)fPathOut, (const char*)fRuns->GetRunsAsFileName()); 245 248 246 } 249 247 … … 302 300 MGeomApply apply; // Only necessary to craete geometry 303 301 MExtractSlidingWindow extract2; 304 MCalibrate 305 photcalc.SetCalibrationMode(MCalibrate ::kFfactor);302 MCalibrateData photcalc; 303 photcalc.SetCalibrationMode(MCalibrateData::kFfactor); 306 304 MPedPhotCalc pedphotcalc; 307 305 MBadPixelsTreat badtreat; 308 306 badtreat.SetUseInterpolation(); 309 307 MCalibrationTestCalc testcalc; 310 testcalc.SetOutputPath(fOutputPath); 311 testcalc.SetOutputFile(Form("%s-TestCalibStat.txt",(const char*)fRuns->GetRunsAsFileName())); 312 308 309 if (!fSequence.IsValid()) 310 { 311 testcalc.SetOutputPath(fPathOut); 312 testcalc.SetOutputFile(Form("%s-TestCalibStat.txt",(const char*)fRuns->GetRunsAsFileName())); 313 } 314 313 315 MHCamEvent evt("ExtSignal"); 314 316 evt.SetType(0); … … 515 517 { 516 518 517 if (f OutputPath.IsNull())519 if (fPathOut.IsNull()) 518 520 return kTRUE; 519 521 … … 549 551 { 550 552 551 if (f OutputPath.IsNull())553 if (fPathOut.IsNull()) 552 554 return kTRUE; 553 555 … … 575 577 576 578 579 Bool_t MJExtractCalibTest::CheckEnv() 580 { 581 if (HasEnv("DataCheckDisplay")) 582 fDisplayType = GetEnv("DataCheckDisplay", kFALSE) ? kDataCheckDisplay : kNormalDisplay; 583 584 SetOverwrite(GetEnv("Overwrite", fOverwrite)); 585 586 return MJob::CheckEnv(); 587 } -
trunk/MagicSoft/Mars/mjobs/MJExtractCalibTest.h
r4658 r4742 2 2 #define MARS_MJExtractCalibTest 3 3 4 #ifndef MARS_MJob 5 #include "MJob.h" 6 #endif 4 7 #ifndef MARS_MCalibrationTestCam 5 8 #include "MCalibrationTestCam.h" … … 23 26 class MExtractor; 24 27 class MExtractTime; 25 class MJExtractCalibTest : public M ParContainer28 class MJExtractCalibTest : public MJob 26 29 { 27 30 private: 28 31 29 TString fOutputPath;30 32 Bool_t fUseCosmicsFilter; 31 33 … … 58 60 Bool_t ProcessFileT(MPedestalCam &pedcam, MCalibrationRelTimeCam &relcam); 59 61 62 Bool_t CheckEnv(); 63 60 64 public: 61 65 MJExtractCalibTest(const char *name=NULL, const char *title=NULL); 62 66 63 67 void SetInput(MRunIter *iter) { fRuns = iter; } 64 void SetOutputPath(const char *path=".");65 68 66 69 const char* GetOutputFile() const;
Note:
See TracChangeset
for help on using the changeset viewer.