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

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

#include <GeoHeavyMetalShieldCreator.h>

Inheritance diagram for GeoHeavyMetalShieldCreator:
Collaboration diagram for GeoHeavyMetalShieldCreator:

Public Member Functions

virtual void create (const GearDir &content, G4LogicalVolume &topVolume, geometry::GeometryTypes type) override
 The old create member: create the configuration object(s) on the fly and call the geometry creation routine.
 
virtual void createPayloads (const GearDir &content, const IntervalOfValidity &iov) override
 Create the configuration objects and save them in the Database. More...
 
virtual void createFromDB (const std::string &name, G4LogicalVolume &topVolume, geometry::GeometryTypes type) override
 Create the geometry from the Database.
 
 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 Member Functions

HeavyMetalShieldGeometryPar createConfiguration (const GearDir &param)
 Create a parameter object from the Gearbox XML parameters.
 
void createGeometry (const HeavyMetalShieldGeometryPar &parameters, G4LogicalVolume &topVolume, geometry::GeometryTypes type)
 Create the geometry from a parameter object.
 

Detailed Description

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


Definition at line 31 of file GeoHeavyMetalShieldCreator.h.

Member Function Documentation

◆ createPayloads()

virtual void createPayloads ( const GearDir content,
const IntervalOfValidity iov 
)
inlineoverridevirtual

Create the configuration objects and save them in the Database.

If more than one object is needed adjust accordingly

Reimplemented from CreatorBase.

Definition at line 50 of file GeoHeavyMetalShieldCreator.h.

51  {
52  DBImportObjPtr<HeavyMetalShieldGeometryPar> importObj;
53  importObj.construct(createConfiguration(content));
54  importObj.import(iov);
55  }
HeavyMetalShieldGeometryPar createConfiguration(const GearDir &param)
Create a parameter object from the Gearbox XML parameters.

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