ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
DerivationFramework::TruthCategoriesDecorator::FourMomDecorationKeys Struct Reference

Set of DecorHandleKeys to write the four momenta needed for the HTXS categorization. More...

Collaboration diagram for DerivationFramework::TruthCategoriesDecorator::FourMomDecorationKeys:

Public Member Functions

 FourMomDecorationKeys (TruthCategoriesDecorator *parent, const SG::ReadHandleKey< xAOD::EventInfo > &ei_key, const std::string &the_prefix)
 
StatusCode initialize (bool used=true)
 

Public Attributes

std::string prefix
 
EvtInfoDecorKey pt
 
EvtInfoDecorKey eta
 
EvtInfoDecorKey phi
 
EvtInfoDecorKey m
 

Detailed Description

Set of DecorHandleKeys to write the four momenta needed for the HTXS categorization.

Definition at line 108 of file TruthCategoriesDecorator.h.

Constructor & Destructor Documentation

◆ FourMomDecorationKeys()

DerivationFramework::TruthCategoriesDecorator::FourMomDecorationKeys::FourMomDecorationKeys ( TruthCategoriesDecorator parent,
const SG::ReadHandleKey< xAOD::EventInfo > &  ei_key,
const std::string &  the_prefix 
)
inline

Definition at line 109 of file TruthCategoriesDecorator.h.

111  :
112  prefix{the_prefix},
113  pt{parent, prefix + "_ptKey", ei_key, prefix + "_pt"},
114  eta{parent, prefix + "_etaKey", ei_key, prefix + "_eta"},
115  phi{parent, prefix + "_phiKey", ei_key, prefix + "_phi"},
116  m{parent, prefix + "_mKey", ei_key, prefix + "_m"} {}

Member Function Documentation

◆ initialize()

StatusCode DerivationFramework::TruthCategoriesDecorator::FourMomDecorationKeys::initialize ( bool  used = true)
inline

Definition at line 122 of file TruthCategoriesDecorator.h.

122  {
123  if (!pt.initialize(used).isSuccess() || !eta.initialize(used).isSuccess() || !phi.initialize(used).isSuccess() || !m.initialize(used).isSuccess()){
124  return StatusCode::FAILURE;
125  }
126  return StatusCode::SUCCESS;
127  }

Member Data Documentation

◆ eta

EvtInfoDecorKey DerivationFramework::TruthCategoriesDecorator::FourMomDecorationKeys::eta

Definition at line 119 of file TruthCategoriesDecorator.h.

◆ m

EvtInfoDecorKey DerivationFramework::TruthCategoriesDecorator::FourMomDecorationKeys::m

Definition at line 121 of file TruthCategoriesDecorator.h.

◆ phi

EvtInfoDecorKey DerivationFramework::TruthCategoriesDecorator::FourMomDecorationKeys::phi

Definition at line 120 of file TruthCategoriesDecorator.h.

◆ prefix

std::string DerivationFramework::TruthCategoriesDecorator::FourMomDecorationKeys::prefix

Definition at line 117 of file TruthCategoriesDecorator.h.

◆ pt

EvtInfoDecorKey DerivationFramework::TruthCategoriesDecorator::FourMomDecorationKeys::pt

Definition at line 118 of file TruthCategoriesDecorator.h.


The documentation for this struct was generated from the following file:
used
DerivationFramework::TruthCategoriesDecorator::FourMomDecorationKeys::prefix
std::string prefix
Definition: TruthCategoriesDecorator.h:117
DerivationFramework::TruthCategoriesDecorator::FourMomDecorationKeys::m
EvtInfoDecorKey m
Definition: TruthCategoriesDecorator.h:121
test_pyathena.parent
parent
Definition: test_pyathena.py:15
DerivationFramework::TruthCategoriesDecorator::FourMomDecorationKeys::pt
EvtInfoDecorKey pt
Definition: TruthCategoriesDecorator.h:118
SG::WriteDecorHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
DerivationFramework::TruthCategoriesDecorator::FourMomDecorationKeys::eta
EvtInfoDecorKey eta
Definition: TruthCategoriesDecorator.h:119
DerivationFramework::TruthCategoriesDecorator::FourMomDecorationKeys::phi
EvtInfoDecorKey phi
Definition: TruthCategoriesDecorator.h:120