|
ATLAS Offline Software
|
Go to the documentation of this file.
13 (
const std::string&
name,ISvcLocator* pSvcLocator)
25 return StatusCode::SUCCESS;
32 std::unique_ptr<Trk::PRDtoTrackMap> prd_to_track_map(
m_assoTool->createPRDtoTrackMap());
36 if (!tracks.
isValid())
return StatusCode::FAILURE;
39 unsigned tracksPRDn=0;
42 if((
m_assoTool->addPRDs(*prd_to_track_map,*
t)).isFailure()){
49 ATH_MSG_DEBUG(
"Collection " << collKey.key() <<
": tracks with PRD "<< tracksPRD
50 <<
", without PRD " << tracksPRDn);
53 if (write_handle.
record(
m_assoTool->reduceToStorableMap(std::move(prd_to_track_map))).isFailure()) {
56 return StatusCode::SUCCESS;
virtual StatusCode initialize() override
SG::WriteHandleKey< Trk::PRDtoTrackMap > m_assoMapName
the key given to the newly created association map
Property holding a SG store/key/clid from which a ReadHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
virtual StatusCode execute(const EventContext &ctx) const override
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
virtual StatusCode finalize() override
SG::ReadHandleKeyArray< TrackCollection > m_tracksName
Name of track collections.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
InDetTrackPRD_Association(const std::string &name, ISvcLocator *pSvcLocator)
ToolHandle< Trk::IPRDtoTrackMapTool > m_assoTool