SetEventDataModule3.cc
Go to the documentation of this file.
1 #include <iostream>
2 #include <SetEventDataModule3.h>
3 #include <fwk/RunController.h>
4 
5 #include <evt/Event.h>
6 #include <evt/Header.h>
7 
8 #include <sevt/SEvent.h>
9 #include <sevt/Station.h>
10 #include <sevt/StationSimData.h>
11 
12 #include <det/Detector.h>
13 
14 #include <utl/TimeStamp.h>
15 #include <utl/UTCDateTime.h>
16 
17 using namespace std;
18 using namespace fwk;
19 using namespace evt;
20 using namespace utl;
21 
22 
25 {
26  testCount = 0;
27 
28  det::Detector::GetInstance().Update(UTCDateTime(2006,1,1,0).GetTimeStamp());
29 
30  return VModule::eSuccess;
31 }
32 
33 
36 {
37  event.GetHeader().SetId("3");
38 
39  ++testCount;
40 
41  if (testCount >= 10) {
42  cout << "throwing break" << endl;
43  return VModule::eBreakLoop;
44  }
45 
46  return VModule::eSuccess;
47 }
48 
49 
52 {
53  return VModule::eSuccess;
54 }
VModule::ResultFlag Run(evt::Event &event)
Run: invoked once per event.
VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60

, generated on Tue Sep 26 2023.