ShowerRecData.cc
Go to the documentation of this file.
1 #include <AugerEvent.h>
2 #include <cevt/CEvent.h>
3 #include <mevt/MEvent.h>
4 #include <revt/Header.h>
5 #include <revt/EventTrigger.h>
6 #include <revt/REvent.h>
7 #include <sevt/Meteo.h>
8 #include <sevt/EventTrigger.h>
9 #include <sevt/SEvent.h>
10 #include <fevt/FEvent.h>
11 #include <evt/RadioSimulation.h>
12 #include <evt/ShowerSimData.h>
13 #include <evt/ShowerRecData.h>
14 #include <evt/ShowerScintillatorRecData.h>
15 #include <evt/ShowerFRecData.h>
16 #include <evt/ShowerSRecData.h>
17 #include <evt/ShowerUnivRecData.h>
18 #include <evt/ShowerRRecData.h>
19 #include <evt/ShowerMRecData.h>
20 #include <evt/LaserData.h>
21 
22 #include <utl/ErrorLogger.h>
23 #include <utl/LameShadowPtr_imp.h>
24 
25 
27 
28 
29 using namespace utl;
30 using namespace evt;
31 using namespace std;
32 
33 
35 ShowerRecData::GetFRecShower()
36 {
37  return *fShowerFRecData;
38 }
39 
40 
41 const ShowerFRecData&
42 ShowerRecData::GetFRecShower()
43  const
44 {
45  return *fShowerFRecData;
46 }
47 
48 
49 bool
50 ShowerRecData::HasFRecShower()
51  const
52 {
53  return bool(fShowerFRecData);
54 }
55 
56 
57 void
58 ShowerRecData::MakeFRecShower()
59 {
60  if (!fShowerFRecData)
61  fShowerFRecData = new ShowerFRecData();
62  else
63  ERROR("FRecShower already exists - Not replacing");
64 }
65 
66 
69 {
70  return *fShowerSRecData;
71 }
72 
73 
74 const ShowerSRecData&
76  const
77 {
78  return *fShowerSRecData;
79 }
80 
81 
82 bool
83 ShowerRecData::HasSRecShower()
84  const
85 {
86  return bool(fShowerSRecData);
87 }
88 
89 
90 void
91 ShowerRecData::MakeSRecShower()
92 {
93  if (!fShowerSRecData)
94  fShowerSRecData = new ShowerSRecData();
95  else
96  ERROR("SRecShower already exists - Not replacing");
97 }
98 
99 
101 ShowerRecData::GetUnivRecShower()
102 {
103  return *fShowerUnivRecData;
104 }
105 
106 
107 const ShowerUnivRecData&
108 ShowerRecData::GetUnivRecShower()
109  const
110 {
111  return *fShowerUnivRecData;
112 }
113 
114 
115 bool
116 ShowerRecData::HasUnivRecShower()
117  const
118 {
119  return bool(fShowerUnivRecData);
120 }
121 
122 
123 void
124 ShowerRecData::MakeUnivRecShower()
125 {
126  if (!fShowerUnivRecData)
127  fShowerUnivRecData = new ShowerUnivRecData();
128  else
129  ERROR("UnivRecShower already exists - Not replacing");
130 }
131 
132 
134 ShowerRecData::GetRRecShower()
135 {
136  return *fShowerRRecData;
137 }
138 
139 
140 const ShowerRRecData&
141 ShowerRecData::GetRRecShower()
142  const
143 {
144  return *fShowerRRecData;
145 }
146 
147 
148 bool
149 ShowerRecData::HasRRecShower()
150  const
151 {
152  return bool(fShowerRRecData);
153 }
154 
155 
156 void
157 ShowerRecData::MakeRRecShower()
158 {
159  if (!fShowerRRecData)
160  fShowerRRecData = new ShowerRRecData();
161  else
162  ERROR("RRecShower already exists - Not replacing");
163 }
164 
165 
167 ShowerRecData::GetMRecShower()
168 {
169  return *fShowerMRecData;
170 }
171 
172 
173 const ShowerMRecData&
174 ShowerRecData::GetMRecShower()
175  const
176 {
177  return *fShowerMRecData;
178 }
179 
180 
181 bool
182 ShowerRecData::HasMRecShower()
183  const
184 {
185  return bool(fShowerMRecData);
186 }
187 
188 
189 void
190 ShowerRecData::MakeMRecShower()
191 {
192  if (fShowerMRecData)
193  ERROR("MRecShower already exists - Not replacing");
194  else
195  fShowerMRecData = new ShowerMRecData();
196 }
197 
198 
199 double
200 ShowerRecData::GetEnergy()
201  const
202 {
203  return fEnergy;
204 }
205 
206 
207 double
208 ShowerRecData::GetEnergyError()
209  const
210 {
211  return fEnergyError;
212 }
213 
214 
215 const utl::Point&
216 ShowerRecData::GetCorePosition()
217  const
218 {
219  return fCorePosition;
220 }
221 
222 
223 const utl::Vector&
224 ShowerRecData::GetAxis()
225  const
226 {
227  return fShowerAxis;
228 }
229 
230 
231 void
232 ShowerRecData::SetEnergy(const double energy, const double error)
233 {
234  fEnergy = energy;
235  fEnergyError = error;
236 }
237 
238 
239 void
240 ShowerRecData::SetCorePosition(const utl::Point& theCore)
241 {
242  fCorePosition = theCore;
243 }
244 
245 
246 void
247 ShowerRecData::SetAxis(const utl::Vector& theAxis)
248 {
249  fShowerAxis = theAxis;
250 }
251 
252 
253 void
254 ShowerRecData::MakeLaserData()
255 {
256  if (!fLaserData)
257  fLaserData = new LaserData();
258  else
259  ERROR("LaserData already exists - Not replacing");
260 }
#define LAMESHADOWPTR_INST(_T_...)
Point object.
Definition: Point.h:32
Interface class to access to the SD Reconstruction of a Shower (universality)
ShowerSRecData & GetSRecShower(evt::Event &event)
Interface class to access to the SD Reconstruction of a Shower.
Interface class to access Shower Reconstructed parameters.
Definition: ShowerRecData.h:33
Interface class to access to the RD Reconstruction of a Shower.
Data structure for Laser simulation and reconstruction.
Definition: LaserData.h:29
Vector object.
Definition: Vector.h:30
Interface class to access to Fluorescence reconstruction of a Shower.
Interface class to access to the Muon Reconstruction of a Shower.
#define ERROR(message)
Macro for logging error messages.
Definition: ErrorLogger.h:165

, generated on Tue Sep 26 2023.