1 | #ifndef MARS_MMcTriggerRateCalc
|
---|
2 | #define MARS_MMcTriggerRateCalc
|
---|
3 |
|
---|
4 | #ifndef ROOT_TObjArray
|
---|
5 | #include <TObjArray.h>
|
---|
6 | #endif
|
---|
7 | #ifndef MARS_MTask
|
---|
8 | #include "MTask.h"
|
---|
9 | #endif
|
---|
10 |
|
---|
11 | class MParList;
|
---|
12 | class MMcEvt;
|
---|
13 | class MMcRunHeader;
|
---|
14 | class MMcCorsikaRunHeader;
|
---|
15 | class MMcTrig;
|
---|
16 | class MHMcRate;
|
---|
17 | class TH1F;
|
---|
18 |
|
---|
19 | class MMcTriggerRateCalc : public MTask
|
---|
20 | {
|
---|
21 | private:
|
---|
22 | MMcEvt *fMcEvt; //!
|
---|
23 |
|
---|
24 | TObjArray *fMcRate;
|
---|
25 | TObjArray *fMcTrig;
|
---|
26 |
|
---|
27 | MMcRunHeader *fMcRunHeader;
|
---|
28 | MMcCorsikaRunHeader *fMcCorRunHeader;
|
---|
29 |
|
---|
30 | UInt_t fNum; // decoded dimension
|
---|
31 | UInt_t fFirst;
|
---|
32 | UInt_t fLast;
|
---|
33 |
|
---|
34 | Float_t *fTrigNSB; // Number of triggers due to NSB alone
|
---|
35 | Float_t fSimNSB; // Number of simulated NSB-only events
|
---|
36 |
|
---|
37 | Float_t *fTrigger; // Number of triggered showers
|
---|
38 | Float_t fShowers; // Number of simulated showers
|
---|
39 | Float_t fAnalShow; // Number of analysed showers
|
---|
40 |
|
---|
41 | Int_t fPartId; // Incident particle that generates showers
|
---|
42 |
|
---|
43 | TH1F *fHist[5];
|
---|
44 |
|
---|
45 | void Init(int dim, float *trigbg,
|
---|
46 | float simbg, const char *name, const char *title);
|
---|
47 |
|
---|
48 | MHMcRate *GetRate(UInt_t i) const { return (MHMcRate*)((*fMcRate)[i]); }
|
---|
49 | MMcTrig *GetTrig(UInt_t i) const { return (MMcTrig*)((*fMcTrig)[i]); }
|
---|
50 |
|
---|
51 | Bool_t ReInit(MParList *plist);
|
---|
52 |
|
---|
53 | Int_t PreProcess(MParList *pList);
|
---|
54 | Int_t Process();
|
---|
55 | Int_t PostProcess();
|
---|
56 |
|
---|
57 | public:
|
---|
58 | MMcTriggerRateCalc(int dim=0, float *trigbg=NULL, float simbg=100000,
|
---|
59 | const char *name=NULL, const char *title=NULL);
|
---|
60 |
|
---|
61 | MMcTriggerRateCalc(float rate, int dim, float *trigbg, float simbg,
|
---|
62 | const char *name=NULL, const char *title=NULL);
|
---|
63 |
|
---|
64 | ~MMcTriggerRateCalc();
|
---|
65 |
|
---|
66 | TH1F* GetHist(Int_t i) {return fHist[i];}
|
---|
67 |
|
---|
68 | void Draw(const Option_t *o="");
|
---|
69 |
|
---|
70 | ClassDef(MMcTriggerRateCalc, 0) // Task to compute the trigger rate
|
---|
71 | };
|
---|
72 |
|
---|
73 | #endif
|
---|