1 | #ifndef MARS_MHCamEvent
|
---|
2 | #define MARS_MHCamEvent
|
---|
3 |
|
---|
4 | #ifndef MARS_MH
|
---|
5 | #include "MH.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MHCamera;
|
---|
9 | class MCamEvent;
|
---|
10 |
|
---|
11 | class MHCamEvent : public MH
|
---|
12 | {
|
---|
13 | private:
|
---|
14 | static const TString gsDefName;
|
---|
15 | static const TString gsDefTitle;
|
---|
16 |
|
---|
17 | MHCamera *fSum; // storing the sum
|
---|
18 | MCamEvent *fEvt; //! the current event
|
---|
19 |
|
---|
20 | TString fNameEvt; // Nameof MCamEvent to fill into histogram
|
---|
21 |
|
---|
22 | Int_t fType; // Type to used for calling GetPixelContent
|
---|
23 |
|
---|
24 | Float_t fThreshold; // Count pixel above/below this threshold
|
---|
25 | Char_t fUseThreshold; // Use a threshold? Which direction has it?
|
---|
26 |
|
---|
27 | void Init(const char *name, const char *title);
|
---|
28 |
|
---|
29 | Bool_t SetupFill(const MParList *pList);
|
---|
30 | Bool_t Fill(const MParContainer *par, const Stat_t w=1);
|
---|
31 |
|
---|
32 | public:
|
---|
33 | enum { kIsLowerBound=1, kIsUpperBound=-1, kNoBound=0 };
|
---|
34 |
|
---|
35 | MHCamEvent(const char *name=NULL, const char *title=NULL);
|
---|
36 | MHCamEvent(Int_t type, const char *name=NULL, const char *title=NULL);
|
---|
37 | ~MHCamEvent();
|
---|
38 |
|
---|
39 | void SetNameEvt(const TString name) { fNameEvt = name; }
|
---|
40 | void SetType(Int_t type) { fType = type; }
|
---|
41 |
|
---|
42 | TH1 *GetHistByName(const TString name="");
|
---|
43 |
|
---|
44 | void Paint(Option_t *o="");
|
---|
45 | void Draw(Option_t *o="");
|
---|
46 |
|
---|
47 | void PrintOutliers(Float_t s) const;
|
---|
48 |
|
---|
49 | void SetThreshold(Float_t f, Char_t direction=kIsLowerBound) { fThreshold = f; fUseThreshold=direction; }
|
---|
50 | void EnableVariance(Bool_t b=kTRUE);
|
---|
51 |
|
---|
52 | ClassDef(MHCamEvent, 1) // Histogram to sum camera events
|
---|
53 | };
|
---|
54 |
|
---|
55 | #endif
|
---|