Line | |
---|
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 | #include "MFilter.h"
|
---|
13 |
|
---|
14 | class MMcEnergyEst : public MParContainer
|
---|
15 | {
|
---|
16 | private:
|
---|
17 |
|
---|
18 | TString fInFile, fOutFile;
|
---|
19 | TString fHillasName;
|
---|
20 | TString fHillasSrcName;
|
---|
21 | Int_t fNevents;
|
---|
22 |
|
---|
23 | MFilter *fEventFilter; //!
|
---|
24 |
|
---|
25 | TArrayD fA;
|
---|
26 | TArrayD fB;
|
---|
27 |
|
---|
28 | public:
|
---|
29 | MMcEnergyEst(const char *name=NULL, const char *title=NULL);
|
---|
30 |
|
---|
31 | void SetInFile(const TString &name) {fInFile = name;}
|
---|
32 | void SetOutFile(const TString &name) {fOutFile = name;}
|
---|
33 | void SetHillasName(const TString &name) {fHillasName = name;}
|
---|
34 | void SetHillasSrcName(const TString &name) {fHillasSrcName = name;}
|
---|
35 | void SetEventFilter(MFilter *filter) {fEventFilter = filter;}
|
---|
36 | void SetNevents(Int_t n) {fNevents = n;}
|
---|
37 |
|
---|
38 | TString GetInFile() const {return fInFile;}
|
---|
39 | TString GetOutFile() const {return fOutFile;}
|
---|
40 | TString GetHillasName() const {return fHillasName;}
|
---|
41 | TString GetHillasSrcName() const {return fHillasSrcName;}
|
---|
42 | Int_t GetNevents() const {return fNevents;}
|
---|
43 |
|
---|
44 | Double_t GetCoeff(Int_t i) { return i<fA.GetSize()? fA[i] : fB[i-fA.GetSize()]; }
|
---|
45 |
|
---|
46 | Bool_t SetCoeff(TArrayD &coeff);
|
---|
47 |
|
---|
48 | void FindParams();
|
---|
49 | void Print(Option_t *o="") const;
|
---|
50 |
|
---|
51 | ClassDef(MMcEnergyEst, 1) // Class for optimization of Energy estimator
|
---|
52 | };
|
---|
53 |
|
---|
54 | #endif
|
---|
55 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.