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

Last change on this file since 1508 was 1376, checked in by bigongia, 22 years ago
*** empty log message ***
File size: 1.5 KB
Line 
1#ifndef MARS_MMcTriggerRateCalc
2#define MARS_MMcTriggerRateCalc
3
4#ifndef ROOT_TObjArray
5#include <TObjArray.h>
6#endif
7#ifndef MARS_MTask
8#include "MTask.h"
9#endif
10
11class MParList;
12class MMcEvt;
13class MMcTrig;
14class MHMcRate;
15
16class MMcTriggerRateCalc : public MTask
17{
18private:
19 MMcEvt *fMcEvt; //!
20
21 TObjArray *fMcRate;
22 TObjArray *fMcTrig;
23
24 UInt_t fNum; // decoded dimension
25 UInt_t fFirst;
26 UInt_t fLast;
27
28 Float_t* fTrigger; // Number of triggered showers
29
30 Float_t fShowers; // Number of simulated showers
31 Float_t fAnalShow; // Number of analysed showers
32
33 Int_t fPartId; // Incident particle that generates showers
34
35 void Init(int dim, int part, float *trigbg,
36 float simbg, const char *name, const char *title);
37
38 MHMcRate *GetRate(UInt_t i) const { return (MHMcRate*)((*fMcRate)[i]); }
39 MMcTrig *GetTrig(UInt_t i) const { return (MMcTrig*)((*fMcTrig)[i]); }
40
41public:
42 MMcTriggerRateCalc(int dim=0, int part=14, float *trigbg=NULL,
43 float simbg=100000,
44 const char *name=NULL, const char *title=NULL);
45
46 MMcTriggerRateCalc(float rate, int dim, int part, float *trigbg,
47 float simbg,
48 const char *name=NULL, const char *title=NULL);
49
50 ~MMcTriggerRateCalc();
51
52 Bool_t PreProcess(MParList *pList);
53 Bool_t Process();
54 Bool_t PostProcess();
55
56 ClassDef(MMcTriggerRateCalc, 0) // Task to compute the trigger rate
57};
58
59#endif
Note: See TracBrowser for help on using the repository browser.