 |
Belle II Software
release-05-02-19
|
11 #ifndef GEOSERVICEMATERIALCREATOR_H
12 #define GEOSERVICEMATERIALCREATOR_H
14 #include <geometry/CreatorBase.h>
16 #include <framework/logging/Logger.h>
17 #include <framework/database/DBObjPtr.h>
18 #include <framework/database/DBImportObjPtr.h>
19 #include <framework/database/IntervalOfValidity.h>
21 #include <structure/dbobjects/ServiceGapsMaterialsPar.h>
46 void createTube(
const double rmin,
const double rmax,
47 const double SPhi,
const double DPhi,
48 const double thick,
const double posZ,
49 G4Material* med,
const std::string& name, G4LogicalVolume*& top);
52 void createCone(
const double rmin1,
const double rmax1,
53 const double rmin2,
const double rmax2,
54 const double thick,
const double SPhi,
const double DPhi,
const double posz,
55 G4Material* med,
const std::string& name, G4LogicalVolume*& top);
85 B2FATAL(
"No configuration for " << name <<
" found.");
A class that describes the interval of experiments/runs for which an object in the database is valid.
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 r...
G4Material * m_defaultMaterial
Default Material, inherited from topVolume.
The Class for services materials geometry.
void construct(Args &&... params)
Construct an object of type T in this DBImportObjPtr using the provided constructor arguments.
bool import(const IntervalOfValidity &iov)
Import the object to database.
Class for accessing objects in the database.
virtual void createFromDB(const std::string &name, G4LogicalVolume &topVolume, geometry::GeometryTypes type) override
Create the geometry from the Database.
ServiceGapsMaterialsPar createConfiguration(const GearDir ¶m)
Create a parameter object from the Gearbox XML parameters.
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.
void createGeometry(const ServiceGapsMaterialsPar ¶meters, G4LogicalVolume &topVolume, geometry::GeometryTypes type)
Create the geometry from a parameter object.
Abstract base class for different kinds of events.
GearDir is the basic class used for accessing the parameter store.
Class for importing a single object to the database.
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.
virtual void createPayloads(const GearDir &content, const IntervalOfValidity &iov) override
Create the configuration objects and save them in the Database.
Pure virtual base class for all geometry creators.
void createBEAST2Material(const ServiceGapsMaterialsPar ¶meters, G4LogicalVolume *&logical_gap)
Create BEAST2 Material between CDC and ECL from a parameter object.
GeometryTypes
Flag indiciating the type of geometry to be used.
The creator for the Service Material geometry of the Belle II detector.