Belle II Software development
GeoKLMCreator Class Reference

The creator for the KLM geometry of the Belle II detector. More...

#include <GeoKLMCreator.h>

Inheritance diagram for GeoKLMCreator:
CreatorBase

Public Member Functions

 GeoKLMCreator ()
 Constructor.
 
 ~GeoKLMCreator ()
 Destructor.
 
void create (const GearDir &content, G4LogicalVolume &topVolume, geometry::GeometryTypes type) override
 Creation of the detector geometry from Gearbox (XML).
 
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.
 
 BELLE2_DEFINE_EXCEPTION (DBNotImplemented, "Cannot create geometry from Database.")
 Exception that will be thrown in createFromDB if member is not yet implemented by creator.
 

Private Attributes

bklm::GeoBKLMCreator m_GeoBKLMCreator
 BKLM geometry creator.
 
EKLM::GeoEKLMCreator m_GeoEKLMCreator
 EKLM geometry creator.
 

Detailed Description

The creator for the KLM geometry of the Belle II detector.

Definition at line 31 of file GeoKLMCreator.h.

Constructor & Destructor Documentation

◆ GeoKLMCreator()

Constructor.

Definition at line 20 of file GeoKLMCreator.cc.

21{
22}

◆ ~GeoKLMCreator()

Destructor.

Definition at line 24 of file GeoKLMCreator.cc.

25{
26}

Member Function Documentation

◆ create()

void create ( const GearDir content,
G4LogicalVolume &  topVolume,
geometry::GeometryTypes  type 
)
overridevirtual

Creation of the detector geometry from Gearbox (XML).

Parameters
[in]contentXML data directory.
[in]topVolumeGeant world volume.
[in]typeGeometry type.

Implements CreatorBase.

Definition at line 28 of file GeoKLMCreator.cc.

31{
32 m_GeoBKLMCreator.create(content, topVolume, type);
33 m_GeoEKLMCreator.create(content, topVolume, type);
34}
void create(const GearDir &content, G4LogicalVolume &topVolume, geometry::GeometryTypes type) override
Creation of the detector geometry from Gearbox (XML).
bklm::GeoBKLMCreator m_GeoBKLMCreator
BKLM geometry creator.
Definition: GeoKLMCreator.h:74
EKLM::GeoEKLMCreator m_GeoEKLMCreator
EKLM geometry creator.
Definition: GeoKLMCreator.h:77
void create(const GearDir &content, G4LogicalVolume &topVolume, geometry::GeometryTypes type) override
Creates the objects for the BKLM geometry virtual void create(const GearDir&, G4LogicalVolume&,...

◆ createFromDB()

void createFromDB ( const std::string &  name,
G4LogicalVolume &  topVolume,
geometry::GeometryTypes  type 
)
overridevirtual

Creation of the detector geometry from database.

Parameters
[in]nameName of the component in the database.
[in]topVolumeGeant world volume.
[in]typeGeometry type.

Reimplemented from CreatorBase.

Definition at line 36 of file GeoKLMCreator.cc.

39{
40 m_GeoBKLMCreator.createFromDB(name, topVolume, type);
41 m_GeoEKLMCreator.createFromDB(name, topVolume, type);
42}
void createFromDB(const std::string &name, G4LogicalVolume &topVolume, geometry::GeometryTypes type) override
Creation of the detector geometry from database.
void createFromDB(const std::string &name, G4LogicalVolume &topVolume, geometry::GeometryTypes type) override
Create the geometry from the Database.

◆ createPayloads()

void createPayloads ( const GearDir content,
const IntervalOfValidity iov 
)
overridevirtual

Creation of payloads.

Parameters
contentXML data directory.
iovInterval of validity.

Reimplemented from CreatorBase.

Definition at line 44 of file GeoKLMCreator.cc.

46{
47 m_GeoBKLMCreator.createPayloads(content, iov);
48 m_GeoEKLMCreator.createPayloads(content, iov);
49}
void createPayloads(const GearDir &content, const IntervalOfValidity &iov) override
Creation of payloads.
void createPayloads(const GearDir &content, const IntervalOfValidity &iov) override
Create the configuration objects and save them in the Database.

Member Data Documentation

◆ m_GeoBKLMCreator

bklm::GeoBKLMCreator m_GeoBKLMCreator
private

BKLM geometry creator.

Definition at line 74 of file GeoKLMCreator.h.

◆ m_GeoEKLMCreator

EKLM::GeoEKLMCreator m_GeoEKLMCreator
private

EKLM geometry creator.

Definition at line 77 of file GeoKLMCreator.h.


The documentation for this class was generated from the following files: