 |
ATLAS Offline Software
|
Go to the documentation of this file.
28 std::unique_ptr<std::vector<float> > track_z0_PV(
new std::vector<float>());
38 ATH_MSG_ERROR (
"Couldn't retrieve VertexContainer with key PrimaryVertices");
39 return StatusCode::FAILURE;
54 ATH_MSG_ERROR (
"Couldn't retrieve TrackParticleContainer with key InDetTrackParticles");
55 return StatusCode::FAILURE;
61 float z0wrtPV = (*trackIt)->z0() + (*trackIt)->vz() -
pv->z();
62 track_z0_PV->push_back(
z0wrtPV);
65 track_z0_PV->push_back(999.);
66 decorator(**trackIt) = 999.;
71 if (evtStore()->
contains<std::vector<float> >(
"DFAugmentationExample")) {
72 ATH_MSG_ERROR(
"Tool is attempting to write StoreGate keys which already exists. Please use a different key");
73 return StatusCode::FAILURE;
75 ATH_CHECK(evtStore()->record(std::move(track_z0_PV),
"DFAugmentationExample"));
78 return StatusCode::SUCCESS;
Const iterator class for DataVector/DataList.
Helper class to provide type-safe access to aux data.
::StatusCode StatusCode
StatusCode definition for legacy code.
bool contains(const std::string &s, const std::string ®x)
does a string contain the substring
double z0wrtPV(const xAOD::TrackParticle *trk, const xAOD::Vertex *vtx)
Provide the trk DCA w.r.t. the PV.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
Class describing a Vertex.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.