Belle II Software  release-08-01-10
GeoKLMCreator Class Reference

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

#include <GeoKLMCreator.h>

Inheritance diagram for GeoKLMCreator:
Collaboration diagram for GeoKLMCreator:

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). More...
 
void createFromDB (const std::string &name, G4LogicalVolume &topVolume, geometry::GeometryTypes type) override
 Creation of the detector geometry from database. More...
 
void createPayloads (const GearDir &content, const IntervalOfValidity &iov) override
 Creation of payloads. More...
 
 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.

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.

◆ 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.


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