source: trunk/MagicSoft/Mars/mhist/MHCurrents.h@ 3092

Last change on this file since 3092 was 2178, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.2 KB
Line 
1#ifndef MARS_MHCurrents
2#define MARS_MHCurrents
3
4#ifndef MARS_MH
5#include "MH.h"
6#endif
7
8#ifndef ROOT_TH1
9#include <TH1.h>
10#endif
11
12#ifndef ROOT_TArrayF
13#include <TArrayF.h>
14#endif
15
16class MCurrents;
17class MGeomCam;
18class MCamDisplay;
19
20class MHCurrents : public MH
21{
22private:
23 TArrayF fSum; // storing the sum
24 TArrayF fRms; // storing the rms
25 Int_t fEntries; // number of entries in the histogram
26 MGeomCam *fCam; // the present geometry
27 MCurrents *fEvt; //! the current event
28 MCamDisplay *fDispl; //! the camera display
29
30 TH1F fHist;
31
32public:
33 MHCurrents(const char *name=NULL, const char *title=NULL);
34 ~MHCurrents();
35
36 void Clear(const Option_t *o="");
37
38 Bool_t SetupFill(const MParList *pList);
39 Bool_t Fill(const MParContainer *par, const Stat_t w=1);
40 Bool_t Finalize();
41
42 TH1 *GetHistByName(const TString name) { return NULL; }
43
44 const TArrayF &GetSum() const { return fSum; }
45 const TArrayF &GetRms() const { return fRms; }
46
47 const TH1F &GetHist() const { return fHist; }
48
49 void Draw(Option_t *opt="");
50 void Paint(Option_t *option="");
51
52 ClassDef(MHCurrents, 1) // Histogram to sum camera events
53};
54
55#endif
Note: See TracBrowser for help on using the repository browser.