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

Last change on this file since 992 was 988, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 1.6 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 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
43public:
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
Note: See TracBrowser for help on using the repository browser.