Changeset 3356 for trunk/MagicSoft
- Timestamp:
- 02/28/04 20:43:30 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationChargePix.cc
r3288 r3356 25 25 ///////////////////////////////////////////////////////////////////////////// 26 26 // // 27 // MCalibrationChargePix 27 // MCalibrationChargePix // 28 28 // // 29 // This is the storage container to hold informations about the pedestal//30 // (offset) value of one Pixel (PMT).//29 // Storage container to hold informations about the calibration values // 30 // values of one Pixel (PMT). // 31 31 // // 32 32 // The following values are initialized to meaningful values: … … 34 34 // - The Electronic Rms to 1.5 per FADC slice 35 35 // - The uncertainty about the Electronic RMS to 0.3 per slice 36 // - The F-Factor is assumed to have been measured in Munich to 1.13 - 1.17. 37 // with the Munich definition of the F-Factor, thus: 36 // - The F-Factor is assumed to have been measured in Munich to 1.13 - 1.17. 37 // with the Munich definition of the F-Factor, thus: 38 38 // F = Sigma(Out)/Mean(Out) * Mean(In)/Sigma(In) 39 39 // Mean F-Factor = 1.15 … … 243 243 } 244 244 245 246 void MCalibrationChargePix::SetMeanCharge( const Float_t f ) 247 { 248 if (IsHiGainSaturation()) 249 fLoGainMeanCharge = f; 250 else 251 fHiGainMeanCharge = f; 252 } 253 254 void MCalibrationChargePix::SetMeanChargeErr( const Float_t f ) 255 { 256 if (IsHiGainSaturation()) 257 fLoGainMeanChargeErr = f; 258 else 259 fHiGainMeanChargeErr = f; 260 261 } 262 263 void MCalibrationChargePix::SetSigmaCharge( const Float_t f ) 264 { 265 if (IsHiGainSaturation()) 266 fLoGainSigmaCharge = f; 267 else 268 fHiGainSigmaCharge = f; 269 } 270 271 272 void MCalibrationChargePix::SetSigmaChargeErr( const Float_t f ) 273 { 274 if (IsHiGainSaturation()) 275 fLoGainSigmaChargeErr = f; 276 else 277 fHiGainSigmaChargeErr = f; 278 279 } 280 281 245 282 246 283 // -------------------------------------------------------------------------- … … 735 772 fPheFFactorMethod = ffactorsquare * chargeSquare / rsigmaSquare; 736 773 774 if (fPheFFactorMethod < 0.) 775 return kFALSE; 776 737 777 // 738 778 // Calculate the Error of Nphe … … 751 791 fMeanConversionFFactorMethod = fPheFFactorMethod / fAverageQE / GetMeanCharge(); 752 792 753 if (fMeanConversionFFactorMethod < 0.)754 return kFALSE;755 793 756 794 // -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargePix.h
r3282 r3356 167 167 void SetLoGainSigmaChargeErr ( const Float_t f ) { fLoGainSigmaChargeErr = f; } 168 168 169 void SetMeanCharge ( const Float_t f ); 170 void SetMeanChargeErr ( const Float_t f ); 171 void SetSigmaCharge ( const Float_t f ); 172 void SetSigmaChargeErr ( const Float_t f ); 173 169 174 void SetHiGainNumPickup ( const Int_t i ) { fHiGainNumPickup = i; } 170 175 void SetLoGainNumPickup ( const Int_t i ) { fLoGainNumPickup = i; } -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.cc
r3355 r3356 31 31 // 32 32 // MHCalibrationChargeHiGainPix, MHCalibrationChargeLoGainPix for each pixel 33 // and additionally two classes containing an average of the inner and the outer 34 // pixels, respectively 33 // and additionally for an average of the inner and the outer pixels, respectively. 35 34 // 36 35 // By default, subsequently the hi-gain classes are treated unless … … 44 43 // its errors and the fit probability are extracted. If none of these values are 45 44 // NaN's and if the probability is bigger than fProbLimit (default: 0.5%), the fit 46 // is declared valid. Otherwise, histogram means and RMS's are taken directly, but the 47 // flag kFitValid is set to FALSE. Outliers of more than fPickUpLimit (default: 5) sigmas 45 // is declared valid. Otherwise, the fit is repeated within ranges of the previous mean 46 // +- 5 sigma. In case that this does not help, the histogram means and RMS's are taken directly, 47 // but the flag kFitValid is set to FALSE. Outliers of more than fPickUpLimit (default: 5) sigmas 48 48 // from the mean are counted as PickUp events. 49 49 // 50 50 // Additionally, the slice number with the highest value is stored and a corresponding 51 // histogram is filled. This histogram serves only for a rough tcross-check if the51 // histogram is filled. This histogram serves only for a rough cross-check if the 52 52 // signal does not lie at the edges of chose extraction window. 53 53 // -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeHiGainPix.cc
r3355 r3356 80 80 } 81 81 82 void MHCalibrationChargeHiGainPix::Draw(const Option_t *opt)83 {84 85 TString option(opt);86 option.ToLower();87 88 Int_t win = 1;89 90 TVirtualPad *oldpad = gPad ? gPad : MH::MakeDefCanvas(this,600, 600);91 TVirtualPad *pad = NULL;92 93 oldpad->SetBorderMode(0);94 95 pad->SetTicks();96 pad->SetBorderMode(0);97 98 99 pad->Divide(1,win);100 pad->cd(1);101 102 if (!IsEmpty())103 pad->SetLogy();104 105 MHGausEvents::Draw(opt);106 107 }108 82 109 83 110 84 85 86 87 88 89 90
Note:
See TracChangeset
for help on using the changeset viewer.