 |
ATLAS Offline Software
|
Go to the documentation of this file.
16 const IInterface*
p) :
18 m_v0FinderTool(
"InDet::V0FinderTool", this)
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){
105 primaryVertex = (*importedVxContainer)[0];
111 primaryVertex, importedVxContainer.
cptr(), ctx));
125 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
const_pointer_type cptr()
Dereference the pointer.
ToolHandle< InDet::InDetV0FinderTool > m_v0FinderTool
SG::WriteHandleKey< xAOD::VertexContainer > m_lbKey
::StatusCode StatusCode
StatusCode definition for legacy code.
pointer_type ptr()
Dereference the pointer.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
std::vector< std::string > m_CollectionsToCheck
virtual StatusCode addBranches(const EventContext &ctx) const override
Reco_V0Finder(const std::string &t, const std::string &n, const IInterface *p)
ToolHandle< InDet::V0MainDecorator > m_v0DecoTool
Class describing a Vertex.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
#define ATH_MSG_WARNING(x)
SG::WriteHandleKey< xAOD::VertexContainer > m_ksKey
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexKey
SG::WriteHandleKey< xAOD::VertexContainer > m_v0Key
size_type size() const noexcept
Returns the number of elements in the collection.
StatusCode initialize() override
SG::WriteHandleKey< xAOD::VertexContainer > m_laKey