source: trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.h@ 4882

Last change on this file since 4882 was 4882, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 3.7 KB
Line 
1#ifndef MARS_MHCalibrationChargeCam
2#define MARS_MHCalibrationChargeCam
3
4#ifndef MARS_MHCalibrationCam
5#include "MHCalibrationCam.h"
6#endif
7
8#ifndef MARS_MArrayI
9#include "MArrayI.h"
10#endif
11
12#ifndef MARS_MArrayD
13#include "MArrayD.h"
14#endif
15
16class TH2D;
17class MRawEvtData;
18class MExtractedSignalCam;
19class MCalibrationChargePix;
20class MHCalibrationChargePix;
21
22class MHCalibrationChargeCam : public MHCalibrationCam
23{
24private:
25
26 static const Int_t fgAverageNbinsHiGain; //! The default for fAverageNbins HiGain (now set to: 3300)
27 static const Int_t fgAverageNbinsLoGain; //! The default for fAverageNbins LoGain (now set to: 1950)
28
29 static const Float_t fgNumHiGainSaturationLimit; //! The default for fNumHiGainSaturationLimit (now at: 0.01)
30 static const Float_t fgNumLoGainSaturationLimit; //! The default for fNumLoGainSaturationLimit (now at: 0.005)
31 static const Float_t fgTimeLowerLimit; //! Default for fTimeLowerLimit (now set to: 1.)
32 static const Float_t fgTimeUpperLimit; //! Default for fTimeUpperLimit (now set to: 2.)
33
34 static const Float_t gkHiGainInnerRefLines[7]; //!
35 static const Float_t gkHiGainOuterRefLines[7]; //!
36 static const Float_t gkLoGainInnerRefLines[7]; //!
37 static const Float_t gkLoGainOuterRefLines[7]; //!
38
39 MArrayD fSumhiarea ; //!
40 MArrayD fSumloarea ; //!
41 MArrayD fTimehiarea ; //!
42 MArrayD fTimeloarea ; //!
43 MArrayD fSumhisector; //!
44 MArrayD fSumlosector; //!
45 MArrayD fTimehisector; //!
46 MArrayD fTimelosector; //!
47
48 MArrayI fSathiarea ; //!
49 MArrayI fSatloarea ; //!
50 MArrayI fSathisector; //!
51 MArrayI fSatlosector; //!
52
53 Float_t fTimeLowerLimit; // Limit dist. to first signal slice (in units of FADC slices)
54 Float_t fTimeUpperLimit; // Limit dist. to last signal slice (in units of FADC slices)
55 Byte_t fFirstHiGain; // First used slice High Gain
56 Byte_t fLastHiGain; // Last used slice High Gain
57 Byte_t fFirstLoGain; // First used slice Low Gain
58 Byte_t fLastLoGain; // Last used slice Low Gain
59
60 MRawEvtData *fRawEvt; //! Raw event data
61
62 Bool_t SetupHists(const MParList *pList);
63 Bool_t ReInitHists(MParList *pList);
64 Bool_t FillHists(const MParContainer *par, const Stat_t w=1);
65
66 void FinalizeAbsTimes (MHCalibrationChargePix &hist, MCalibrationChargePix &pix, MBadPixelsPix &bad,
67 Byte_t first, Byte_t last);
68 Bool_t FinalizeHists();
69 void FinalizeBadPixels();
70
71 void DrawDataCheckPixel(MHCalibrationChargePix &pix, const Float_t refline[]);
72 void DisplayRefLines(const TH2D *hist, const Float_t refline[]) const;
73
74public:
75
76 MHCalibrationChargeCam(const char *name=NULL, const char *title=NULL);
77 ~MHCalibrationChargeCam() {}
78
79 TObject *Clone(const char *name="") const;
80
81 void SetTimeLowerLimit ( const Float_t f=fgTimeLowerLimit ) { fTimeLowerLimit = f; }
82 void SetTimeUpperLimit ( const Float_t f=fgTimeUpperLimit ) { fTimeUpperLimit = f; }
83
84 Bool_t GetPixelContent ( Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type=0) const;
85 void DrawPixelContent( Int_t num ) const;
86
87 // Draw
88 void Draw(const Option_t *opt);
89
90 ClassDef(MHCalibrationChargeCam, 1) // Histogram class for Charge Camera Calibration
91};
92
93#endif
94
95
96
97
98
99
100
101
102
Note: See TracBrowser for help on using the repository browser.