source: trunk/Mars/mhvstime/MHSectorVsTime.h@ 10075

Last change on this file since 10075 was 9303, checked in by tbretz, 16 years ago
*** empty log message ***
File size: 2.8 KB
Line 
1/* ======================================================================== *\
2! $Name: not supported by cvs2svn $:$Id: MHSectorVsTime.h,v 1.9 2009-02-07 20:47:52 tbretz Exp $
3\* ======================================================================== */
4#ifndef MARS_MHSectorVsTime
5#define MARS_MHSectorVsTime
6
7#ifndef MARS_MH
8#include "MH.h"
9#endif
10
11#ifndef MARS_MHCamera
12#include "MHCamera.h"
13#endif
14
15class MHCamera;
16class MCamEvent;
17class MGeomCam;
18
19class MRawEvtHeader;
20class MTime;
21class TGraph;
22
23class MHSectorVsTime : public MH
24{
25private:
26 static const TString gsDefName;
27 static const TString gsDefTitle;
28
29private:
30 TGraph *fGraph; // The TGraph output to the display
31
32 MCamEvent *fEvt; //! pointer to the current event
33 MGeomCam *fCam; //! pointer the camera geometry
34
35 MRawEvtHeader *fHeader; //! pointer to the event header (DAQ Evt number instead of counter)
36 MTime *fTime; //! pointer to event time (time instead of number)
37
38 MHCamera fHCamera; //! The camera to be used for calculation
39
40 Double_t fMin; //! Calculation of minimum
41 Double_t fMax; //! Calculation of maximum
42
43 Double_t fMinimum; // User defined minimum
44 Double_t fMaximum; // User defined maximum
45
46 Bool_t fUseMedian; // Whether to display median/dev instead of mean/rms
47
48 TString fNameEvt; // Name of MCamEvent to be displayed
49 TString fNameTime; // Name of MTime container to be used
50
51 Int_t fType; // Type for mean used in GetPixelContent
52 Int_t fTypeErr; // Type for error used in GetPixelContent (-1 = no error)
53
54 TArrayI fSectors; // Which sectors shell be displayed
55 TArrayI fAreaIndex; // Which pixel sized should be displayed
56
57 // MH
58 Bool_t SetupFill(const MParList *pList);
59 Int_t Fill(const MParContainer *par, const Stat_t w=1);
60 Bool_t Finalize();
61
62public:
63 MHSectorVsTime(const char *name=NULL, const char *title=NULL);
64 ~MHSectorVsTime();
65
66 // Setter
67 void SetNameEvt(const TString name) { fNameEvt = name; }
68 void SetNameTime(const TString name) { fNameTime = name; }
69 void SetType(Int_t type, Int_t e=-1) { fType = type; fTypeErr=e; }
70 void SetSectors(const TArrayI &s) { fSectors=s; }
71 void SetAreaIndex(const TArrayI &a) { fAreaIndex=a; }
72
73 void SetMinimum(Double_t min=-1111) { fMinimum = min; }
74 void SetMaximum(Double_t max=-1111) { fMaximum = max; }
75
76 void SetUseMedian(Bool_t b=kTRUE) { fUseMedian=b; }
77
78 // Getter
79 TH1 *GetHistByName(const TString name="") const;
80 TGraph *GetGraph() { return fGraph; }
81
82 // TObject
83 void SetName(const char *name);
84 void SetTitle(const char *title);
85
86 void Draw(Option_t *o=NULL);
87 void Paint(Option_t *o=NULL);
88
89 void RecursiveRemove(TObject *obj);
90
91 ClassDef(MHSectorVsTime, 3) // Histogram to sum camera events
92};
93
94#endif
Note: See TracBrowser for help on using the repository browser.