Framework/Event/Event.cc
Go to the documentation of this file.
1 #include <utl/config.h>
2 #include <evt/Event.h>
3 
4 #include <evt/Header.h>
5 #include <evt/ShowerRecData.h>
6 #include <evt/ShowerSimData.h>
7 #include <evt/VShowerGeometryProducer.h>
8 
9 #include <fevt/FEvent.h>
10 #include <sevt/SEvent.h>
11 
12 #include <revt/REvent.h>
13 #include <mevt/MEvent.h>
14 #include <cevt/CEvent.h>
15 
16 #include <utl/AugerException.h>
17 #include <utl/ErrorLogger.h>
18 
19 #include <AugerEvent.h>
20 
21 using namespace fevt;
22 using namespace sevt;
23 using namespace revt;
24 using namespace mevt;
25 using namespace cevt;
26 
27 
28 namespace evt {
29 
30  ShowerSimData&
31  Event::GetSimShower()
32  {
33  return *fSimShower;
34  }
35 
36 
37  const ShowerSimData&
38  Event::GetSimShower()
39  const
40  {
41  return *fSimShower;
42  }
43 
44 
45  void
46  Event::MakeSimShower(const evt::VShowerGeometryProducer& p)
47  {
48  if (!fSimShower)
49  fSimShower = new ShowerSimData(p);
50  else
51  ERROR("SimShower already exists - not replacing");
52  }
53 
54 
56  Event::GetRecShower()
57  {
58  return *fRecShower;
59  }
60 
61 
62  const ShowerRecData&
63  Event::GetRecShower()
64  const
65  {
66  return *fRecShower;
67  }
68 
69 
70  void
71  Event::MakeRecShower()
72  {
73  if (!fRecShower)
74  fRecShower = new ShowerRecData;
75  else
76  ERROR("RecShower already exists - not replacing");
77  }
78 
79 
80  SEvent&
81  Event::GetSEvent()
82  {
83  return *fSEvent;
84  }
85 
86 
87  const SEvent&
88  Event::GetSEvent()
89  const
90  {
91  return *fSEvent;
92  }
93 
94 
95  void
96  Event::MakeSEvent()
97  {
98  if (!fSEvent)
99  fSEvent = new SEvent;
100  else
101  ERROR("SEvent already exists - not replacing");
102  }
103 
104 
105  FEvent&
106  Event::GetFEvent()
107  {
108  return *fFEvent;
109  }
110 
111 
112  const FEvent&
113  Event::GetFEvent()
114  const
115  {
116  return *fFEvent;
117  }
118 
119 
120  void
121  Event::MakeFEvent()
122  {
123  if (!fFEvent)
124  fFEvent = new FEvent;
125  else
126  ERROR("FEvent already exists - not replacing");
127  }
128 
129 
130  REvent&
131  Event::GetREvent()
132  {
133  return *fREvent;
134  }
135 
136 
137  const REvent&
138  Event::GetREvent()
139  const
140  {
141  return *fREvent;
142  }
143 
144 
145  void
146  Event::MakeREvent()
147  {
148  if (!fREvent)
149  fREvent = new REvent;
150  else
151  ERROR("REvent already exists - not replacing");
152  }
153 
154 
155  MEvent&
156  Event::GetMEvent()
157  {
158  return *fMEvent;
159  }
160 
161 
162  const MEvent&
163  Event::GetMEvent()
164  const
165  {
166  return *fMEvent;
167  }
168 
169 
170  void
171  Event::MakeMEvent()
172  {
173  // RFG I don't see why in the other MakeXEvent operator! is used,
174  // programming the if the other way round.
175  if (fMEvent)
176  ERROR("MEvent already exists - not replacing");
177  else
178  fMEvent = new MEvent;
179  }
180 
181 
182  CEvent&
183  Event::GetCEvent()
184  {
185  return *fCEvent;
186  }
187 
188 
189  const CEvent&
190  Event::GetCEvent()
191  const
192  {
193  return *fCEvent;
194  }
195 
196 
197  void
198  Event::MakeCEvent()
199  {
200  if (!fCEvent)
201  fCEvent = new CEvent;
202  else
203  ERROR("CEvent already exists - not replacing");
204  }
205 
206 
207  AugerEvent&
208  Event::GetRawEvent()
209  {
210  return *fRawEvent;
211  }
212 
213 
214  const AugerEvent&
215  Event::GetRawEvent()
216  const
217  {
218  return *fRawEvent;
219  }
220 
221 
222  void
223  Event::MakeRawEvent()
224  {
225  if (!fRawEvent)
226  fRawEvent = new AugerEvent;
227  else
228  ERROR("RawEvent already exists - not replacing");
229  }
230 
231 }
Interface class to access Shower Reconstructed parameters.
Definition: ShowerRecData.h:33
Interface class to access to the Radio part of an event.
Definition: REvent.h:42
Interface class to access to the SD part of an event.
Definition: SEvent.h:39
Interface class to access Shower Simulated parameters.
Definition: ShowerSimData.h:49
Top of Fluorescence Detector event hierarchy.
Definition: FEvent.h:33
#define ERROR(message)
Macro for logging error messages.
Definition: ErrorLogger.h:165
Root of the Muon event hierarchy.
Definition: MEvent.h:25
Interface class to access to the SD part of an event.
Definition: CEvent.h:46

, generated on Tue Sep 26 2023.