1 | #ifndef MARS_MMcEnergyEst
|
---|
2 | #define MARS_MMcEnergyEst
|
---|
3 |
|
---|
4 | #ifndef MARS_MParContainer
|
---|
5 | #include "MParContainer.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifndef ROOT_TArrayD
|
---|
9 | #include <TArrayD.h>
|
---|
10 | #endif
|
---|
11 |
|
---|
12 | class MMcEnergyEst : public MParContainer
|
---|
13 | {
|
---|
14 | private:
|
---|
15 |
|
---|
16 | Char_t *fInFile, *fOutFile;
|
---|
17 | Char_t *fHillasName, *fHillasSrcName, *fHadronnessName;
|
---|
18 | Int_t fNevents;
|
---|
19 | Float_t fMaxHadronness, fMaxAlpha, fMaxDist;
|
---|
20 |
|
---|
21 | TArrayD fA;
|
---|
22 | TArrayD fB;
|
---|
23 |
|
---|
24 | public:
|
---|
25 | MMcEnergyEst(const char *name=NULL, const char *title=NULL);
|
---|
26 |
|
---|
27 | void SetInFile(Char_t *name) {fInFile = name;}
|
---|
28 | void SetOutFile(Char_t *name) {fOutFile = name;}
|
---|
29 | void SetHillasName(Char_t *name) {fHillasName = name;}
|
---|
30 | void SetHillasSrcName(Char_t *name) {fHillasSrcName = name;}
|
---|
31 | void SetHadronnessName(Char_t *name) {fHadronnessName = name;}
|
---|
32 | void SetNevents(Int_t n) {fNevents = n;}
|
---|
33 | void SetMaxHadronness(Float_t x) {fMaxHadronness = x;}
|
---|
34 | void SetMaxAlpha(Float_t x) {fMaxAlpha = x;}
|
---|
35 | void SetMaxDist(Float_t x) {fMaxDist = x;}
|
---|
36 |
|
---|
37 | Char_t* GetInFile() {return fInFile;}
|
---|
38 | Char_t* GetOutFile() {return fOutFile;}
|
---|
39 | Char_t* GetHillasName() {return fHillasName;}
|
---|
40 | Char_t* GetHillasSrcName() {return fHillasSrcName;}
|
---|
41 | Char_t* GetHadronnessName() {return fHadronnessName;}
|
---|
42 | Int_t GetNevents() {return fNevents;}
|
---|
43 | Float_t GetMaxHadronness() {return fMaxHadronness;}
|
---|
44 | Float_t GetMaxAlpha() {return fMaxAlpha;}
|
---|
45 | Float_t GetMaxDist() {return fMaxDist;}
|
---|
46 |
|
---|
47 | Double_t GetCoeff(Int_t i) { return i<fA.GetSize()? fA[i] : fB[i-fA.GetSize()]; }
|
---|
48 |
|
---|
49 | void FindParams();
|
---|
50 | void Print(Option_t *o="");
|
---|
51 |
|
---|
52 | ClassDef(MMcEnergyEst, 1) // Class for optimization of Energy estimator
|
---|
53 | };
|
---|
54 |
|
---|
55 | #endif
|
---|
56 |
|
---|