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

Last change on this file since 8389 was 8291, checked in by tbretz, 18 years ago
*** empty log message ***
File size: 1.9 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 Bool_t fErrorRelative; // Display relative error?
27
28 Float_t fThreshold; // Count pixel above/below this threshold
29 Char_t fUseThreshold; // Use a threshold? Which direction has it?
30
31 void Init(const char *name, const char *title);
32
33 Bool_t SetupFill(const MParList *pList);
34 Bool_t Fill(const MParContainer *par, const Stat_t w=1);
35
36public:
37 enum { kIsLowerBound=1, kIsUpperBound=-1, kNoBound=0 };
38
39 MHCamEvent(const char *name=NULL, const char *title=NULL);
40 MHCamEvent(Int_t type, const char *name=NULL, const char *title=NULL);
41 ~MHCamEvent();
42
43 void SetNameEvt(const TString name) { fNameEvt = name; }
44 void SetNameGeom(const TString name) { fNameGeom = name; }
45 void SetType(Int_t type) { fType = type; }
46
47 void SetHist(const MHCamera &cam);
48 MHCamera *GetHist() { return fSum; }
49 const MHCamera *GetHist() const { return fSum; }
50
51 TH1 *GetHistByName(const TString name="") const;
52
53 void Paint(Option_t *o="");
54 void Draw(Option_t *o=""); //*MENU*
55
56 void PrintOutliers(Float_t s) const;
57
58 void SetThreshold(Float_t f=0, Char_t direction=kIsLowerBound) { fThreshold = f; fUseThreshold=direction; }
59 void SetErrorSpread(Bool_t b=kTRUE) { fErrorSpread = b; }
60 void SetErrorRelative(Bool_t b=kTRUE) { fErrorRelative = b; }
61
62 ClassDef(MHCamEvent, 2) // Histogram to sum camera events
63};
64
65#endif
Note: See TracBrowser for help on using the repository browser.