source: trunk/MagicSoft/Mars/mhcalib/MHPedestalCam.h@ 6470

Last change on this file since 6470 was 6329, checked in by gaug, 20 years ago
*** empty log message ***
File size: 2.9 KB
Line 
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
12class MGeomCam;
13class MPedestalCam;
14class MHPedestalCam : public MHCalibrationCam
15{
16
17private:
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 static const TString fgNamePedestalCam; //! "MPedestalCam"
29
30 TString fNamePedestalCamOut; // Name of the 'MPedestalCam' container with results
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 *fPedestalsOut; //! Pedestal Cam with results
38
39 Bool_t fRenorm; // Flag if the results will be re-normalized
40
41 MArrayD fSum; //! sum of values
42 MArrayD fSumSquare; //! sum of squared values
43 MArrayD fAreaSum; //! averaged sum of values per area idx
44 MArrayD fAreaSumSquare; //! averaged sum of squared values per area idx
45 MArrayI fAreaNum; //! number of valid pixel with area idx
46 MArrayI fSectorNum; //! number of valid pixel with sector idx
47 MArrayD fSectorSum; //! averaged sum of values per sector
48 MArrayD fSectorSumSquare; //! averaged sum of squared values per sector
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 InitHiGainArrays( const Int_t npix, const Int_t nareas, const Int_t nsectors );
55
56 void RenormResults();
57 void FitHists();
58
59public:
60
61 MHPedestalCam(const char *name=NULL, const char *title=NULL);
62
63 // Clone
64 TObject *Clone(const char *name="") const;
65
66 Bool_t GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
67 void DrawPixelContent(Int_t idx) const;
68
69 void ResetHists();
70
71 void SetNamePedestalCamOut(const char *name) { fNamePedestalCamOut = name; }
72 void SetRenorm (const Bool_t b=kTRUE ) { fRenorm = b; }
73
74 ClassDef(MHPedestalCam, 1) // Histogram class for Charge Camera Pedestals
75};
76
77#endif
78
Note: See TracBrowser for help on using the repository browser.