Belle II Software
release-08-01-10
|
Pure virtual base class for all geometry creators. More...
#include <CreatorBase.h>
Public Member Functions | |
BELLE2_DEFINE_EXCEPTION (DBNotImplemented, "Cannot create geometry from Database.") | |
Exception that will be thrown in createFromDB if member is not yet implemented by creator. | |
CreatorBase () | |
Default Constructor. | |
virtual | ~CreatorBase () |
Default Destructor. | |
virtual void | create (const GearDir &content, G4LogicalVolume &topVolume, GeometryTypes type)=0 |
Function to actually create the geometry, has to be overridden by derived classes. More... | |
virtual void | createFromDB (const std::string &name, G4LogicalVolume &topVolume, GeometryTypes type) |
Function to create the geometry from the Database. More... | |
virtual void | createPayloads (const GearDir &content, const IntervalOfValidity &iov) |
Function to create the geometry database. More... | |
Pure virtual base class for all geometry creators.
Definition at line 28 of file CreatorBase.h.
|
pure virtual |
Function to actually create the geometry, has to be overridden by derived classes.
content | GearDir pointing to the parameters which should be used for construction |
topVolume | Top volume in which the geometry has to be placed |
type | Type of geometry to be build |
Implemented in AWESOMEGeometryCreator, GeoVXDServiceCreator, GeoHeavyMetalShieldCreator, GeoTOPCreator, GeoSVDCreator, GeoSTRCreator, GeoServiceMaterialCreator, GeoCOILCreator, GeoPXDCreator, GeoKLMCreator, GeoEKLMCreator, GeoBKLMCreator, GeoFarBeamLineCreator, GeoCryostatCreator, GeoBeamPipeCreator, MyDBCreator, GeoMagneticField, GeoECLCreator, GeoCDCCreatorReducedCDC, GeoCDCCreator, BeamabortCreator, GeoARICHCreator, SddCreator, Fei4Creator, DiamondCreator, QcsmonitorCreator, PlumeCreator, PindiodeCreator, Ph1sustrCreator, Ph1bpipeCreator, MicrotpcCreator, He3tubeCreator, FANGSCreator, DosiCreator, CsiCreator, CLAWSCreator, ClawCreator, CaveCreator, BgoCreator, and GeoARICHBtestCreator.
|
virtual |
Function to create the geometry from the Database.
name | name of the component in the database, could be used to disambiguate multiple components created with the same creator |
topVolume | Top volume in which the geometry has to be placed |
type | Type of geometry to be build |
Reimplemented in GeoVXDServiceCreator, GeoHeavyMetalShieldCreator, GeoTOPCreator, GeoSVDCreator, GeoSTRCreator, GeoServiceMaterialCreator, GeoCOILCreator, GeoPXDCreator, GeoKLMCreator, GeoEKLMCreator, GeoBKLMCreator, GeoFarBeamLineCreator, GeoCryostatCreator, GeoBeamPipeCreator, MyDBCreator, GeoECLCreator, GeoCDCCreatorReducedCDC, GeoCDCCreator, BeamabortCreator, GeoARICHCreator, and GeoMagneticField.
Definition at line 17 of file CreatorBase.cc.
|
virtual |
Function to create the geometry database.
This function should be implemented to convert Gearbox parameters to one ore more database payloads
content | GearDir pointing to the parameters which should be used for construction |
iov | interval of validity to use when generating payloads |
Reimplemented in GeoVXDServiceCreator, GeoHeavyMetalShieldCreator, GeoTOPCreator, GeoSVDCreator, GeoSTRCreator, GeoServiceMaterialCreator, GeoCOILCreator, GeoPXDCreator, GeoKLMCreator, GeoEKLMCreator, GeoBKLMCreator, GeoFarBeamLineCreator, GeoCryostatCreator, GeoBeamPipeCreator, MyDBCreator, GeoMagneticField, GeoECLCreator, GeoCDCCreatorReducedCDC, GeoCDCCreator, BeamabortCreator, and GeoARICHCreator.
Definition at line 24 of file CreatorBase.cc.