Changeset 6216 for trunk/MagicSoft/Mars
- Timestamp:
- 02/02/05 20:00:41 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibTest.cc
r6211 r6216 51 51 52 52 #include "MPedestalCam.h" 53 #include "MPedPhotCam.h" 53 54 #include "MBadPixelsCam.h" 54 55 #include "MBadPixelsTreat.h" … … 212 213 } 213 214 214 215 const char* MJCalibTest::GetInputFile() const 215 // -------------------------------------------------------------------------- 216 // 217 // Retrieve the output file written by WriteResult() 218 // 219 const char* MJCalibTest::GetOutputFile() const 220 { 221 const TString name(GetOutputFileName()); 222 if (name.IsNull()) 223 return ""; 224 225 return Form("%s/%s", fPathOut.Data(), name.Data()); 226 } 227 228 229 const char* MJCalibTest::GetOutputFileName() const 216 230 { 217 231 218 232 if (fSequence.IsValid()) 219 return Form(" %s/calib%08d.root", (const char*)fPathOut, fSequence.GetSequence());233 return Form("calib%08d.root", fSequence.GetSequence()); 220 234 221 235 if (!fRuns) 222 236 return ""; 223 237 224 return Form("%s/%s-F1.root", (const char*)fPathOut, (const char*)fRuns->GetRunsAsFileName()); 225 226 } 227 228 229 const char* MJCalibTest::GetOutputFile() const 230 { 231 232 if (fSequence.IsValid()) 233 return Form("%s/test%08d.root", (const char*)fPathOut, fSequence.GetSequence()); 234 235 if (!fRuns) 236 return ""; 237 238 return Form("%s/%s-Test.root", (const char*)fPathOut, (const char*)fRuns->GetRunsAsFileName()); 238 return Form("%s-F1.root", (const char*)fRuns->GetRunsAsFileName()); 239 239 240 240 } … … 243 243 { 244 244 245 const TString fname = Get InputFile();245 const TString fname = GetOutputFile(); 246 246 247 247 *fLog << inf << "Reading from file: " << fname << endl; … … 385 385 386 386 if (!ReadCalibration(calibcont, badpix, extractor1, extractor2, geom)) 387 return kFALSE; 387 { 388 *fLog << err << "Could not read calibration constants " << endl; 389 return kFALSE; 390 } 388 391 389 392 *fLog << all; … … 574 577 575 578 /* 576 577 MHCalibrationPix &pix1 = (*hcam)(100);578 579 580 581 582 MHCalibrationPix &pix11 = (*hccam)(100);583 584 579 MHCalibrationTestCam *hcam = (MHCalibrationTestCam*)plist.FindObject("MHCalibrationTestCam"); 580 MHCalibrationPix &pix1 = (*hcam)[47]; 581 pix1.DrawClone(""); 582 gPad->SaveAs("test_test_100.ps"); 583 584 MHCalibrationTestTimeCam *hccam = (MHCalibrationTestTimeCam*)plist.FindObject("MHCalibrationTestTimeCam"); 585 MHCalibrationPix &pix11 = (*hccam)[47]; 586 pix11.DrawClone(""); 587 gPad->SaveAs("test_testtime_100.ps"); 585 588 */ 586 587 589 588 590 DisplayResult(plist); … … 614 616 } 615 617 616 if (fPedPhotCam.Write()<=0)617 {618 *fLog << err << "Unable to write MPedPhotCam to " << oname << endl;619 return kFALSE;620 }621 622 618 if (fTestCam.Write()<=0) 623 619 { -
trunk/MagicSoft/Mars/mjobs/MJCalibTest.h
r6200 r6216 13 13 #ifndef MARS_MHCalibrationTestTimeCam 14 14 #include "MHCalibrationTestTimeCam.h" 15 #endif16 #ifndef MARS_MPedPhotCam17 #include "MPedPhotCam.h"18 15 #endif 19 16 #ifndef MARS_MBadPixelsCam … … 40 37 MCalibrationTestCam fTestCam; 41 38 MHCalibrationTestTimeCam fTestTimeCam; 42 MPedPhotCam fPedPhotCam;43 39 44 40 enum Display_t // Possible Display types … … 61 57 MExtractor* &ext1, MExtractor* &ext2, TString &geom) const; 62 58 59 const char* GetOutputFileName() const; 60 63 61 public: 64 62 … … 66 64 67 65 const char* GetOutputFile() const; 68 const char* GetInputFile() const;69 66 70 67 MCalibrationTestCam &GetTestCam() { return fTestCam; } 71 68 MHCalibrationTestTimeCam &GetTestTimeCam() { return fTestTimeCam; } 72 MPedPhotCam &GetPedPhotCam() { return fPedPhotCam; }73 69 const MBadPixelsCam &GetBadPixels() const { return fBadPixels; } 74 70
Note:
See TracChangeset
for help on using the changeset viewer.