source: trunk/Mars/mmontecarlo/MMcCollectionAreaCalc.h@ 17284

Last change on this file since 17284 was 6509, 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 *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.