![]() |
ATLAS Offline Software
|
Struct to manage accessors to objects. More...
#include <AccessorHelpers.h>
Public Member Functions | |
| void | initializeFloatAccessor (const std::string &name) |
| Initialize a float accessor by name. | |
| void | initializeFloatAccessor (const std::vector< std::string > &names) |
| Initialize multiple float accessors by a list of names. | |
| void | initializeIntAccessor (const std::string &name) |
| Initialize an integer accessor by name. | |
| void | initializeIntAccessor (const std::vector< std::string > &names) |
| Initialize multiple integer accessors by a list of names. | |
| void | initializePtEtaPhiMAccessor (const std::string &prefix) |
| Initialize a PtEtaPhiMVector using floats. | |
| template<typename T> | |
| float | getFloat (const std::string &name, T *object) |
| Template to get an Float via the name of an accessor. | |
| template<typename T> | |
| int | getInt (const std::string &name, T *object) |
| Template to get an Int via the name of an accessor. | |
| template<typename T> | |
| void | getPtEtaPhiMVector (const std::string &prefix, ROOT::Math::PtEtaPhiMVector &p, T *object) |
| Template to get a PtEtaPhiMVector via the name of an accessor. | |
Public Attributes | |
| std::map< std::string, std::unique_ptr< SG::Accessor< float > > > | floatAccessors |
| std::map< std::string, std::unique_ptr< SG::Accessor< int > > > | intAccessors |
Struct to manage accessors to objects.
PartonAccessor provides methods to initialize, retrieve, and apply accessors for various properties like mass, pt, eta, phi, and PDG ID. It manages both float and integer accessors.
Definition at line 29 of file AccessorHelpers.h.
|
inline |
Template to get an Float via the name of an accessor.
| name | The name of the Float accessor. |
| object | The object to access. |
Definition at line 92 of file AccessorHelpers.h.
Template to get an Int via the name of an accessor.
| name | The name of the Int accessor. |
| object | The object to access. |
Definition at line 103 of file AccessorHelpers.h.
|
inline |
Template to get a PtEtaPhiMVector via the name of an accessor.
| prefix | The prefix of the accessor holding the different components. |
| p | The PtEtaPhiVector to fill with pT, eta, phi and m values. |
| object | The object to access. |
Definition at line 115 of file AccessorHelpers.h.
|
inline |
Initialize a float accessor by name.
| name | The name of the float accessor to initialize. |
Definition at line 38 of file AccessorHelpers.h.
|
inline |
Initialize multiple float accessors by a list of names.
| names | A vector of accessor names. |
Definition at line 47 of file AccessorHelpers.h.
|
inline |
Initialize an integer accessor by name.
| name | The name of the integer accessor to initialize. |
Definition at line 58 of file AccessorHelpers.h.
|
inline |
Initialize multiple integer accessors by a list of names.
| names | A vector of accessor names. |
Definition at line 67 of file AccessorHelpers.h.
|
inline |
Initialize a PtEtaPhiMVector using floats.
| prefix | A prefix for the name of the PtEtaPhiMvector. |
Definition at line 78 of file AccessorHelpers.h.
| std::map<std::string, std::unique_ptr<SG::Accessor<float> > > CP::PartonAccessor::floatAccessors |
Definition at line 30 of file AccessorHelpers.h.
| std::map<std::string, std::unique_ptr<SG::Accessor<int> > > CP::PartonAccessor::intAccessors |
Definition at line 31 of file AccessorHelpers.h.