#ifndef MARS_MHCalibrationRelTimeCam #define MARS_MHCalibrationRelTimeCam #ifndef MARS_MHCalibrationCam #include "MHCalibrationCam.h" #endif #ifndef MARS_MArrayI #include "MArrayI.h" #endif #ifndef MARS_MArrayD #include "MArrayD.h" #endif class MGeomCam; class MHCalibrationRelTimeCam : public MHCalibrationCam { private: static const Float_t fgNumHiGainSaturationLimit; //! The default for fNumHiGainSaturationLimit (now at: 0.25) static const UInt_t fgReferencePixel; //! Default for fReferencePixel (now set to: 1) static const Int_t fgRelTimeNbins; //! Default number of bins (now set to: 900 ) static const Axis_t fgRelTimeFirst; //! Default lower histogram limit (now set to: -13.5 ) static const Axis_t fgRelTimeLast; //! Default upper histogram limit (now set to: 13.5 ) MArrayD fSumareahi ; //! MArrayD fSumarealo ; //! MArrayD fSumsectorhi; //! MArrayD fSumsectorlo; //! MArrayI fNumareahi ; //! MArrayI fNumarealo ; //! MArrayI fNumsectorhi; //! MArrayI fNumsectorlo; //! UInt_t fReferencePixel; // The reference pixel for rel. times Int_t fRelTimeNbins; // Number of bins (now set to: 900 ) Axis_t fRelTimeFirst; // Lower histogram limit (now set to: -13.5 ) Axis_t fRelTimeLast; // Upper histogram limit (now set to: 13.5 ) Bool_t ReInitHists(MParList *pList); Bool_t FillHists(const MParContainer *par, const Stat_t w=1); Bool_t FinalizeHists(); void FinalizeBadPixels(); public: MHCalibrationRelTimeCam(const char *name=NULL, const char *title=NULL); ~MHCalibrationRelTimeCam() {} UInt_t GetReferencePixel() const { return fReferencePixel; } // Setters void SetReferencePixel( const UInt_t i=fgReferencePixel) { fReferencePixel = i; } void SetRelTimeNbins ( const Int_t i=fgRelTimeNbins ) { fRelTimeNbins = i; } void SetRelTimeFirst ( const Axis_t f=fgRelTimeFirst ) { fRelTimeFirst = f; } void SetRelTimeLast ( const Axis_t f=fgRelTimeLast ) { fRelTimeLast = f; } Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const; void DrawPixelContent(Int_t idx) const; ClassDef(MHCalibrationRelTimeCam, 1) // Histogram class for Relative Time Camera Calibration }; #endif