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

The creator for the VXD Service geometry of the Belle II detector. More...

#include <GeoVXDServiceCreator.h>

Inheritance diagram for GeoVXDServiceCreator:
Collaboration diagram for GeoVXDServiceCreator:

Public Member Functions

 GeoVXDServiceCreator ()=default
 Default constructor is sufficient in this case.
 
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

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

Private Attributes

G4Material * m_defaultMaterial {0}
 Default Material, inherited from topVolume.
 

Detailed Description

The creator for the VXD Service geometry of the Belle II detector.

Definition at line 32 of file GeoVXDServiceCreator.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 53 of file GeoVXDServiceCreator.h.

54  {
55  DBImportObjPtr<VXDServiceGeometryPar> importObj;
56  importObj.construct(createConfiguration(content));
57  importObj.import(iov);
58  }
VXDServiceGeometryPar createConfiguration(const GearDir &param)
Create a parameter object from the Gearbox XML parameters.

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