Belle II Software  release-05-02-19
TestCalibDBAccessModule.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2017 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: David Dossett *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #include <iostream>
11 
12 #include <calibration/example_caf_lib/modules/TestCalibDBAccess/TestCalibDBAccessModule.h>
13 #include <framework/core/Module.h>
14 
15 using namespace Belle2;
16 using namespace std;
17 
18 //-----------------------------------------------------------------
19 // Register the Module
20 //-----------------------------------------------------------------
21 REG_MODULE(TestCalibDBAccess)
22 
23 //-----------------------------------------------------------------
24 // Implementation
25 //-----------------------------------------------------------------
26 
28 {
29  // Set module properties
30  setDescription("Testing DB objects made in Calibration");
31  setPropertyFlags(c_ParallelProcessingCertified);
32 }
33 
35 {
36 }
37 
39 {
40 }
41 
43 {
44  cout << "TestCalibMean mean value = " << m_obj_constant->getMean() << "\n";
45  cout << "TestCalibMean mean error value = " << m_obj_constant->getMeanError() << "\n";
46  cout << "TestCalibObject[0] value = " << m_array_constants[0]->getConstantValue() << "\n";
47  cout << "TestCalibObject[1] value = " << m_array_constants[1]->getConstantValue() << "\n";
48 }
Belle2::TestCalibDBAccessModule::event
virtual void event() override
Event()
Definition: TestCalibDBAccessModule.cc:42
REG_MODULE
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Definition: Module.h:652
Belle2::TestCalibDBAccessModule::initialize
virtual void initialize() override
Initialize.
Definition: TestCalibDBAccessModule.cc:34
Belle2::TestCalibDBAccessModule
Returns the calibration result from SoftwareTriigerResult for skimming out calibration flagged events...
Definition: TestCalibDBAccessModule.h:35
Belle2::Module
Base class for Modules.
Definition: Module.h:74
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TestCalibDBAccessModule::~TestCalibDBAccessModule
virtual ~TestCalibDBAccessModule()
Destructor.
Definition: TestCalibDBAccessModule.cc:38