Line | |
---|
1 | #ifndef MARS_MHFadcCam
|
---|
2 | #define MARS_MHFadcCam
|
---|
3 |
|
---|
4 | #ifndef ROOT_TObjArray
|
---|
5 | #include <TObjArray.h>
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifndef MARS_MH
|
---|
9 | #include "MH.h"
|
---|
10 | #endif
|
---|
11 | #ifndef MARS_MHFadcPix
|
---|
12 | #include "MHFadcPix.h"
|
---|
13 | #endif
|
---|
14 |
|
---|
15 | #ifndef ROOT_TH1
|
---|
16 | #include <TH1.h>
|
---|
17 | #endif
|
---|
18 |
|
---|
19 | class MRawEvtData;
|
---|
20 |
|
---|
21 | class MHFadcCam : public MH
|
---|
22 | {
|
---|
23 | private:
|
---|
24 | TObjArray *fArray; //-> List of Lo/Hi gain Histograms
|
---|
25 |
|
---|
26 | void FillHi(UInt_t ipix, Byte_t data) { (*this)[ipix]->FillHi(data); }
|
---|
27 | void FillLo(UInt_t ipix, Byte_t data) { (*this)[ipix]->FillLo(data); }
|
---|
28 |
|
---|
29 | public:
|
---|
30 | MHFadcCam(const char *name=NULL, const char *title=NULL);
|
---|
31 | ~MHFadcCam();
|
---|
32 |
|
---|
33 | MHFadcPix *operator[](UInt_t i) { return (MHFadcPix*)(fArray->At(i)); }
|
---|
34 | const MHFadcPix *operator[](UInt_t i) const { return (MHFadcPix*)(fArray->At(i)); }
|
---|
35 |
|
---|
36 | TH1F *GetHistHi(UInt_t i) { return (*this)[i]->GetHistHi(); }
|
---|
37 | TH1F *GetHistLo(UInt_t i) { return (*this)[i]->GetHistLo(); }
|
---|
38 |
|
---|
39 | const TH1F *GetHistHi(UInt_t i) const { return (*this)[i]->GetHistHi(); }
|
---|
40 | const TH1F *GetHistLo(UInt_t i) const { return (*this)[i]->GetHistLo(); }
|
---|
41 |
|
---|
42 | Bool_t Fill(const MParContainer *par);
|
---|
43 | Bool_t Fill(const MRawEvtData *par);
|
---|
44 |
|
---|
45 | void ResetHistograms();
|
---|
46 |
|
---|
47 | //
|
---|
48 | // FIXME! This should be replaced by a Draw(Option_t)-function
|
---|
49 | //
|
---|
50 | void DrawHi(UInt_t i) { GetHistHi(i)->Draw(); }
|
---|
51 | void DrawLo(UInt_t i) { GetHistLo(i)->Draw(); }
|
---|
52 |
|
---|
53 | void DrawPix(UInt_t i) { (*this)[i]->Draw(); }
|
---|
54 |
|
---|
55 | Int_t GetEntries() const { return fArray->GetEntries(); }
|
---|
56 |
|
---|
57 | TObject *Clone(const char *opt="") const;
|
---|
58 |
|
---|
59 | ClassDef(MHFadcCam, 1) // A list of histograms storing the Fadc spektrum of one pixel
|
---|
60 | };
|
---|
61 |
|
---|
62 | #endif
|
---|
63 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.