19 const std::string& name,
20 const IInterface* parent )
26 declareInterface< IRecTrackParticleContainerCnvTool >(
this );
32 ATH_MSG_DEBUG(
"Initializing RecTrackParticleContainerCnvTool" );
35 return StatusCode::SUCCESS;
41 ATH_MSG_DEBUG(
"Sizes of containers before conversion: aod, xaod: " << aod->
size() <<
", " << xaod->
size() );
45 for( ;itr!=end;++itr ) {
59 ATH_MSG_DEBUG(
"Sizes of containers after conversion: aod, xaod: " << aod->
size() <<
", " << xaod->
size() );
61 return StatusCode::SUCCESS;
67 ATH_MSG_DEBUG(
"Sizes of containers before conversion: aod, xaod, trk_map: " << aod->
size() <<
", " << xaod->
size() <<
", "<< trk_map->size() );
68 ATH_MSG_DEBUG(
"convertAndAugment should not be called using IRecTrackParticleContainerCnvTool!" );
69 return StatusCode::FAILURE;
85 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
std::map< int, std::tuple< Trk::Track *, double, xAOD::RejectionStep, xAOD::RejectionReason, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, float, float, int, std::vector< xAOD::RejectionStep >, std::vector< xAOD::RejectionReason > > > ObservedTrackMap
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
DataModel_detail::const_iterator< DataVector > const_iterator
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
size_type size() const noexcept
Returns the number of elements in the collection.
virtual StatusCode convertAndAugment(const Rec::TrackParticleContainer *aod, xAOD::TrackParticleContainer *xaod, const ObservedTrackMap *trk_map, const xAOD::Vertex *vtx=nullptr) const override
Function that fills an existing xAOD::TrackParticleContainer and augments track particles.
virtual StatusCode convert(const Rec::TrackParticleContainer *aod, xAOD::TrackParticleContainer *xaod, const xAOD::Vertex *vtx=nullptr) const override
Function that fills an existing xAOD::TrackParticleContainer.
ToolHandle< Trk::ITrackParticleCreatorTool > m_particleCreator
virtual StatusCode setParticleCreatorTool(ToolHandle< Trk::ITrackParticleCreatorTool > *tool) override
allow other algorithms to pass the tool in order to preserve initialisation
virtual StatusCode initialize() override
Function initialising the tool.
RecTrackParticleContainerCnvTool(const std::string &type, const std::string &name, const IInterface *parent)
Regular AlgTool constructor.
xAOD::TrackParticle * createParticle(xAOD::TrackParticleContainer *xaod, const Rec::TrackParticleContainer *container, const Rec::TrackParticle *tp) const
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Vertex_v1 Vertex
Define the latest version of the vertex class.
TrackParticleContainer_v1 TrackParticleContainer
Definition of the current "TrackParticle container version".