RunController/DummyModule1.cc
Go to the documentation of this file.
1 #include <iostream>
2 #include <DummyModule1.h>
3 #include <fwk/RunController.h>
4 
5 using namespace std;
6 using namespace fwk;
7 
8 
9 DummyModule1::DummyModule1() : fRunAtLeastOnce(false)
10 {
11 }
12 
13 
15 {
16 }
17 
18 
21 {
22  cout << "DummyModule1: Init" << endl;
23 
24  testCount = 0;
25  fRunAtLeastOnce = false;
26  return VModule::eSuccess;
27 }
28 
29 
31 DummyModule1::Run(evt::Event& /*event*/)
32 {
33  fRunAtLeastOnce = true;
34  cout << "DummyModule1: Run" << endl;
35 // testCount++;
36 // if (testCount>3)
37 // {
38 // cout << " testCount in Module3 = " << testCount << endl;
39 // cout << " breaking loop .. " << endl;
40 // testCount = 0;
41 // return VModule::BREAK_LOOP;
42 // }
43 // else
44 // {
45 // return VModule::eSuccess;
46 // }
47 
48  return VModule::eSuccess;
49 }
50 
51 
54 {
55  cout << "DummyModule1: Finish" << endl;
56  if (fRunAtLeastOnce)
57  return VModule::eSuccess;
58  return VModule::eFailure;
59 }
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
VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
VModule::ResultFlag Run(evt::Event &event)
Run: invoked once per event.

, generated on Tue Sep 26 2023.