#include <EventInfoLockHelper.h>
|
| typedef std::function< bool(uint32_t, uint32_t, uint64_t)> | unlockFunc_t |
Definition at line 19 of file EventInfoLockHelper.h.
◆ unlockFunc_t
◆ EventInfoLockHelper()
| EventInfoLockHelper::EventInfoLockHelper |
( |
| ) |
|
|
default |
◆ addUnlockFunc()
Add a function defining if the flags are to be locked.
Should be called from initialize() of the AODFix algorithm
- Parameters
-
| 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.
7 {
8 s_unlockFuncs.push_back(fn);
9 }
◆ evalUnlockFunc()
| bool EventInfoLockHelper::evalUnlockFunc |
( |
uint32_t | runNbr, |
|
|
uint32_t | lbNrb, |
|
|
uint64_t | evtNbr ) const |
Check if the lock should happen or not.
- Parameters
-
| 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.
12 {
13 for (auto& fn : s_unlockFuncs) {
14 if (
fn(runNbr,lbNrb,evtNbr))
return true;
15 }
16 return false;
17 }
◆ ATLAS_THREAD_SAFE
| std::vector<unlockFunc_t> s_unlockFuncs EventInfoLockHelper::ATLAS_THREAD_SAFE |
|
staticprivate |
The documentation for this class was generated from the following files: