source: trunk/Mars/mhvstime/MHPixVsTime.h@ 17440

Last change on this file since 17440 was 12923, checked in by tbretz, 13 years ago
Added the possibility to set min and max; increased version number accordingly
File size: 1.5 KB
Line 
1#ifndef MARS_MHPixVsTime
2#define MARS_MHPixVsTime
3
4#ifndef MARS_MH
5#include "MH.h"
6#endif
7
8#ifndef ROOT_TGraphErrors
9#include <TGraphErrors.h>
10#endif
11
12class MHCamera;
13class MCamEvent;
14class MGeomCam;
15
16class MRawEvtHeader;
17class MTime;
18
19class MHPixVsTime : public MH
20{
21private:
22 static const TString gsDefName;
23 static const TString gsDefTitle;
24
25 TGraphErrors *fGraph;
26 Int_t fIndex;
27
28 MCamEvent *fEvt; //! the current event
29 MGeomCam *fCam; //! the camera geometry
30
31 MRawEvtHeader *fHeader; //!
32 MTime *fTime; //!
33
34 TString fNameEvt;
35 TString fNameTime;
36
37 Int_t fType;
38 Int_t fTypeErr;
39
40 Double_t fMinimum; // User defined minimum
41 Double_t fMaximum; // User defined maximum
42
43 Bool_t SetupFill(const MParList *pList);
44 Int_t Fill(const MParContainer *par, const Stat_t w=1);
45
46public:
47 MHPixVsTime(Int_t idx=0, const char *name=NULL, const char *title=NULL);
48 ~MHPixVsTime();
49
50 void SetNameEvt(const TString name) { fNameEvt = name; }
51 void SetNameTime(const TString name) { fNameTime = name; }
52 void SetType(Int_t type, Int_t e=-1) { fType = type; fTypeErr=e; }
53
54 void SetMinimum(Double_t min=-1111) { fMinimum = min; }
55 void SetMaximum(Double_t max=-1111) { fMaximum = max; }
56
57 void SetName(const char *name);
58 void SetTitle(const char *title);
59
60 TH1 *GetHistByName(const TString name="") const;
61 TGraph *GetGraph() { return fGraph; }
62
63 void Draw(Option_t *o=NULL);
64
65 ClassDef(MHPixVsTime, 2) // Histogram to sum camera events
66};
67
68#endif
Note: See TracBrowser for help on using the repository browser.