source: trunk/MagicSoft/Mars/mmontecarlo/MMcTriggerRateCalc.h@ 959

Last change on this file since 959 was 898, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 1.7 KB
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
14class MParList;
15class MMcEvt;
16class MMcTrig;
17class MHMcRate;
18
19class MMcTriggerRateCalc : public MTask
20{
21private:
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 Float_t fSpecInd; // Spectral indec of the simualtion
37 Float_t fFlux0; // Flux 0 for the differential flux
38
39 void Init(int dim, int part, float *trigbg,
40 float simbg, float spec, float flux0,
41 const char *name, const char *title);
42
43 MHMcRate *GetRate(UInt_t i) const { return (MHMcRate*)((*fMcRate)[i]); }
44 MMcTrig *GetTrig(UInt_t i) const { return (MMcTrig*)((*fMcTrig)[i]); }
45
46public:
47 MMcTriggerRateCalc(int dim=0, int part=14, float *trigbg=NULL,
48 float simbg=100000, float spec=2.75, float flux0=10.92e-2,
49 const char *name=NULL, const char *title=NULL);
50
51 MMcTriggerRateCalc(float rate, int dim, int part, float *trigbg,
52 float simbg,
53 const char *name=NULL, const char *title=NULL);
54
55 Bool_t PreProcess(MParList *pList);
56 Bool_t Process();
57 Bool_t PostProcess();
58
59 ClassDef(MMcTriggerRateCalc, 0) // Task to compute the trigger rate
60};
61
62#endif
Note: See TracBrowser for help on using the repository browser.