Line | |
---|
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 |
|
---|
30 | Float_t fTrigger[10]; // Number of triggered showers
|
---|
31 | Float_t fShowers; // Number of simulated showers
|
---|
32 | Float_t fAnalShow; // Number of analysed showers
|
---|
33 |
|
---|
34 | Int_t fPartId; // Incident particle that generates showers
|
---|
35 |
|
---|
36 | void Init(int dim, int part, float *trigbg,
|
---|
37 | float simbg, const char *name, const char *title);
|
---|
38 |
|
---|
39 | MHMcRate *GetRate(UInt_t i) const { return (MHMcRate*)((*fMcRate)[i]); }
|
---|
40 | MMcTrig *GetTrig(UInt_t i) const { return (MMcTrig*)((*fMcTrig)[i]); }
|
---|
41 |
|
---|
42 | public:
|
---|
43 | MMcTriggerRateCalc(int dim=0, int part=14, float *trigbg=NULL,
|
---|
44 | float simbg=100000,
|
---|
45 | const char *name=NULL, const char *title=NULL);
|
---|
46 |
|
---|
47 | MMcTriggerRateCalc(float rate, int dim, int part, float *trigbg,
|
---|
48 | float simbg,
|
---|
49 | const char *name=NULL, const char *title=NULL);
|
---|
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.