ATLAS Offline Software
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  */
14 
15 
16 namespace DMTest {
17 
18 
20  static const SG::ConstAccessor<ielt_type> acc( "ivec" );
21  return acc( *this );
22 }
23 
24 
25 void 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 
37 void 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 
49 void 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 
61 void 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 
DMTest::JVec_v1::setSVec
void setSVec(const std::vector< std::string > &v)
Definition: JVec_v1.cxx:49
DMTest::JVec_v1::floatRange_t
SG::ConstAccessor< felt_type >::element_type floatRange_t
Definition: JVec_v1.h:46
DMTest::JVec_v1::setIVec
void setIVec(const std::vector< int > &v)
Definition: JVec_v1.cxx:25
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition: Control/AthContainers/AthContainers/Accessor.h:68
DMTest::JVec_v1::setLVec
void setLVec(const std::vector< ElementLink< CVec > > &v)
Definition: JVec_v1.cxx:61
DMTest::JVec_v1::ivec
intRange_t ivec() const
Definition: JVec_v1.cxx:19
DMTest::JVec_v1::linkRange_t
SG::ConstAccessor< lelt_type >::element_type linkRange_t
Definition: JVec_v1.h:48
SG::ConstAccessor
Helper class to provide constant type-safe access to aux data.
Definition: ConstAccessor.h:55
DMTest::JVec_v1::intRange_t
SG::ConstAccessor< ielt_type >::element_type intRange_t
Definition: JVec_v1.h:45
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
AthenaPoolTestRead.acc
acc
Definition: AthenaPoolTestRead.py:16
JVec_v1.h
For testing jagged vectors.
DMTest::JVec_v1::setFVec
void setFVec(const std::vector< float > &v)
Definition: JVec_v1.cxx:37
JaggedVec.h
Auxiliary variable type allowing storage as a jagged vector. That is, the payloads for all the DataVe...
DMTest::JVec_v1::fvec
floatRange_t fvec() const
Definition: JVec_v1.cxx:31
DMTest::JVec_v1::lvec
linkRange_t lvec() const
Definition: JVec_v1.cxx:55
python.PyAthena.v
v
Definition: PyAthena.py:154
DMTest::JVec_v1::stringRange_t
SG::ConstAccessor< selt_type >::element_type stringRange_t
Definition: JVec_v1.h:47
DMTest::JVec_v1::svec
stringRange_t svec() const
Definition: JVec_v1.cxx:43
DMTest
Definition: B.h:23