Belle II Software  release-06-02-00
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 
13 using namespace Belle2;
14 using namespace std;
15 
16 //-----------------------------------------------------------------
17 // Register the Module
18 //-----------------------------------------------------------------
19 REG_MODULE(TestCalibDBAccess)
20 
21 //-----------------------------------------------------------------
22 // Implementation
23 //-----------------------------------------------------------------
24 
26 {
27  // Set module properties
28  setDescription("Testing DB objects made in Calibration");
29  setPropertyFlags(c_ParallelProcessingCertified);
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
Returns the calibration result from SoftwareTriigerResult for skimming out calibration flagged events...
virtual void initialize() override
Initialize.
virtual void event() override
Event()
#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.