ATLAS Offline Software
Public Types | Public Member Functions | Protected Attributes | List of all members
jet::JetFourMomAccessor Class Reference

JetFourMomAccessor is an extension of JetAttributeAccessor::AccessorWrapper<xAOD::JetFourMom_t> AccessorWrapper<xAOD::JetFourMom_t> purpose is to provide a direct and simple access to JetFourMom_t attributes (which are internally saved as 4 floats inside jets). More...

#include <Helpers.h>

Inheritance diagram for jet::JetFourMomAccessor:
Collaboration diagram for jet::JetFourMomAccessor:

Public Types

typedef SG::AuxElement::Accessor< xAOD::JetFourMom_tAccessorType
 

Public Member Functions

xAOD::JetFourMom_t operator() (const xAOD::Jet &jet) const
 
xAOD::JetFourMom_t operator() (const xAOD::Jet &jet) const
 
xAOD::JetFourMom_t operator() (const xAOD::Jet &jet) const
 
xAOD::JetFourMom_t operator() (const xAOD::Jet &jet) const
 
void setAttribute (SG::AuxElement &p, const xAOD::JetFourMom_t &v) const
 
void getAttribute (const SG::AuxElement &p, xAOD::JetFourMom_t &v) const
 
const xAOD::JetFourMom_tgetAttribute (const SG::AuxElement &p) const
 
bool isAvailable (const SG::AuxElement &p) const
 
const xAOD::JetFourMom_toperator() (const SG::AuxElement &p) const
 
xAOD::JetFourMom_toperator() (SG::AuxElement &p) const
 
const std::string & name () const
 

Protected Attributes

AccessorType m_a
 
std::string m_name
 

Detailed Description

JetFourMomAccessor is an extension of JetAttributeAccessor::AccessorWrapper<xAOD::JetFourMom_t> AccessorWrapper<xAOD::JetFourMom_t> purpose is to provide a direct and simple access to JetFourMom_t attributes (which are internally saved as 4 floats inside jets).

JetFourMomAccessor is here to workaround 2 limitations of AccessorWrapper

Definition at line 32 of file JetCalibTools_PlotJESFactors.cxx.

Member Typedef Documentation

◆ AccessorType

Definition at line 51 of file JetAccessors.h.

Member Function Documentation

◆ getAttribute() [1/2]

Definition at line 62 of file JetAccessors.h.

62  {
63  return m_a(p);
64  }

◆ getAttribute() [2/2]

void xAOD::JetAttributeAccessor::AccessorWrapper< xAOD::JetFourMom_t >::getAttribute ( const SG::AuxElement p,
xAOD::JetFourMom_t v 
) const
inlineinherited

Definition at line 58 of file JetAccessors.h.

58  {
59  v = m_a(p);
60  }

◆ isAvailable()

bool xAOD::JetAttributeAccessor::AccessorWrapper< xAOD::JetFourMom_t >::isAvailable ( const SG::AuxElement p) const
inlineinherited

Definition at line 66 of file JetAccessors.h.

66 { return m_a.isAvailable(p);}

◆ name()

const std::string& xAOD::JetAttributeAccessor::Named::name ( ) const
inlineinherited

Definition at line 43 of file JetAccessors.h.

43 {return m_name;}

◆ operator()() [1/6]

Definition at line 69 of file JetAccessors.h.

69 { return m_a(p);}

◆ operator()() [2/6]

xAOD::JetFourMom_t jet::JetFourMomAccessor::operator() ( const xAOD::Jet jet) const
inline

Definition at line 35 of file JetCalibTools_PlotJMSFactors.cxx.

35 {return const_cast<JetFourMomAccessor*>(this)->getAttribute(jet);}

◆ operator()() [3/6]

xAOD::JetFourMom_t jet::JetFourMomAccessor::operator() ( const xAOD::Jet jet) const
inline

Definition at line 35 of file JetCalibTools_PlotJESFactors.cxx.

35 {return const_cast<JetFourMomAccessor*>(this)->getAttribute(jet);}

◆ operator()() [4/6]

xAOD::JetFourMom_t jet::JetFourMomAccessor::operator() ( const xAOD::Jet jet) const
inline

Definition at line 39 of file JetCalibTools_SmearingPlots.cxx.

39 {return const_cast<JetFourMomAccessor*>(this)->getAttribute(jet);}

◆ operator()() [5/6]

xAOD::JetFourMom_t jet::JetFourMomAccessor::operator() ( const xAOD::Jet jet) const
inline

Definition at line 42 of file Reconstruction/Jet/JetUncertainties/JetUncertainties/Helpers.h.

42 {return const_cast<JetFourMomAccessor*>(this)->getAttribute(jet);}

◆ operator()() [6/6]

Definition at line 70 of file JetAccessors.h.

70 { return m_a(p);}

◆ setAttribute()

void xAOD::JetAttributeAccessor::AccessorWrapper< xAOD::JetFourMom_t >::setAttribute ( SG::AuxElement p,
const xAOD::JetFourMom_t v 
) const
inlineinherited

Definition at line 54 of file JetAccessors.h.

54  {
55  m_a(p) = v;
56  }

Member Data Documentation

◆ m_a

Definition at line 73 of file JetAccessors.h.

◆ m_name

std::string xAOD::JetAttributeAccessor::Named::m_name
protectedinherited

Definition at line 45 of file JetAccessors.h.


The documentation for this class was generated from the following files:
xAOD::JetAttributeAccessor::Named::m_name
std::string m_name
Definition: JetAccessors.h:45
xAOD::JetAttributeAccessor::AccessorWrapper< xAOD::JetFourMom_t >::getAttribute
void getAttribute(const SG::AuxElement &p, xAOD::JetFourMom_t &v) const
Definition: JetAccessors.h:58
xAOD::JetAttributeAccessor::AccessorWrapper< xAOD::JetFourMom_t >::m_a
AccessorType m_a
Definition: JetAccessors.h:73
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
python.PyAthena.v
v
Definition: PyAthena.py:154
SG::ConstAccessor::isAvailable
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.