Last change
on this file since 1788 was 1574, checked in by tbretz, 22 years ago |
*** empty log message ***
|
-
Property svn:executable
set to
*
|
File size:
1.1 KB
|
Line | |
---|
1 | #ifndef MARS_MHMcEfficiencyEnergy
|
---|
2 | #define MARS_MHMcEfficiencyEnergy
|
---|
3 |
|
---|
4 | #ifndef MARS_MParContainer
|
---|
5 | #include "MParContainer.h"
|
---|
6 | #endif
|
---|
7 | #ifndef ROOT_TH2
|
---|
8 | #include <TH2.h>
|
---|
9 | #endif
|
---|
10 |
|
---|
11 | class MMcEvt;
|
---|
12 | class MHMcEnergyImpact;
|
---|
13 |
|
---|
14 | class MHMcEfficiencyEnergy : public MParContainer
|
---|
15 | {
|
---|
16 | private:
|
---|
17 |
|
---|
18 | TH1D fHist; // histogram with the logarith of the energy
|
---|
19 |
|
---|
20 | // const MMcEvt *fMcEvt; //! container to fill histogram from
|
---|
21 |
|
---|
22 | public:
|
---|
23 | MHMcEfficiencyEnergy(const char *name=NULL, const char *title=NULL);
|
---|
24 | ~MHMcEfficiencyEnergy();
|
---|
25 |
|
---|
26 | void SetName(const char *name);
|
---|
27 | void SetTitle(const char *title);
|
---|
28 |
|
---|
29 | const TH1D *GetHist() { return &fHist; }
|
---|
30 | const TH1D *GetHist() const { return &fHist; }
|
---|
31 |
|
---|
32 | TH1 *GetHistByName(const TString name) { return &fHist; }
|
---|
33 |
|
---|
34 | void Draw(Option_t* option = "");
|
---|
35 | TObject *DrawClone(Option_t* option = "") const;
|
---|
36 |
|
---|
37 | void Calc(const TH2D &hsel, const TH2D &hall);
|
---|
38 | void Calc(const MHMcEnergyImpact &mcsel, const MHMcEnergyImpact &mcall);
|
---|
39 |
|
---|
40 | ClassDef(MHMcEfficiencyEnergy, 1) // Histogram container for 1D trigger efficiency in energy
|
---|
41 | };
|
---|
42 |
|
---|
43 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.