PixelTriggerData.h
Go to the documentation of this file.
1 #ifndef _fevt_PixelTriggerData_h_
2 #define _fevt_PixelTriggerData_h_
3 
4 #include <fevt/Eye.h>
5 #include <utl/Trace.h>
6 #include <utl/ShadowPtr.h>
7 
8 
9 namespace fevt {
10 
21 
22  public:
24  int GetThreshold() const { return fThreshold;}
26  int GetPreviousThreshold() const { return fPreviousThreshold; }
28  bool HasThresholdChanged() const { return fThresholdChanged; }
30  double GetMean() const { return fMean; }
32  double GetVariance() const { return fVariance; }
33  // FLT rate
34  double GetRate() const { return fRate; }
35 
36  void SetThreshold(const int t) { fThreshold = t; }
37  void SetPreviousThreshold(const int t) { fPreviousThreshold = t; }
38  void SetThresholdChanged(const bool changed = true) { fThresholdChanged = changed; }
39  void SetMean(const double m) { fMean = m; }
40  void SetVariance(const double v) { fVariance = v; }
41  void SetRate(const double r) { fRate = r; }
42 
43  bool IsTriggered() const;
44 
45  // FLT trace
47  const utl::TraceB& GetFLTTrace() const;
48 
49  void MakeFLTTrace(const utl::TraceB& flt);
50 
51  bool HasFLTTrace() const { return bool(fFLTTrace); }
52 
53  private:
56 
60  double fMean;
61  double fVariance;
62  double fRate;
63 
65 
66  friend class Pixel;
68 
69  };
70 
71 }
72 
73 
74 #endif
bool HasThresholdChanged() const
threshold changed during this trace
void SetThreshold(const int t)
Fluorescence Detector Pixel Trigger Data.
int GetThreshold() const
FLT threshold.
double GetMean() const
trace mean
void SetRate(const double r)
Fluorescence Detector Pixel event.
Definition: FEvent/Pixel.h:28
void SetMean(const double m)
double GetVariance() const
trace variance
void MakeFLTTrace(const utl::TraceB &flt)
void SetPreviousThreshold(const int t)
double GetRate() const
Template class for a FADC data or calibrated data container. Use the typedefs (TraceD, TraceI, etc.) defined in Trace-fwd.h.
Definition: Trace-fwd.h:19
int GetPreviousThreshold() const
previous FLT threshold
utl::TraceB & GetFLTTrace()
void SetVariance(const double v)
void SetThresholdChanged(const bool changed=true)
constexpr double m
Definition: AugerUnits.h:121
utl::ShadowPtr< utl::TraceB > fFLTTrace

, generated on Tue Sep 26 2023.