Belle II Software  release-08-01-10
FANGSCreator Class Reference

The creator for the FANGS geometry. More...

#include <FANGSCreator.h>

Inheritance diagram for FANGSCreator:
Collaboration diagram for FANGSCreator:

Public Member Functions

 FANGSCreator (Simulation::SensitiveDetectorBase *sensitive=nullptr)
 Constructor. More...
 
virtual ~FANGSCreator ()
 Destructor.
 
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. More...
 
virtual void create (const GearDir &content, G4LogicalVolume &topVolume, geometry::GeometryTypes type)
 Creation of the detector geometry from Gearbox (XML). More...
 
 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. More...
 
virtual void createPayloads (const GearDir &content, const IntervalOfValidity &iov)
 Function to create the geometry database. More...
 

Protected Attributes

Simulation::SensitiveDetectorBasem_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)
 

Detailed Description

The creator for the FANGS geometry.

Definition at line 29 of file FANGSCreator.h.

Constructor & Destructor Documentation

◆ FANGSCreator()

FANGSCreator ( Simulation::SensitiveDetectorBase sensitive = nullptr)

Constructor.

Parameters
sensitivedetector instance to use, if null a fangs::SensitiveDetector instance will be created.

Definition at line 36 of file FANGSCreator.cc.

36  : m_sensitive(sensitive)
37  {
38  /*if (!m_sensitive) {
39  m_sensitive = new SensitiveDetector();
40  }*/
41  }
Simulation::SensitiveDetectorBase * m_sensitive
pointer to the sensitive detector implementation
Definition: FANGSCreator.h:61

Member Function Documentation

◆ create()

void create ( const GearDir content,
G4LogicalVolume &  topVolume,
geometry::GeometryTypes  type 
)
virtual

Creation of the detector geometry from Gearbox (XML).

Parameters
[in]contentXML data directory.
[in]topVolumeGeant world volume.
[in]typeGeometry type.

Implements CreatorBase.

Definition at line 106 of file FANGSCreator.cc.

◆ createFromDB()

void createFromDB ( const std::string &  name,
G4LogicalVolume &  topVolume,
GeometryTypes  type 
)
virtualinherited

Function to create the geometry from the Database.

Parameters
namename of the component in the database, could be used to disambiguate multiple components created with the same creator
topVolumeTop volume in which the geometry has to be placed
typeType of geometry to be build

Reimplemented in GeoVXDServiceCreator, GeoHeavyMetalShieldCreator, GeoTOPCreator, GeoSVDCreator, GeoSTRCreator, GeoServiceMaterialCreator, GeoCOILCreator, GeoPXDCreator, GeoKLMCreator, GeoEKLMCreator, GeoBKLMCreator, GeoFarBeamLineCreator, GeoCryostatCreator, GeoBeamPipeCreator, MyDBCreator, GeoECLCreator, GeoCDCCreatorReducedCDC, GeoCDCCreator, BeamabortCreator, GeoARICHCreator, and GeoMagneticField.

Definition at line 17 of file CreatorBase.cc.

◆ createPayloads()

void createPayloads ( const GearDir content,
const IntervalOfValidity iov 
)
virtualinherited

Function to create the geometry database.

This function should be implemented to convert Gearbox parameters to one ore more database payloads

Parameters
contentGearDir pointing to the parameters which should be used for construction
iovinterval of validity to use when generating payloads

Reimplemented in GeoVXDServiceCreator, GeoHeavyMetalShieldCreator, GeoTOPCreator, GeoSVDCreator, GeoSTRCreator, GeoServiceMaterialCreator, GeoCOILCreator, GeoPXDCreator, GeoKLMCreator, GeoEKLMCreator, GeoBKLMCreator, GeoFarBeamLineCreator, GeoCryostatCreator, GeoBeamPipeCreator, MyDBCreator, GeoMagneticField, GeoECLCreator, GeoCDCCreatorReducedCDC, GeoCDCCreator, BeamabortCreator, and GeoARICHCreator.

Definition at line 24 of file CreatorBase.cc.

◆ createShape()

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.

Parameters
prefixprefix of the volume names
paramsXML parameters
parentLogical Volume where to place the shape
roffsetradial offset for the placement
checkif true check for overlaps when placing the volumes

Definition at line 49 of file FANGSCreator.cc.


The documentation for this class was generated from the following files: