Changeset 4069
- Timestamp:
- 05/13/04 17:58:40 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/calibration.C
r3925 r4069 55 55 // 56 56 ///////////////////////////////////////////////////////////////////////////// 57 static const TString inpath = "/mnt/Data/rootdata/Miscellaneous/2004_03_03/"; 58 static const Int_t pedrun = 20123; 59 static const Int_t calrun1 = 20125; 57 static const TString outpath = "./"; 58 static const TString inpath = "./"; 59 //static const TString inpath = "/home/rootdata/Calib/"; 60 // 61 // Tell if you want to calibrate times: 62 // 63 static const Bool_t useTimes = kTRUE; 64 // 65 // the default pedestal run for the calibration 66 // 67 static const Int_t pedrun = 13426; 68 // 69 // the default start calibration run 70 // 71 static const Int_t calrun1 = 16744; 72 // 73 // the default last calibration run (if 0, only one run is taken, otherwise consecutive runs 74 // between calrun1 and calrun2) 75 // 60 76 static const Int_t calrun2 = 0; 61 77 … … 67 83 // Choose the signal Extractor: 68 84 // 69 MExtractFixedWindowPeakSearch extractor;85 // MExtractFixedWindowPeakSearch extractor; 70 86 // MExtractSlidingWindow extractor; 71 //MExtractFixedWindow extractor;87 MExtractFixedWindow extractor; 72 88 73 89 // 74 90 // Set Ranges or Windows 75 91 // 76 // extractor.SetRange(2,14,5,14);92 extractor.SetRange(3,14,3,14); 77 93 // extractor.SetWindows(8,8); 78 94 … … 80 96 // Choose the arrival time Extractor: 81 97 // 82 MExtractTimeHighestIntegral timeext;83 // MExtractTimeSpline timeext;98 // MExtractTimeHighestIntegral timeext; 99 MExtractTimeFastSpline timeext; 84 100 // 85 101 // Set Ranges or Windows 86 102 // 87 // timeext.SetRange(0,14,6,14); 88 89 // 90 // Tell if you want to calibrate times: 91 // 92 Bool_t useTimes = kTRUE; 93 // Bool_t calibrateTimes = kFALSE; 103 timeext.SetRange(2,12,4,14); 94 104 95 105 MRunIter pruns; … … 122 132 // an ascii-file with the corr. pixel numbers (see MBadPixelsCam) 123 133 // 124 badcam.AsciiRead("badpixels.dat");134 // badcam.AsciiRead("badpixels.dat"); 125 135 126 136 MJPedestal pedloop; 127 137 pedloop.SetExtractor(&extractor); 128 138 pedloop.SetInput(&pruns); 139 pedloop.SetOutputPath(outpath.Data()); 129 140 pedloop.SetDisplay(display); 130 141 pedloop.SetBadPixels(badcam); … … 156 167 calloop.SetTimeExtractor(&timeext); 157 168 calloop.SetInput(&cruns); 169 calloop.SetOutputPath(outpath.Data()); 158 170 calloop.SetDisplay(display); 159 171 calloop.SetQECam(qecam); 160 172 calloop.SetBadPixels(pedloop.GetBadPixels()); 161 if (!calloop.Process(pedloop.GetPedestalCam())) 162 return; 163 164 /* 165 MCalibrationChargeCam &chargecam = calloop.GetCalibrationCam(); 166 MLog juanlog; 167 juanlog.SetOutputFile("test.txt",1); 168 chargecam.SetLogStream(&juanlog); 169 chargecam.Print(); 170 chargecam.SetLogStream(&gLog); 171 */ 173 174 // TObject::SetObjectStat(kTRUE); 175 176 calloop.Process(pedloop.GetPedestalCam()); 177 178 // gObjectTable->Print(); 172 179 173 180 /********************************************************************/ … … 178 185 179 186 testloop.SetExtractor(&extractor); 187 testloop.SetTimeExtractor(&timeext); 180 188 testloop.SetInput(&cruns); 189 testloop.SetOutputPath(outpath); 181 190 testloop.SetDisplay(display); 182 191 testloop.SetBadPixels(calloop.GetBadPixels()); 183 192 testloop.ProcessD(pedloop.GetPedestalCam(),calloop.GetCalibrationCam(),calloop.GetQECam()); 193 if (useTimes) 194 testloop.ProcessT(pedloop.GetPedestalCam(),calloop.GetRelTimeCam()); 184 195 196 // 197 // List of useful containers: 198 // 199 /* 200 MPedestalCam &pedcam = pedloop.GetPedestalCam(); 201 MCalibrationChargeCam &chargecam = calloop.GetCalibrationCam(); 202 MCalibrationQECam &qecam = calloop.GetCalibrationCam(); 203 MBadPixelsCam &badcam = calloop.GetBadPixels(); 204 MHCalibrationTestCam &testcam = testloop.GetTestCam(); 205 MHCalibrationTestTimeCam &testtime = testloop.GetTestTimeCam(); 206 */ 185 207 } 186 208 209
Note:
See TracChangeset
for help on using the changeset viewer.