Belle II Software development
|
The GeoCoilCreator class. More...
#include <GeoCOILCreator.h>
Public Member Functions | |
GeoCOILCreator () | |
Constructor of the GeoCOILCreator class. | |
virtual | ~GeoCOILCreator () |
The destructor of the GeoCOILCreator 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 | |
COILGeometryPar | readConfiguration (const GearDir ¶m) |
Creates a parameter object from the Gearbox XML parameters. | |
virtual void | createGeometry (const COILGeometryPar ¶meters, G4LogicalVolume &topVolume, geometry::GeometryTypes) |
Creates the ROOT Objects for the coil geometry. | |
Private Attributes | |
std::vector< G4VisAttributes * > | m_VisAttributes |
Vector of pointers to G4VisAttributes. | |
The GeoCoilCreator class.
The creator for the the Belle II coil.
Definition at line 38 of file GeoCOILCreator.h.
GeoCOILCreator | ( | ) |
Constructor of the GeoCOILCreator class.
Definition at line 66 of file GeoCOILCreator.cc.
|
virtual |
The destructor of the GeoCOILCreator class.
Definition at line 73 of file GeoCOILCreator.cc.
|
overridevirtual |
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 80 of file GeoCOILCreator.cc.
|
overridevirtual |
Create the geometry from the Database.
Reimplemented from CreatorBase.
Definition at line 95 of file GeoCOILCreator.cc.
|
privatevirtual |
Creates the ROOT Objects for the coil geometry.
parameters | A database object containing the geometry information |
topVolume | A Geant4 volume where to place the item |
Definition at line 149 of file GeoCOILCreator.cc.
|
overridevirtual |
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 87 of file GeoCOILCreator.cc.
|
private |
Creates 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.
param | A reference to the content part of the parameter description, which should to be used to create the ROOT objects. |
Definition at line 107 of file GeoCOILCreator.cc.
|
private |
Vector of pointers to G4VisAttributes.
Definition at line 86 of file GeoCOILCreator.h.