#include <AugmentationToolExample.h>
|
| SG::ReadHandleKey< xAOD::VertexContainer > | m_vertexContainerKey {this, "VertexContainer", "PrimaryVertices",""} |
| |
| SG::ReadHandleKey< xAOD::TrackParticleContainer > | m_trackPartContainerKey {this, "TrackParticleContainer", "InDetTrackParticles", "Container to be decorated"} |
| |
| SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > | m_exampleDecorKey {this, "ExampleDecorKey", m_trackPartContainerKey, "DFDecoratorExample", "Decoration"} |
| |
| SG::WriteHandleKey< std::vector< float > > | m_decisionKey {this, "DecisionKey", "DFAugmentationExample", "Write decision to SG for access by downstream algs"} |
| |
Definition at line 17 of file AugmentationToolExample.h.
◆ addBranches()
| StatusCode DerivationFramework::AugmentationToolExample::addBranches |
( |
const EventContext & |
ctx | ) |
const |
|
finaloverridevirtual |
Definition at line 32 of file AugmentationToolExample.cxx.
35 std::unique_ptr<std::vector<float> > track_z0_PV(
new std::vector<float>());
43 if (!vertices.isValid()) {
44 ATH_MSG_ERROR (
"Couldn't retrieve VertexContainer with key PrimaryVertices");
45 return StatusCode::FAILURE;
58 if (!tracks.isValid()) {
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.;
77 if (!decision.isValid()) {
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;
◆ initialize()
| StatusCode DerivationFramework::AugmentationToolExample::initialize |
( |
| ) |
|
|
finaloverridevirtual |
◆ m_decisionKey
| SG::WriteHandleKey<std::vector<float> > DerivationFramework::AugmentationToolExample::m_decisionKey {this, "DecisionKey", "DFAugmentationExample", "Write decision to SG for access by downstream algs"} |
|
private |
◆ m_exampleDecorKey
◆ m_trackPartContainerKey
◆ m_vertexContainerKey
The documentation for this class was generated from the following files: