ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
DataModelTest
DataModelTestDataCommon
DataModelTestDataCommon
versions
JVec_v1.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 DATAMODELTESTDATACOMMON_JVEC_V1_H
14
#define DATAMODELTESTDATACOMMON_JVEC_V1_H
15
16
17
#include "
DataModelTestDataCommon/CVec.h
"
18
#include "
AthContainers/AuxElement.h
"
19
#include "
xAODCore/JaggedVec.h
"
20
#include "AthLinks/ElementLink.h"
21
#include "
AthenaKernel/BaseInfo.h
"
22
#include <string>
23
24
25
namespace
DMTest
{
26
27
34
class
JVec_v1
35
:
public
SG::AuxElement
36
{
37
private
:
38
using
ielt_type
=
SG::JaggedVecElt<int>
;
39
using
felt_type
=
SG::JaggedVecElt<float>
;
40
using
selt_type
=
SG::JaggedVecElt<std::string>
;
41
using
lelt_type
=
SG::JaggedVecElt<ElementLink<CVec>
>;
42
43
44
public
:
45
using
intRange_t
=
SG::ConstAccessor<ielt_type>::element_type
;
46
using
floatRange_t
=
SG::ConstAccessor<felt_type>::element_type
;
47
using
stringRange_t
=
SG::ConstAccessor<selt_type>::element_type
;
48
using
linkRange_t
=
SG::ConstAccessor<lelt_type>::element_type
;
49
50
// Getters / setters.
51
52
intRange_t
ivec
()
const
;
53
void
setIVec
(std::span<const int> v);
54
floatRange_t
fvec
()
const
;
55
void
setFVec
(std::span<const float> v);
56
stringRange_t
svec
()
const
;
57
void
setSVec
(std::span<const std::string> v);
58
linkRange_t
lvec
()
const
;
59
void
setLVec
(std::span<
const
ElementLink<CVec>
> v);
60
};
61
62
63
}
// namespace DMTest
64
65
66
SG_BASE
(
DMTest::JVec_v1
,
SG::AuxElement
);
67
68
69
#endif
// not DATAMODELTESTDATACOMMON_JVEC_V1_H
AuxElement.h
Base class for elements of a container that can have aux data.
CVec.h
Class used for testing xAOD data reading/writing.
BaseInfo.h
Provide an interface for finding inheritance information at run time.
SG_BASE
#define SG_BASE(D, B)
Declare that class D derives from class B.
Definition
Control/AthenaKernel/AthenaKernel/BaseInfo.h:243
JaggedVec.h
Auxiliary variable type allowing storage as a jagged vector. That is, the payloads for all the DataVe...
DMTest::JVec_v1
For testing jagged vectors.
Definition
JVec_v1.h:36
DMTest::JVec_v1::stringRange_t
SG::ConstAccessor< selt_type >::element_type stringRange_t
Definition
JVec_v1.h:47
DMTest::JVec_v1::intRange_t
SG::ConstAccessor< ielt_type >::element_type intRange_t
Definition
JVec_v1.h:45
DMTest::JVec_v1::setLVec
void setLVec(std::span< const ElementLink< CVec > > v)
DMTest::JVec_v1::floatRange_t
SG::ConstAccessor< felt_type >::element_type floatRange_t
Definition
JVec_v1.h:46
DMTest::JVec_v1::felt_type
SG::JaggedVecElt< float > felt_type
Definition
JVec_v1.h:39
DMTest::JVec_v1::lelt_type
SG::JaggedVecElt< ElementLink< CVec > > lelt_type
Definition
JVec_v1.h:41
DMTest::JVec_v1::setFVec
void setFVec(std::span< const float > v)
DMTest::JVec_v1::ivec
intRange_t ivec() const
DMTest::JVec_v1::ielt_type
SG::JaggedVecElt< int > ielt_type
Definition
JVec_v1.h:38
DMTest::JVec_v1::linkRange_t
SG::ConstAccessor< lelt_type >::element_type linkRange_t
Definition
JVec_v1.h:48
DMTest::JVec_v1::selt_type
SG::JaggedVecElt< std::string > selt_type
Definition
JVec_v1.h:40
DMTest::JVec_v1::setIVec
void setIVec(std::span< const int > v)
DMTest::JVec_v1::setSVec
void setSVec(std::span< const std::string > v)
DMTest::JVec_v1::lvec
linkRange_t lvec() const
DMTest::JVec_v1::svec
stringRange_t svec() const
DMTest::JVec_v1::fvec
floatRange_t fvec() const
ElementLink
ElementLink implementation for ROOT usage.
Definition
A/AthLinks/ElementLink.h:40
SG::ConstAccessor< T, ALLOC >::element_type
typename AuxDataTraits< T, ALLOC >::element_type element_type
Definition
ConstAccessor.h:58
SG::JaggedVecElt
Describe one element of a jagged vector.
Definition
JaggedVecImpl.h:136
DMTest
Definition
B.h:23
SG::AuxElement
AuxElement(SG::AuxVectorData *container, size_t index)
Base class for elements of a container that can have aux data.
Generated on
for ATLAS Offline Software by
1.17.0