![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
11 m_scoredTracksKey(
""),
12 m_resolvedTracksKey(
"Tracks"),
13 m_ambiTool(
"Trk::SimpleAmbiguityProcessorTool/TrkAmbiguityProcessor", this),
32 ATH_CHECK(m_scoredTracksKey.initialize());
33 ATH_CHECK(m_resolvedTracksKey.initialize());
36 return StatusCode::SUCCESS;
46 const int nInput = scoredTracksHandle->size();
47 m_trackInCount += nInput;
49 std::unique_ptr<const TrackCollection> resolvedTracks;
50 resolvedTracks.reset(m_ambiTool->process(scoredTracksHandle.
cptr()));
51 m_trackOutCount += resolvedTracks->
size();
55 if (!resolvedTracksHandle.
put(std::move(resolvedTracks))) {
56 ATH_MSG_ERROR (
"Can't record tracks as " << m_resolvedTracksKey.key());
57 return StatusCode::FAILURE;
59 return StatusCode::SUCCESS;
66 if (m_ambiTool.isEnabled()) {
67 m_ambiTool->statistics();
69 ATH_MSG_DEBUG(
"Finalizing with "<< m_trackInCount <<
" tracks input, and "<< m_trackOutCount<<
" output");
70 return StatusCode::SUCCESS;
~TrkAmbiguitySolver(void)
const_pointer_type cptr()
Dereference the pointer.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
StatusCode initialize(void) override
#define ATH_MSG_VERBOSE(x)
An algorithm that can be simultaneously executed in multiple threads.
SG::WriteHandleKey< TrackCollection > m_resolvedTracksKey
where to save the resolved tracks
StatusCode execute(const EventContext &ctx) const override
TrkAmbiguitySolver(const std::string &name, ISvcLocator *pSvcLocator)
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
SG::ReadHandleKey< TracksScores > m_scoredTracksKey
<where to find tracks (set in jobOptions and can be multiple collections
ToolHandle< ITrackAmbiguityProcessorTool > m_ambiTool
StatusCode finalize(void) override
const_pointer_type put(std::unique_ptr< T > data, bool returnExisting=false) const
Record an object to the store.
size_type size() const noexcept
Returns the number of elements in the collection.