 |
Belle II Software
release-05-01-25
|
13 #include <geometry/CreatorBase.h>
14 #include <framework/gearbox/GearDir.h>
15 #include <framework/logging/Logger.h>
16 #include <framework/database/DBObjPtr.h>
17 #include <framework/database/DBImportObjPtr.h>
18 #include <framework/database/IntervalOfValidity.h>
19 #include <ir/dbobjects/FarBeamLineGeo.h>
22 #include <G4Transform3D.hh>
23 #include <G4VSolid.hh>
32 struct FarBeamLineElement {
51 return FarBeamLineGeoConfig;
102 B2FATAL(
"No configuration for " << name <<
" found.");
A class that describes the interval of experiments/runs for which an object in the database is valid.
void addConstantOverride(const std::string &name, TObject *obj, bool oneRun=false)
Add constant override payload.
Geometry parameters of far beam line.
void construct(Args &&... params)
Construct an object of type T in this DBImportObjPtr using the provided constructor arguments.
virtual void createPayloads(const GearDir &content, const IntervalOfValidity &iov) override
creates DB payload for FarBeamLineGeo class
bool import(const IntervalOfValidity &iov)
Import the object to database.
void createGeometry(G4LogicalVolume &topVolume, geometry::GeometryTypes type)
Create detector geometry.
void initialize(const GearDir &content)
Initialize from gearbox (xml files)
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.
GeoFarBeamLineCreator()
Constructor of the GeoFarBeamLineCreator class.
G4Transform3D transform
Transformation.
Abstract base class for different kinds of events.
virtual ~GeoFarBeamLineCreator()
The destructor of the GeoFarBeamLineCreator class.
GearDir is the basic class used for accessing the parameter store.
Class for importing a single object to the database.
static DBStore & Instance()
Instance of a singleton DBStore.
The IR Sensitive Detector class.
Pure virtual base class for all geometry creators.
FarBeamLineGeo m_config
geometry parameters object
VXD::SensitiveDetector< PXDSimHit, PXDTrueHit > SensitiveDetector
The PXD Sensitive Detector class.
The creator for the FarBeamLine geometry of the Belle II detector.
FarBeamLineGeo createConfiguration(const GearDir ¶m)
Reads IR geometry parameters from the xml files and createst DB class FarBeamLineGeo.
SensitiveDetector * m_sensitive
Sensitive detector.
GeometryTypes
Flag indiciating the type of geometry to be used.
virtual void create(const GearDir &content, G4LogicalVolume &topVolume, geometry::GeometryTypes type) override
Creates the ROOT Objects for the FarBeamLine geometry.
GeoFarBeamLineCreator & operator=(const GeoFarBeamLineCreator &)=delete
Do not want an assignment operator.
G4VSolid * geo
Solid volume.