Belle II Software development
ExportGeometryModule.h
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#pragma once
10
11#include <framework/core/Module.h>
12
13#include <string>
14
15
16namespace Belle2 {
29
30 public:
31
37
40
45 virtual void initialize() override;
46
48 virtual void beginRun() override;
49
50
51 protected:
52
53
54 private:
55
56 std::string m_filenameROOT;
57 bool m_exportAsGDML{false};
58 bool m_gdmlAdresses{true};
60 };
62}
The ExportGeometry module.
virtual void initialize() override
Checks the validity of the module parameters.
std::string m_filenameROOT
The filename of the ROOT file into which the geometry is saved.
bool m_exportAsGDML
Export the geometry as GDML format.
virtual void beginRun() override
Saves the geometry to a root file for every run.
bool m_gdmlAdresses
If true make the xml names unique by prepending the pointer address.
virtual ~ExportGeometryModule()
Destructor.
Base class for Modules.
Definition: Module.h:72
Abstract base class for different kinds of events.