|
ATLAS Offline Software
|
Go to the documentation of this file.
16 const IInterface*
p) :
18 m_v0FinderTool(
"InDet::V0FinderTool", this)
20 declareInterface<DerivationFramework::IAugmentationTool>(
this);
43 return StatusCode::SUCCESS;
53 bool callV0Finder =
false;
58 if(vertContainer->
size() == 0) {
62 ATH_MSG_DEBUG(
"Container VertexContainer (" <<
str <<
") has events N= " << vertContainer->
size());
67 const EventContext& ctx = Gaudi::Hive::currentContext();
71 if ( h_V0.
record(std::make_unique<xAOD::VertexContainer>() ,std::make_unique<xAOD::VertexAuxContainer>()).isFailure()){
73 return StatusCode::FAILURE;
77 if ( h_Ks.
record(std::make_unique<xAOD::VertexContainer>() ,std::make_unique<xAOD::VertexAuxContainer>()).isFailure()){
79 return StatusCode::FAILURE;
83 if( h_La.
record(std::make_unique<xAOD::VertexContainer>() ,std::make_unique<xAOD::VertexAuxContainer>()).isFailure()){
85 return StatusCode::FAILURE;
89 if(h_Lb.
record(std::make_unique<xAOD::VertexContainer>() ,std::make_unique<xAOD::VertexAuxContainer>()).isFailure()){
91 return StatusCode::FAILURE;
104 if (importedVxContainer->
size()==0){
107 primaryVertex = (*importedVxContainer)[0];
113 primaryVertex, importedVxContainer.
cptr(), ctx));
127 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
const_pointer_type cptr()
Dereference the pointer.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
ToolHandle< InDet::InDetV0FinderTool > m_v0FinderTool
SG::WriteHandleKey< xAOD::VertexContainer > m_lbKey
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
::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
Reco_V0Finder(const std::string &t, const std::string &n, const IInterface *p)
virtual StatusCode addBranches() const override
Pass the thinning service
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