Line | |
---|
1 | #ifndef MARS_MHCalibrationHiLoPix
|
---|
2 | #define MARS_MHCalibrationHiLoPix
|
---|
3 |
|
---|
4 | #ifndef MARS_MHCalibrationPix
|
---|
5 | #include "MHCalibrationPix.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifndef ROOT_TProfile
|
---|
9 | #include <TProfile.h>
|
---|
10 | #endif
|
---|
11 |
|
---|
12 | class MHCalibrationHiLoPix : public MHCalibrationPix
|
---|
13 | {
|
---|
14 |
|
---|
15 | private:
|
---|
16 |
|
---|
17 | TProfile fHivsLo; // Profile containing the high-gain vs. low-gain value
|
---|
18 |
|
---|
19 | Int_t fHivsLoNbins; // Number of bins used for the fHHivsLo
|
---|
20 | Axis_t fHivsLoFirst; // Lower bound bin used for the fHHivsLo
|
---|
21 | Axis_t fHivsLoLast; // Upper bound bin used for the fHHivsLo
|
---|
22 |
|
---|
23 | public:
|
---|
24 |
|
---|
25 | MHCalibrationHiLoPix(const char *name=NULL, const char *title=NULL);
|
---|
26 |
|
---|
27 | void Reset();
|
---|
28 | void InitBins();
|
---|
29 |
|
---|
30 | // Setters
|
---|
31 | virtual void SetHivsLoNbins(const Int_t bins ) { fHivsLoNbins = bins; }
|
---|
32 | virtual void SetHivsLoFirst(const Axis_t first) { fHivsLoFirst = first; }
|
---|
33 | virtual void SetHivsLoLast( const Axis_t last ) { fHivsLoLast = last; }
|
---|
34 |
|
---|
35 | // Getters
|
---|
36 | TProfile *GetHivsLo() { return &fHivsLo; }
|
---|
37 | const TProfile *GetHivsLo() const { return &fHivsLo; }
|
---|
38 |
|
---|
39 | const Float_t GetHivsLoP0() const;
|
---|
40 | const Float_t GetHivsLoP1() const;
|
---|
41 | const Float_t GetHivsLoProb() const;
|
---|
42 |
|
---|
43 | // Fill histos
|
---|
44 | Bool_t FillHivsLo(const Float_t t, const Float_t w);
|
---|
45 |
|
---|
46 | // Draws
|
---|
47 | void Draw(Option_t *opt="");
|
---|
48 |
|
---|
49 | ClassDef(MHCalibrationHiLoPix, 1) // Base Histogram class for HiLo Pixel Calibration
|
---|
50 | };
|
---|
51 |
|
---|
52 | #endif /* MARS_MHCalibrationHiLoPix */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.