| 1 | #ifndef MTRIGGERRATECALC_H
|
|---|
| 2 | #define MTRIGGERRATECALC_H
|
|---|
| 3 |
|
|---|
| 4 | #ifndef MTASK_H
|
|---|
| 5 | #include "MTask.h"
|
|---|
| 6 | #endif
|
|---|
| 7 |
|
|---|
| 8 | #include "MMcEvt.hxx"
|
|---|
| 9 |
|
|---|
| 10 | class MParList;
|
|---|
| 11 | class MMcTrig ;
|
|---|
| 12 | class MMcEvt;
|
|---|
| 13 | class MHMcRate;
|
|---|
| 14 |
|
|---|
| 15 | class MMcTriggerRateCalc : public MTask {
|
|---|
| 16 | private:
|
|---|
| 17 | MMcTrig *fMcTrig[10] ; //!
|
|---|
| 18 | MMcEvt *fMcEvt; //!
|
|---|
| 19 |
|
|---|
| 20 | MHMcRate *fMcRate[10] ; //!
|
|---|
| 21 |
|
|---|
| 22 | Int_t fDimension; // Information about the trigger conditions
|
|---|
| 23 | // in the root file to be read.
|
|---|
| 24 |
|
|---|
| 25 | Float_t fTrigger[10]; // Number of triggered showers
|
|---|
| 26 | Float_t fShowers; // Number of simulated showers
|
|---|
| 27 | Float_t fAnalShow; // Number of analysed showers
|
|---|
| 28 |
|
|---|
| 29 | Int_t fPartId; // Incident particle that generates showers
|
|---|
| 30 |
|
|---|
| 31 | Float_t fSpecInd; // Spectral indec of the simualtion
|
|---|
| 32 | Float_t fFlux0; // Flux 0 for the differential flux
|
|---|
| 33 |
|
|---|
| 34 | public:
|
|---|
| 35 | MMcTriggerRateCalc (const char *name=NULL, const char *title=NULL);
|
|---|
| 36 | MMcTriggerRateCalc (int dim, int part, float *trigbg, float simbg, float rate,
|
|---|
| 37 | const char *name=NULL, const char *title=NULL);
|
|---|
| 38 | MMcTriggerRateCalc (int dim, int part, float *trigbg, float simbg, float spec,
|
|---|
| 39 | float flux0, const char *name=NULL, const char *title=NULL);
|
|---|
| 40 |
|
|---|
| 41 | Bool_t PreProcess(MParList *pList);
|
|---|
| 42 | Bool_t Process() ;
|
|---|
| 43 | Bool_t PostProcess() ;
|
|---|
| 44 |
|
|---|
| 45 | ClassDef(MMcTriggerRateCalc, 0) // Task to compute the trigger rate
|
|---|
| 46 |
|
|---|
| 47 | };
|
|---|
| 48 |
|
|---|
| 49 | #endif
|
|---|