source: trunk/Mars/mhist/MHFadcPix.h@ 11054

Last change on this file since 11054 was 2333, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 923 bytes
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
12class MRawEvtData;
13
14class MHFadcPix : public MParContainer
15{
16public:
17 enum Type_t { kSlices, kValue };
18
19private:
20 TH1F fHistHi;
21 TH1F fHistLo;
22
23 UInt_t fPixId;
24
25 Type_t fType;
26
27public:
28 MHFadcPix(Int_t pixid=-1, 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.