source: trunk/MagicSoft/Mars/mhist/MHMcEnergyImpact.h@ 1921

Last change on this file since 1921 was 1574, checked in by tbretz, 22 years ago
*** empty log message ***
  • Property svn:executable set to *
File size: 904 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 ~MHMcEnergyImpact();
21
22 void SetName(const char *name);
23 void SetTitle(const char *title);
24
25 Bool_t SetupFill(const MParList *pList);
26 Bool_t Fill(const MParContainer *pcont=NULL);
27
28 const TH2D *GetHist() { return &fHist; }
29 const TH2D *GetHist() const { return &fHist; }
30
31 TH1 *GetHistByName(const TString name) { return &fHist; }
32
33 void Draw(Option_t* option = "");
34 TObject *DrawClone(Option_t* option = "") const;
35
36 ClassDef(MHMcEnergyImpact, 1) // Histogram container for 2D histogram in Energy and Impact
37};
38
39#endif
Note: See TracBrowser for help on using the repository browser.