Line | |
---|
1 | #ifndef MARS_MMcCollectionAreaCalc
|
---|
2 | #define MARS_MMcCollectionAreaCalc
|
---|
3 |
|
---|
4 | #ifndef MARS_MTask
|
---|
5 | #include "MTask.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #include <TH2.h>
|
---|
9 | #include <TF1.h>
|
---|
10 |
|
---|
11 | class MParList;
|
---|
12 | class MMcEvt;
|
---|
13 | class MMcEvtBasic;
|
---|
14 | class MMcTrig;
|
---|
15 | class MHMcCollectionArea;
|
---|
16 | class MBinning;
|
---|
17 |
|
---|
18 | class MMcCollectionAreaCalc : public MTask
|
---|
19 | {
|
---|
20 | private:
|
---|
21 | const MMcEvt *fMcEvt;
|
---|
22 | const MMcEvtBasic *fMcEvtBasic;
|
---|
23 | const MMcTrig *fMcTrig;
|
---|
24 |
|
---|
25 | MBinning *fBinsTheta;
|
---|
26 | MBinning *fBinsEnergy;
|
---|
27 | // Coarse zenith angle and energy bins used in the analysis
|
---|
28 |
|
---|
29 | TF1 *fSpectrum;
|
---|
30 | // Tentative energy spectrum. This modifies slightly the calculation
|
---|
31 | // of the effective area (see MHMcCollectionArea::Calc)
|
---|
32 |
|
---|
33 |
|
---|
34 | MHMcCollectionArea *fCollArea;
|
---|
35 |
|
---|
36 | TString fObjName;
|
---|
37 |
|
---|
38 | Int_t PreProcess(MParList *pList);
|
---|
39 | Int_t Process();
|
---|
40 | Int_t PostProcess();
|
---|
41 |
|
---|
42 | public:
|
---|
43 | MMcCollectionAreaCalc(const char *name = NULL, const char *title = NULL);
|
---|
44 |
|
---|
45 | void SetSpectrum(TF1 *f) { fSpectrum = f; }
|
---|
46 |
|
---|
47 | ClassDef(MMcCollectionAreaCalc, 0) // Task to calculate the collection area histogram
|
---|
48 | };
|
---|
49 |
|
---|
50 | #endif
|
---|
51 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.