ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODCore
xAODCore
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
17
#include "
AthContainers/AuxVectorData.h
"
18
#include "
AthContainers/Accessor.h
"
19
20
21
namespace
xAOD
{
22
23
62
class
VariableStruct
63
{
64
public
:
65
VariableStruct
(
SG::AuxVectorData
& cont) :
m_cont
(cont) {}
66
SG::AuxVectorData
&
m_cont
;
67
};
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
AuxVectorData.h
Manage lookup of vectors of auxiliary data.
Accessor.h
Helper class to provide type-safe access to aux data.
SG::AuxVectorData
Manage lookup of vectors of auxiliary data.
Definition
AuxVectorData.h:164
xAOD::VariableStruct::VariableStruct
VariableStruct(SG::AuxVectorData &cont)
Definition
VariableStruct.h:65
xAOD::VariableStruct::m_cont
SG::AuxVectorData & m_cont
Definition
VariableStruct.h:66
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition
ICaloAffectedTool.h:24
Generated on
for ATLAS Offline Software by
1.17.0