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 MHFadcCam : public MH
|
---|
20 | {
|
---|
21 | private:
|
---|
22 | TObjArray *fArray; //-> List of Lo/Hi gain Histograms
|
---|
23 |
|
---|
24 | void FillHi(UInt_t ipix, Byte_t data) { (*this)[ipix]->FillHi(data); }
|
---|
25 | void FillLo(UInt_t ipix, Byte_t data) { (*this)[ipix]->FillLo(data); }
|
---|
26 |
|
---|
27 | public:
|
---|
28 | MHFadcCam(const char *name=NULL, const char *title=NULL);
|
---|
29 | ~MHFadcCam();
|
---|
30 |
|
---|
31 | MHFadcPix *operator[](UInt_t i) { return (MHFadcPix*)(fArray->At(i)); }
|
---|
32 |
|
---|
33 | TH1F *GetHistHi(UInt_t i) { return (*this)[i]->GetHistHi(); }
|
---|
34 | TH1F *GetHistLo(UInt_t i) { return (*this)[i]->GetHistLo(); }
|
---|
35 |
|
---|
36 | Bool_t Fill(const MParContainer *par);
|
---|
37 |
|
---|
38 | void ResetHistograms();
|
---|
39 |
|
---|
40 | //
|
---|
41 | // FIXME! This should be replaced by a Draw(Option_t)-function
|
---|
42 | //
|
---|
43 | void DrawHi(UInt_t i) { GetHistHi(i)->Draw(); }
|
---|
44 | void DrawLo(UInt_t i) { GetHistLo(i)->Draw(); }
|
---|
45 |
|
---|
46 | void DrawPix(UInt_t i) { (*this)[i]->Draw(); }
|
---|
47 |
|
---|
48 | Int_t GetEntries() const { return fArray->GetEntries(); }
|
---|
49 |
|
---|
50 | TObject *Clone(const char *opt="") const;
|
---|
51 |
|
---|
52 | ClassDef(MHFadcCam, 1) // A list of histograms storing the Fadc spektrum of one pixel
|
---|
53 | };
|
---|
54 |
|
---|
55 | #endif
|
---|
56 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.