source: trunk/MagicSoft/Mars/mhist/MHPixVsTime.h@ 2419

Last change on this file since 2419 was 2244, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 992 bytes
Line 
1#ifndef MARS_MHPixVsTime
2#define MARS_MHPixVsTime
3
4#ifndef MARS_MH
5#include "MH.h"
6#endif
7
8#ifndef ROOT_TGraph
9#include <TGraph.h>
10#endif
11
12class MHCamera;
13class MCamEvent;
14class MGeomCam;
15
16class MHPixVsTime : public MH
17{
18private:
19 TGraph fGraph;
20 Int_t fIndex;
21
22 MCamEvent *fEvt; //! the current event
23 MGeomCam *fCam; //! the camera geometry
24
25 TString fNameEvt;
26
27 Int_t fType;
28 Int_t fTypeErr;
29
30 Bool_t SetupFill(const MParList *pList);
31 Bool_t Fill(const MParContainer *par, const Stat_t w=1);
32 Bool_t Finalize();
33
34public:
35 MHPixVsTime(Int_t idx=0, const char *name=NULL, const char *title=NULL);
36 ~MHPixVsTime();
37
38 void SetNameEvt(const TString name) { fNameEvt = name; }
39 void SetType(Int_t type, Int_t e=-1) { fType = type; fTypeErr=e; }
40
41 TH1 *GetHistByName(const TString name="");
42 TGraph &GetGraph() { return fGraph; }
43
44 void Draw(Option_t *o="");
45
46 ClassDef(MHPixVsTime, 1) // Histogram to sum camera events
47};
48
49#endif
Note: See TracBrowser for help on using the repository browser.