Line | |
---|
1 | #ifndef MARS_MHFadcPix
|
---|
2 | #define MARS_MHFadcPix
|
---|
3 |
|
---|
4 | #ifndef MARS_MParContainer
|
---|
5 | #include "MParContainer.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifndef ROOT_TH1
|
---|
9 | #include <TH1.h>
|
---|
10 | #endif
|
---|
11 |
|
---|
12 | class MRawEvtData;
|
---|
13 |
|
---|
14 | class MHFadcPix : public MParContainer
|
---|
15 | {
|
---|
16 | public:
|
---|
17 | enum Type_t { kSlices, kValue };
|
---|
18 |
|
---|
19 | private:
|
---|
20 | TH1F fHistHi;
|
---|
21 | TH1F fHistLo;
|
---|
22 |
|
---|
23 | UInt_t fPixId;
|
---|
24 |
|
---|
25 | Type_t fType;
|
---|
26 |
|
---|
27 | public:
|
---|
28 | MHFadcPix(UInt_t pixid=0, Type_t t=kValue);
|
---|
29 |
|
---|
30 | TH1F *GetHistHi() { return &fHistHi; }
|
---|
31 | TH1F *GetHistLo() { return &fHistLo; }
|
---|
32 |
|
---|
33 | const TH1F *GetHistHi() const { return &fHistHi; }
|
---|
34 | const TH1F *GetHistLo() const { return &fHistLo; }
|
---|
35 |
|
---|
36 | void Init(Byte_t nhi, Byte_t nlo);
|
---|
37 | Bool_t Fill(const MRawEvtData &evt);
|
---|
38 |
|
---|
39 | void DrawHi();
|
---|
40 | void DrawLo();
|
---|
41 |
|
---|
42 | TObject *Clone(const char *) const;
|
---|
43 |
|
---|
44 | void Draw(Option_t *opt=NULL);
|
---|
45 |
|
---|
46 | ClassDef(MHFadcPix, 1) // Conatiner to hold two histograms container spektrums for the lo-/hi gain of one pixel
|
---|
47 | };
|
---|
48 |
|
---|
49 | #endif
|
---|
50 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.