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