ShowerRecData_ROOT.cc
Go to the documentation of this file.
1 #include <io/ShowerRecData_ROOT.h>
2 #include <io/ShowerFRecData_ROOT.h>
3 #include <io/ShowerSRecData_ROOT.h>
4 #include <io/ShowerUnivRecData_ROOT.h>
5 #include <io/ShowerRRecData_ROOT.h>
6 #include <io/ShowerMRecData_ROOT.h>
7 #include <io/Vector_ROOT.h>
8 #include <io/Point_ROOT.h>
9 #include <io/LaserData_ROOT.h>
10 #include <io/StreamerUtilities.h>
11 
12 using namespace io;
13 
14 
15 ClassImp(ShowerRecData_ROOT)
16 
17 
19 {
20  delete fShowerFRecData;
21  delete fShowerSRecData;
22  delete fShowerUnivRecData;
23  delete fShowerRRecData;
24  delete fShowerMRecData;
25  delete fLaserData;
26 }
27 
28 
31 {
32  if (this != &s) {
33  fEnergy = s.fEnergy;
43  }
44  return *this;
45 }
46 
47 
49  fEnergy(s.GetEnergy()),
50  fEnergyError(s.GetEnergyError()),
51  fShowerAxis(s.GetAxis()),
52  fCorePosition(s.GetCorePosition())
53 {
54  if (s.HasFRecShower())
56 
57  if (s.HasSRecShower())
59 
60  if (s.HasUnivRecShower())
62 
63  if (s.HasRRecShower())
65 
66  if (s.HasMRecShower())
68 
69  if (s.HasLaserData())
71 }
72 
73 
74 void
76  const
77 {
81 
82  if (fShowerFRecData) {
83  s.MakeFRecShower();
85  }
86 
87  if (fShowerSRecData) {
88  s.MakeSRecShower();
90  }
91 
92  if (fShowerUnivRecData) {
95  }
96 
97  if (fShowerRRecData) {
98  s.MakeRRecShower();
100  }
101 
102  if (fShowerMRecData) {
103  s.MakeMRecShower();
105  }
106 
107  if (fLaserData) {
108  s.MakeLaserData();
109  *fLaserData >> s.GetLaserData();
110  }
111 }
bool HasUnivRecShower() const
ShowerFRecData & GetFRecShower()
ShowerFRecData_ROOT * fShowerFRecData
void ConvertCopy(T *&destination, const U &source)
Interface class to access Shower Reconstructed parameters.
Definition: ShowerRecData.h:33
ShowerRecData_ROOT & operator=(const ShowerRecData_ROOT &s)
void SetAxis(const utl::Vector &axis)
ShowerMRecData_ROOT * fShowerMRecData
ShowerRRecData & GetRRecShower()
ShowerSRecData & GetSRecShower()
ShowerUnivRecData_ROOT * fShowerUnivRecData
ShowerUnivRecData & GetUnivRecShower()
constexpr double s
Definition: AugerUnits.h:163
void DeepCopy(T *&destination, U *const source)
LaserData_ROOT * fLaserData
void SetEnergy(const double energy, const double error)
bool HasRRecShower() const
bool HasFRecShower() const
ShowerSRecData_ROOT * fShowerSRecData
utl::Point Convert() const
Definition: Point_ROOT.h:31
ROOT wise implementation of streaming for class ShowerRecData.
bool HasMRecShower() const
ShowerMRecData & GetMRecShower()
ShowerRRecData_ROOT * fShowerRRecData
void SetCorePosition(const utl::Point &core)
bool HasLaserData() const
Definition: ShowerRecData.h:80
void operator>>(evt::ShowerRecData &s) const
bool HasSRecShower() const
LaserData & GetLaserData()
Definition: ShowerRecData.h:77
utl::Vector Convert() const
Definition: Vector_ROOT.h:33

, generated on Tue Sep 26 2023.