Belle II Software light-2406-ragdoll
|
Very simple Creator class which actually does not do anything but shows how creators should implement loading the geometry from database. More...
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. | |
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 | |
MyDBPayloadClass | createConfiguration (const GearDir ¶m) |
Create a parameter object from the Gearbox XML parameters. | |
void | createGeometry (const MyDBPayloadClass ¶meters, G4LogicalVolume &topVolume, geometry::GeometryTypes type) |
Create the geometry from a parameter object. | |
Very simple Creator class which actually does not do anything but shows how creators should implement loading the geometry from database.
Definition at line 57 of file DBCreatorExample.cc.
|
inlineoverridevirtual |
The old create member: create the configuration object(s) on the fly and call the geometry creation routine.
If more than one object is needed adjust accordingly
Implements CreatorBase.
Definition at line 71 of file DBCreatorExample.cc.
|
private |
Create a parameter object from the Gearbox XML parameters.
If more than one object is created these could be assigned to members or you could return a tuple.
|
inlineoverridevirtual |
Create the geometry from the Database.
Reimplemented from CreatorBase.
Definition at line 87 of file DBCreatorExample.cc.
|
private |
Create the geometry from a parameter object.
If more than one object is needed these could instead be taken from member variables or the number of parameters could be increased.
|
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 79 of file DBCreatorExample.cc.