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

Last change on this file since 3819 was 2207, checked in by tbretz, 21 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
41 Int_t PreProcess(MParList* pList);
42 Int_t Process();
43 Int_t PostProcess();
44
45public:
46 MMcThresholdCalc(const Int_t dim = 0,
47 const char* name = NULL, const char* title = NULL);
48 ~MMcThresholdCalc();
49
50 ClassDef(MMcThresholdCalc, 0) // Task to compute the energy threshold
51};
52
53#endif
54
55
56
Note: See TracBrowser for help on using the repository browser.