DummyModule2.cc
Go to the documentation of this file.
1 #include <DummyModule2.h>
2 
3 #include <iostream>
4 
5 using namespace std;
6 
8 {}
9 
11 {}
12 
13 
15 {
16  cout << "DummyModule2: Init " << endl;
17 
18  testCount = 0;
19  return VModule::eSuccess;
20 }
21 
23 {
24  testCount++;
25  cout << "DummyModule2: Run " << endl;
26 
27 // Check if RunManager handles loop breaking correctly
28 //
29 // if (testCount > 2)
30 // {
31 // cout << " testCount in Module2 = " << testCount << endl;
32 // cout << " breaking loop .. " << endl;
33 // testCount = 0;
34 // return VModule::BREAK_LOOP;
35 // }
36 // else
37 // {
38 // return VModule::eSuccess;
39 // }
40 
41  return VModule::eSuccess;
42 }
43 
45 {
46  cout << "DummyModule2: Finish " << endl;
47  return VModule::eSuccess;
48 }
VModule::ResultFlag Run(evt::Event &event)
Run: invoked once per event.
Definition: DummyModule2.cc:22
VModule::ResultFlag Init()
Initialize: invoked at beginning of run (NOT beginning of event)
Definition: DummyModule2.cc:14
ResultFlag
Flag returned by module methods to the RunController.
Definition: VModule.h:60
virtual ~DummyModule2()
Definition: DummyModule2.cc:10
VModule::ResultFlag Finish()
Finish: invoked at end of the run (NOT end of the event)
Definition: DummyModule2.cc:44

, generated on Tue Sep 26 2023.