 |
ATLAS Offline Software
|
Go to the documentation of this file.
9 #include "AthLinks/ElementLink.h"
19 if (
const auto* prim =
primaryStrip(); prim !=
nullptr) {
28 if (acc_primLink.isAvailable(*
this) && acc_primLink(*this).isValid()) {
29 return *acc_primLink(*
this);
35 if (acc_secondLink.isAvailable(*
this) && acc_secondLink(*this).isValid()) {
36 return *acc_secondLink(*
this);
42 assert(meas !=
nullptr);
44 acc_primLink(*
this) = Link_t{*cont, meas->
index()};
47 assert(meas !=
nullptr);
49 acc_secondLink(*
this) = Link_t{*cont, meas->
index()};
const xAOD::UncalibratedMeasurement * primaryStrip() const
Returns the primary associated measurement.
virtual xAOD::UncalibMeasType type() const override final
Returns the type of the measurement type as a simple enumeration.
Helper class to provide type-safe access to aux data.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
const xAOD::UncalibratedMeasurement * secondaryStrip() const
Returns the secondary associated measurement.
size_t index() const
Return the index of this element within its container.
ElementLink implementation for ROOT usage.
UncalibMeasType
Define the type of the uncalibrated measurement.
void setPrimaryStrip(const xAOD::UncalibratedMeasurement *meas)
Links a prd measurement as primary meaurement.
const SG::AuxVectorData * container() const
Return the container holding this element.
void setSecondaryStrip(const xAOD::UncalibratedMeasurement *meas)
Linkt a prd measurement as secondary measurement.