Belle II Software  release-08-01-10
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 
16 namespace Belle2 {
31  class ExportGeometryModule : public Module {
32 
33  public:
34 
40 
43 
48  virtual void initialize() override;
49 
51  virtual void beginRun() override;
52 
53 
54  protected:
55 
56 
57  private:
58 
59  std::string m_filenameROOT;
60  bool m_exportAsGDML{false};
61  bool m_gdmlAdresses{true};
63  };
65 }
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.