1 | #ifndef MTRIGGERRATECALC_H
|
---|
2 | #define MTRIGGERRATECALC_H
|
---|
3 |
|
---|
4 | #ifndef MAGIC_H
|
---|
5 | #include "MAGIC.h"
|
---|
6 | #endif
|
---|
7 | #ifndef ROOT_TObjArray
|
---|
8 | #include <TObjArray.h>
|
---|
9 | #endif
|
---|
10 | #ifndef MTASK_H
|
---|
11 | #include "MTask.h"
|
---|
12 | #endif
|
---|
13 |
|
---|
14 | class MParList;
|
---|
15 | class MMcEvt;
|
---|
16 | class MMcTrig;
|
---|
17 | class MHMcRate;
|
---|
18 |
|
---|
19 | class MMcTriggerRateCalc : public MTask
|
---|
20 | {
|
---|
21 | private:
|
---|
22 | MMcEvt *fMcEvt; //!
|
---|
23 |
|
---|
24 | TObjArray *fMcRate;
|
---|
25 | TObjArray *fMcTrig;
|
---|
26 |
|
---|
27 | Int_t fDimension; // Information about the trigger conditions
|
---|
28 | // in the root file to be read.
|
---|
29 | Int_t fNum; // decoded dimension
|
---|
30 |
|
---|
31 | Float_t fTrigger[10]; // Number of triggered showers
|
---|
32 | Float_t fShowers; // Number of simulated showers
|
---|
33 | Float_t fAnalShow; // Number of analysed showers
|
---|
34 |
|
---|
35 | Int_t fPartId; // Incident particle that generates showers
|
---|
36 |
|
---|
37 | void Init(int dim, int part, float *trigbg,
|
---|
38 | float simbg, const char *name, const char *title);
|
---|
39 |
|
---|
40 | MHMcRate *GetRate(UInt_t i) const { return (MHMcRate*)((*fMcRate)[i]); }
|
---|
41 | MMcTrig *GetTrig(UInt_t i) const { return (MMcTrig*)((*fMcTrig)[i]); }
|
---|
42 |
|
---|
43 | public:
|
---|
44 | MMcTriggerRateCalc(int dim=0, int part=14, float *trigbg=NULL,
|
---|
45 | float simbg=100000,
|
---|
46 | const char *name=NULL, const char *title=NULL);
|
---|
47 |
|
---|
48 | MMcTriggerRateCalc(float rate, int dim, int part, float *trigbg,
|
---|
49 | float simbg,
|
---|
50 | const char *name=NULL, const char *title=NULL);
|
---|
51 |
|
---|
52 | ~MMcTriggerRateCalc();
|
---|
53 |
|
---|
54 | Bool_t PreProcess(MParList *pList);
|
---|
55 | Bool_t Process();
|
---|
56 | Bool_t PostProcess();
|
---|
57 |
|
---|
58 | ClassDef(MMcTriggerRateCalc, 0) // Task to compute the trigger rate
|
---|
59 | };
|
---|
60 |
|
---|
61 | #endif
|
---|