TelescopeTriggerData_ROOT.cc
Go to the documentation of this file.
1 #include <io/TelescopeTriggerData_ROOT.h>
2 #include <fevt/TelescopeTriggerData.h>
3 
4 using namespace io;
5 
6 
8 
9 
10 TelescopeTriggerData_ROOT::TelescopeTriggerData_ROOT(const fevt::TelescopeTriggerData& d)
11 {
12  fTLTAccepted = d.IsTLTAccepted();
13  fTLTLabel = d.GetTLTLabel();
14  if (d.HasMultiplicity())
15  fMultiplicity = Trace_ROOT<int>(d.GetMultiplicity());
16 
17  for (const auto& s : d.GetSLTData())
18  fSLTData.push_back(SLTData_ROOT(s));
19 }
20 
21 
22 void
24  const
25 {
28  if (!fMultiplicity.fArray.empty()) {
29  d.MakeMultiplicity();
31  }
32 
33  auto& sltData = d.GetSLTData();
34  sltData.clear();
35  for (const auto& s : fSLTData)
36  sltData.push_back(s.Convert());
37 }
streaming class for TelescopeTriggerData_ROOT
std::vector< fevt::SLTData > & GetSLTData()
void operator>>(fevt::TelescopeTriggerData &sim) const
constexpr double s
Definition: AugerUnits.h:163
void MakeMultiplicity(const unsigned int size=0, const double binSize=0)
std::vector< T > fArray
Definition: Trace_ROOT.h:36
streaming class for SLTData_ROOT
Definition: SLTData_ROOT.h:25
void SetTLTAccepted(const bool is)
std::vector< SLTData_ROOT > fSLTData
void SetTLTLabel(const std::string &label)
Description of trigger data for one Telescope.

, generated on Tue Sep 26 2023.