Ignore:
Timestamp:
05/05/04 19:39:39 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargePix.cc

    r3988 r3990  
    7979using namespace std;
    8080
    81 const Float_t MCalibrationChargePix::gkElectronicPedRms         = 1.5;
    82 const Float_t MCalibrationChargePix::gkElectronicPedRmsErr      = 0.1;
     81const Float_t MCalibrationChargePix::gkElectronicPedRmsInner    = 1.5;
     82const Float_t MCalibrationChargePix::gkElectronicPedRmsOuter    = 1.8;
     83const Float_t MCalibrationChargePix::gkElectronicPedRmsErr      = 0.35;
    8384const Float_t MCalibrationChargePix::gkFFactor                  = 1.15;
    8485const Float_t MCalibrationChargePix::gkFFactorErr               = 0.02;
     
    8788const Float_t MCalibrationChargePix::fgConversionHiLoErr        = 2.5;
    8889const Float_t MCalibrationChargePix::fgPheFFactorMethodLimit    = 5.;
    89 const Float_t MCalibrationChargePix::fgConvFFactorRelErrLimit   = 0.5;
     90const Float_t MCalibrationChargePix::fgConvFFactorRelErrLimit   = 0.75;
    9091// --------------------------------------------------------------------------
    9192//
     
    605606  //
    606607  fRSigmaSquare = sigmaSquare - pedRmsSquare;
     608
    607609  if (fRSigmaSquare <= 0.)
    608610    {
     
    690692  //
    691693  const Float_t convrelvar = ffactorsquareRelVar + GetMeanRelVar() + rsigmaSquareRelVar;
    692 
    693   if (convrelvar > fConvFFactorRelVarLimit || convrelvar < 0.)
     694  const Float_t limit      = IsHiGainSaturation() ? fConvFFactorRelVarLimit * 4. : fConvFFactorRelVarLimit;
     695
     696  if (convrelvar > limit || convrelvar < 0.)
    694697    {
    695698      *fLog << warn << GetDescriptor() << ": Conversion F-Factor Method Rel. Variance: "
     
    771774//   Var (Low Gain Ped RMS Square) = Var(LoGain NSB square) + Var(elec.ped. square)
    772775//
    773 void MCalibrationChargePix::CalcLoGainPedestal(Float_t logainsamples)
     776void MCalibrationChargePix::CalcLoGainPedestal(Float_t logainsamples, const Int_t aidx)
    774777{
    775778
     
    780783    return;
    781784
    782   const Float_t elecPedRms     = gkElectronicPedRms    * TMath::Sqrt(logainsamples);
     785  const Float_t elecPedRms     = (aidx > 0 ? gkElectronicPedRmsOuter : gkElectronicPedRmsInner )
     786                               * TMath::Sqrt(logainsamples);
    783787  const Float_t elecPedRmsVar  = gkElectronicPedRmsErr * gkElectronicPedRmsErr * logainsamples;
    784788 
Note: See TracChangeset for help on using the changeset viewer.