Changeset 4853 for trunk/MagicSoft/Mars/mcalib
- Timestamp:
- 09/03/04 21:52:44 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r4851 r4853 1273 1273 MBadPixelsPix &bad = (*fBadPixels)[i]; 1274 1274 1275 if ( !pix.IsFFactorMethodValid())1275 if (bad.IsUnsuitable(MBadPixelsPix::kUnsuitableRun)) 1276 1276 continue; 1277 1277 1278 const Int_t aidx = (*fGeom)[i].GetAidx();1279 1280 1278 if (bad.IsUncalibrated(MBadPixelsPix::kChargeSigmaNotValid)) 1281 1279 { 1280 const Int_t aidx = (*fGeom)[i].GetAidx(); 1282 1281 MCalibrationChargePix &apix = (MCalibrationChargePix&)fCam->GetAverageArea(aidx); 1283 1282 pix.SetPheFFactorMethod ( apix.GetPheFFactorMethod() ); -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargePix.cc
r4787 r4853 878 878 879 879 const Float_t ffactorsquareRelVar = 4.* GetFFactorRelVar(); 880 const Float_t rsigmaSquareRelVar = 880 const Float_t rsigmaSquareRelVar = fRSigmaSquareVar / fRSigmaSquare / fRSigmaSquare; 881 881 // 882 882 // In the calculation of the number of phe's one mean square has already been used. … … 884 884 // the errors, but have to take account of this cancellation: 885 885 // 886 constFloat_t convrelvar = ffactorsquareRelVar + GetMeanRelVar() + rsigmaSquareRelVar;886 Float_t convrelvar = ffactorsquareRelVar + GetMeanRelVar() + rsigmaSquareRelVar; 887 887 const Float_t limit = IsHiGainSaturation() ? fConvFFactorRelVarLimit * 4. : fConvFFactorRelVarLimit; 888 889 // 890 // Also have to take into account the pixels labelled MBadPixelsPix::kChargeSigmaNotValid which do not 891 // have a fRSigmaSquareVar, calculate their error directly! 892 // 893 if (fRSigmaSquareVar < 0.) 894 convrelvar = GetMeanRelVar() + GetPheFFactorMethodRelVar(); 888 895 889 896 if (IsDebug())
Note:
See TracChangeset
for help on using the changeset viewer.