ATLAS Offline Software
Loading...
Searching...
No Matches
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
bool isAvailable (const SG::AuxElement &p) const
const xAOD::JetFourMom_toperator() (const 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

  • it does not provide an operator() method
  • it does not provide const methods as needed in this package. AccessorWrapper should be updated to remove these limitations. when this happens, JetFourMomAccessor can just be replaced by a typedef to the AccessorWrapper<xAOD::JetFourMom_t>

Definition at line 32 of file JetCalibTools_PlotJESFactors.cxx.

Member Typedef Documentation

◆ AccessorType

Member Function Documentation

◆ getAttribute()

◆ 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);}
bool isAvailable(const SG::AuxElement &p) const

◆ name()

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

Definition at line 43 of file JetAccessors.h.

43{return m_name;}

◆ operator()() [1/5]

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);}
void getAttribute(const SG::AuxElement &p, xAOD::JetFourMom_t &v) const

◆ operator()() [2/5]

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/5]

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()() [4/5]

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()() [5/5]

const xAOD::JetFourMom_t & xAOD::JetAttributeAccessor::AccessorWrapper< xAOD::JetFourMom_t >::operator() ( const SG::AuxElement & p) const
inlineinherited

Definition at line 69 of file JetAccessors.h.

69{ 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: