Belle II Software  release-08-01-10
CertifyParallelModule.cc
1 /**************************************************************************
2  * basf2 (Belle II Analysis Software Framework) *
3  * Author: The Belle II Collaboration *
4  * *
5  * See git log for contributors and copyright holders. *
6  * This file is licensed under LGPL-3.0, see LICENSE.md. *
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 
A class definition of an input module for Sequential ROOT I/O.
Base class for Modules.
Definition: Module.h:72
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Definition: Module.h:650
Abstract base class for different kinds of events.