Changeset 3855 for trunk/MagicSoft
- Timestamp:
- 04/27/04 19:24:37 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3854 r3855 63 63 was not correct 64 64 65 * macros/calibration.C 66 - added the test class MJExtractCalibTest 65 67 66 68 2004/04/27: Abelardo Moralejo -
trunk/MagicSoft/Mars/macros/calibration.C
r3832 r3855 51 51 // uncommented as well. 52 52 // 53 // Last, a third loop is performed over the calibration file again in order to 54 // "calibrate" it and test the resulting outcome. 55 // 53 56 ///////////////////////////////////////////////////////////////////////////// 54 const TString inpath = "/home/rootdata/Calib/2004_04_16/";55 const Int_t pedrun = 22265;56 const Int_t calrun1 = 22299;57 const Int_t calrun2 = 22300;57 static const TString inpath = "/home/rootdata/Calib/2004_04_16/"; 58 static const Int_t pedrun = 22265; 59 static const Int_t calrun1 = 22300; 60 static const Int_t calrun2 = 0; 58 61 59 62 void calibration(const Int_t prun=pedrun, const Int_t crun1=calrun1, const Int_t crun2=calrun2) 60 63 { 64 61 65 62 66 MRunIter pruns; … … 72 76 MCalibrationQECam qecam; 73 77 MBadPixelsCam badcam; 74 78 MGeomCamMagic geomcam; 79 MGeomApply geomapl; 75 80 // 76 81 // If you want to exclude pixels from the beginning, read … … 95 100 return; 96 101 97 / /98 / / Now setup the tasks and for the calibration:99 / / ---------------------------------------------------100 // 102 /****************************************/ 103 /* SECOND LOOP: CALIBRATION COMPUTATION */ 104 /****************************************/ 105 101 106 MJCalibration calloop; 102 // calloop.SetColor(color);103 107 104 108 // 105 109 // If you want to run the data-check on RAW DATA!!!, choose: 106 110 // calloop.SetDataCheck(); 111 // 112 // If you want to see the data-check plots only, choose: 113 // calloop.SetDataCheckDisplay(); 107 114 // 108 115 // For everything, you ever dreamed of, choose: … … 119 126 if (!calloop.Process(pedloop.GetPedestalCam())) 120 127 return; 121 128 129 130 /********************************************************************/ 131 /* THIRD LOOP: APPLY CALIBRATION TO THE CALIBRATION FILES FOR TESTS */ 132 /********************************************************************/ 133 134 MJExtractCalibTest testloop; 135 136 testloop.SetInput(&cruns); 137 testloop.SetDisplay(display); 138 testloop.SetBadPixels(calloop.GetBadPixels()); 139 if (!testloop.ProcessD(pedloop.GetPedestalCam(),calloop.GetCalibrationCam(),calloop.GetQECam())) 140 return; 141 142 122 143 } 123 144 -
trunk/MagicSoft/Mars/mcalib/MHCalibrationTestCam.cc
r3849 r3855 453 453 // 6: Fourier spectrum not OK (calls: MHGausEvents::IsFourierSpectrumOK()) 454 454 // 455 // Converted values: 456 // ================= 457 // 458 // 7: Fitted Mean Test Calibration (MHGausEvents::GetMean()) by MGeomPix::GetA() 459 // 8: Fitted Mean Error Calibration (MHGausEvents::GetSigma()) by MGeomPix::GetA() 460 // 9: Fitted Sigma Test Calibration (MHGausEvents::GetMean()) by MGeomPix::GetA() 461 // 8: Fitted Sigma Error Calibration (MHGausEvents::GetSigma()) by MGeomPix::GetA() 462 // 455 463 Bool_t MHCalibrationTestCam::GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type) const 456 464 { … … 488 496 if (!pix.IsFourierSpectrumOK()) 489 497 val = 1.; 498 break; 499 case 7: 500 val = pix.GetMean()/cam[idx].GetA(); 501 break; 502 case 8: 503 val = pix.GetMeanErr()/cam[idx].GetA(); 504 break; 505 case 9: 506 val = pix.GetSigma()/cam[idx].GetA(); 507 break; 508 case 10: 509 val = pix.GetSigmaErr()/cam[idx].GetA(); 490 510 break; 491 511 default: -
trunk/MagicSoft/Mars/mjobs/JobsLinkDef.h
r3853 r3855 8 8 #pragma link C++ class MJCalibration+; 9 9 #pragma link C++ class MJExtractSignal+; 10 #pragma link C++ class MJExtractCalibTest+; 10 11 11 12 #pragma link C++ class MGCamDisplays+;
Note:
See TracChangeset
for help on using the changeset viewer.