Ignore:
Timestamp:
03/07/04 14:27:40 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mcalib
Files:
3 edited

Legend:

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

    r3417 r3418  
    275275        return kFALSE;
    276276
    277     fCam->SetPINDiode(fPINDiode);
    278 
    279277    fBlindPixel = (MCalibrationChargeBlindPix*)pList->FindCreateObj("MCalibrationChargeBlindPix");
    280278    if (!fBlindPixel)
    281279        return kFALSE;
    282280
     281    fCam->SetPINDiode(fPINDiode);
    283282    fCam->SetBlindPixel(fBlindPixel);
    284283
     
    333332 
    334333  fCam->SetGeomCam(fGeom);
    335   fCam->SetBadPixelsCam(fBadPixels);
    336334
    337335  fNumHiGainSamples  =  fSignals->GetNumUsedHiGainFADCSlices();
     
    392390
    393391      MCalibrationChargePix &pix = (*fCam)[pixid];
     392      MBadPixelsPix         &bad = (*fBadPixels)[pixid];
     393
     394      //
     395      // Check if the pixel has been excluded from the fits
     396      //
     397      if (pix.IsExcluded())
     398        continue;
    394399
    395400      //
     
    400405      const Float_t num    = TMath::Sqrt((Float_t)fPedestals->GetTotalEntries());
    401406
    402       //
    403       // Check if the pixel has been excluded from the fits
    404       //
    405       if (pix.IsExcluded())
    406         continue;
    407 
    408407      if (fGeom->GetPixRatio(pixid) == 1.)
    409408      {
     
    436435      }
    437436
    438       if (!pix.CheckChargeValidity() || !pix.CheckTimeValidity())
     437      if (!pix.CheckChargeValidity(&bad) || !pix.CheckTimeValidity(&bad))
    439438          continue;
    440439
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargePix.cc

    r3356 r3418  
    9090#include "MLogManip.h"
    9191
     92#include "MBadPixelsPix.h"
     93
    9294ClassImp(MCalibrationChargePix);
    9395
     
    507509
    508510
    509 Bool_t MCalibrationChargePix::IsExcluded()            const
     511Bool_t MCalibrationChargePix::IsExcluded()     const
    510512{
    511513   return TESTBIT(fFlags,kExcluded); 
     
    576578// 4) Pixel has a charge sigma bigger than its Pedestal RMS
    577579//
    578 Bool_t MCalibrationChargePix::CheckChargeValidity()
     580Bool_t MCalibrationChargePix::CheckChargeValidity(MBadPixelsPix *bad)
    579581{
    580582 
     
    618620// The mean arrival time is at least 1.0 slices from the used edge slices
    619621//
    620 Bool_t MCalibrationChargePix::CheckTimeValidity()
     622Bool_t MCalibrationChargePix::CheckTimeValidity(MBadPixelsPix *bad)
    621623{
    622624
  • trunk/MagicSoft/Mars/mcalib/MCalibrationChargePix.h

    r3356 r3418  
    66#endif
    77
     8class MBadPixelsPix;
    89class MCalibrationChargePix : public MParContainer
    910{
     
    297298  void  ApplyLoGainConversion();
    298299
    299   Bool_t CheckChargeValidity();
    300   Bool_t CheckTimeValidity();
     300  Bool_t CheckChargeValidity ( MBadPixelsPix *bad=NULL );
     301  Bool_t CheckTimeValidity   ( MBadPixelsPix *bad=NULL );
    301302  Bool_t CalcReducedSigma();
    302303  Bool_t CalcFFactorMethod();
Note: See TracChangeset for help on using the changeset viewer.