Ignore:
Timestamp:
05/26/04 18:24:22 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r4166 r4198  
    227227const Float_t MCalibrationChargeCalc::fgChargeRelErrLimit      = 1.;
    228228const Float_t MCalibrationChargeCalc::fgLambdaErrLimit         = 0.2;
    229 const Float_t MCalibrationChargeCalc::fgLambdaCheckLimit       = 0.2;
     229const Float_t MCalibrationChargeCalc::fgLambdaCheckLimit       = 0.5;
    230230const Float_t MCalibrationChargeCalc::fgPheErrLimit            = 3.5;
    231231const Float_t MCalibrationChargeCalc::fgFFactorErrLimit        = 3.;
     
    600600      *fLog << err << GetDescriptor() << ": Or, maybe, you have used a pedestal run "
    601601            << "instead of a calibration run " << endl;
    602     return kFALSE;
     602      return kFALSE;
    603603  }
    604604
     
    11171117  const Float_t lambdacheck = fBlindPixel->GetLambdaCheck();
    11181118
    1119   if (2.*(lambdacheck-lambda)/(lambdacheck+lambda) < fLambdaCheckLimit)
    1120     {
    1121       *fLog << warn << GetDescriptor() << ": Lambda and Lambda-Check differ by more than "
    1122             << fLambdaCheckLimit << " in the Blind Pixel " << endl;
    1123       return kFALSE;
    1124     }
    1125  
    1126   if (lambdaerr < fLambdaErrLimit)
    1127     {
    1128       *fLog << warn << GetDescriptor() << ": Error of Fitted Lambda is greater than "
    1129             << fLambdaErrLimit << " in Blind Pixel " << endl;
     1119  if (2.*(lambdacheck-lambda)/(lambdacheck+lambda) > fLambdaCheckLimit)
     1120    {
     1121      *fLog << warn << GetDescriptor()
     1122            << Form("%s%4.2f%s%4.2f%s%4.2f%s",": Lambda: ",lambda," and Lambda-Check: ",
     1123                    lambdacheck," differ by more than ",fLambdaCheckLimit," in the Blind Pixel ")
     1124            << endl;
     1125      return kFALSE;
     1126    }
     1127 
     1128  if (lambdaerr > fLambdaErrLimit)
     1129    {
     1130      *fLog << warn << GetDescriptor()
     1131            << Form("%s%4.2f%s%4.2f%s",": Error of Fitted Lambda: ",lambdaerr," is greater than ",
     1132                    fLambdaErrLimit," in Blind Pixel ") << endl;
    11301133      return kFALSE;
    11311134    }
     
    13761379          continue;
    13771380        }
    1378      
     1381
    13791382      if (!fBlindPixel->IsFluxInsidePlexiglassAvailable())
    13801383        {
     
    13851388      MBadPixelsPix       &bad   =                   (*fBadPixels)[i];
    13861389
    1387       if (!bad.IsUnsuitable (MBadPixelsPix::kUnsuitableRun))
     1390      if (bad.IsUnsuitable (MBadPixelsPix::kUnsuitableRun))
    13881391        {
    13891392          qepix.SetBlindPixelMethodValid(kFALSE, fPulserColor);
     
    13971400                             / fBlindPixel->GetFluxInsidePlexiglass()
    13981401                             / geo.GetA()
    1399                             * fQECam->GetPlexiglassQE();
     1402                             * fQECam->GetPlexiglassQE();
    14001403
    14011404      const Float_t qerelvar = fBlindPixel->GetFluxInsidePlexiglassRelVar()
     
    14051408      qepix.SetQEBlindPixel    ( qe            , fPulserColor );
    14061409      qepix.SetQEBlindPixelVar ( qerelvar*qe*qe, fPulserColor );     
    1407       qepix.UpdateBlindPixelMethod();
     1410      qepix.SetBlindPixelMethodValid(  kTRUE   , fPulserColor );
     1411
     1412      if (!qepix.UpdateBlindPixelMethod())
     1413        *fLog << warn << GetDescriptor()
     1414              << ": Cannot update Quantum efficiencies with the Blind Pixel Method" << endl;
    14081415    }
    14091416}
     
    14711478      qepix.SetQEPINDiode    ( qe            , fPulserColor );
    14721479      qepix.SetQEPINDiodeVar ( qerelvar*qe*qe, fPulserColor );     
    1473       qepix.UpdateBlindPixelMethod();
     1480      qepix.SetPINDiodeMethodValid(  kTRUE   , fPulserColor );
     1481
     1482      if (!qepix.UpdatePINDiodeMethod())
     1483        *fLog << warn << GetDescriptor()
     1484              << ": Cannot update Quantum efficiencies with the PIN Diode Method" << endl;
    14741485    }
    14751486}
Note: See TracChangeset for help on using the changeset viewer.