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

Last change on this file since 6319 was 6276, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.6 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
17 MHCamera *fSum; // storing the sum
18 MCamEvent *fEvt; //! the current event
19
20 TString fNameEvt; // Name of MCamEvent to fill into histogram
21 TString fNameGeom; // Name of geometry container
22
23 Int_t fType; // Type to used for calling GetPixelContent
24
25 Float_t fThreshold; // Count pixel above/below this threshold
26 Char_t fUseThreshold; // Use a threshold? Which direction has it?
27
28 void Init(const char *name, const char *title);
29
30 Bool_t SetupFill(const MParList *pList);
31 Bool_t Fill(const MParContainer *par, const Stat_t w=1);
32
33public:
34 enum { kIsLowerBound=1, kIsUpperBound=-1, kNoBound=0 };
35
36 MHCamEvent(const char *name=NULL, const char *title=NULL);
37 MHCamEvent(Int_t type, const char *name=NULL, const char *title=NULL);
38 ~MHCamEvent();
39
40 void SetNameEvt(const TString name) { fNameEvt = name; }
41 void SetNameGeom(const TString name) { fNameGeom = name; }
42 void SetType(Int_t type) { fType = type; }
43
44 TH1 *GetHistByName(const TString name="");
45
46 void Paint(Option_t *o="");
47 void Draw(Option_t *o="");
48
49 void PrintOutliers(Float_t s) const;
50
51 void SetThreshold(Float_t f, Char_t direction=kIsLowerBound) { fThreshold = f; fUseThreshold=direction; }
52 void EnableSqrtVariance(Bool_t b=kTRUE);
53
54 ClassDef(MHCamEvent, 1) // Histogram to sum camera events
55};
56
57#endif
Note: See TracBrowser for help on using the repository browser.