Changeset 4129


Ignore:
Timestamp:
05/22/04 16:27:38 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r4126 r4129  
    665665 
    666666  *fLog << inf << endl;
    667   *fLog << GetDescriptor() << ": Errors statistics:" << endl; 
     667  *fLog << GetDescriptor() << ": Fatal errors statistics:" << endl; 
    668668
    669669  PrintUncalibrated(MBadPixelsPix::kChargeIsPedestal,   
    670670                    Form("%s%2.1f%s","Signal less than ",fChargeLimit," Pedestal RMS:                "));
    671   PrintUncalibrated(MBadPixelsPix::kChargeErrNotValid,
    672                     Form("%s%2.1f%s","Signal Error smaller than ",fChargeErrLimit,":                    "));
    673671  PrintUncalibrated(MBadPixelsPix::kChargeRelErrNotValid,
    674672                    Form("%s%2.1f%s","Signal Error bigger than ",fChargeRelErrLimit," times Mean Signal:   "));
     
    681679  PrintUncalibrated(MBadPixelsPix::kMeanTimeInLast2Bins,
    682680                    Form("%s%2.1f%s","Mean Abs. Arr. Time in Last ",2.," Bin(s):           "));
     681  PrintUncalibrated(MBadPixelsPix::kDeviatingNumPhes,   
     682                    "Pixels with deviating number of phes:             ");
     683
     684  *fLog << inf << endl;
     685  *fLog << GetDescriptor() << ": Unreliable errors statistics:" << endl; 
     686
    683687  PrintUncalibrated(MBadPixelsPix::kHiGainOscillating,   
    684688                    "Pixels with changing Hi Gain signal over time:    ");
    685689  PrintUncalibrated(MBadPixelsPix::kLoGainOscillating,   
    686690                    "Pixels with changing Lo Gain signal over time:    ");
    687   PrintUncalibrated(MBadPixelsPix::kDeviatingNumPhes,   
    688                     "Pixels with deviating number of phes:             ");
    689691  PrintUncalibrated(MBadPixelsPix::kHiGainNotFitted,     
    690692                    "Pixels with unsuccesful Gauss fit to the Hi Gain: ");
     
    755757{
    756758
    757   if (cal.GetMean() < fChargeLimit*cal.GetPedRms())
    758     {
    759       *fLog << warn << GetDescriptor() << ": Fitted Charge: " << cal.GetMean() << " is smaller than "
     759  const Float_t mean    = cal.IsHiGainSaturation() ? cal.GetConvertedLoGainMean()    : cal.GetMean();
     760  const Float_t meanerr = cal.IsHiGainSaturation() ? cal.GetConvertedLoGainMeanErr() : cal.GetMeanErr();
     761  const Float_t sigma   = cal.IsHiGainSaturation() ? cal.GetConvertedLoGainSigma()   : cal.GetSigma();
     762
     763  if (mean < fChargeLimit*cal.GetPedRms())
     764    {
     765      *fLog << warn << GetDescriptor() << ": Fitted Charge: " << mean << " is smaller than "
    760766            << fChargeLimit << " Pedestal RMS: " <<  cal.GetPedRms() << " in Pixel  " << cal.GetPixId() << endl;
    761767      bad.SetUncalibrated( MBadPixelsPix::kChargeIsPedestal);
    762768    }
    763769 
    764   if (cal.GetMeanErr() < fChargeErrLimit)
    765     {
    766       *fLog << warn << GetDescriptor() << ": Error of Fitted Charge: " << cal.GetMeanErr()
    767             << " is smaller than " << fChargeErrLimit << " in Pixel  " << cal.GetPixId() << endl;
    768       bad.SetUncalibrated( MBadPixelsPix::kChargeErrNotValid );
    769     }
    770      
    771    if (cal.GetMean() < fChargeRelErrLimit*cal.GetMeanErr())
    772     {
    773       *fLog << warn << GetDescriptor() << ": Fitted Charge: " << cal.GetMean() << " is smaller than "
    774             << fChargeRelErrLimit << "* its error: " << cal.GetMeanErr()
     770   if (mean < fChargeRelErrLimit*meanerr)
     771    {
     772      *fLog << warn << GetDescriptor() << ": Fitted Charge: " << mean << " is smaller than "
     773            << fChargeRelErrLimit << "* its error: " << meanerr
    775774            << " in Pixel  " << cal.GetPixId() << endl;
    776775      bad.SetUncalibrated( MBadPixelsPix::kChargeRelErrNotValid );
    777776    }
    778777
    779   if (cal.GetSigma() < cal.GetPedRms())
    780     {
    781       *fLog << warn << GetDescriptor() << ": Sigma of Fitted Charge: " << cal.GetSigma()
     778  if (sigma < cal.GetPedRms())
     779    {
     780      *fLog << warn << GetDescriptor() << ": Sigma of Fitted Charge: " << sigma
    782781            << " smaller than Pedestal RMS: " << cal.GetPedRms() << " in Pixel  " << cal.GetPixId() << endl;
    783782      bad.SetUncalibrated( MBadPixelsPix::kChargeSigmaNotValid );
     
    812811// Sets pixel to MBadPixelsPix::kUnsuitableRun, if one of the following flags is set:
    813812// - MBadPixelsPix::kChargeIsPedestal
    814 // - MBadPixelsPix::kChargeErrNotValid
    815813// - MBadPixelsPix::kChargeRelErrNotValid
    816814// - MBadPixelsPix::kChargeSigmaNotValid
Note: See TracChangeset for help on using the changeset viewer.