VGaisserHillasParameter.h
Go to the documentation of this file.
1 #ifndef _evt_VGaisserHillasParameter_h_
2 #define _evt_VGaisserHillasParameter_h_
3 
4 
5 namespace evt {
6 
40 
41  public:
42  typedef int IsClonableTag;
43 
45  VGaisserHillasParameter(const double nMax, const double xMax) : fXMax(xMax), fNMax(nMax) { }
47 
48  virtual VGaisserHillasParameter* Create() const = 0;
49  virtual VGaisserHillasParameter* Clone() const = 0;
50 
51  double GetXMax() const { return fXMax; }
52  double GetXMaxError() const { return fXMaxError; }
53  double GetNMax() const { return fNMax; }
54  double GetNMaxError() const { return fNMaxError; }
55  double GetNMaxXMaxCorrelation() const { return fRhoNMaxXMax; }
56 
57  double GetChiSquare() const { return fChiSqr; }
58  unsigned int GetNdof() const { return fNdof; }
59 
60  bool IsdEdXProfile() const { return fIsEnergyDeposit; }
61 
62  void SetXMax(const double xMax, const double error)
63  { fXMax = xMax; fXMaxError = error; }
64 
65  void SetNMax(const double nMax, const double error, const bool isEnergyDeposit = false)
66  { fNMax = nMax; fNMaxError = error; fIsEnergyDeposit = isEnergyDeposit; }
67 
68  void SetNMaxXMaxCorrelation(const double rho)
69  { fRhoNMaxXMax = rho; }
70 
71  void SetChiSquare(const double chi, const unsigned int ndof)
72  { fChiSqr = chi; fNdof = ndof; }
73 
74  virtual double operator()(const double depth) const
75  { return this->Eval(depth); }
76 
77  virtual double Eval(const double depth) const = 0;
78  virtual double GetIntegral() const = 0;
80  virtual double GetIntegralError() const = 0;
81 
82  protected:
83  double fXMax = 0;
84  double fXMaxError = 0;
85  double fNMax = 0;
86  double fNMaxError = 0;
87  double fRhoNMaxXMax = 0;
88  double fChiSqr = 0;
89  unsigned int fNdof = 0;
90 
91  double fGammaIntegral = 0;
92  double fGammaError = 0;
93 
94  bool fIsEnergyDeposit = false;
95 
96  };
97 
98 }
99 
100 
101 #endif
VGaisserHillasParameter(const double nMax, const double xMax)
virtual double operator()(const double depth) const
void SetNMaxXMaxCorrelation(const double rho)
void SetXMax(const double xMax, const double error)
virtual double GetIntegralError() const =0
return relative error of integral
virtual double GetIntegral() const =0
virtual double Eval(const double depth) const =0
void SetChiSquare(const double chi, const unsigned int ndof)
void SetNMax(const double nMax, const double error, const bool isEnergyDeposit=false)
virtual VGaisserHillasParameter * Create() const =0
virtual VGaisserHillasParameter * Clone() const =0
Interface class for access to the Gaisser-Hillas parameters.

, generated on Tue Sep 26 2023.