ATLAS Offline Software
Loading...
Searching...
No Matches
JVec_v1.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
10
11
14
15
16namespace DMTest {
17
18
20 static const SG::ConstAccessor<ielt_type> acc( "ivec" );
21 return acc( *this );
22}
23
24
25void JVec_v1::setIVec( const std::vector<int>& v ) {
26 static const SG::Accessor<ielt_type> acc( "ivec" );
27 acc( *this ) = v;
28}
29
30
32 static const SG::ConstAccessor<felt_type> acc( "fvec" );
33 return acc( *this );
34}
35
36
37void JVec_v1::setFVec( const std::vector<float>& v ) {
38 static const SG::Accessor<felt_type> acc( "fvec" );
39 acc( *this ) = v;
40}
41
42
44 static const SG::ConstAccessor<selt_type> acc( "svec" );
45 return acc( *this );
46}
47
48
49void JVec_v1::setSVec( const std::vector<std::string>& v ) {
50 static const SG::Accessor<selt_type> acc( "svec" );
51 acc( *this ) = v;
52}
53
54
56 static const SG::ConstAccessor<lelt_type> acc( "lvec" );
57 return acc( *this );
58}
59
60
61void JVec_v1::setLVec( const std::vector<ElementLink<CVec> >& v ) {
62 static const SG::Accessor<lelt_type> acc( "lvec" );
63 acc( *this ) = v;
64}
65
66
67} // namespace DMTest
68
Auxiliary variable type allowing storage as a jagged vector. That is, the payloads for all the DataVe...
For testing jagged vectors.
SG::ConstAccessor< selt_type >::element_type stringRange_t
Definition JVec_v1.h:47
SG::ConstAccessor< ielt_type >::element_type intRange_t
Definition JVec_v1.h:45
stringRange_t svec() const
Definition JVec_v1.cxx:43
void setFVec(const std::vector< float > &v)
Definition JVec_v1.cxx:37
intRange_t ivec() const
Definition JVec_v1.cxx:19
SG::ConstAccessor< felt_type >::element_type floatRange_t
Definition JVec_v1.h:46
linkRange_t lvec() const
Definition JVec_v1.cxx:55
floatRange_t fvec() const
Definition JVec_v1.cxx:31
SG::ConstAccessor< lelt_type >::element_type linkRange_t
Definition JVec_v1.h:48
void setIVec(const std::vector< int > &v)
Definition JVec_v1.cxx:25
void setLVec(const std::vector< ElementLink< CVec > > &v)
Definition JVec_v1.cxx:61
void setSVec(const std::vector< std::string > &v)
Definition JVec_v1.cxx:49
Helper class to provide type-safe access to aux data.
Helper class to provide constant type-safe access to aux data.
Definition B.h:23