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

Last change on this file since 1788 was 1783, checked in by moralejo, 22 years ago
*** empty log message ***
File size: 1.7 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 MMcRunHeader;
14class MMcCorsikaRunHeader;
15class MMcTrig;
16class MHMcRate;
17
18class MMcTriggerRateCalc : public MTask
19{
20private:
21 MMcEvt *fMcEvt; //!
22
23 TObjArray *fMcRate;
24 TObjArray *fMcTrig;
25
26 MMcRunHeader *fMcRunHeader;
27 MMcCorsikaRunHeader *fMcCorRunHeader;
28
29 UInt_t fNum; // decoded dimension
30 UInt_t fFirst;
31 UInt_t fLast;
32
33 Float_t* fTrigNSB; // Number of triggers due to NSB alone
34 Float_t fSimNSB; // Number of simulated NSB-only events
35
36 Float_t* fTrigger; // Number of triggered showers
37 Float_t fShowers; // Number of simulated showers
38 Float_t fAnalShow; // Number of analysed showers
39
40 Int_t fPartId; // Incident particle that generates showers
41
42 void Init(int dim, float *trigbg,
43 float simbg, const char *name, const char *title);
44
45 MHMcRate *GetRate(UInt_t i) const { return (MHMcRate*)((*fMcRate)[i]); }
46 MMcTrig *GetTrig(UInt_t i) const { return (MMcTrig*)((*fMcTrig)[i]); }
47
48public:
49 MMcTriggerRateCalc(int dim=0, float *trigbg=NULL, float simbg=100000,
50 const char *name=NULL, const char *title=NULL);
51
52 MMcTriggerRateCalc(float rate, int dim, float *trigbg, float simbg,
53 const char *name=NULL, const char *title=NULL);
54
55 ~MMcTriggerRateCalc();
56
57 Bool_t ReInit(MParList *plist);
58
59 Bool_t PreProcess(MParList *pList);
60 Bool_t Process();
61 Bool_t PostProcess();
62
63 ClassDef(MMcTriggerRateCalc, 0) // Task to compute the trigger rate
64};
65
66#endif
Note: See TracBrowser for help on using the repository browser.