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

Last change on this file since 7902 was 7035, 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
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
26 Float_t fThreshold; // Count pixel above/below this threshold
27 Char_t fUseThreshold; // Use a threshold? Which direction has it?
28
29 void Init(const char *name, const char *title);
30
31 Bool_t SetupFill(const MParList *pList);
32 Bool_t Fill(const MParContainer *par, const Stat_t w=1);
33
34public:
35 enum { kIsLowerBound=1, kIsUpperBound=-1, kNoBound=0 };
36
37 MHCamEvent(const char *name=NULL, const char *title=NULL);
38 MHCamEvent(Int_t type, const char *name=NULL, const char *title=NULL);
39 ~MHCamEvent();
40
41 void SetNameEvt(const TString name) { fNameEvt = name; }
42 void SetNameGeom(const TString name) { fNameGeom = name; }
43 void SetType(Int_t type) { fType = type; }
44
45 TH1 *GetHistByName(const TString name="") const;
46
47 void Paint(Option_t *o="");
48 void Draw(Option_t *o="");
49
50 void PrintOutliers(Float_t s) const;
51
52 void SetThreshold(Float_t f=0, Char_t direction=kIsLowerBound) { fThreshold = f; fUseThreshold=direction; }
53
54 ClassDef(MHCamEvent, 1) // Histogram to sum camera events
55};
56
57#endif
Note: See TracBrowser for help on using the repository browser.