ATLAS Offline Software
Loading...
Searching...
No Matches
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-2024 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
19#include "xAODCore/JaggedVec.h"
20#include "AthLinks/ElementLink.h"
22#include <string>
23
24
25namespace DMTest {
26
27
35 : public SG::AuxElement
36{
37private:
42
43
44public:
49
50 // Getters / setters.
51
52 intRange_t ivec() const;
53 void setIVec (const std::vector<int>& v);
54 floatRange_t fvec() const;
55 void setFVec (const std::vector<float>& v);
56 stringRange_t svec() const;
57 void setSVec (const std::vector<std::string>& v);
58 linkRange_t lvec() const;
59 void setLVec (const std::vector<ElementLink<CVec> >& v);
60};
61
62
63} // namespace DMTest
64
65
67
68
69#endif // not DATAMODELTESTDATACOMMON_JVEC_V1_H
Base class for elements of a container that can have aux data.
Class used for testing xAOD data reading/writing.
Provide an interface for finding inheritance information at run time.
#define SG_BASE(D, B)
Declare that class D derives from class B.
Auxiliary variable type allowing storage as a jagged vector. That is, the payloads for all the DataVe...
For testing jagged vectors.
Definition JVec_v1.h:36
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
SG::JaggedVecElt< float > felt_type
Definition JVec_v1.h:39
SG::JaggedVecElt< ElementLink< CVec > > lelt_type
Definition JVec_v1.h:41
linkRange_t lvec() const
Definition JVec_v1.cxx:55
SG::JaggedVecElt< int > ielt_type
Definition JVec_v1.h:38
floatRange_t fvec() const
Definition JVec_v1.cxx:31
SG::ConstAccessor< lelt_type >::element_type linkRange_t
Definition JVec_v1.h:48
SG::JaggedVecElt< std::string > selt_type
Definition JVec_v1.h:40
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
Base class for elements of a container that can have aux data.
Definition AuxElement.h:483
typename AuxDataTraits< T, ALLOC >::element_type element_type
Type the user sees.
Describe one element of a jagged vector.
Definition B.h:23