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

The creator for the Service Material geometry of the Belle II detector. More...

#include <GeoServiceMaterialCreator.h>

Inheritance diagram for GeoServiceMaterialCreator:
Collaboration diagram for GeoServiceMaterialCreator:

Public Member Functions

 GeoServiceMaterialCreator ()=default
 Default constructor is sufficient in this case.
 
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. More...
 
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

ServiceGapsMaterialsPar createConfiguration (const GearDir &param)
 Create a parameter object from the Gearbox XML parameters.
 
void createGeometry (const ServiceGapsMaterialsPar &parameters, G4LogicalVolume &topVolume, geometry::GeometryTypes type)
 Create the geometry from a parameter object.
 
void createBEAST2Material (const ServiceGapsMaterialsPar &parameters, G4LogicalVolume *&logical_gap)
 Create BEAST2 Material between CDC and ECL from a parameter object.
 
void createTube (const double rmin, const double rmax, const double SPhi, const double DPhi, const double thick, const double posZ, G4Material *med, const std::string &name, G4LogicalVolume *&top)
 Create G4Tube.
 
void createCone (const double rmin1, const double rmax1, const double rmin2, const double rmax2, const double thick, const double SPhi, const double DPhi, const double posz, G4Material *med, const std::string &name, G4LogicalVolume *&top)
 Create G4Cone.
 

Private Attributes

G4Material * m_defaultMaterial {0}
 Default Material, inherited from topVolume.
 

Detailed Description

The creator for the Service Material geometry of the Belle II detector.

Definition at line 32 of file GeoServiceMaterialCreator.h.

Member Function Documentation

◆ createPayloads()

virtual void createPayloads ( const GearDir content,
const IntervalOfValidity iov 
)
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 70 of file GeoServiceMaterialCreator.h.

71  {
72  DBImportObjPtr<ServiceGapsMaterialsPar> importObj;
73  importObj.construct(createConfiguration(content));
74  importObj.import(iov);
75  }
ServiceGapsMaterialsPar createConfiguration(const GearDir &param)
Create a parameter object from the Gearbox XML parameters.

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