Belle II Software development
|
The GeoSTRCreator class to create the Belle2 structure geometry. More...
#include <GeoSTRCreator.h>
Public Member Functions | |
GeoSTRCreator () | |
The Constructor of the GeoSTRCreator class. | |
virtual | ~GeoSTRCreator () |
The destructor of the GeoSTRCreator class. | |
virtual void | create (const GearDir &content, G4LogicalVolume &topVolume, geometry::GeometryTypes type) override |
Creates the Geant4 objects for the structure geometry from Gearbox. | |
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 | |
STRGeometryPar | createConfiguration (const GearDir ¶m) |
Create a parameter object from the Gearbox XML parameters. | |
void | createGeometry (const STRGeometryPar ¶meters, G4LogicalVolume &topVolume, geometry::GeometryTypes type) |
Create the geometry from a parameter object. | |
void | readShield (const GearDir &content, STRGeometryPar ¶meters, std::string side) |
Read xml files from GearDir for one of the ECL shields. | |
void | readPole (const GearDir &content, STRGeometryPar ¶meters, std::string side) |
Read xml files from GearDir for one of the Pole Pieces. | |
The GeoSTRCreator class to create the Belle2 structure geometry.
The creator for the Belle II structural elements such as radiation shields and pole piece
Definition at line 38 of file GeoSTRCreator.h.
GeoSTRCreator | ( | ) |
The Constructor of the GeoSTRCreator class.
Definition at line 49 of file GeoSTRCreator.cc.
|
virtual |
The destructor of the GeoSTRCreator class.
Definition at line 55 of file GeoSTRCreator.cc.
|
inlineoverridevirtual |
Creates the Geant4 objects for the structure geometry from Gearbox.
This is the 'old' way of building the geometry from Gearbox (xml files). Expected to be deprecated in the future.
content | A reference to the content part of the parameter description, which should to be used to create the ROOT objects. |
topVolume | Geant4 logical top volume. |
type | Geometry type. |
Implements CreatorBase.
Definition at line 55 of file GeoSTRCreator.h.
|
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.
Definition at line 148 of file GeoSTRCreator.cc.
|
inlineoverridevirtual |
Create the geometry from the Database.
Reimplemented from CreatorBase.
Definition at line 71 of file GeoSTRCreator.h.
|
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.
Definition at line 62 of file GeoSTRCreator.cc.
|
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 63 of file GeoSTRCreator.h.
|
private |
Read xml files from GearDir for one of the Pole Pieces.
Definition at line 162 of file GeoSTRCreator.cc.
|
private |
Read xml files from GearDir for one of the ECL shields.
Definition at line 197 of file GeoSTRCreator.cc.