ATLAS Offline Software
Loading...
Searching...
No Matches
VariableStruct.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2/*
3 * Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration.
4 */
11
12
13#ifndef XAODCORE_VARIABLESTRUCT_H
14#define XAODCORE_VARIABLESTRUCT_H
15
16
19
20
21namespace xAOD {
22
23
68
69
70} // namespace xAOD
71
72
77#define AUXSTORE_VARSTRUCT_VAR(TYPE, NAME) \
78 static SG::Accessor<TYPE>::span getSpan##NAME(xAOD::VariableStruct& vars) { \
79 static const SG::Accessor<TYPE> acc (#NAME); \
80 return acc.getDataSpan (vars.m_cont); \
81 } \
82 SG::Accessor<TYPE>::span NAME = getSpan##NAME(*this)
83
84
85#endif // not XAODCORE_VARIABLESTRUCT_H
Manage lookup of vectors of auxiliary data.
Helper class to provide type-safe access to aux data.
Manage lookup of vectors of auxiliary data.
VariableStruct(SG::AuxVectorData &cont)
SG::AuxVectorData & m_cont
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.