Ignore:
Timestamp:
11/12/08 16:16:11 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhcalib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationPulseTimeCam.cc

    r8891 r9157  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MHCalibrationPulseTimeCam.cc,v 1.42 2008-05-15 18:37:26 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MHCalibrationPulseTimeCam.cc,v 1.43 2008-11-12 15:55:32 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    143143const UInt_t  MHCalibrationPulseTimeCam::fgSaturationLimit   = 245;
    144144const UInt_t  MHCalibrationPulseTimeCam::fgLowerSignalLimit  =  85;
    145 const Int_t   MHCalibrationPulseTimeCam::fgNumPixelsRequired = 2;
     145const Int_t   MHCalibrationPulseTimeCam::fgNumPixelsRequired =   3;
    146146const Int_t   MHCalibrationPulseTimeCam::fgHiGainNbins =  20;
    147147const Axis_t  MHCalibrationPulseTimeCam::fgHiGainFirst =  -0.5;
     
    201201  fOuterRefTime = 5.;
    202202}
     203
    203204// --------------------------------------------------------------------------
    204205//
     
    400401                                      fSignalCam->GetLastUsedSliceHiGain(), max);
    401402
    402         // check if maximum is high enough
    403403        if (max<fLowerSignalLimit)
    404404            continue;
     
    420420    for (UInt_t j=0; j<nareas; j++)
    421421    {
    422         if (fAverageAreaNum[j] > fNumPixelsRequired)
    423         {
    424             sumarea[j] /= fAverageAreaNum[j];
    425 
    426             if (IsOscillations())
    427                 GetAverageHiGainArea(j).FillHistAndArray(sumarea[j]);
    428             else
    429                 GetAverageHiGainArea(j).FillHist(sumarea[j]);
    430 
    431         }
     422        if (fAverageAreaNum[j]<fNumPixelsRequired)
     423            continue;
     424
     425        sumarea[j] /= fAverageAreaNum[j];
     426
     427        if (IsOscillations())
     428            GetAverageHiGainArea(j).FillHistAndArray(sumarea[j]);
     429        else
     430            GetAverageHiGainArea(j).FillHist(sumarea[j]);
    432431    }
    433432
    434433    for (UInt_t j=0; j<nsectors; j++)
    435434    {
    436         if (fAverageSectorNum[j] > 0)
    437         {
    438             sumsector[j] /= fAverageSectorNum[j];
    439 
    440             if (IsOscillations())
    441                 GetAverageHiGainSector(j).FillHistAndArray(sumsector[j]);
    442             else
    443                 GetAverageHiGainSector(j).FillHist(sumsector[j]);
    444         }
     435        if (fAverageSectorNum[j]<fNumPixelsRequired)
     436            continue;
     437
     438        sumsector[j] /= fAverageSectorNum[j];
     439
     440        if (IsOscillations())
     441            GetAverageHiGainSector(j).FillHistAndArray(sumsector[j]);
     442        else
     443            GetAverageHiGainSector(j).FillHist(sumsector[j]);
    445444    }
    446445
     
    535534}
    536535
     536Double_t MHCalibrationPulseTimeCam::GetNumEvents() const
     537{
     538    return GetAverageAreas()>0 ? GetAverageHiGainArea(0).GetEntries() : 0;
     539}
    537540
    538541// --------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationPulseTimeCam.h

    r8891 r9157  
    7373  void SetNumPixelsRequired( const Byte_t  lim=fgNumPixelsRequired ) { fNumPixelsRequired = lim; }
    7474
     75  Double_t GetNumEvents() const;
     76
     77
    7578  Bool_t GetPixelContent ( Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const { return kTRUE; }
    7679  void   DrawPixelContent( Int_t num )  const;   
  • trunk/MagicSoft/Mars/mhcalib/MHGausEvents.h

    r8339 r9157  
    104104 
    105105  // Getters
     106  const Double_t GetEntries()            const { return fHGausHist.GetEntries(); }
    106107  const Double_t GetChiSquare()          const { return ( fFGausFit ? fFGausFit->GetChisquare() : 0.); }
    107108  const Double_t GetExpChiSquare()       const { return ( fFExpFit  ? fFExpFit->GetChisquare()  : 0.); }
Note: See TracChangeset for help on using the changeset viewer.