source: branches/removing_cpp11_features/mmontecarlo/MMcTriggerRateCalc.h@ 19847

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