Changeset 3639 for trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.cc
- Timestamp:
- 04/04/04 14:28:25 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.cc
r3636 r3639 29 29 // MHCalibrationChargeHiGainPix and MHCalibrationChargeLoGainPix for every: 30 30 // 31 // - pixel, stored in the TObjArray's MHCalibrationCam::fHiGainArray and31 // - Pixel, stored in the TObjArray's MHCalibrationCam::fHiGainArray and 32 32 // MHCalibrationCam::fLoGainArray 33 33 // 34 // - average pixel per areaindex (e.g. inner and outer for the MAGIC camera),34 // - Average pixel per AREA index (e.g. inner and outer for the MAGIC camera), 35 35 // stored in the TObjArray's MHCalibrationCam::fAverageHiGainAreas and 36 36 // MHCalibrationCam::fAverageLoGainAreas 37 37 // 38 // - average pixel per camera sector(e.g. sectors 1-6 for the MAGIC camera),38 // - Average pixel per camera SECTOR (e.g. sectors 1-6 for the MAGIC camera), 39 39 // stored in the TObjArray's MHCalibrationCam::fAverageHiGainSectors and 40 40 // MHCalibrationCam::fAverageLoGainSectors 41 41 // 42 // Every signal is filled into a Charge histogram and an array, in order to perform 43 // a Fourier analysis (see MHGausEvents). The signals are moreover averaged on an 44 // event-by-event basis and written into the corresponding average pixels 42 // Every signal is taken from MExtractedSignalCam and filled into a histogram and 43 // an array, in order to perform a Fourier analysis (see MHGausEvents). 44 // The signals are moreover averaged on an event-by-event basis and written into 45 // the corresponding average pixels. 45 46 // 46 47 // Additionally, the (FADC slice) position of the maximum is stored in an Absolute … … 50 51 // The Charge histograms are fitted to a Gaussian, mean and sigma with its errors 51 52 // and the fit probability are extracted. If none of these values are NaN's and 52 // if the probability is bigger than fProbLimit (default: 0.5%), the fit is valid. 53 // Otherwise, the fit is repeated within ranges of the previous mean +- 5 sigma. 53 // if the probability is bigger than MHGausEvents::fProbLimit (default: 0.5%), 54 // the fit is declared valid. 55 // Otherwise, the fit is repeated within ranges of the previous mean 56 // +- MHGausEvents::fPickupLimit (default: 5) sigma (see MHGausEvents::RepeatFit()) 54 57 // In case this does not make the fit valid, the histogram means and RMS's are 55 // taken directly and the following flags are set:58 // taken directly (see MHGausEvents::BypassFit()) and the following flags are set: 56 59 // - MBadPixelsPix::SetUncalibrated( MBadPixelsPix::kHiGainNotFitted ) or 57 60 // - MBadPixelsPix::SetUncalibrated( MBadPixelsPix::kLoGainNotFitted ) and 58 61 // - MBadPixelsPix::SetUnsuitable( MBadPixelsPix::kUnreliableRun ) 59 62 // 60 // Outliers of more than MH CalibrationChargePix::fPickupLimit (default: 5) sigmas61 // from the mean are counted as Pick Up events (stored in MHCalibrationChargePix::fPickup)63 // Outliers of more than MHGausEvents::fPickupLimit (default: 5) sigmas 64 // from the mean are counted as Pickup events (stored in MHGausEvents::fPickup) 62 65 // 63 66 // Unless more than fNumHiGainSaturationLimit (default: 1%) of the overall FADC … … 74 77 // spectrum and investigates if the projected fourier components follow an exponential 75 78 // distribution. In case that the probability of the exponential fit is less than 76 // fProbLimit (default: 0.5%), the following flags are set:79 // MHGausEvents::fProbLimit (default: 0.5%), the following flags are set: 77 80 // - MBadPixelsPix::SetUncalibrated( MBadPixelsPix::kHiGainOscillating ) or 78 81 // - MBadPixelsPix::SetUncalibrated( MBadPixelsPix::kLoGainOscillating ) and … … 83 86 // The following results are written into MCalibrationChargeCam: 84 87 // 85 // - MCalibration ChargePix::SetHiGainSaturation(Bool_t b)86 // - MCalibration ChargePix::SetHiGainMeanCharge()87 // - MCalibration ChargePix::SetHiGainMeanChargeErr()88 // - MCalibration ChargePix::SetHiGainSigmaCharge()89 // - MCalibration ChargePix::SetHiGainSigmaChargeErr()90 // - MCalibration ChargePix::SetHiGainChargeProb()91 // - MCalibration ChargePix::SetHiGainNumPickup()92 // 93 // - MCalibration ChargePix::SetLoGainMeanCharge()94 // - MCalibration ChargePix::SetLoGainMeanChargeErr()95 // - MCalibration ChargePix::SetLoGainSigmaCharge()96 // - MCalibration ChargePix::SetLoGainSigmaChargeErr()97 // - MCalibration ChargePix::SetLoGainChargeProb()98 // - MCalibration ChargePix::SetLoGainNumPickup()88 // - MCalibrationPix::SetHiGainSaturation() 89 // - MCalibrationPix::SetHiGainMean() 90 // - MCalibrationPix::SetHiGainMeanErr() 91 // - MCalibrationPix::SetHiGainSigma() 92 // - MCalibrationPix::SetHiGainSigmaErr() 93 // - MCalibrationPix::SetHiGainProb() 94 // - MCalibrationPix::SetHiGainNumPickup() 95 // 96 // - MCalibrationPix::SetLoGainMean() 97 // - MCalibrationPix::SetLoGainMeanErr() 98 // - MCalibrationPix::SetLoGainSigma() 99 // - MCalibrationPix::SetLoGainSigmaErr() 100 // - MCalibrationPix::SetLoGainProb() 101 // - MCalibrationPix::SetLoGainNumPickup() 99 102 // 100 103 // - MCalibrationChargePix::SetAbsTimeMean() 101 104 // - MCalibrationChargePix::SetAbsTimeRms() 102 //103 // The last two items are filled with the Hi-Gain or Lo-Gain result, depending on104 // the saturation status.105 105 // 106 106 // For all averaged areas, the fitted sigma is multiplied with the square root of … … 191 191 // - MExtractedSignalCam 192 192 // 193 // Calls InitializeHists() for every entry in: 193 // Initializes, if empty to MGeomCam::GetNumPixels(): 194 // - MHCalibrationCam::fHiGainArray, MHCalibrationCam::fLoGainArray 195 // 196 // Initializes, if empty to MGeomCam::GetNumAreas() for: 197 // - MHCalibrationCam::fAverageHiGainAreas, MHCalibrationCam::fAverageLoGainAreas 198 // 199 // Initializes, if empty to MGeomCam::GetNumSectors() for: 200 // - MHCalibrationCam::fAverageHiGainSectors, MHCalibrationCam::fAverageLoGainSectors 201 // 202 // Calls MHCalibrationCam::InitHists() for every entry in: 194 203 // - MHCalibrationCam::fHiGainArray, MHCalibrationCam::fLoGainArray 195 204 // - MHCalibrationCam::fAverageHiGainAreas, MHCalibrationCam::fAverageLoGainAreas 196 205 // - MHCalibrationCam::fAverageHiGainSectors, MHCalibrationCam::fAverageLoGainSectors 197 206 // 198 // Sets Titles and Names for the Charge Histograms and 207 // Sets Titles and Names for the Charge Histograms: 208 // - MHCalibrationCam::fAverageHiGainAreas 209 // - MHCalibrationCam::fAverageHiGainSectors 210 // 199 211 // Sets number of bins to MHCalibrationCam::fAverageNbins for: 200 212 // - MHCalibrationCam::fAverageHiGainAreas, MHCalibrationCam::fAverageLoGainAreas … … 502 514 // otherwise the Hi-Gain ones. 503 515 // 4) Calls to MHCalibrationCam::FitHiGainArrays() and MCalibrationCam::FitLoGainArrays() 504 // and sets the flags (if occurring):516 // with the flags: 505 517 // - MBadPixelsPix::SetUncalibrated( MBadPixelsPix::kHiGainNotFitted ) 506 518 // - MBadPixelsPix::SetUncalibrated( MBadPixelsPix::kLoGainNotFitted ) 507 519 // - MBadPixelsPix::SetUncalibrated( MBadPixelsPix::kHiGainOscillating ) 508 520 // - MBadPixelsPix::SetUncalibrated( MBadPixelsPix::kLoGainOscillating ) 509 // 5) Retrieves the results and store them in MCalibrationChargePix510 521 // 511 522 Bool_t MHCalibrationChargeCam::FinalizeHists() … … 652 663 // -------------------------------------------------------------------------- 653 664 // 654 // Takes the decisions under which conditions a pixel is declared: 655 // MBadPixelsPix::kUnsuitableRun or MBadPixelsPix::kUnreliableRun, namely: 656 // * if MBadPixelsPix::kHiGainNotFitted and !MCalibrationPix::IsHiGainSaturation() 657 // sets MBadPixelsPix::kUnreliableRun 658 // * if MBadPixelsPix::kHiGainOscillating and !MCalibrationPix::IsHiGainSaturation() 659 // sets MBadPixelsPix::kUnreliableRun 660 // * if MBadPixelsPix::kLoGainNotFitted and MCalibrationPix::IsLoGainSaturation() 661 // sets MBadPixelsPix::kUnreliableRun 662 // * if MBadPixelsPix::kLoGainOscillating and MCalibrationPix::IsLoGainSaturation() 663 // sets MBadPixelsPix::kUnreliableRun 664 // * if MBadPixelsPix::kLoGainSaturation 665 // sets MBadPixelsPix::kUnsuitableRun 665 // Sets all pixels to MBadPixelsPix::kUnsuitableRun, if following flags are set: 666 // - MBadPixelsPix::kLoGainSaturation 667 // 668 // Sets all pixels to MBadPixelsPix::kUnreliableRun, if following flags are set: 669 // - if MBadPixelsPix::kHiGainNotFitted and !MCalibrationPix::IsHiGainSaturation() 670 // - if MBadPixelsPix::kHiGainOscillating and !MCalibrationPix::IsHiGainSaturation() 671 // - if MBadPixelsPix::kLoGainNotFitted and MCalibrationPix::IsLoGainSaturation() 672 // - if MBadPixelsPix::kLoGainOscillating and MCalibrationPix::IsLoGainSaturation() 666 673 // 667 674 void MHCalibrationChargeCam::FinalizeBadPixels() … … 705 712 // -------------------------------------------------------------------------- 706 713 // 707 // What MHCamera needs in order to draw an individual pixel in the camera714 // Calls MHGausEvents::DrawClone() for pixel idx 708 715 // 709 716 void MHCalibrationChargeCam::DrawPixelContent(Int_t idx) const
Note:
See TracChangeset
for help on using the changeset viewer.