53 return StatusCode::SUCCESS;
61 const EventContext& ctx = Gaudi::Hive::currentContext();
65 if ( !importedVxContainer.
isValid() )
68 return StatusCode::RECOVERABLE;
72 if ( importedVxContainer->empty() ){
75 primaryVertex = importedVxContainer->front();
80 if ( h_V0.
record(std::make_unique<xAOD::VertexContainer>() ,std::make_unique<xAOD::VertexAuxContainer>()).isFailure()){
82 return StatusCode::FAILURE;
86 if ( h_Ks.
record(std::make_unique<xAOD::VertexContainer>() ,std::make_unique<xAOD::VertexAuxContainer>()).isFailure()){
88 return StatusCode::FAILURE;
92 if( h_La.
record(std::make_unique<xAOD::VertexContainer>() ,std::make_unique<xAOD::VertexAuxContainer>()).isFailure()){
94 return StatusCode::FAILURE;
98 if(h_Lb.
record(std::make_unique<xAOD::VertexContainer>() ,std::make_unique<xAOD::VertexAuxContainer>()).isFailure()){
100 return StatusCode::FAILURE;
108 primaryVertex, importedVxContainer.
cptr(), ctx);
110 if (statusOfSearch != StatusCode::SUCCESS){
112 return StatusCode::FAILURE;
127 return StatusCode::SUCCESS;
133 <<
"----------------------------------------------------------------------------------------------------------------------------------------------" <<
endmsg
140 msg(MSG::INFO) <<
"----------------------------------------------------------------------------------------------------------------------------------------------" <<
endmsg;
142 return StatusCode::SUCCESS;
152 return StatusCode :: SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
Handle class for adding a decoration to an object.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
SG::WriteHandleKey< xAOD::VertexContainer > m_lbKey
ToolHandle< InDet::InDetV0FinderTool > m_v0FinderTool
BooleanProperty m_decorate
decorate V0 containers
SG::WriteHandleKey< xAOD::VertexContainer > m_laKey
InDetV0Finder(const std::string &name, ISvcLocator *pSvcLocator)
SG::WriteHandleKey< xAOD::VertexContainer > m_v0Key
SG::WriteHandleKey< xAOD::VertexContainer > m_ksKey
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexKey
ToolHandle< InDet::V0MainDecorator > m_v0DecoTool
StatusCode resetStatistics()
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.
Vertex_v1 Vertex
Define the latest version of the vertex class.