37#include <geometry/CreatorBase.h>
38#include <framework/logging/Logger.h>
39#include <framework/database/DBObjPtr.h>
40#include <framework/database/DBImportObjPtr.h>
41#include <framework/database/IntervalOfValidity.h>
92 B2FATAL(
"No configuration for " << name <<
" found.");
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.
Very simple Creator class which actually does not do anything but shows how creators should implement...
virtual void createPayloads(const GearDir &content, const IntervalOfValidity &iov) override
Create the configuration objects and save them in the Database.
void createGeometry(const MyDBPayloadClass ¶meters, G4LogicalVolume &topVolume, geometry::GeometryTypes type)
Create the geometry from a parameter object.
MyDBPayloadClass createConfiguration(const GearDir ¶m)
Create a parameter object from the Gearbox XML parameters.
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...
virtual void createFromDB(const std::string &name, G4LogicalVolume &topVolume, geometry::GeometryTypes type) override
Create the geometry from the Database.
Class containing all the parameters needed to create the geometry and suitable to save into a ROOT fi...
ClassDef(MyDBPayloadClass, 1)
Database objects need a dictionary.
Pure virtual base class for all geometry creators.
GeometryTypes
Flag indiciating the type of geometry to be used.
Abstract base class for different kinds of events.