source: trunk/MagicSoft/Mars/mhistmc/MHMcEnergyImpact.h@ 1999

Last change on this file since 1999 was 1992, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 918 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, Double_t w=1);
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.