Belle II Software development
GeoKLMCreator.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/* Own header. */
10#include <klm/geometry/GeoKLMCreator.h>
11
12/* Basf2 headers. */
13#include <geometry/CreatorFactory.h>
14
15using namespace Belle2;
16
17/* Register the creator */
18geometry::CreatorFactory<KLM::GeoKLMCreator> GeoKLMFactory("KLMCreator");
19
21{
22}
23
25{
26}
27
29 G4LogicalVolume& topVolume,
31{
32 m_GeoBKLMCreator.create(content, topVolume, type);
33 m_GeoEKLMCreator.create(content, topVolume, type);
34}
35
36void KLM::GeoKLMCreator::createFromDB(const std::string& name,
37 G4LogicalVolume& topVolume,
39{
40 m_GeoBKLMCreator.createFromDB(name, topVolume, type);
41 m_GeoEKLMCreator.createFromDB(name, topVolume, type);
42}
43
45 const IntervalOfValidity& iov)
46{
47 m_GeoBKLMCreator.createPayloads(content, iov);
48 m_GeoEKLMCreator.createPayloads(content, iov);
49}
50
GearDir is the basic class used for accessing the parameter store.
Definition: GearDir.h:31
A class that describes the interval of experiments/runs for which an object in the database is valid.
void createFromDB(const std::string &name, G4LogicalVolume &topVolume, geometry::GeometryTypes type) override
Creation of the detector geometry from database.
void createPayloads(const GearDir &content, const IntervalOfValidity &iov) override
Creation of payloads.
void create(const GearDir &content, G4LogicalVolume &topVolume, geometry::GeometryTypes type) override
Creation of the detector geometry from Gearbox (XML).
GeometryTypes
Flag indiciating the type of geometry to be used.
Abstract base class for different kinds of events.
Very simple class to provide an easy way to register creators with the CreatorManager.