Ignore:
Timestamp:
12/18/03 18:03:21 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MCalibrationCam.cc

    r2715 r2719  
    206206}
    207207
    208 // --------------------------------------------------------------------------
    209 //
    210 // Return TRUE if:
    211 //
    212 // 1) Pixel is inside the range of the TClonesArray
    213 // 2) Pixel has a fitted charge greater than 3*PedRMS
    214 // 3) Pixel has a charge sigma bigger than its Pedestal RMS
    215 // 4) Pixel has a fit error greater than 0.
    216 // 5) Pixel has a fit Probability greater than 0.0001
    217 // 6) If FitTimes is used,
    218 //    the mean arrival time is at least 1.5 slices from the edge
    219 //
    220 Bool_t MCalibrationCam::IsPixelFitValid(Int_t idx) const
    221 {
    222 
    223   if (!CheckBounds(idx))
    224     return kFALSE;
    225 
    226   return (*this)[idx].IsFitValid();
    227 }
    228208
    229209// --------------------------------------
     
    397377}
    398378
     379
     380
    399381Bool_t MCalibrationCam::CalcNumPhotInsidePlexiglass()
    400382{
     
    442424    {
    443425      if((pix->GetCharge() > 0.) && (fMeanPhotInsidePlexiglass > 0.))
    444         pix->SetConversionBlindPixelMethod(fMeanPhotInsidePlexiglass/pix->GetCharge(), 0., 0.);
     426        {
     427
     428          Float_t conversion      = fMeanPhotInsidePlexiglass/pix->GetCharge();
     429          Float_t conversionerr   = 0.;
     430          Float_t conversionsigma = 0.;
     431          pix->SetConversionBlindPixelMethod(conversion, conversionerr, conversionsigma);
     432
     433          if (conversionerr/conversion < 0.1)
     434            pix->SetBlindPixelMethodValid();
     435        }
    445436    }
    446437  return kTRUE;
Note: See TracChangeset for help on using the changeset viewer.