Belle II Software  release-05-02-19
CertifyParallelModule.cc
1 //+
2 // File : CertifyParallelModule.cc
3 // Description : Module to ensure parallel processing
4 //
5 // Author : Ryosuke Itoh, IPNS, KEK
6 // Date : 13 - Aug - 2010
7 //-
8 
9 #include <daq/rfarm/event/modules/CertifyParallelModule.h>
10 
11 using namespace std;
12 using namespace Belle2;
13 
14 //-----------------------------------------------------------------
15 // Register the Module
16 //-----------------------------------------------------------------
17 REG_MODULE(CertifyParallel)
18 
19 //-----------------------------------------------------------------
20 // Implementation
21 //-----------------------------------------------------------------
22 
24 {
25  //Set module properties
26  setPropertyFlags(c_ParallelProcessingCertified);
27 
28  //Parameter definition
29  B2INFO("CertifyParallel: Constructor done.");
30 }
31 
32 
33 CertifyParallelModule::~CertifyParallelModule()
34 {
35 }
36 
37 void CertifyParallelModule::initialize()
38 {
39 }
40 
41 
42 void CertifyParallelModule::beginRun()
43 {
44  m_nevent = 0;
45 }
46 
47 
48 void CertifyParallelModule::event()
49 {
50  m_nevent++;
51 
52 }
53 
54 void CertifyParallelModule::endRun()
55 {
56  printf("Total event = %d\n", m_nevent);
57 }
58 
59 
60 void CertifyParallelModule::terminate()
61 {
62  B2INFO("ElapsedTime: terminate called");
63 }
64 
REG_MODULE
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Definition: Module.h:652
Belle2::Module
Base class for Modules.
Definition: Module.h:74
Belle2::CertifyParallelModule
A class definition of an input module for Sequential ROOT I/O.
Definition: CertifyParallelModule.h:25
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19