source: tags/Mars-V0.4/mmontecarlo/MMcThresholdCalc.h

Last change on this file was 893, 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
28 const MMcEvt *fMcEvt; // Container with Monte Carlo information
29
30 TObjArray *fMcTrig; // Container with Monte Carlo trigger information
31 TObjArray *fEnergy; // Container where we save the energy (threshold)
32
33 const static Float_t fSqrt2; // sqrt(2)
34
35 MMcTrig *GetTrig (UInt_t i) { return (MMcTrig*) (*fMcTrig)[i]; }
36 MHMcEnergy *GetHEnergy(UInt_t i) { return (MHMcEnergy*)(*fEnergy)[i]; }
37
38public:
39
40 MMcThresholdCalc(const Int_t dim = 0,
41 const char* name = NULL, const char* title = NULL);
42 ~MMcThresholdCalc();
43
44 Bool_t PreProcess(MParList* pList);
45 Bool_t Process();
46 Bool_t PostProcess();
47
48 ClassDef(MMcThresholdCalc, 0) // Task to compute the energy threshold
49};
50
51#endif
52
53
54
Note: See TracBrowser for help on using the repository browser.