|
ATLAS Offline Software
|
Go to the documentation of this file.
26 const IInterface*
p) :
29 declareInterface<DerivationFramework::IAugmentationTool>(
this);
36 std::unique_ptr<std::vector<float> > track_z0_PV(
new std::vector<float>());
46 ATH_MSG_ERROR (
"Couldn't retrieve VertexContainer with key PrimaryVertices");
47 return StatusCode::FAILURE;
62 ATH_MSG_ERROR (
"Couldn't retrieve TrackParticleContainer with key InDetTrackParticles");
63 return StatusCode::FAILURE;
69 float z0wrtPV = (*trackIt)->z0() + (*trackIt)->vz() -
pv->z();
70 track_z0_PV->push_back(
z0wrtPV);
73 track_z0_PV->push_back(999.);
74 decorator(**trackIt) = 999.;
80 ATH_MSG_ERROR(
"Tool is attempting to write StoreGate keys which already exists. Please use a different key");
81 return StatusCode::FAILURE;
83 CHECK(
evtStore()->record(std::move(track_z0_PV),
"DFAugmentationExample"));
86 return StatusCode::SUCCESS;
Const iterator class for DataVector/DataList.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
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
#define CHECK(...)
Evaluate an expression and check for errors.
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.