Changeset 3683
- Timestamp:
- 04/08/04 19:56:26 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r3681 r3683 1009 1009 MCalibrationQEPix &qepix = (MCalibrationQEPix&) fQECam->GetAverageArea(0); 1010 1010 1011 const Float_t avphoton flux= avpix.GetPheFFactorMethod()1012 1013 1014 1015 const Float_t av fluxrelvar = avpix.GetPheFFactorMethodRelVar()1016 1017 1011 const Float_t avphotons = avpix.GetPheFFactorMethod() 1012 / qepix.GetQEFFactor(fPulserColor) 1013 / fQECam->GetPlexiglassQE(); 1014 1015 const Float_t avphotrelvar = avpix.GetPheFFactorMethodRelVar() 1016 + qepix.GetQEFFactorRelVar(fPulserColor) 1017 + fQECam->GetPlexiglassQERelVar(); 1018 1018 1019 1019 const UInt_t npixels = fGeom->GetNumPixels(); … … 1031 1031 } 1032 1032 1033 const Float_t photons = avphoton flux/ fGeom->GetPixRatio(i);1033 const Float_t photons = avphotons / fGeom->GetPixRatio(i); 1034 1034 const Float_t qe = pix.GetPheFFactorMethod() / photons ; 1035 1035 1036 if (!pix.CalcMeanFFactor( photons , av fluxrelvar ))1036 if (!pix.CalcMeanFFactor( photons , avphotrelvar )) 1037 1037 { 1038 1038 pix.SetFFactorMethodValid(kFALSE); … … 1041 1041 } 1042 1042 1043 const Float_t qerelvar = av fluxrelvar + pix.GetPheFFactorMethodRelVar();1043 const Float_t qerelvar = avphotrelvar + pix.GetPheFFactorMethodRelVar(); 1044 1044 1045 1045 qepix.SetQEFFactor ( qe , fPulserColor ); -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCam.cc
r3678 r3683 497 497 if (pix.IsExcluded() || !pix.IsFFactorMethodValid()) 498 498 return kFALSE; 499 val = pix.GetMeanFFactorFADC2Phot ();499 val = pix.GetMeanFFactorFADC2PhotErr(); 500 500 break; 501 501 case 15: -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargePix.cc
r3678 r3683 659 659 // 660 660 // Calculate the total F-Factor with the formula: 661 // fMeanFFactorFADC2Phot = fRSigmaSquare / GetMeanSquare() * sqrt(photflux)661 // fMeanFFactorFADC2Phot = Sqrt ( fRSigmaSquare / GetMeanSquare() ) * nphotons 662 662 // 663 663 // Calculate the error of the total F-Factor 664 664 // 665 Bool_t MCalibrationChargePix::CalcMeanFFactor( const Float_t photflux, const Float_t photfluxrelvar )666 { 667 668 if ( photflux<= 0.)665 Bool_t MCalibrationChargePix::CalcMeanFFactor( const Float_t nphotons, const Float_t nphotonsrelvar ) 666 { 667 668 if (nphotons <= 0.) 669 669 { 670 670 *fLog << warn << GetDescriptor() << ": Assumed photon flux is smaller or equal 0." << endl; … … 672 672 } 673 673 674 if ( photfluxrelvar < 0.)674 if (nphotonsrelvar < 0.) 675 675 { 676 676 *fLog << warn << GetDescriptor() << ": Assumed photon flux variance is smaller than 0." << endl; … … 678 678 } 679 679 680 fMeanFFactorFADC2Phot = fRSigmaSquare / GetMeanSquare() * TMath::Sqrt(photflux);680 fMeanFFactorFADC2Phot = TMath::Sqrt(fRSigmaSquare) / GetMean() * nphotons; 681 681 682 682 if (fMeanFFactorFADC2Phot < 0.) … … 686 686 } 687 687 688 const Float_t ffactorrelvar = fRSigmaSquareVar / ( fRSigmaSquare * fRSigmaSquare)689 + 4. *GetMeanRelVar()690 + 0.25 * photfluxrelvar;688 const Float_t ffactorrelvar = 0.25 * fRSigmaSquareVar / ( fRSigmaSquare * fRSigmaSquare) 689 + GetMeanRelVar() 690 + nphotonsrelvar; 691 691 692 692 fMeanFFactorFADC2PhotVar = ffactorrelvar * fMeanFFactorFADC2Phot * fMeanFFactorFADC2Phot; -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargePix.h
r3678 r3683 102 102 Bool_t CalcReducedSigma (); 103 103 Bool_t CalcFFactorMethod (); 104 Bool_t CalcMeanFFactor ( const Float_t photflux, const Float_t phtfluxrelvar );104 Bool_t CalcMeanFFactor ( const Float_t nphotons, const Float_t nphotonsrelvar ); 105 105 106 106 ClassDef(MCalibrationChargePix, 1) // Container Charge Calibration Results Pixel
Note:
See TracChangeset
for help on using the changeset viewer.