Belle II Software  release-05-01-25
GeoKLMCreator.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2019 Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Kirill Chilikin *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 /* Own header. */
12 #include <klm/geometry/GeoKLMCreator.h>
13 
14 /* Belle 2 headers. */
15 #include <geometry/CreatorFactory.h>
16 
17 using namespace Belle2;
18 
19 /* Register the creator */
20 geometry::CreatorFactory<KLM::GeoKLMCreator> GeoKLMFactory("KLMCreator");
21 
23 {
24 }
25 
27 {
28 }
29 
30 void KLM::GeoKLMCreator::create(const GearDir& content,
31  G4LogicalVolume& topVolume,
33 {
34  m_GeoBKLMCreator.create(content, topVolume, type);
35  m_GeoEKLMCreator.create(content, topVolume, type);
36 }
37 
38 void KLM::GeoKLMCreator::createFromDB(const std::string& name,
39  G4LogicalVolume& topVolume,
41 {
42  m_GeoBKLMCreator.createFromDB(name, topVolume, type);
43  m_GeoEKLMCreator.createFromDB(name, topVolume, type);
44 }
45 
47  const IntervalOfValidity& iov)
48 {
49  m_GeoBKLMCreator.createPayloads(content, iov);
50  m_GeoEKLMCreator.createPayloads(content, iov);
51 }
52 
Belle2::IntervalOfValidity
A class that describes the interval of experiments/runs for which an object in the database is valid.
Definition: IntervalOfValidity.h:35
Belle2::KLM::GeoKLMCreator::~GeoKLMCreator
~GeoKLMCreator()
Destructor.
Definition: GeoKLMCreator.cc:26
Belle2::KLM::GeoKLMCreator::createFromDB
void createFromDB(const std::string &name, G4LogicalVolume &topVolume, geometry::GeometryTypes type) override
Creation of the detector geometry from database.
Definition: GeoKLMCreator.cc:38
Belle2::KLM::GeoKLMCreator::GeoKLMCreator
GeoKLMCreator()
Constructor.
Definition: GeoKLMCreator.cc:22
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::KLM::GeoKLMCreator::createPayloads
void createPayloads(const GearDir &content, const IntervalOfValidity &iov) override
Creation of payloads.
Definition: GeoKLMCreator.cc:46
Belle2::GearDir
GearDir is the basic class used for accessing the parameter store.
Definition: GearDir.h:41
Belle2::KLM::GeoKLMCreator::create
void create(const GearDir &content, G4LogicalVolume &topVolume, geometry::GeometryTypes type) override
Creation of the detector geometry from Gearbox (XML).
Definition: GeoKLMCreator.cc:30
Belle2::geometry::GeometryTypes
GeometryTypes
Flag indiciating the type of geometry to be used.
Definition: GeometryManager.h:39