9#include <framework/database/DBImportBase.h>
10#include <framework/database/EventDependency.h>
11#include <framework/database/Database.h>
12#include <framework/logging/Logger.h>
29 B2FATAL(
"DBImportBase::addIntraRunDependency: " <<
30 "intra run dependency cannot be of mixed types");
41 return import<EventDependency>(iov);
43 B2ERROR(
"DBImportBase::import: " <<
44 "intra run dependency of type 'time stamp' not supported yet");
47 B2ERROR(
"DBImportBase::import: " <<
48 "intra run dependency of type 'subrun' not supported yet");
66 for (
auto&
object :
m_objects)
delete object;
78 for (
auto&
object :
m_objects)
delete object;
bool import(const IntervalOfValidity &iov)
Import the object to database.
void addIntraRunDependency(unsigned long long int tag, EIntraRunDependency type)
add intra run dependency
EIntraRunDependency
Intra run dependency types (used only internaly)
virtual ~DBImportBase()
Destructor.
std::vector< unsigned long long int > m_tags
container for intra run dep.
bool storeData(TObject *intraRun, const IntervalOfValidity &iov)
Store intra run dependent objects.
std::vector< TObject * > m_objects
container for intra run dependency objects
virtual void clear()
Clear the content, e.g.
std::string m_name
object or array name in database
EIntraRunDependency m_dependency
dependency type
TObject * m_object
pointer to allocated object or array
A class that describes the interval of experiments/runs for which an object in the database is valid.
static Database & Instance()
Instance of a singleton Database.
bool storeData(const std::string &name, TObject *object, const IntervalOfValidity &iov)
Store an object in the database.
Abstract base class for different kinds of events.