ATLAS Offline Software
Loading...
Searching...
No Matches
Muon_v1.cxx File Reference

Go to the source code of this file.

Namespaces

namespace  xAOD
 ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.

Macros

#define IMPLEMENT_LINK_GETTER(ContType, DECORATOR_NAME)

Functions

 xAOD::AUXSTORE_PRIMITIVE_GETTER_WITH_CAST (Muon_v1, uint8_t, Muon_v1::EnergyLossType, energyLossType) AUXSTORE_PRIMITIVE_SETTER_WITH_CAST(Muon_v1
static setEnergyLossType const SG::AuxElement::Accessor< std::vector< ElementLink< MuonSegmentContainer > > > xAOD::muonSegmentsAcc ("muonSegmentLinks")

Variables

 xAOD::uint8_t
 xAOD::energyLossType

Macro Definition Documentation

◆ IMPLEMENT_LINK_GETTER

#define IMPLEMENT_LINK_GETTER ( ContType,
DECORATOR_NAME )
Value:
{ \
static const SG::Accessor<ElementLink<ContType>> acc{DECORATOR_NAME}; \
if (!acc.isAvailable(*this)) { \
return nullptr; \
} \
const auto& link = acc(*this); \
if (!link.isValid()){ \
return nullptr; \
} \
return *link; \
} \
Helper class to provide type-safe access to aux data.
pointer & link(pointer p) const
Return a reference to the link for an element.

Definition at line 23 of file Muon_v1.cxx.

23#define IMPLEMENT_LINK_GETTER(ContType, DECORATOR_NAME) \
24 { \
25 static const SG::Accessor<ElementLink<ContType>> acc{DECORATOR_NAME}; \
26 if (!acc.isAvailable(*this)) { \
27 return nullptr; \
28 } \
29 const auto& link = acc(*this); \
30 if (!link.isValid()){ \
31 return nullptr; \
32 } \
33 return *link; \
34 } \
35