 |
Belle II Software
release-05-02-19
|
12 #include <framework/database/DBAccessorBase.h>
23 template<
class T>
class DBObjPtr:
public DBAccessorBase {
30 explicit DBObjPtr(
const std::string& name =
"",
bool required =
true):
33 inline const T&
operator *()
const {
return *getObject<T>(); }
34 inline const T* operator ->()
const {
return getObject<T>(); }
47 template<
class T>
class OptionalDBObjPtr:
public DBObjPtr<T> {
DBObjPtr(const std::string &name="", bool required=true)
Constructor to access an object in the DBStore.
Base class for DBObjPtr and DBArray for easier common treatment.
B2Vector3< DataType > operator*(DataType a, const B2Vector3< DataType > &p)
non-memberfunction Scaling of 3-vectors with a real number
Singleton class to cache database objects.
Abstract base class for different kinds of events.
OptionalDBObjPtr(const std::string &name="")
Construct a new Array with a given name or with the default name which is identical to the class name...