source: trunk/MagicSoft/Mars/mmontecarlo/MMcCollectionAreaCalc.h@ 6491

Last change on this file since 6491 was 6491, checked in by moralejo, 20 years ago
*** empty log message ***
File size: 1.1 KB
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
11class MParList;
12class MMcEvt;
13class MMcEvtBasic;
14class MMcTrig;
15class MHMcCollectionArea;
16class MBinning;
17
18class MMcCollectionAreaCalc : public MTask
19{
20private:
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
42public:
43 MMcCollectionAreaCalc(const char *input = NULL,
44 const char *name = NULL, const char *title = NULL);
45
46 void SetSpectrum(TF1 *f) { fSpectrum = f; }
47
48 ClassDef(MMcCollectionAreaCalc, 0) // Task to calculate the collection area histogram
49};
50
51#endif
52
Note: See TracBrowser for help on using the repository browser.