source: branches/Corsika7500Compatibility/mhistmc/MHMcEnergyImpact.h@ 19102

Last change on this file since 19102 was 2043, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 844 bytes
Line 
1#ifndef MARS_MHMcEnergyImpact
2#define MARS_MHMcEnergyImpact
3
4#ifndef MARS_MH
5#include "MH.h"
6#endif
7#ifndef ROOT_TH2
8#include <TH2.h>
9#endif
10
11class MMcEvt;
12
13class MHMcEnergyImpact : public MH
14{
15private:
16 TH2D fHist; // histogram with the logarith of the energy
17
18public:
19 MHMcEnergyImpact(const char *name=NULL, const char *title=NULL);
20
21 void SetName(const char *name);
22 void SetTitle(const char *title);
23
24 Bool_t SetupFill(const MParList *pList);
25 Bool_t Fill(const MParContainer *pcont=NULL, const Stat_t w=1);
26
27 const TH2D *GetHist() { return &fHist; }
28 const TH2D *GetHist() const { return &fHist; }
29
30 TH1 *GetHistByName(const TString name) { return &fHist; }
31
32 void Draw(Option_t* option = "");
33
34 ClassDef(MHMcEnergyImpact, 1) // Histogram container for 2D histogram in Energy and Impact
35};
36
37#endif
Note: See TracBrowser for help on using the repository browser.