18 const IInterface*
p ) :
21 declareInterface<DerivationFramework::IAugmentationTool>(
this);
30 if (m_collTrackKey.key().empty() || m_collVertexKey.key().empty()) {
31 ATH_MSG_ERROR(
"No selection variables for the TrackParametersAtPV tool!");
32 return StatusCode::FAILURE;
35 ATH_CHECK( m_collVertexKey.initialize() );
37 if (m_trackZ0PVKey.key().empty()) {
38 ATH_MSG_ERROR(
"No Store Gate Keys for the TrackParametersAtPV tool!");
39 return StatusCode::FAILURE;
44 return StatusCode::SUCCESS;
50 return StatusCode::SUCCESS;
56 const EventContext& ctx = Gaudi::Hive::currentContext();
63 ATH_MSG_ERROR (
"Couldn't retrieve VertexContainer with key: " << m_collVertexKey.key());
64 return StatusCode::FAILURE;
78 ATH_MSG_ERROR (
"Couldn't retrieve TrackParticleContainer with key: " << m_collTrackKey.key());
79 return StatusCode::FAILURE;
83 for (
const auto *trackIt : *tracks) {
85 float z0wrtPV = trackIt->z0() + trackIt->vz() -
pv->z();
86 track_z0_PV->push_back(
z0wrtPV);
89 track_z0_PV->push_back(999.);
93 return StatusCode::SUCCESS;