- Timestamp:
- 04/09/04 13:03:03 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r3692 r3693 27 27 // MCalibrationChargeCalc 28 28 // 29 // Task to calculate the calibration conversion factors from the FADC30 // time slices. The integrated time slices have to be delivered by an31 // MExtractedSignalCam . Thepedestals by an MPedestalCam.29 // Task to calculate the calibration conversion factors and quantum efficiencies 30 // from the FADC time slices. The integrated time slices have to be delivered by an 31 // MExtractedSignalCam, pedestals by an MPedestalCam. 32 32 // 33 33 // The output container MCalibrationCam holds one entry of type MCalibrationChargePix 34 34 // for every pixel. It is filled in the following way: 35 35 // 36 // Pr oProcess: Initialize MCalibrationCam37 // Initialize pulser light wavelength36 // PreProcess(): Initialize MCalibrationCam 37 // Initialize pulser light wavelength 38 38 // 39 // ReInit: MCalibrationCam::InitSize(NumPixels) is called from MGeomApply (which allocates 40 // memory in a TClonesArray of type MCalibrationChargePix) 41 // Initializes pointer to MBadPixelsCam 42 // 43 // Process: Nothing done by this class, histograms are filled by 44 // MHCalibrationChargeCam 45 // 46 // PostProcess: Fit results from MHCalibrationChargeCam are retrieved 47 // and used for the calculation of the reduced sigma, 48 // the F-Factor method, the blind pixel method (photon flux 49 // inside plexiglass) and 50 // the PINDiode method (photon flux 51 // outside plexiglass) 52 // 53 // Hi-Gain vs. Lo-Gain Calibration (very memory-intensive) 54 // can be skipped with the command: 55 // MalibrationCam::SkipHiLoGainCalibration() 39 // ReInit(): MCalibrationCam::InitSize(NumPixels) is called from MGeomApply (which allocates 40 // memory in a TClonesArray of type MCalibrationChargePix) 41 // Initializes pointer to MBadPixelsCam 42 // 43 // Process(): Nothing to be done, histograms getting filled by MHCalibrationChargeCam 44 // 45 // PostProcess(): - FinalizePedestals() 46 // - FinalizeAvPedestals() 47 // - FinalizeCharges() 48 // - FinalizeFFactorMethod() 49 // - FinalizeBadPixels() 50 // - FinalizeBlindPixel() 51 // - FinalizePINDiode() 52 // - FinalizeFFactorQECam() 53 // - FinalizeBlindPixelQECam() 54 // - FinalizePINDiodeQECam() 56 55 // 57 56 // Input Containers: 58 // MRawEvtData 57 // MCalibrationChargeCam 58 // MCalibrationChargeBlindPix 59 // MCalibrationChargePINDiode 60 // MCalibrationQECam 61 // MExtractedSignalCam 62 // MExtractedSignalBlindPixel 63 // MExtractedSignalPINDiode 59 64 // MPedestalCam 60 65 // MBadPixelsCam 66 // MGeomCam 67 // MTime 61 68 // 62 69 // Output Containers: 63 // MCalibrationCam 70 // MCalibrationChargeCam 71 // MCalibrationChargeBlindPix 72 // MCalibrationChargePINDiode 64 73 // MCalibrationQECam 65 74 // MBadPixelsCam … … 253 262 : fBadPixels(NULL), fCam(NULL), fBlindPixel(NULL), fPINDiode(NULL), 254 263 fQECam(NULL), fSignals(NULL), fSigBlind(NULL), fSigPIN(NULL), 255 fGeom(NULL), fPedestals(NULL), fRawEvt(NULL), fRunHeader(NULL), 256 fEvtTime(NULL) 264 fGeom(NULL), fPedestals(NULL), fEvtTime(NULL) 257 265 { 258 266 … … 318 326 { 319 327 320 fRawEvt = (MRawEvtData*)pList->FindObject("MRawEvtData");321 if (!fRawEvt)322 {323 *fLog << err << "MRawEvtData not found... aborting." << endl;324 return kFALSE;325 }326 327 328 fPedestals = (MPedestalCam*)pList->FindObject("MPedestalCam"); 328 329 if (!fPedestals) … … 411 412 Bool_t MCalibrationChargeCalc::ReInit(MParList *pList ) 412 413 { 413 414 fRunHeader = (MRawRunHeader*)pList->FindObject("MRawRunHeader");415 if (!fRunHeader)416 {417 *fLog << err << "MRawRunHeader not found... aborting." << endl;418 return kFALSE;419 }420 414 421 415 fGeom = (MGeomCam*)pList->FindObject("MGeomCam"); … … 690 684 { 691 685 *fLog << warn << GetDescriptor() << ": Sigma of Fitted Charge smaller than Pedestal RMS in PINDiode " << endl; 692 return kFALSE;693 }686 } 687 return kFALSE; 694 688 695 689 const Byte_t loweredge = fSigPIN->GetFirstUsedSlice(); -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.h
r3692 r3693 79 79 MGeomCam *fGeom; //! Camera geometry 80 80 MPedestalCam *fPedestals; //! Pedestals all pixels (calculated previously from ped.file) 81 MRawEvtData *fRawEvt; //! Raw calibration event data82 MRawRunHeader *fRunHeader; //! RunHeader information83 81 MTime *fEvtTime; //! Time of the event 84 82
Note:
See TracChangeset
for help on using the changeset viewer.