16 const IInterface* p) :
42 return StatusCode::SUCCESS;
52 bool callV0Finder =
false;
57 if(vertContainer->
size() == 0) {
61 ATH_MSG_DEBUG(
"Container VertexContainer (" <<
str <<
") has events N= " << vertContainer->
size());
69 if ( h_V0.
record(std::make_unique<xAOD::VertexContainer>() ,std::make_unique<xAOD::VertexAuxContainer>()).isFailure()){
71 return StatusCode::FAILURE;
75 if ( h_Ks.
record(std::make_unique<xAOD::VertexContainer>() ,std::make_unique<xAOD::VertexAuxContainer>()).isFailure()){
77 return StatusCode::FAILURE;
81 if( h_La.
record(std::make_unique<xAOD::VertexContainer>() ,std::make_unique<xAOD::VertexAuxContainer>()).isFailure()){
83 return StatusCode::FAILURE;
87 if(h_Lb.
record(std::make_unique<xAOD::VertexContainer>() ,std::make_unique<xAOD::VertexAuxContainer>()).isFailure()){
89 return StatusCode::FAILURE;
102 if (importedVxContainer->size()==0){
103 ATH_MSG_WARNING(
"You have no primary vertices: " << importedVxContainer->size());
105 primaryVertex = (*importedVxContainer)[0];
111 primaryVertex, importedVxContainer.
cptr(), ctx));
125 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
size_type size() const noexcept
Returns the number of elements in the collection.
SG::WriteHandleKey< xAOD::VertexContainer > m_v0Key
std::vector< std::string > m_CollectionsToCheck
ToolHandle< InDet::V0MainDecorator > m_v0DecoTool
ToolHandle< InDet::InDetV0FinderTool > m_v0FinderTool
SG::WriteHandleKey< xAOD::VertexContainer > m_ksKey
StatusCode initialize() override
SG::WriteHandleKey< xAOD::VertexContainer > m_lbKey
virtual StatusCode addBranches(const EventContext &ctx) const override
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexKey
Reco_V0Finder(const std::string &t, const std::string &n, const IInterface *p)
SG::WriteHandleKey< xAOD::VertexContainer > m_laKey
virtual bool isValid() override final
Can the handle be successfully dereferenced?
const_pointer_type cptr()
Dereference the pointer.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
pointer_type ptr()
Dereference the pointer.
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".
Vertex_v1 Vertex
Define the latest version of the vertex class.