Belle II Software development
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
11using namespace std;
12using namespace Belle2;
13
14//-----------------------------------------------------------------
15// Register the Module
16//-----------------------------------------------------------------
17REG_MODULE(CertifyParallel);
18
19//-----------------------------------------------------------------
20// Implementation
21//-----------------------------------------------------------------
22
24{
25 //Set module properties
27
28 //Parameter definition
29 B2INFO("CertifyParallel: Constructor done.");
30}
31
32
33CertifyParallelModule::~CertifyParallelModule()
34{
35}
36
38{
39}
40
41
43{
44 m_nevent = 0;
45}
46
47
49{
50 m_nevent++;
51
52}
53
55{
56 printf("Total event = %d\n", m_nevent);
57}
58
59
61{
62 B2INFO("ElapsedTime: terminate called");
63}
64
void initialize() override
Module functions to be called from main process.
void event() override
This method is the core of the module.
void endRun() override
This method is called if the current run ends.
void terminate() override
This method is called at the end of the event processing.
CertifyParallelModule()
Constructor / Destructor.
void beginRun() override
Module functions to be called from event process.
Base class for Modules.
Definition: Module.h:72
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
Definition: Module.cc:208
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
Definition: Module.h:80
#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.
STL namespace.