Changeset 3855 for trunk/MagicSoft/Mars/macros
- Timestamp:
- 04/27/04 19:24:37 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.