Go to the source code of this file.
|
| namespace | xAOD |
| | ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
|
◆ IMPLEMENT_LINK_GETTER
| #define IMPLEMENT_LINK_GETTER |
( |
| ContType, |
|
|
| DECORATOR_NAME ) |
Value:{ \
if (!acc.isAvailable(*this)) { \
return nullptr; \
} \
return nullptr; \
} \
} \
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