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

Last change on this file since 983 was 983, 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
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
42public:
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.