SdFootprintData_ROOT.cc
Go to the documentation of this file.
1 #include <io/SdFootprintData_ROOT.h>
2 #include <sevt/SdFootprintData.h>
3 
4 using namespace io;
5 
6 
7 ClassImp(SdFootprintData_ROOT)
8 
9 
10 SdFootprintData_ROOT::SdFootprintData_ROOT(const sevt::SdFootprintData& fp) :
11  fLength(fp.GetLength()),
12  fWidth(fp.GetWidth()),
13  fSpeed(fp.GetSpeed()),
14  fSpeedStandardDeviation(fp.GetSpeedStandardDeviation()),
15  fTOTFraction(fp.GetTOTFraction()),
16  fAreaOverPeakAsymmetry(fp.GetAreaOverPeakAsymmetry()),
17  fAlignment(fp.GetAlignment())
18 {
19  for (const auto p : fp.GetParameterVector())
20  fParameters[p] = fp.GetParameter(p);
21 }
22 
23 
24 void
26  const
27 {
28  fp.SetLength(fLength);
29  fp.SetWidth(fWidth);
33  fp.SetAlignment(static_cast<sevt::SdFootprintData::Alignment>(fAlignment));
34 
35  for (const auto& it : fParameters)
36  fp.SetParameter(static_cast<sevt::SdFootprintData::Parameter>(it.first), it.second);
37 }
std::map< int, double > fParameters
void SetSpeed(const double s, const double ds)
void operator>>(sevt::SdFootprintData &theFootprintData) const
Class to hold simple parameters describing the footprint of an SD event.
void SetWidth(const double w)
void SetAreaOverPeakAsymmetry(const double a)
void SetAlignment(const Alignment alignment)
void SetParameter(const Parameter p, const double v, bool lock=true)
void SetLength(const double l)
void SetTOTFraction(const double f)

, generated on Tue Sep 26 2023.