source: trunk/MagicSoft/Mars/manalysis/MEnergyEstParam.h@ 2152

Last change on this file since 2152 was 1886, checked in by moralejo, 22 years ago
*** empty log message ***
File size: 1.3 KB
Line 
1#ifndef MARS_MEnergyEstParam
2#define MARS_MEnergyEstParam
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7
8#ifndef ROOT_TArrayD
9#include <TArrayD.h>
10#endif
11
12class MHillasSrc;
13class MEnergyEst;
14class MHillas;
15class MMcEvt;
16class MHMatrix;
17
18class MEnergyEstParam : public MTask
19{
20private:
21 Int_t fMap[100];
22
23 MHMatrix *fMatrix;
24
25 TList *fPairs;
26
27 TList *fHillasSrc;
28 TList *fEnergy;
29
30 MHillas *fHillas;
31 TString fHillasName;
32
33 TArrayD fA;
34 TArrayD fB;
35
36 MMcEvt *fMc;
37
38 void InitCoefficients();
39
40 Double_t GetVal(Int_t i) const;
41
42
43public:
44 MEnergyEstParam(const char *hil="MHillas", const char *name=NULL, const char *title=NULL);
45 ~MEnergyEstParam();
46
47 Bool_t PreProcess(MParList *plist);
48 Bool_t Process();
49
50 void Add(const TString hillas, const TString energy="MEnergyEst");
51
52 void InitMapping(MHMatrix *mat);
53 void StopMapping();
54
55 Int_t GetNumCoeff() const { return fA.GetSize()+fB.GetSize(); }
56
57 void SetCoeff(const TArrayD &arr);
58 void SetCoeffA(const TArrayD &arr);
59 void SetCoeffB(const TArrayD &arr);
60
61 Double_t GetCoeff(Int_t i) { return i<fA.GetSize()? fA[i] : fB[i-fA.GetSize()]; }
62
63 void Print(Option_t *o=NULL);
64
65 ClassDef(MEnergyEstParam, 0) // Task to estimate the energy
66};
67
68#endif
Note: See TracBrowser for help on using the repository browser.