| 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 | Int_t GetNumCoeffA() const {return fA.GetSize(); }
|
|---|
| 45 | Int_t GetNumCoeffB() const {return fB.GetSize(); }
|
|---|
| 46 |
|
|---|
| 47 | Double_t GetCoeff(Int_t i) { return i<fA.GetSize()? fA[i] : fB[i-fA.GetSize()]; }
|
|---|
| 48 |
|
|---|
| 49 | Bool_t SetCoeff(TArrayD &coeff);
|
|---|
| 50 |
|
|---|
| 51 | void FindParams();
|
|---|
| 52 | void Print(Option_t *o="") const;
|
|---|
| 53 |
|
|---|
| 54 | ClassDef(MMcEnergyEst, 1) // Class for optimization of Energy estimator
|
|---|
| 55 | };
|
|---|
| 56 |
|
|---|
| 57 | #endif
|
|---|
| 58 |
|
|---|