16 ATH_MSG_ERROR(
"No selection variables for the TrackParametersAtPV tool!");
17 return StatusCode::FAILURE;
23 ATH_MSG_ERROR(
"No Store Gate Keys for the TrackParametersAtPV tool!");
24 return StatusCode::FAILURE;
29 return StatusCode::SUCCESS;
36 ATH_CHECK(track_z0_PV.
record(std::make_unique< std::vector<float> >()));
42 return StatusCode::FAILURE;
57 return StatusCode::FAILURE;
61 for (
const auto *trackIt : *tracks) {
63 float z0wrtPV = trackIt->z0() + trackIt->vz() - pv->z();
64 track_z0_PV->push_back(z0wrtPV);
67 track_z0_PV->push_back(999.);
71 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
SG::ReadHandleKey< xAOD::VertexContainer > m_collVertexKey
virtual StatusCode initialize() override final
SG::WriteHandleKey< std::vector< float > > m_trackZ0PVKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_collTrackKey
virtual StatusCode addBranches(const EventContext &ctx) const override final
Check that the current event passes this filter.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
Vertex_v1 Vertex
Define the latest version of the vertex class.