 |
ATLAS Offline Software
|
Go to the documentation of this file.
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;
::StatusCode StatusCode
StatusCode definition for legacy code.
Handle class for adding a decoration to an object.
Handle class for adding a decoration to an object.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
double z0wrtPV(const xAOD::TrackParticle *trk, const xAOD::Vertex *vtx)
Provide the trk DCA w.r.t. the PV.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
virtual bool isValid() override final
Can the handle be successfully dereferenced?
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Class describing a Vertex.