Changeset 4590
- Timestamp:
- 08/12/04 11:41:13 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrateData.cc
r4581 r4590 27 27 \* ======================================================================== */ 28 28 29 ////////////////////////////////////////////////////////////////////////////// 29 /////////////////////////////////////////////////////////////////////////////////// 30 30 // 31 31 // MCalibrateData 32 32 // 33 // This task takes the integrated charge from MExtractedSignal and apply 34 // the calibration constants from MCalibraitionCam to the charge. Then 35 // stores number of photons obtained in MCerPhotEvt. Selection of different 36 // calibration methods is allowed through SetCalibrationMode member function 37 // 38 // in ReInit the MPedPhotCam container is filled using the information from 39 // MPedestalCam, MExtractedSignalCam and MCalibrationCam 33 // This task takes the integrated charge from MExtractedSignal and applies 34 // the calibration constants from MCalibrationCam to convert the summed FADC 35 // slices into photons. The number of photons obtained is stored in MCerPhotEvt. 36 // Optionally, the calibration of pedestals from an MPedestalCam container into 37 // an MPedPhotCam container can be chosen with the member functions 38 // SetPedestalType(). Default is 'kRun', i.e. calibration of pedestals from a 39 // dedicated pedestal run. 40 // In case, the chosen pedestal type is kRun or kEvt, in ReInit() the MPedPhotCam 41 // container is filled using the information from MPedestalCam, MExtractedSignalCam, 42 // MCalibrationChargeCam and MCalibrationQECam 43 // 44 // Selection of different calibration methods is allowed through the 45 // SetCalibrationMode() member function (default: kFfactor) 46 // 47 // The calibration modes which exclude non-valid pixels are the following: 48 // 49 // kFfactor: calibrates using the F-Factor method 50 // kBlindpixel: calibrates using the BlindPixel method 51 // kBlindpixel: calibrates using the BlindPixel method 52 // kFlatCharge: perform a charge flat-flatfielding. Outer pixels are area-corrected. 53 // kDummy: calibrates with fixed conversion factors of 1 and errors of 0. 54 // 55 // The calibration modes which include all pixels regardless of their validity is: 56 // 57 // kNone: calibrates with fixed conversion factors of 1 and errors of 0. 58 // 59 // Use the kDummy and kNone methods ONLY FOR DEBUGGING! 40 60 // 41 61 // Input Containers: 42 62 // MPedestalCam 43 // MExtractedSi ngalCam63 // MExtractedSignalCam 44 64 // MCalibrationChargeCam 45 65 // MCalibrationQECam … … 49 69 // MCerPhotEvt 50 70 // 71 // See also: MJCalibration, MJPedestal, MJExtractSignal, MJExtractCalibTest 72 // 51 73 ////////////////////////////////////////////////////////////////////////////// 52 74 #include "MCalibrateData.h" … … 88 110 // 89 111 MCalibrateData::MCalibrateData(CalibrationMode_t calmode,const char *name, const char *title) 90 : f Cam(NULL), fPedestal(NULL), fBadPixels(NULL), fCalibrations(NULL), fSignals(NULL),112 : fGeomCam(NULL), fPedestal(NULL), fBadPixels(NULL), fCalibrations(NULL), fSignals(NULL), 91 113 fPedPhot(NULL), fCerPhotEvt(NULL), fCalibrationMode(calmode), fFlags(kRun), fNamePedADCRunContainer("MPedestalCam"), fNamePedADCEventContainer("MPedestalCamFromData"), fNamePedPhotRunContainer("MPedPhotCam"), fNamePedPhotEventContainer("MPedPhotCamFromData") 92 114 { … … 364 386 { 365 387 case kFlatCharge: 366 calibConv = avMean / pix.GetMean() / f Cam->GetPixRatio(pixidx) ;388 calibConv = avMean / pix.GetMean() / fGeomCam->GetPixRatio(pixidx) ; 367 389 calibConvVar = (avMeanRelVar + pix.GetMeanRelVar()) * calibConv * calibConv; 368 390 if (pix.IsFFactorMethodValid()) … … 424 446 hiloconv = 1.; 425 447 hiloconverr = 0.; 426 calibConv = 1./f Cam->GetPixRatio(pixidx);448 calibConv = 1./fGeomCam->GetPixRatio(pixidx); 427 449 calibConvVar = 0.; 428 450 calibFFactor = 0.;
Note:
See TracChangeset
for help on using the changeset viewer.