#include <AnyVertexSkimmingTool.h>
Definition at line 15 of file AnyVertexSkimmingTool.h.
◆ AnyVertexSkimmingTool()
| DerivationFramework::AnyVertexSkimmingTool::AnyVertexSkimmingTool |
( |
const std::string & | t, |
|
|
const std::string & | n, |
|
|
const IInterface * | p ) |
◆ ~AnyVertexSkimmingTool()
| DerivationFramework::AnyVertexSkimmingTool::~AnyVertexSkimmingTool |
( |
| ) |
|
|
default |
◆ eventPassesFilter()
| bool DerivationFramework::AnyVertexSkimmingTool::eventPassesFilter |
( |
| ) |
const |
|
overridevirtual |
Definition at line 22 of file AnyVertexSkimmingTool.cxx.
22 {
23
25 bool pass = false;
28 SG::ReadHandle<xAOD::VertexContainer>
read(key);
30 std::string
error(
"AnyVertexSkimmingTool - Failed to retrieve : ");
32 throw std::runtime_error(error);
33 }
34 if(not
read->empty()) pass |=
true;
35 }
36 return pass;
37 }else{
38 bool pass = false;
42 if(evtStore()->
retrieve(container, name).isFailure()){
43 std::string
error(
"AnyVertexSkimmingTool - Failed to retrieve : ");
45 throw std::runtime_error(error);
46 }
47 if(not container->
empty()) pass |=
true;
48
49 }
50 return pass;
51 }
52}
bool empty() const noexcept
Returns true if the collection is empty.
retrieve(aClass, aKey=None)
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".
IovVectorMap_t read(const Folder &theFolder, const SelectionCriterion &choice, const unsigned int limit=10)
◆ initialize()
| StatusCode DerivationFramework::AnyVertexSkimmingTool::initialize |
( |
| ) |
|
|
override |
Definition at line 16 of file AnyVertexSkimmingTool.cxx.
16 {
19 return StatusCode::SUCCESS;
20}
#define ATH_CHECK
Evaluate an expression and check for errors.
◆ m_containerNames
| Gaudi::Property<std::vector<std::string> > DerivationFramework::AnyVertexSkimmingTool::m_containerNames { this, "VertexContainerNames", {} } |
|
private |
◆ m_keyArray
◆ m_useHandles
| Gaudi::Property<bool> DerivationFramework::AnyVertexSkimmingTool::m_useHandles { this, "UseHandles", false } |
|
private |
The documentation for this class was generated from the following files: