ShowerScintillatorRecData.h
Go to the documentation of this file.
1 #ifndef _evt_ShowerScintillatorRecData_h_
2 #define _evt_ShowerScintillatorRecData_h_
3 
4 #include <utl/TabulatedFunctionErrors.h>
5 #include <utl/LameShadowPtr_fwd.h>
6 #include <utl/ShadowPtr.h>
7 
8 
9 namespace evt {
10 
11  class ShowerSRecData;
12 
22 
23  public:
25  eUndefined = -1,
26  eS1000 = 0
27  };
28 
29  const utl::TabulatedFunctionErrors& GetLDF() const { return *fLDF; }
31  bool HasLDF() const { return bool(fLDF); }
32  void MakeLDF();
33 
34  double GetBeta() const { return fBeta; }
35  double GetBetaError() const { return fBetaError; }
36  double GetGamma() const { return fGamma; }
37  double GetGammaError() const { return fGammaError; }
38 
39  bool HasShowerSizeType(const ShowerSizeType type) const { return type == fShowerSizeType; }
41  const char* GetShowerSizeLabel() const;
42  double GetShowerSize() const { return fShowerSize; }
43  double GetShowerSizeError() const { return fShowerSizeError; }
44 
45  double GetLDFChi2() const { return fLDFChi2; }
46  double GetLDFNdof() const { return fLDFNdof; }
47  double GetLDFLikelihood() const { return fLDFLikelihood; }
48  double GetLDFRecStage() const { return fLDFRecStage; }
49 
50  void SetBeta(const double beta, const double error)
51  { fBeta = beta; fBetaError = error; }
52  void SetGamma(const double gamma, const double error)
53  { fGamma = gamma; fGammaError = error; }
54  void SetShowerSizeType(const ShowerSizeType type) { fShowerSizeType = type; }
55  void SetShowerSize(const double value, const double error)
56  { fShowerSize = value; fShowerSizeError = error; }
57 
58  void SetLDFChi2(const double chi2, const double ndof)
59  { fLDFChi2 = chi2; fLDFNdof = ndof; }
60  void SetLDFLikelihood(const double likelihood) { fLDFLikelihood = likelihood; }
61  void SetLDFRecStage(const double stage) { fLDFRecStage = stage; }
62 
63  private:
66 
68 
69  double fBeta;
70  double fBetaError;
71  double fGamma;
72  double fGammaError;
74  double fShowerSize;
76  double fLDFChi2;
77  double fLDFNdof;
79  double fLDFRecStage = 0;
80 
81  friend class evt::ShowerSRecData;
83 
84  };
85 
86 }
87 
88 
89 #endif
Interface class to access to the SD Reconstruction of a Shower.
void SetShowerSize(const double value, const double error)
void SetBeta(const double beta, const double error)
void SetGamma(const double gamma, const double error)
void SetLDFChi2(const double chi2, const double ndof)
bool HasShowerSizeType(const ShowerSizeType type) const
void SetLDFLikelihood(const double likelihood)
const utl::TabulatedFunctionErrors & GetLDF() const
ShowerSizeType GetShowerSizeType() const
void SetLDFRecStage(const double stage)
utl::ShadowPtr< utl::TabulatedFunctionErrors > fLDF
void SetShowerSizeType(const ShowerSizeType type)
Class to access shower scintillator reconstructed data.
utl::TabulatedFunctionErrors & GetLDF()

, generated on Tue Sep 26 2023.