|
| ~DBStore () |
| Destructor.
|
|
DBStoreEntry * | getEntry (DBStoreEntry::EPayloadType payloadType, const std::string &name, const TClass *objClass, bool array, bool required=true) |
| Returns the entry with the requested name in the DBStore.
|
|
DBStoreEntry * | getEntry (const std::string &name, const TClass *objClass, bool array, bool required=true) |
| Returns the entry with the requested name in the DBStore.
|
|
void | update () |
| Updates all objects that are outside their interval of validity.
|
|
void | update (const EventMetaData &event) |
| Updates all objects that are outside their interval of validity.
|
|
void | updateEvent () |
| Updates all intra-run dependent objects.
|
|
void | updateEvent (const unsigned int eventNumber) |
| Updates all intra-run dependent objects.
|
|
void | reset (bool keepEntries=false) |
| Invalidate all payloads.
|
|
std::set< std::string > | getAllEntryNames () |
| Return the names of all the payloads stored in the database at the time of this function is called.
|
|
void | addConstantOverride (const std::string &name, TObject *obj, bool oneRun=false) |
| Add constant override payload.
|
|
Singleton class to cache database objects.
The DBStore is the owner of the objects retrieved from the database.
Definition at line 31 of file DBStore.h.
DBStoreEntry * getEntry |
( |
const std::string & | name, |
|
|
const TClass * | objClass, |
|
|
bool | array, |
|
|
bool | required = true ) |
|
inline |
Returns the entry with the requested name in the DBStore.
If the DBStore entry does not exist yet it is added to the map.
If the DBStore map already contains an object under the key with a DIFFERENT type than the given type one, an error will be reported.
- Parameters
-
name | Name under which the object is stored in the database (and in the DBStore). |
objClass | The class of the object. |
array | Whether it is a TClonesArray or not. |
required | If true emit errors if the object cannot be found |
- Returns
- DBEntry, or NULL if the requested type does not match the one in the DBStore
Definition at line 86 of file DBStore.h.
88 {
89 return getEntry(DBStoreEntry::c_Object, name, objClass, array, required);
90 }