Belle II Software development
|
The creator for the CLAWS geometry. More...
#include <CLAWSCreator.h>
Public Member Functions | |
CLAWSCreator (Simulation::SensitiveDetectorBase *sensitive=nullptr) | |
Constructor. | |
virtual | ~CLAWSCreator () |
Destructor. | |
void | createShape (const std::string &prefix, const GearDir ¶ms, G4LogicalVolume *parent, double roffset, bool check) |
create a shape (box or cylinder) from XML description and place all child shapes in it by recursively calling this function for all children. | |
virtual void | create (const GearDir &content, G4LogicalVolume &topVolume, geometry::GeometryTypes type) |
Creation of the detector geometry from Gearbox (XML). | |
BELLE2_DEFINE_EXCEPTION (DBNotImplemented, "Cannot create geometry from Database.") | |
Exception that will be thrown in createFromDB if member is not yet implemented by creator. | |
virtual void | createFromDB (const std::string &name, G4LogicalVolume &topVolume, GeometryTypes type) |
Function to create the geometry from the Database. | |
virtual void | createPayloads (const GearDir &content, const IntervalOfValidity &iov) |
Function to create the geometry database. | |
Protected Attributes | |
Simulation::SensitiveDetectorBase * | m_sensitive {nullptr} |
pointer to the sensitive detector implementation | |
G4Material * | m_topMaterial {nullptr} |
pointer to the material in the top volume to use as default | |
G4UserLimits * | m_stepLength {nullptr} |
pointer to the G4Userlimits to set for sensitive volumes (if any) | |
The creator for the CLAWS geometry.
Definition at line 29 of file CLAWSCreator.h.
CLAWSCreator | ( | Simulation::SensitiveDetectorBase * | sensitive = nullptr | ) |
Constructor.
sensitive | detector instance to use, if null a claws::SensitiveDetector instance will be created. |
Definition at line 36 of file CLAWSCreator.cc.
|
virtual |
Destructor.
Definition at line 43 of file CLAWSCreator.cc.
|
virtual |
Creation of the detector geometry from Gearbox (XML).
[in] | content | XML data directory. |
[in] | topVolume | Geant world volume. |
[in] | type | Geometry type. |
Implements CreatorBase.
Definition at line 130 of file CLAWSCreator.cc.
|
virtualinherited |
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 GeoMagneticField, GeoARICHCreator, BeamabortCreator, GeoCDCCreator, GeoCDCCreatorReducedCDC, GeoECLCreator, MyDBCreator, GeoBeamPipeCreator, GeoCryostatCreator, GeoFarBeamLineCreator, GeoBKLMCreator, GeoEKLMCreator, GeoKLMCreator, GeoPXDCreator, GeoCOILCreator, GeoServiceMaterialCreator, GeoSTRCreator, GeoSVDCreator, GeoTOPCreator, GeoHeavyMetalShieldCreator, and GeoVXDServiceCreator.
Definition at line 17 of file CreatorBase.cc.
|
virtualinherited |
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 GeoARICHCreator, BeamabortCreator, GeoCDCCreator, GeoCDCCreatorReducedCDC, GeoECLCreator, GeoMagneticField, MyDBCreator, GeoBeamPipeCreator, GeoCryostatCreator, GeoFarBeamLineCreator, GeoBKLMCreator, GeoEKLMCreator, GeoKLMCreator, GeoPXDCreator, GeoCOILCreator, GeoServiceMaterialCreator, GeoSTRCreator, GeoSVDCreator, GeoTOPCreator, GeoHeavyMetalShieldCreator, and GeoVXDServiceCreator.
Definition at line 24 of file CreatorBase.cc.
void createShape | ( | const std::string & | prefix, |
const GearDir & | params, | ||
G4LogicalVolume * | parent, | ||
double | roffset, | ||
bool | check | ||
) |
create a shape (box or cylinder) from XML description and place all child shapes in it by recursively calling this function for all children.
prefix | prefix of the volume names |
params | XML parameters |
parent | Logical Volume where to place the shape |
roffset | radial offset for the placement |
check | if true check for overlaps when placing the volumes |
Definition at line 49 of file CLAWSCreator.cc.
|
protected |
pointer to the sensitive detector implementation
Definition at line 62 of file CLAWSCreator.h.
|
protected |
pointer to the G4Userlimits to set for sensitive volumes (if any)
Definition at line 66 of file CLAWSCreator.h.
|
protected |
pointer to the material in the top volume to use as default
Definition at line 64 of file CLAWSCreator.h.