Skip to content
Snippets Groups Projects
Commit d6b051c2 authored by Tadej Novak's avatar Tadej Novak
Browse files

Merge branch 'cherry-pick-ece56c4b-21.9' into '21.9'

Sweeping !38428 from 21.2 to 21.9.
allow to use arbitrary TrackCollections

See merge request atlas/athena!38532
parents bf2c141c 3ec23b9f
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,7 @@ namespace Analysis {
// tagging variable prefix
std::string m_prefix;
std::string m_primaryVertexContainer;
std::string m_trackContainer;
};
}
......
......@@ -31,12 +31,14 @@ namespace Analysis {
m_dec_track_pos("DUMMYv"),
m_dec_track_mom("DUMMYv"),
m_prefix("btagIp_"),
m_primaryVertexContainer("PrimaryVertices")
m_primaryVertexContainer("PrimaryVertices"),
m_trackContainer("InDetTrackParticles")
{
declareProperty( "TrackToVertexIPEstimator", m_track_to_vx );
declareProperty("Extrapolator", m_extrapolator);
declareProperty("prefix", m_prefix);
declareProperty("primaryVertexContainer", m_primaryVertexContainer);
declareProperty("trackContainer", m_trackContainer);
}
StatusCode BTagTrackAugmenterAlg::initialize() {
if (m_track_to_vx.retrieve().isFailure()) {
......@@ -75,7 +77,7 @@ namespace Analysis {
Trk::PerigeeSurface primary_surface(primary->position());
const xAOD::TrackParticleContainer* tracks = nullptr;
CHECK( evtStore()->retrieve(tracks, "InDetTrackParticles") );
CHECK( evtStore()->retrieve(tracks, m_trackContainer) );
// now decorate the tracks
for (const auto* track: *tracks) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment