Belle II Software development
|
Simple caching structure to keep the payload information for this and the last exp/run. More...
#include <MetadataProvider.h>
Classes | |
struct | CacheEntry |
Each cache entry. More... | |
Public Member Functions | |
std::tuple< bool, PayloadMap * > | get (int exp, int run) |
Get the list of map payloads from the cache This returns a tuple containing two elements: | |
Private Attributes | |
CacheEntry | current |
currently valid conditions | |
CacheEntry | previous |
previously valid conditions | |
Simple caching structure to keep the payload information for this and the last exp/run.
This is mostly done to not request the payload information each time a new payload is created (during initialize) but also to make sure that flapping of run number doesn't excessively hammer the database. So we save the current and the last list of metadata
Definition at line 40 of file MetadataProvider.h.
|
inline |
Get the list of map payloads from the cache This returns a tuple containing two elements:
Definition at line 55 of file MetadataProvider.h.
|
private |
currently valid conditions
Definition at line 70 of file MetadataProvider.h.
|
private |
previously valid conditions
Definition at line 71 of file MetadataProvider.h.