11#include <geometry/CreatorBase.h>
12#include <framework/gearbox/GearDir.h>
13#include <framework/logging/Logger.h>
14#include <framework/database/DBObjPtr.h>
15#include <framework/database/DBImportObjPtr.h>
16#include <framework/database/IntervalOfValidity.h>
17#include <ir/dbobjects/CryostatGeo.h>
20#include <G4Transform3D.hh>
51 return CryostatGeoConfig;
108 B2FATAL(
"No configuration for " << name <<
" found.");
Geometry parameters of Cryostat.
void initialize(const GearDir &content)
Initialize from gearbox (xml file)
bool import(const IntervalOfValidity &iov)
Import the object to database.
Class for importing a single object to the database.
void construct(Args &&... params)
Construct an object of type T in this DBImportObjPtr using the provided constructor arguments.
Class for accessing objects in the database.
GearDir is the basic class used for accessing the parameter store.
A class that describes the interval of experiments/runs for which an object in the database is valid.
Pure virtual base class for all geometry creators.
virtual void createPayloads(const GearDir &content, const IntervalOfValidity &iov) override
creates DB payload for CryostatGeo class
GeoCryostatCreator()
Constructor of the GeoCryostatCreator class.
GeoCryostatCreator(const GeoCryostatCreator &)=delete
Do not want a copy constructor.
CryostatGeo m_config
geometry parameters object
GeoCryostatCreator & operator=(const GeoCryostatCreator &)=delete
Do not want an assignment operator.
void createGeometry(G4LogicalVolume &topVolume, geometry::GeometryTypes type)
Create detector geometry.
virtual void create(const GearDir &content, G4LogicalVolume &topVolume, geometry::GeometryTypes type) override
Creates the ROOT Objects for the Cryostat geometry.
virtual ~GeoCryostatCreator() override
The destructor of the GeoCryostatCreator class.
CryostatGeo createConfiguration(const GearDir ¶m)
Reads IR geometry parameters from the xml files and createst DB class CryostatGeo.
virtual void createFromDB(const std::string &name, G4LogicalVolume &topVolume, geometry::GeometryTypes type) override
Create the geometry from the Database.
SensitiveDetector * m_sensitive
Sensitive detector.
The IR Sensitive Detector class.
static DBStore & Instance()
Instance of a singleton DBStore.
void addConstantOverride(const std::string &name, TObject *obj, bool oneRun=false)
Add constant override payload.
GeometryTypes
Flag indicating the type of geometry to be used.
Abstract base class for different kinds of events.
The struct for CryostatElement.
G4LogicalVolume * logi
Logical volume.
G4VSolid * geo
Solid volume.
G4Transform3D transform
Transformation.