29 return StatusCode::SUCCESS;
35 std::unique_ptr<std::vector<float> > track_z0_PV(
new std::vector<float>());
44 ATH_MSG_ERROR (
"Couldn't retrieve VertexContainer with key PrimaryVertices");
45 return StatusCode::FAILURE;
59 ATH_MSG_ERROR (
"Couldn't retrieve TrackParticleContainer with key InDetTrackParticles");
60 return StatusCode::FAILURE;
64 for (
const auto *trackParticle : *tracks) {
66 float z0wrtPV = trackParticle->z0() + trackParticle->vz() - pv->z();
67 track_z0_PV->push_back(z0wrtPV);
68 decorator(*trackParticle) = z0wrtPV;
70 track_z0_PV->push_back(999.);
71 decorator(*trackParticle) = 999.;
78 ATH_MSG_ERROR(
"Tool is attempting to write StoreGate keys which already exists. Please use a different key");
79 return StatusCode::FAILURE;
81 decision = std::move(track_z0_PV);
84 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Handle class for adding a decoration to an object.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
Handle class for adding a decoration to an object.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
Vertex_v1 Vertex
Define the latest version of the vertex class.