source: trunk/MagicSoft/Mars/mmontecarlo/MMcThresholdCalc.h@ 1154

Last change on this file since 1154 was 1016, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 1.6 KB
Line 
1#ifndef MARS_MMcThresholdCalc
2#define MARS_MMcThresholdCalc
3
4/////////////////////////////////////////////////////////////////////////////
5// //
6// MMcThresholdCalc //
7// //
8// Compute the energy threshold from Monte Carlo data //
9// //
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef MARS_MTask
13#include "MTask.h"
14#endif
15#ifndef ROOT_TObjArray
16#include "TObjArray.h"
17#endif
18
19class MMcEvt;
20class MMcTrig;
21class MHMcEnergy;
22
23class MMcThresholdCalc : public MTask
24{
25private:
26 UInt_t fFirst;
27 UInt_t fLast;
28
29 UInt_t fNum;
30
31 const MMcEvt *fMcEvt; // Container with Monte Carlo information
32
33 TObjArray *fMcTrig; // Container with Monte Carlo trigger information
34 TObjArray *fEnergy; // Container where we save the energy (threshold)
35
36 const static Float_t fSqrt2; // sqrt(2)
37
38 MMcTrig *GetTrig (UInt_t i) { return (MMcTrig*) (*fMcTrig)[i]; }
39 MHMcEnergy *GetHEnergy(UInt_t i) { return (MHMcEnergy*)(*fEnergy)[i]; }
40
41public:
42
43 MMcThresholdCalc(const Int_t dim = 0,
44 const char* name = NULL, const char* title = NULL);
45 ~MMcThresholdCalc();
46
47 Bool_t PreProcess(MParList* pList);
48 Bool_t Process();
49 Bool_t PostProcess();
50
51 ClassDef(MMcThresholdCalc, 0) // Task to compute the energy threshold
52};
53
54#endif
55
56
57
Note: See TracBrowser for help on using the repository browser.