Belle II Software development
|
The creator for the PXD geometry of the Belle II detector. More...
#include <GeoPXDCreator.h>
Public Member Functions | |
GeoPXDCreator () | |
Constructor of the GeoPXDCreator class. | |
virtual | ~GeoPXDCreator () |
The destructor of the GeoPXDCreator class. | |
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. | |
virtual VXD::GeoVXDAssembly | createLayerSupport () |
Create support structure for a PXD Layer. | |
virtual VXD::GeoVXDAssembly | createLadderSupport () |
Create support structure for a PXD Ladder. | |
virtual VXD::GeoVXDAssembly | createHalfShellSupport (const PXDGeometryPar ¶meters) |
Create support structure for PXD Half Shell, that means everything that does not depend on layer or sensor alignment. | |
virtual VXD::SensorInfoBase * | createSensorInfo (const VXDGeoSensorPar &sensor) override |
Read the sensor definitions from the database. | |
PXDSensorInfoPar * | readSensorInfo (const GearDir &sensor) |
Read the sensor definitions from the gearbox. | |
virtual VXD::SensitiveDetectorBase * | createSensitiveDetector (VxdID sensorID, const VXDGeoSensor &sensor, const VXDGeoSensorPlacement &placement) override |
Return a SensitiveDetector implementation for a given sensor. | |
void | readHalfShellSupport (const GearDir &support, PXDGeometryPar &pxdGeometryPar) |
Create support structure for VXD Half Shell, that means everything that does not depend on layer or sensor alignment. | |
virtual void | setCurrentLayer (int layer, const VXDGeometryPar ¶meters) |
Read parameters for given layer and store in m_ladder. | |
G4Transform3D | placeLadder (int ladderID, double phi, G4LogicalVolume *volume, const G4Transform3D &placement, const VXDGeometryPar ¶meters) |
Place ladder corresponding to the given ladder id into volume setLayer has to be called first to set the correct layer id. | |
G4Transform3D | getPosition (const VXDGeoComponent &mother, const VXDGeoComponent &daughter, const VXDGeoPlacement &placement, bool originCenter) |
Return the position where a daughter component is to be placed. | |
G4Transform3D | getAlignment (const VXDAlignmentPar ¶ms) |
Get Alignment from paylead object. | |
GeoVXDAssembly | createSubComponents (const std::string &name, VXDGeoComponent &component, std::vector< VXDGeoPlacement > placements, bool originCenter=true, bool allowOutside=false) |
Place a list of subcomponents into an component. | |
G4VSolid * | createTrapezoidal (const std::string &name, double width, double width2, double length, double &height, double angle=0) |
Create a trapezoidal solid. | |
void | createDiamonds (const VXDGeoRadiationSensorsPar ¶ms, G4LogicalVolume &topVolume, G4LogicalVolume &envelopeVolume) |
Create diamond radiation sensors. | |
std::vector< VXDGeoPlacementPar > | getSubComponents (const GearDir &path) |
Return vector of VXDGeoPlacements with all the components defined inside a given path. | |
virtual void | readLadder (int layer, GearDir components, VXDGeometryPar &geoparameters) |
Read parameters for a ladder in layer with given ID from gearbox and layer store them in payload. | |
virtual void | readLadderComponents (int layerID, int ladderID, GearDir content, VXDGeometryPar &vxdGeometryPar) |
Read parameters for ladder components and their alignment corresponding to the given ladder id. | |
void | readComponent (const std::string &name, GearDir components, VXDGeometryPar &vxdGeometryPar) |
Read parameters for component name from Gearbox into geometry payload. | |
void | readSubComponents (const std::vector< VXDGeoPlacementPar > &placements, const GearDir &componentsDir, VXDGeometryPar &vxdGeometryPar) |
Read parameters for all components in placement container from Gearbox into payload. | |
BELLE2_DEFINE_EXCEPTION (DBNotImplemented, "Cannot create geometry from Database.") | |
Exception that will be thrown in createFromDB if member is not yet implemented by creator. | |
Protected Attributes | |
std::string | m_prefix |
Prefix to prepend to all volume names. | |
GearDir | m_alignment |
GearDir pointing to the alignment parameters. | |
GearDir | m_components |
GearDir pointing to the toplevel of the components. | |
std::map< std::string, VXDGeoComponent > | m_componentCache |
Cache of all previously created components. | |
std::map< std::string, VXDGeoSensor > | m_sensorMap |
Map containing Information about all defined sensor types. | |
VXDGeoLadder | m_ladder |
Parameters of the currently active ladder. | |
std::vector< Simulation::SensitiveDetectorBase * > | m_sensitive |
List to all created sensitive detector instances. | |
GeoVXDRadiationSensors | m_radiationsensors |
Diamond radiation sensor "sub creator". | |
std::string | m_defaultMaterial |
Name of the Material to be used for Air. | |
float | m_distanceTolerance {(float)(5 * Unit::um)} |
tolerance for Geant4 steps to be merged to a single step | |
float | m_electronTolerance {100} |
tolerance for the energy deposition in electrons to be merged in a single step | |
float | m_minimumElectrons {10} |
minimum number of electrons to be deposited by a particle to be saved | |
double | m_activeStepSize {5 * Unit::um} |
Stepsize to be used inside active volumes. | |
bool | m_activeChips {false} |
Make also chips sensitive. | |
bool | m_seeNeutrons {false} |
Make sensitive detectors also see neutrons. | |
bool | m_onlyPrimaryTrueHits {false} |
If true only create TrueHits from primary particles and ignore secondaries. | |
bool | m_onlyActiveMaterial {false} |
If this is true, only active Materials will be placed for tracking studies. | |
std::vector< G4UserLimits * > | m_UserLimits |
Vector of G4UserLimit pointers. | |
std::string | m_currentHalfShell {""} |
Current half-shell being processed (need to know ladder parent for hierarchy) | |
std::map< std::string, Belle2::VxdID > | m_halfShellVxdIDs |
Used for translation of half-shell name into a VxdID to consitently handle it in hierarchy. | |
Private Member Functions | |
PXDGeometryPar | createConfiguration (const GearDir ¶m) |
Create a parameter object from the Gearbox XML parameters. | |
void | createGeometry (const PXDGeometryPar ¶meters, G4LogicalVolume &topVolume, geometry::GeometryTypes type) |
Create the geometry from a parameter object. | |
Private Attributes | |
std::vector< SensorInfo * > | m_SensorInfo |
Vector of points to SensorInfo objects. | |
The creator for the PXD geometry of the Belle II detector.
Definition at line 27 of file GeoPXDCreator.h.
|
inline |
Constructor of the GeoPXDCreator class.
Definition at line 36 of file GeoPXDCreator.h.
|
virtual |
The destructor of the GeoPXDCreator class.
Definition at line 51 of file GeoPXDCreator.cc.
|
inlineoverridevirtual |
The old create member: create the configuration object(s) on the fly and call the geometry creation routine.
Implements CreatorBase.
Definition at line 43 of file GeoPXDCreator.h.
|
private |
Create a parameter object from the Gearbox XML parameters.
Definition at line 132 of file GeoPXDCreator.cc.
|
inherited |
Create diamond radiation sensors.
Definition at line 209 of file GeoVXDCreator.cc.
|
inlineoverridevirtual |
Create the geometry from the Database.
Reimplemented from CreatorBase.
Definition at line 60 of file GeoPXDCreator.h.
|
private |
Create the geometry from a parameter object.
Definition at line 344 of file GeoPXDCreator.cc.
|
virtual |
Create support structure for PXD Half Shell, that means everything that does not depend on layer or sensor alignment.
parameters | Reference to the database containing the parameters |
Definition at line 561 of file GeoPXDCreator.cc.
|
virtual |
Create support structure for a PXD Ladder.
Definition at line 559 of file GeoPXDCreator.cc.
|
virtual |
Create support structure for a PXD Layer.
Definition at line 557 of file GeoPXDCreator.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 51 of file GeoPXDCreator.h.
|
overridevirtual |
Return a SensitiveDetector implementation for a given sensor.
sensorID | SensorID for the sensor |
sensor | Information about the sensor to create the Sensitive Detector for |
placement | Information on how to place the sensor |
Implements GeoVXDCreator.
Definition at line 547 of file GeoPXDCreator.cc.
|
overridevirtual |
Read the sensor definitions from the database.
sensor | Reference to the database containing the parameters |
Implements GeoVXDCreator.
Definition at line 57 of file GeoPXDCreator.cc.
|
inherited |
Place a list of subcomponents into an component.
If the volume of the given component is NULL, a new container will be created to fit all subcomponents. It will have air as medium. If at least one subcomponent with this placement is found the whole component is wrapped in a container volume with Air medium which extends above and below to fit the subcomponents
name | Name for the potential new volume or as prefix for the container to extend the component |
component | Component to fit the subcomponents into |
placements | Placement information for all subcomponents |
originCenter | bool |
allowOutside | bool |
Definition at line 74 of file GeoVXDCreator.cc.
|
inherited |
Create a trapezoidal solid.
name | name of the Geant4 solid | |
width | full forward width of the shape in mm | |
width2 | full backward width of the shape in mm | |
length | length of the shape in mm | |
[in,out] | height | of the shape in mm. If angle is not 0 this value might be changed if the actual height will be smaller due to the slanted edges |
angle | angle of the sides along w with respect to to the uv plane. 0 means normal box shaped, !=0 means the upper endcap of the solid will be smaller since all edges will be slanted by angle |
Definition at line 255 of file GeoVXDCreator.cc.
|
inherited |
Get Alignment from paylead object.
params | Payload object |
Definition at line 172 of file GeoVXDCreator.cc.
|
inherited |
Return the position where a daughter component is to be placed.
mother | Mother component |
daughter | Daughter component |
placement | VXDGeoPlacement |
originCenter | bool |
Definition at line 179 of file GeoVXDCreator.cc.
|
inherited |
Return vector of VXDGeoPlacements with all the components defined inside a given path.
Definition at line 606 of file GeoVXDCreator.cc.
|
inherited |
Place ladder corresponding to the given ladder id into volume setLayer has to be called first to set the correct layer id.
Definition at line 281 of file GeoVXDCreator.cc.
|
inherited |
Read parameters for component name from Gearbox into geometry payload.
The name is assumed to be unique and Volumes are cached.
name | Name of the component |
components | Path to components |
vxdGeometryPar | VXD geometry parameters |
Definition at line 533 of file GeoVXDCreator.cc.
void readHalfShellSupport | ( | const GearDir & | support, |
PXDGeometryPar & | pxdGeometryPar | ||
) |
Create support structure for VXD Half Shell, that means everything that does not depend on layer or sensor alignment.
support | Reference to the database containing the parameters |
pxdGeometryPar | PXD geometry |
Definition at line 295 of file GeoPXDCreator.cc.
|
virtualinherited |
Read parameters for a ladder in layer with given ID from gearbox and layer store them in payload.
Definition at line 575 of file GeoVXDCreator.cc.
|
virtualinherited |
Read parameters for ladder components and their alignment corresponding to the given ladder id.
Definition at line 471 of file GeoVXDCreator.cc.
PXDSensorInfoPar * readSensorInfo | ( | const GearDir & | sensor | ) |
Read the sensor definitions from the gearbox.
sensor | Reference to the database containing the parameters |
Definition at line 96 of file GeoPXDCreator.cc.
|
inherited |
Read parameters for all components in placement container from Gearbox into payload.
placements | container holding names of all components to be cached |
componentsDir | Path to Gearbox where parameters are to be found |
vxdGeometryPar |
Definition at line 524 of file GeoVXDCreator.cc.
|
virtualinherited |
Read parameters for given layer and store in m_ladder.
Definition at line 442 of file GeoVXDCreator.cc.
|
protectedinherited |
Make also chips sensitive.
Definition at line 209 of file GeoVXDCreator.h.
|
protectedinherited |
Stepsize to be used inside active volumes.
Definition at line 207 of file GeoVXDCreator.h.
|
protectedinherited |
GearDir pointing to the alignment parameters.
Definition at line 183 of file GeoVXDCreator.h.
|
protectedinherited |
Cache of all previously created components.
Definition at line 188 of file GeoVXDCreator.h.
|
protectedinherited |
GearDir pointing to the toplevel of the components.
Definition at line 185 of file GeoVXDCreator.h.
|
protectedinherited |
Current half-shell being processed (need to know ladder parent for hierarchy)
Definition at line 220 of file GeoVXDCreator.h.
|
protectedinherited |
Name of the Material to be used for Air.
Definition at line 199 of file GeoVXDCreator.h.
|
protectedinherited |
tolerance for Geant4 steps to be merged to a single step
Definition at line 201 of file GeoVXDCreator.h.
|
protectedinherited |
tolerance for the energy deposition in electrons to be merged in a single step
Definition at line 203 of file GeoVXDCreator.h.
|
protectedinherited |
Used for translation of half-shell name into a VxdID to consitently handle it in hierarchy.
Definition at line 222 of file GeoVXDCreator.h.
|
protectedinherited |
Parameters of the currently active ladder.
Definition at line 192 of file GeoVXDCreator.h.
|
protectedinherited |
minimum number of electrons to be deposited by a particle to be saved
Definition at line 205 of file GeoVXDCreator.h.
|
protectedinherited |
If this is true, only active Materials will be placed for tracking studies.
Dead Material will be ignored
Definition at line 216 of file GeoVXDCreator.h.
|
protectedinherited |
If true only create TrueHits from primary particles and ignore secondaries.
Definition at line 213 of file GeoVXDCreator.h.
|
protectedinherited |
Prefix to prepend to all volume names.
Definition at line 181 of file GeoVXDCreator.h.
|
protectedinherited |
Diamond radiation sensor "sub creator".
Definition at line 196 of file GeoVXDCreator.h.
|
protectedinherited |
Make sensitive detectors also see neutrons.
Definition at line 211 of file GeoVXDCreator.h.
|
protectedinherited |
List to all created sensitive detector instances.
Definition at line 194 of file GeoVXDCreator.h.
|
private |
Vector of points to SensorInfo objects.
Definition at line 119 of file GeoPXDCreator.h.
|
protectedinherited |
Map containing Information about all defined sensor types.
Definition at line 190 of file GeoVXDCreator.h.
|
protectedinherited |
Vector of G4UserLimit pointers.
Definition at line 218 of file GeoVXDCreator.h.