source: trunk/MagicSoft/Mars/mhist/MHCamEvent.h@ 8279

Last change on this file since 8279 was 8279, checked in by tbretz, 18 years ago
*** empty log message ***
File size: 1.7 KB
Line 
1#ifndef MARS_MHCamEvent
2#define MARS_MHCamEvent
3
4#ifndef MARS_MH
5#include "MH.h"
6#endif
7
8class MHCamera;
9class MCamEvent;
10
11class MHCamEvent : public MH
12{
13private:
14 static const TString gsDefName;
15 static const TString gsDefTitle;
16
17protected:
18 MHCamera *fSum; // storing the sum
19 MCamEvent *fEvt; //! the current event
20
21 TString fNameEvt; // Name of MCamEvent to fill into histogram
22 TString fNameGeom; // Name of geometry container
23
24 Int_t fType; // Type to used for calling GetPixelContent
25 Bool_t fErrorSpread; // kFALSE==mean, kTRUE==spread
26
27 Float_t fThreshold; // Count pixel above/below this threshold
28 Char_t fUseThreshold; // Use a threshold? Which direction has it?
29
30 void Init(const char *name, const char *title);
31
32 Bool_t SetupFill(const MParList *pList);
33 Bool_t Fill(const MParContainer *par, const Stat_t w=1);
34
35public:
36 enum { kIsLowerBound=1, kIsUpperBound=-1, kNoBound=0 };
37
38 MHCamEvent(const char *name=NULL, const char *title=NULL);
39 MHCamEvent(Int_t type, const char *name=NULL, const char *title=NULL);
40 ~MHCamEvent();
41
42 void SetNameEvt(const TString name) { fNameEvt = name; }
43 void SetNameGeom(const TString name) { fNameGeom = name; }
44 void SetType(Int_t type) { fType = type; }
45
46 TH1 *GetHistByName(const TString name="") const;
47
48 void Paint(Option_t *o="");
49 void Draw(Option_t *o="");
50
51 void PrintOutliers(Float_t s) const;
52
53 void SetThreshold(Float_t f=0, Char_t direction=kIsLowerBound) { fThreshold = f; fUseThreshold=direction; }
54 void SetErrorSpread(Bool_t b=kTRUE) { fErrorSpread = b; }
55
56 ClassDef(MHCamEvent, 2) // Histogram to sum camera events
57};
58
59#endif
Note: See TracBrowser for help on using the repository browser.