SdFootprintData.h
Go to the documentation of this file.
1 #ifndef _sevt_SdFootprintData_h_
2 #define _sevt_SdFootprintData_h_
3 
4 #include <fwk/RunController.h>
5 #include <utl/ParameterStorage.h>
6 #include <sevt/SdFootprintEnumerations.h>
7 
8 
9 namespace sevt {
10 
31 
32  public:
33  typedef SdFootprintEnumerations::Alignment Alignment;
34 
36 
37  double GetLength() const { return fLength; }
38  double GetWidth() const { return fWidth; }
40  double GetSpeed() const { return fSpeed; }
44  double GetTOTFraction() const { return fTOTFraction; }
47  Alignment GetAlignment() const { return fAlignment; }
48 
49  void SetLength(const double l) { fLength = l; }
50  void SetWidth(const double w) { fWidth = w; }
51  void SetSpeed(const double s, const double ds) { fSpeed = s; fSpeedStandardDeviation = ds; }
52  void SetTOTFraction(const double f) { fTOTFraction = f; }
54  void SetAlignment(const Alignment alignment) { fAlignment = alignment; }
56 
58 
59  typedef SdFootprintEnumerations::Parameter Parameter;
60  void SetParameter(const Parameter p, const double v, bool lock = true) { fParameters.SetParameter(p, v, lock, CurrentModule()); }
61  bool HasParameter(const Parameter p) const { return fParameters.HasParameter(p); }
62  double GetParameter(const Parameter p) const { return fParameters.GetParameter(p, CurrentModule()); }
63  bool GetParameterOrigin(const Parameter p) const { return fParameters.GetParameterLockStatus(p, CurrentModule()); }
64  std::vector<Parameter> GetParameterVector() const { return fParameters.GetEnumVector(); }
66 
67  private:
68  static const std::string& CurrentModule() { return fwk::RunController::GetInstance().GetCurrentModule(); }
69 
70  double fLength = 0;
71  double fWidth = 0;
72  double fSpeed = 0;
74  double fTOTFraction = 0;
76  Alignment fAlignment = SdFootprintEnumerations::eNotAligned;
77 
78  utl::ParameterStorage<Parameter> fParameters{"Shower:SdFootprintData"};
79 
80  };
81 
82 }
83 
84 
85 #endif
SdFootprintEnumerations::Parameter Parameter
utl::ParameterStorage< Parameter > fParameters
double GetLength() const
bool HasParameter(const IndexEnum param) const
determine whether a parameter has been set
static const std::string & CurrentModule()
bool GetParameterOrigin(const Parameter p) const
void SetSpeed(const double s, const double ds)
Alignment GetAlignment() const
Flag describing how &#39;aligned&#39; an event is.
constexpr double s
Definition: AugerUnits.h:163
double GetTOTFraction() const
Fraction of stations with a TOT trigger.
bool HasParameter(const Parameter p) const
SdFootprintEnumerations::Alignment Alignment
Class to hold simple parameters describing the footprint of an SD event.
std::vector< Parameter > GetParameterVector() const
double GetWidth() const
void SetWidth(const double w)
void SetAreaOverPeakAsymmetry(const double a)
void SetAlignment(const Alignment alignment)
double GetSpeedStandardDeviation() const
The standard deviation of apparent speed histogram. All possible pairs of stations correspond to an e...
void SetParameter(const Parameter p, const double v, bool lock=true)
void SetLength(const double l)
double GetParameter(const Parameter p) const
void SetTOTFraction(const double f)
double GetSpeed() const
The mean &#39;apparent speed&#39; of the signals as they sweep over the array.
double GetAreaOverPeakAsymmetry() const

, generated on Tue Sep 26 2023.