Belle II Software development
TestCalibDBAccessModule.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#include <iostream>
9
10#include <calibration/example_caf_lib/modules/TestCalibDBAccess/TestCalibDBAccessModule.h>
11#include <framework/core/Module.h>
12
13using namespace Belle2;
14using namespace std;
15
16//-----------------------------------------------------------------
17// Register the Module
18//-----------------------------------------------------------------
19REG_MODULE(TestCalibDBAccess);
20
21//-----------------------------------------------------------------
22// Implementation
23//-----------------------------------------------------------------
24
26{
27 // Set module properties
28 setDescription("Testing DB objects made in Calibration");
30}
31
33{
34}
35
37{
38}
39
41{
42 cout << "TestCalibMean mean value = " << m_obj_constant->getMean() << "\n";
43 cout << "TestCalibMean mean error value = " << m_obj_constant->getMeanError() << "\n";
44 cout << "TestCalibObject[0] value = " << m_array_constants[0]->getConstantValue() << "\n";
45 cout << "TestCalibObject[1] value = " << m_array_constants[1]->getConstantValue() << "\n";
46}
Base class for Modules.
Definition: Module.h:72
void setDescription(const std::string &description)
Sets the description of the module.
Definition: Module.cc:214
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
virtual void initialize() override
Initialize.
DBObjPtr< TestCalibMean > m_obj_constant
obj_constant
virtual void event() override
Event()
TestCalibDBAccessModule()
Constructor: Sets the description, the properties and the parameters of the module.
DBArray< TestCalibObject > m_array_constants
array_constants
#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.