PixelTriggerData_ROOT.cc
Go to the documentation of this file.
1 #include <fevt/PixelTriggerData.h>
2 #include <io/PixelTriggerData_ROOT.h>
3 
4 using namespace io;
5 
6 
7 ClassImp(PixelTriggerData_ROOT)
8 
9 
10 PixelTriggerData_ROOT::PixelTriggerData_ROOT(const fevt::PixelTriggerData& p) :
11  fThreshold(p.GetThreshold()),
12  fPreviousThreshold(p.GetPreviousThreshold()),
13  fThresholdChanged(p.HasThresholdChanged()),
14  fMean(p.GetMean()),
15  fVariance(p.GetVariance()),
16  fRate(p.GetRate()),
17  fFLTTrace(p.HasFLTTrace() ? TraceB_ROOT(p.GetFLTTrace()) : TraceB_ROOT())
18 { }
19 
20 
21 void
23  const
24 {
28  p.SetMean(fMean);
30  p.SetRate(fRate);
31  if (!fFLTTrace.fArray.empty()) {
32  utl::TraceB t;
33  fFLTTrace >> t;
34  p.MakeFLTTrace(t);
35  }
36 }
void SetThreshold(const int t)
Fluorescence Detector Pixel Trigger Data.
PixelTriggerData Class being actually streamed when using ROOT IO.
void SetRate(const double r)
void operator>>(fevt::PixelTriggerData &p) const
std::vector< T > fArray
Definition: Trace_ROOT.h:36
void SetMean(const double m)
void MakeFLTTrace(const utl::TraceB &flt)
void SetPreviousThreshold(const int t)
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
void SetVariance(const double v)
void SetThresholdChanged(const bool changed=true)

, generated on Tue Sep 26 2023.