|
ATLAS Offline Software
|
Go to the documentation of this file.
21 m_sgKey(
"InDetTrackParticles"),
22 m_selTool(
"InDet::InDetTrackSelectionTool/TrackSelectionTool", this )
44 return StatusCode::SUCCESS;
53 return StatusCode::FAILURE;
55 Int_t numberOfTracks = tracks->
size();
61 if (!vertices.isValid()) {
63 return StatusCode::FAILURE;
70 for (
const auto *
const vertex : *vertices)
72 for (
const auto& tpLink :
vertex->trackParticleLinks())
80 if (foundVertex)
break;
85 ATH_MSG_VERBOSE(
" TrackParticle AcceptData to bool " <<
static_cast<bool>(acceptxAOD));
87 #ifndef XAOD_ANALYSIS // if we are in full athena we have access to Trk::Tracks
91 ATH_MSG_VERBOSE(
" Trk::Track AcceptData to bool " <<
static_cast<bool>(acceptTrk));
92 assert(
static_cast<bool>(acceptxAOD) ==
static_cast<bool>(acceptTrk) );
94 #endif // XAOD_ANALYSIS
98 <<
", phi = " <<
track->phi()
99 <<
", pt = " <<
track->pt() );
105 return StatusCode::SUCCESS;
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
#define ATH_MSG_VERBOSE(x)
const std::string & key() const
Return the StoreGate ID for the referenced object.
An algorithm that can be simultaneously executed in multiple threads.
::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?
Class describing a Vertex.
Class describing a TrackParticle.
size_type size() const noexcept
Returns the number of elements in the collection.