source: trunk/MagicSoft/Mars/manalysis/MEnergyEstParamDanielMkn421.h@ 7611

Last change on this file since 7611 was 2272, checked in by wittek, 21 years ago
*** empty log message ***
File size: 1.4 KB
Line 
1#ifndef MARS_MEnergyEstParamDanielMkn421
2#define MARS_MEnergyEstParamDanielMkn421
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 MNewImagePar;
16class MMcEvt;
17class MHMatrix;
18
19class MEnergyEstParamDanielMkn421 : public MTask
20{
21private:
22 Int_t fMap[100]; // FIXME!
23
24 MHMatrix *fMatrix;
25
26 TList *fPairs;
27
28 TList *fHillasSrc;
29 TList *fEnergy;
30
31 MHillas *fHillas;
32 MNewImagePar *fNewImagePar;
33
34 TString fHillasName;
35
36 TArrayD fA;
37 TArrayD fB;
38
39 MMcEvt *fMc;
40
41 void InitCoefficients();
42
43 Double_t GetVal(Int_t i) const;
44 Double_t fMm2Deg;
45
46 Int_t PreProcess(MParList *plist);
47 Int_t Process();
48
49public:
50 MEnergyEstParamDanielMkn421(const char *hil="MHillas", const char *name=NULL, const char *title=NULL);
51 ~MEnergyEstParamDanielMkn421();
52
53 void Add(const TString hillas, const TString energy="MEnergyEst");
54
55 void InitMapping(MHMatrix *mat);
56 void StopMapping();
57
58 Int_t GetNumCoeff() const { return fA.GetSize()+fB.GetSize(); }
59
60 void SetCoeff(const TArrayD &arr);
61 void SetCoeffA(const TArrayD &arr);
62 void SetCoeffB(const TArrayD &arr);
63
64 Double_t GetCoeff(Int_t i) { return i<fA.GetSize()? fA[i] : fB[i-fA.GetSize()]; }
65
66 void Print(Option_t *o=NULL) const;
67
68 ClassDef(MEnergyEstParamDanielMkn421, 0) // Task to estimate the energy
69};
70
71#endif
72
73
74
75
76
77
78
79
Note: See TracBrowser for help on using the repository browser.