Line | |
---|
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 MMcTrig;
|
---|
14 | class MHMcRate;
|
---|
15 |
|
---|
16 | class MMcTriggerRateCalc : public MTask
|
---|
17 | {
|
---|
18 | private:
|
---|
19 | MMcEvt *fMcEvt; //!
|
---|
20 |
|
---|
21 | TObjArray *fMcRate;
|
---|
22 | TObjArray *fMcTrig;
|
---|
23 |
|
---|
24 | UInt_t fNum; // decoded dimension
|
---|
25 | UInt_t fFirst;
|
---|
26 | UInt_t fLast;
|
---|
27 |
|
---|
28 | Float_t fTrigger[10]; // Number of triggered showers
|
---|
29 | Float_t fShowers; // Number of simulated showers
|
---|
30 | Float_t fAnalShow; // Number of analysed showers
|
---|
31 |
|
---|
32 | Int_t fPartId; // Incident particle that generates showers
|
---|
33 |
|
---|
34 | void Init(int dim, int part, float *trigbg,
|
---|
35 | float simbg, const char *name, const char *title);
|
---|
36 |
|
---|
37 | MHMcRate *GetRate(UInt_t i) const { return (MHMcRate*)((*fMcRate)[i]); }
|
---|
38 | MMcTrig *GetTrig(UInt_t i) const { return (MMcTrig*)((*fMcTrig)[i]); }
|
---|
39 |
|
---|
40 | public:
|
---|
41 | MMcTriggerRateCalc(int dim=0, int part=14, float *trigbg=NULL,
|
---|
42 | float simbg=100000,
|
---|
43 | const char *name=NULL, const char *title=NULL);
|
---|
44 |
|
---|
45 | MMcTriggerRateCalc(float rate, int dim, int part, float *trigbg,
|
---|
46 | float simbg,
|
---|
47 | const char *name=NULL, const char *title=NULL);
|
---|
48 |
|
---|
49 | ~MMcTriggerRateCalc();
|
---|
50 |
|
---|
51 | Bool_t PreProcess(MParList *pList);
|
---|
52 | Bool_t Process();
|
---|
53 | Bool_t PostProcess();
|
---|
54 |
|
---|
55 | ClassDef(MMcTriggerRateCalc, 0) // Task to compute the trigger rate
|
---|
56 | };
|
---|
57 |
|
---|
58 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.