PixelSimData_ROOT.cc
Go to the documentation of this file.
1 #include <fevt/PixelSimData.h>
2 #include <io/PixelSimData_ROOT.h>
3 
4 using namespace io;
5 
6 
7 ClassImp(PixelSimData_ROOT)
8 
9 
10 PixelSimData_ROOT::PixelSimData_ROOT(const fevt::PixelSimData& p) :
11  fPhotonTrace(p.PhotonTracesBegin(), p.PhotonTracesEnd()),
12  fNumSamples(p.GetNumSamples()),
13  fMean(p.GetMean()),
14  fRMS(p.GetRMS()),
15  fThreshold(p.GetThreshold()),
16  fMeanBgPhotonFlux(p.GetMeanBgPhotonFlux()),
17  fBoxcarsumMax(p.GetMaxBoxcarsum()),
18  fBoxcarsumMean(p.GetMeanBoxcarsum()),
19  fBoxcarsumRms(p.GetRmsBoxcarsum()),
20  fFltTime(p.GetFltTime()),
21  fFltDuration(p.GetFltDuration())
22 { }
23 
24 
25 void
27  const
28 {
29  for (const auto& st : fPhotonTrace.fTraces)
30  p.MakePhotonTrace(st.second.Convert(), static_cast<fevt::FdConstants::LightSource>(st.first));
31 
33  p.SetMean(fMean);
34  p.SetRMS(fRMS);
42 }
void SetNumSamples(const int nSamp)
Set the no. of samples for running sums.
Definition: PixelSimData.h:115
void SetRmsBoxcarsum(double v)
Definition: PixelSimData.h:147
void operator>>(fevt::PixelSimData &p) const
MultiTraceD_ROOT fPhotonTrace
PixelSimData Class being actually streamed when using ROOT IO.
void SetMeanBgPhotonFlux(const double mean)
Set mean bg photon flux.
Definition: PixelSimData.h:135
void SetMeanBoxcarsum(double v)
Definition: PixelSimData.h:146
LightSource
Possible light sources.
Definition: FdConstants.h:9
void SetMean(const double mean)
Set the ADC baseline.
Definition: PixelSimData.h:120
void SetFltTime(int v)
Definition: PixelSimData.h:148
void SetThreshold(const int thr)
Set the simulated trigger threshold of the pixel.
Definition: PixelSimData.h:130
void SetRMS(const double rms)
Set the ADC variance.
Definition: PixelSimData.h:125
std::map< int, io::Trace_ROOT< T > > fTraces
void SetFltDuration(int v)
Definition: PixelSimData.h:149
Fluorescence Detector Pixel Simulated Data.
Definition: PixelSimData.h:28
void MakePhotonTrace(unsigned int size, double binning, const FdConstants::LightSource source=FdConstants::eTotal)
Definition: PixelSimData.cc:31
void SetMaxBoxcarsum(int v)
Definition: PixelSimData.h:145

, generated on Tue Sep 26 2023.