![]() |
ATLAS Offline Software
|
#include <EventInfoLockHelper.h>
Public Types | |
| typedef std::function< bool(uint32_t, uint32_t, uint64_t)> | unlockFunc_t |
Public Member Functions | |
| EventInfoLockHelper ()=default | |
| bool | evalUnlockFunc (uint32_t runNbr, uint32_t lbNrb, uint64_t evtNbr) const |
| Check if the lock should happen or not. | |
Static Public Member Functions | |
| static void | addUnlockFunc (unlockFunc_t fn) ATLAS_NOT_THREAD_SAFE |
| Add a function defining if the flags are to be locked. | |
Static Private Attributes | |
| static std::vector< unlockFunc_t > s_unlockFuncs | ATLAS_THREAD_SAFE |
Definition at line 19 of file EventInfoLockHelper.h.
| typedef std::function<bool(uint32_t, uint32_t,uint64_t)> EventInfoLockHelper::unlockFunc_t |
Definition at line 22 of file EventInfoLockHelper.h.
|
default |
|
static |
Add a function defining if the flags are to be locked.
Should be called from initialize() of the AODFix algorithm
| fn | A std::function taking a run-number, a lumiblock number and an event number as paramenter. Should return true if the lock should be avoided |
This (static) method should be called from initialize() of the AODFix algorithm
Definition at line 7 of file EventInfoLockHelper.cxx.
| bool EventInfoLockHelper::evalUnlockFunc | ( | uint32_t | runNbr, |
| uint32_t | lbNrb, | ||
| uint64_t | evtNbr ) const |
Check if the lock should happen or not.
| runNbr | RunNumber of the current event |
| lbNbr | LumiBlock number of the current event |
| evtNbr | EventNumber of the current event |
To be called in EventAuxInfo_vN::toTransient()
Definition at line 12 of file EventInfoLockHelper.cxx.
|
staticprivate |
Definition at line 44 of file EventInfoLockHelper.h.