source: trunk/MagicSoft/Mars/mtemp/mucm/classes/MHFlux.h@ 5450

Last change on this file since 5450 was 5450, checked in by marcos, 20 years ago
*** empty log message ***
File size: 867 bytes
Line 
1#ifndef MARS_MHFlux
2#define MARS_MHFlux
3
4#ifndef MARS_MH
5#include "MH.h"
6#endif
7
8#ifndef ROOT_TH3
9#include <TH2.h>
10#endif
11
12#ifndef ROOT_TH1
13#include <TH1.h>
14#endif
15
16
17class MParList;
18
19class MHExcessEnergyTheta;
20class MHMcCollectionArea;
21class MHEffectiveOnTime;
22
23
24class MHFlux : public MH
25{
26private:
27
28 TH2D fHist;
29 TH1D fAverageFlux;
30
31 Bool_t SetupFill(const MParList *pList);
32 Bool_t ReInit(MParList *pList);
33
34
35public:
36
37 MHFlux(const char *name=NULL, const char *title=NULL);
38
39 void Calc(MHExcessEnergyTheta* hex, MHMcCollectionArea* area, MHEffectiveOnTime* hEffTime);
40
41 Bool_t Fill(const MParContainer *par, const Stat_t w=1);
42
43 TH2D *GetHist() { return &fHist; }
44 TH1D *GetAverageFlux() { return &fAverageFlux; }
45
46 void Draw(Option_t *option="");
47
48 ClassDef(MHFlux, 1) //2D-histogram of Flux vs. Energy and theta
49};
50
51#endif
Note: See TracBrowser for help on using the repository browser.