Changeset 4662 for trunk/MagicSoft/Mars/macros
- Timestamp:
- 08/17/04 16:45:03 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/calibration.C
r4348 r4662 87 87 88 88 static TString outpath = "./"; 89 static TString inpath = "/home/rootdata/Calib/2004_0 5_24/";89 static TString inpath = "/home/rootdata/Calib/2004_06_22/"; 90 90 static TString badfile = ""; 91 91 // 92 92 // the default pedestal run for the calibration 93 93 // 94 static const Int_t pedrun = 26569;94 static const Int_t pedrun = 30749; 95 95 // 96 96 // the default start calibration run 97 97 // 98 static const Int_t calrun1 = 26568;98 static const Int_t calrun1 = 30752; 99 99 // 100 100 // the default last calibration run (if 0, only one run is taken, otherwise consecutive runs … … 110 110 // 111 111 static Bool_t blindpix = kTRUE; 112 //113 112 // A switch to use the PIN Diode 114 113 // … … 139 138 // MExtractFixedWindowPeakSearch extractor; 140 139 // MExtractSlidingWindow extractor; 141 MExtractFixedWindowSpline extractor; 140 // MExtractFixedWindowSpline extractor; 141 MExtractFixedWindow extractor; 142 142 // MExtractAmplitudeSpline extractor; 143 143 // MExtractTimeAndChargeSpline extractor; … … 145 145 // Set Ranges or Windows 146 146 // 147 extractor.SetRange( 1,14,2,13);147 extractor.SetRange(3,14,4,13); 148 148 // extractor.SetWindows(8,8); 149 149 … … 204 204 pedloop.SetOutputPath(outpath.Data()); 205 205 if (useDisplay) 206 pedloop.SetDisplay(display); 206 { 207 pedloop.SetDisplay(display); 208 pedloop.SetDataCheckDisplay(); 209 } 207 210 pedloop.SetBadPixels(badcam); 208 211 … … 226 229 // 227 230 // For everything, you have ever dreamed of, choose: 228 // 231 // calloop.SetFullDisplay(); 229 232 230 233 // … … 275 278 MJExtractCalibTest testloop; 276 279 280 // If you want to see the data-check plots only, choose: 281 testloop.SetDataCheckDisplay(); 282 277 283 testloop.SetExtractor(&extractor); 278 284 testloop.SetTimeExtractor(&timeext); … … 290 296 return 4; 291 297 292 gLog << endl;293 gLog << "Mean equiv. number of photons from cascades per mm^2 Inner pixels: "294 << testloop.GetTestCam().GetMeanMeanPhotPerArea(0)295 << " +- " << testloop.GetTestCam().GetRmsMeanPhotPerArea(0) << endl;296 gLog << "Sigma equiv. number of photons from cascades per mm^2 Inner pixels: "297 << testloop.GetTestCam().GetMeanSigmaPhotPerArea(0)298 << " +- " << testloop.GetTestCam().GetRmsSigmaPhotPerArea(0) << endl;299 300 gLog << endl;301 gLog << "Mean equiv. number of photons from cascades per mm^2 Outer pixels: "302 << testloop.GetTestCam().GetMeanMeanPhotPerArea(1)303 << " +- " << testloop.GetTestCam().GetRmsMeanPhotPerArea(1) << endl;304 gLog << "Sigma equiv. number of photons from cascades per mm^2 Outer pixels: "305 << testloop.GetTestCam().GetMeanSigmaPhotPerArea(1)306 << " +- " << testloop.GetTestCam().GetRmsSigmaPhotPerArea(1) << endl;307 gLog << endl;308 309 298 } 310 299 … … 344 333 MCalibrationQECam &qecam = calloop.GetCalibrationCam(); 345 334 MBadPixelsCam &badcam = calloop.GetBadPixels(); 346 M HCalibrationTestCam&testcam = testloop.GetTestCam();335 MCalibrationTestCam &testcam = testloop.GetTestCam(); 347 336 MHCalibrationTestTimeCam &testtime = testloop.GetTestTimeCam(); 348 */349 350 //351 // List of interesting plots:352 //353 /*354 testcam[200].DrawClone("fourierevents");355 testcam.GetAverageHiGainArea(0).DrawClone();356 testcam.GetAverageLoGainArea(0).DrawClone();357 testcam.GetAverageHiGainArea(1).DrawClone();358 testcam.GetAverageLoGainArea(1).DrawClone();359 360 testcam.GetAverageHiGainSector(1).DrawClone();361 testcam.GetAverageLoGainSector(1).DrawClone();362 testcam.GetAverageHiGainSector(2).DrawClone();363 testcam.GetAverageLoGainSector(2).DrawClone();364 testcam.GetAverageHiGainSector(3).DrawClone();365 testcam.GetAverageLoGainSector(3).DrawClone();366 testcam.GetAverageHiGainSector(4).DrawClone();367 testcam.GetAverageLoGainSector(4).DrawClone();368 testcam.GetAverageHiGainSector(5).DrawClone();369 testcam.GetAverageLoGainSector(5).DrawClone();370 testcam.GetAverageHiGainSector(6).DrawClone();371 testcam.GetAverageLoGainSector(6).DrawClone();372 337 */ 373 338
Note:
See TracChangeset
for help on using the changeset viewer.