Changeset 3925 for trunk/MagicSoft/Mars/macros
- Timestamp:
- 05/01/04 12:34:15 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/calibration.C
r3913 r3925 57 57 static const TString inpath = "/mnt/Data/rootdata/Miscellaneous/2004_03_03/"; 58 58 static const Int_t pedrun = 20123; 59 static const Int_t calrun1 = 2012 6;59 static const Int_t calrun1 = 20125; 60 60 static const Int_t calrun2 = 0; 61 61 … … 63 63 { 64 64 65 66 // 67 // Choose the signal Extractor: 68 // 65 69 MExtractFixedWindowPeakSearch extractor; 66 // extractor.SetRange(0,14,0,14); 70 // MExtractSlidingWindow extractor; 71 // MExtractFixedWindow extractor; 67 72 68 // MExtractSlidingWindow extractor; 69 // MExtractFixedWindow extractor; 73 // 74 // Set Ranges or Windows 75 // 76 // extractor.SetRange(2,14,5,14); 77 // extractor.SetWindows(8,8); 70 78 79 // 80 // Choose the arrival time Extractor: 81 // 71 82 MExtractTimeHighestIntegral timeext; 83 // MExtractTimeSpline timeext; 84 // 85 // Set Ranges or Windows 86 // 87 // timeext.SetRange(0,14,6,14); 72 88 73 // MExtractTimeSpline timeext; 74 // timeext.SetRange(0,14,6,14); 89 // 90 // Tell if you want to calibrate times: 91 // 92 Bool_t useTimes = kTRUE; 93 // Bool_t calibrateTimes = kFALSE; 75 94 76 95 MRunIter pruns; … … 103 122 // an ascii-file with the corr. pixel numbers (see MBadPixelsCam) 104 123 // 105 //badcam.AsciiRead("badpixels.dat");124 badcam.AsciiRead("badpixels.dat"); 106 125 107 126 MJPedestal pedloop; … … 133 152 // If you want to calibrate the times as well, choose: 134 153 // 135 calloop.SetRelTimeCalibration( );154 calloop.SetRelTimeCalibration(useTimes); 136 155 calloop.SetExtractor(&extractor); 137 156 calloop.SetTimeExtractor(&timeext); … … 162 181 testloop.SetDisplay(display); 163 182 testloop.SetBadPixels(calloop.GetBadPixels()); 164 if (!testloop.ProcessD(pedloop.GetPedestalCam(),calloop.GetCalibrationCam(),calloop.GetQECam())) 165 return; 166 183 testloop.ProcessD(pedloop.GetPedestalCam(),calloop.GetCalibrationCam(),calloop.GetQECam()); 184 167 185 } 168 186
Note:
See TracChangeset
for help on using the changeset viewer.