| 1 | #ifndef MARS_MHPedestalCam
|
|---|
| 2 | #define MARS_MHPedestalCam
|
|---|
| 3 |
|
|---|
| 4 | #ifndef MARS_MHCalibrationCam
|
|---|
| 5 | #include "MHCalibrationCam.h"
|
|---|
| 6 | #endif
|
|---|
| 7 |
|
|---|
| 8 | #ifndef MARS_MArrayD
|
|---|
| 9 | #include <MArrayD.h>
|
|---|
| 10 | #endif
|
|---|
| 11 |
|
|---|
| 12 | #ifndef MARS_MArrayI
|
|---|
| 13 | #include <MArrayI.h>
|
|---|
| 14 | #endif
|
|---|
| 15 |
|
|---|
| 16 | class MGeomCam;
|
|---|
| 17 | class MPedestalCam;
|
|---|
| 18 | class MHPedestalCam : public MHCalibrationCam
|
|---|
| 19 | {
|
|---|
| 20 |
|
|---|
| 21 | private:
|
|---|
| 22 |
|
|---|
| 23 | static const Int_t fgNbins; //! Default number of bins (now set to: 100 )
|
|---|
| 24 | static const Axis_t fgFirst; //! Default lower histogram limit (now set to: -50. )
|
|---|
| 25 | static const Axis_t fgLast; //! Default upper histogram limit (now set to: 50. )
|
|---|
| 26 |
|
|---|
| 27 | static const TString gsHistName; //! Default Histogram names
|
|---|
| 28 | static const TString gsHistTitle; //! Default Histogram titles
|
|---|
| 29 | static const TString gsHistXTitle; //! Default Histogram x-axis titles
|
|---|
| 30 | static const TString gsHistYTitle; //! Default Histogram y-axis titles
|
|---|
| 31 |
|
|---|
| 32 | ULong_t fNumEvents; // Number of processed events
|
|---|
| 33 |
|
|---|
| 34 | Float_t fExtractHiGainSlices; // Number of FADC slices used for high gain signal extraction
|
|---|
| 35 | Float_t fExtractLoGainSlices; // Number of FADC slices used for low gain signal extraction
|
|---|
| 36 |
|
|---|
| 37 | MPedestalCam *fPedestals; //! Pedestal Cam filled by MPedCalcPedRun
|
|---|
| 38 |
|
|---|
| 39 | Bool_t fRenorm; // Flag if the results will be re-normalized
|
|---|
| 40 |
|
|---|
| 41 | MArrayD fSum; // sum of values
|
|---|
| 42 | MArrayD fSum2; // sum of squared values
|
|---|
| 43 | MArrayD fAreaSum; // averaged sum of values per area idx
|
|---|
| 44 | MArrayD fAreaSum2; // averaged sum of squared values per area idx
|
|---|
| 45 | MArrayI fAreaVal; // number of valid pixel with area idx
|
|---|
| 46 | MArrayD fSectorSum; // averaged sum of values per sector
|
|---|
| 47 | MArrayD fSectorSum2; // averaged sum of squared values per sector
|
|---|
| 48 | MArrayI fSectorVal; // number of valid pixel with sector idx
|
|---|
| 49 |
|
|---|
| 50 | Bool_t ReInitHists(MParList *pList);
|
|---|
| 51 | Bool_t FillHists(const MParContainer *par, const Stat_t w=1);
|
|---|
| 52 | Bool_t FinalizeHists();
|
|---|
| 53 |
|
|---|
| 54 | void RenormResults();
|
|---|
| 55 | void FitHists();
|
|---|
| 56 |
|
|---|
| 57 | public:
|
|---|
| 58 |
|
|---|
| 59 | MHPedestalCam(const char *name=NULL, const char *title=NULL);
|
|---|
| 60 |
|
|---|
| 61 | // Clone
|
|---|
| 62 | TObject *Clone(const char *name="") const;
|
|---|
| 63 |
|
|---|
| 64 | Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
|
|---|
| 65 | void DrawPixelContent(Int_t idx) const;
|
|---|
| 66 |
|
|---|
| 67 | void ResetHists();
|
|---|
| 68 | void SetRenorm( const Bool_t b=kTRUE ) { fRenorm = b; }
|
|---|
| 69 |
|
|---|
| 70 | ClassDef(MHPedestalCam, 1) // Histogram class for Charge Camera Pedestals
|
|---|
| 71 | };
|
|---|
| 72 |
|
|---|
| 73 | #endif
|
|---|
| 74 |
|
|---|