#include <AugmentationToolExample.h>
Definition at line 15 of file AugmentationToolExample.h.
◆ addBranches()
StatusCode DerivationFramework::AugmentationToolExample::addBranches |
( |
| ) |
const |
|
virtual |
Definition at line 24 of file AugmentationToolExample.cxx.
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;
The documentation for this class was generated from the following files: