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

Last change on this file since 984 was 984, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 1.6 KB
Line 
1#ifndef MMCTHREASHOLDCALC_H
2#define MMCTHREASHOLDCALC_H
3
4/////////////////////////////////////////////////////////////////////////////
5// //
6// MMcThresholdCalc //
7// //
8// Compute the energy threshold from Monte Carlo data //
9// //
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef MTASK_h
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 Int_t fDimension;
27 Int_t fNum;
28
29 const MMcEvt *fMcEvt; // Container with Monte Carlo information
30
31 TObjArray *fMcTrig; // Container with Monte Carlo trigger information
32 TObjArray *fEnergy; // Container where we save the energy (threshold)
33
34 const static Float_t fSqrt2; // sqrt(2)
35
36 MMcTrig *GetTrig (UInt_t i) { return (MMcTrig*) (*fMcTrig)[i]; }
37 MHMcEnergy *GetHEnergy(UInt_t i) { return (MHMcEnergy*)(*fEnergy)[i]; }
38
39public:
40
41 MMcThresholdCalc(const Int_t dim = 0,
42 const char* name = NULL, const char* title = NULL);
43 ~MMcThresholdCalc();
44
45 Bool_t PreProcess(MParList* pList);
46 Bool_t Process();
47 Bool_t PostProcess();
48
49 ClassDef(MMcThresholdCalc, 0) // Task to compute the energy threshold
50};
51
52#endif
53
54
55
Note: See TracBrowser for help on using the repository browser.