Belle II Software development
VXDMisalignmentModule.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 <vxd/modules/vxdMisalignment/VXDMisalignmentModule.h>
10#include <vxd/geometry/MisalignmentCache.h>
11
12using namespace std;
13using namespace Belle2;
14using namespace Belle2::VXD;
15
16//-----------------------------------------------------------------
17// Register the Module
18//-----------------------------------------------------------------
19REG_MODULE(VXDMisalignment);
20
21//-----------------------------------------------------------------
22// Implementation
23//-----------------------------------------------------------------
24
26 Module(), m_xmlFilename("")
27{
28 //Set module properties
29 setDescription("Initialize VXD misalignment");
31 addParam("misalignmentFilename", m_xmlFilename,
32 "Name of an xml misalignment data file. If empty, no misalignment will take place.",
33 string(""));
34}
35
37{
38 // Initialize the MisalignmentCache
40 cache.clear();
42}
43
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
Class to hold misalignment information.
void clear()
clear cache data
static MisalignmentCache & getInstance()
Return a reference to the singleton instance.
void readMisalignmentsFromXml(const std::string &filename)
Read misalignment data from an xml file and store sensor misalignments.
virtual void beginRun() override
Initialize the list of existing VXD Sensors.
std::string m_xmlFilename
Name of the xml filename with misalignment data.
void addParam(const std::string &name, T &paramVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
Definition: Module.h:560
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Definition: Module.h:650
Namespace to provide code needed by both Vertex Detectors, PXD and SVD, and also testbeam telescopes.
Definition: GeoCache.h:34
Abstract base class for different kinds of events.
STL namespace.