source: trunk/Mars/manalysis/MEnergyEstParam.h@ 17859

Last change on this file since 17859 was 5729, checked in by tbretz, 20 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]; // FIXME!
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 Int_t PreProcess(MParList *plist);
43 Int_t Process();
44
45public:
46 MEnergyEstParam(const char *hil="MHillas", const char *name=NULL, const char *title=NULL);
47 ~MEnergyEstParam();
48
49 void Add(const TString hillas, const TString energy="MEnergyEst");
50
51 void InitMapping(MHMatrix *mat);
52 void StopMapping();
53
54 Int_t GetNumCoeff() const { return fA.GetSize()+fB.GetSize(); }
55
56 void SetCoeff(const TArrayD &arr);
57 void SetCoeffA(const TArrayD &arr);
58 void SetCoeffB(const TArrayD &arr);
59
60 void SetVariables(const TArrayD &arr) { SetCoeff(arr); }
61
62 Double_t GetCoeff(Int_t i) { return i<fA.GetSize()? fA[i] : fB[i-fA.GetSize()]; }
63
64 void Print(Option_t *o=NULL) const;
65
66 ClassDef(MEnergyEstParam, 0) // Task to estimate the energy
67};
68
69#endif
Note: See TracBrowser for help on using the repository browser.