EventBuilder.cc
Go to the documentation of this file.
1 /*
2  EventBuilderOG - Simple event generator implementation
3 */
4 
5 #include "EventBuilder.h"
6 #include <evt/Event.h>
7 #include <sevt/SEvent.h>
8 #include <io/CDASToOfflineEventConverter.h>
9 #include <utl/ErrorLogger.h>
10 #include <AugerEvent.h>
11 #include <IoSdData.h>
12 
13 using namespace fwk;
14 using namespace io;
15 using namespace utl;
16 using namespace EventBuilderOG;
17 
18 
19 EventBuilder::EventBuilder()
20 {
21 }
22 
23 
24 EventBuilder::~EventBuilder()
25 {
26 }
27 
28 
31 {
32  return eSuccess;
33 }
34 
35 
37 EventBuilder::Run(evt::Event& event)
38 {
39  if (event.HasSEvent()) {
40 
41  if (!event.HasRawEvent())
42  event.MakeRawEvent();
43  AugerEvent& raw = event.GetRawEvent();
44 
45  raw.PushEvent(IoSdEvent());
46 
47  event >> raw.Sd();
48 
49  }
50 
51  return eSuccess;
52 }
53 
54 
56 EventBuilder::Finish()
57 {
58  return eSuccess;
59 }
int raw
Definition: dump1090.h:270
void Init()
Initialise the registry.
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
bool HasRawEvent() const
bool HasSEvent() const

, generated on Tue Sep 26 2023.