#include <BCIDFilterTool.h>
- Author
- Christian Ohm -at- cern.ch
Definition at line 25 of file BCIDFilterTool.h.
◆ StoreGateSvc_t
◆ BCIDFilterTool()
| BCIDFilterTool::BCIDFilterTool |
( |
const std::string & | t, |
|
|
const std::string & | n, |
|
|
const IInterface * | p ) |
Constructor with parameters.
Definition at line 16 of file BCIDFilterTool.cxx.
18 :
20 {
21 declareInterface<DerivationFramework::ISkimmingTool>(this);
24 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
◆ ~BCIDFilterTool()
| BCIDFilterTool::~BCIDFilterTool |
( |
| ) |
|
◆ declareGaudiProperty()
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
158 {
161 hndl.documentation());
162
163 }
◆ DeclareInterfaceID()
| DerivationFramework::ISkimmingTool::DeclareInterfaceID |
( |
ISkimmingTool | , |
|
|
1 | , |
|
|
0 | ) |
|
inherited |
◆ declareProperty()
Definition at line 145 of file AthCommonDataStore.h.
145 {
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
◆ detStore()
◆ eventPassesFilter()
| bool BCIDFilterTool::eventPassesFilter |
( |
| ) |
const |
|
overridevirtual |
Check that the current event passes this filter.
Implements DerivationFramework::ISkimmingTool.
Definition at line 57 of file BCIDFilterTool.cxx.
58{
60
63
64 int bcid = ei->bcid();
65
68 if (bcid == acceptBCID) {
70 return true;
71 }
72 }
73 return false;
74 }
75
76 else {
78 if (bcid == rejectBCID) return false;
79 }
81 return true;
82 }
83}
#define ATH_CHECK
Evaluate an expression and check for errors.
ServiceHandle< StoreGateSvc > & evtStore()
retrieve(aClass, aKey=None)
EventInfo_v1 EventInfo
Definition of the latest event info version.
setEventNumber setTimeStamp bcid
◆ evtStore()
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ finalize()
| StatusCode BCIDFilterTool::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
| StatusCode BCIDFilterTool::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 30 of file BCIDFilterTool.cxx.
31{
33 ATH_MSG_ERROR(
"Failed to initialize - both accept and reject BCIDs specified, please only use one");
34 return StatusCode::FAILURE;
35 }
37 ATH_MSG_ERROR(
"Neither AcceptBCIDs nor RejectBCIDs specified, can't use filter!");
38 }
42 }
46 }
47
48 return StatusCode::SUCCESS;
49}
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ msg()
◆ msgLvl()
| bool AthCommonMsg< AlgTool >::msgLvl |
( |
const MSG::Level | lvl | ) |
const |
|
inlineinherited |
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
Definition at line 380 of file AthCommonDataStore.h.
381 {
384 }
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce(T &h)
◆ renounceArray()
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
Definition at line 308 of file AthCommonDataStore.h.
308 {
309
310
313 for (
auto k :
keys) {
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka
◆ m_acceptBCIDs
| std::vector<int> BCIDFilterTool::m_acceptBCIDs |
|
private |
◆ m_detStore
◆ m_evtStore
◆ m_npass
| std::atomic<unsigned int> BCIDFilterTool::m_npass {0} |
|
mutableprivate |
◆ m_ntot
| std::atomic<unsigned int> BCIDFilterTool::m_ntot {0} |
|
mutableprivate |
◆ m_rejectBCIDs
| std::vector<int> BCIDFilterTool::m_rejectBCIDs |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files: