 |
Belle II Software
release-05-01-25
|
11 #ifndef GEOSTRCREATOR_H
12 #define GEOSTRCREATOR_H
14 #include <geometry/CreatorBase.h>
15 #include <framework/gearbox/GearDir.h>
16 #include <framework/logging/Logger.h>
18 #include <framework/database/DBObjPtr.h>
19 #include <framework/database/DBImportObjPtr.h>
20 #include <framework/database/IntervalOfValidity.h>
22 #include <structure/dbobjects/STRGeometryPar.h>
26 class G4LogicalVolume;
77 B2FATAL(
"No configuration for " << name <<
" found.");
A class that describes the interval of experiments/runs for which an object in the database is valid.
The Class for STR geometry.
STRGeometryPar createConfiguration(const GearDir ¶m)
Create a parameter object from the Gearbox XML parameters.
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.
void createGeometry(const STRGeometryPar ¶meters, G4LogicalVolume &topVolume, geometry::GeometryTypes type)
Create the geometry from a parameter object.
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.
The GeoSTRCreator class to create the Belle2 structure geometry.
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.
virtual ~GeoSTRCreator()
The destructor of the GeoSTRCreator class.
virtual void createPayloads(const GearDir &content, const IntervalOfValidity &iov) override
Create the configuration objects and save them in the Database.
virtual void create(const GearDir &content, G4LogicalVolume &topVolume, geometry::GeometryTypes type) override
Creates the Geant4 objects for the structure geometry from Gearbox.
Pure virtual base class for all geometry creators.
void readShield(const GearDir &content, STRGeometryPar ¶meters, std::string side)
Read xml files from GearDir for one of the ECL shields.
void readPole(const GearDir &content, STRGeometryPar ¶meters, std::string side)
Read xml files from GearDir for one of the Pole Pieces.
GeometryTypes
Flag indiciating the type of geometry to be used.
GeoSTRCreator()
The Constructor of the GeoSTRCreator class.