ATLAS Offline Software
CLinksAOD.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-2019 CERN for the benefit of the ATLAS collaboration
4  */
13 #ifndef DATAMODELTESTDATACOMMON_CLINKSAOD_H
14 #define DATAMODELTESTDATACOMMON_CLINKSAOD_H
15 
16 
18 #include "AthLinks/ElementLink.h"
19 #include "AthLinks/ElementLinkVector.h"
20 
21 
22 namespace DMTest {
23 
24 
31 class CLinksAOD
32 {
33 public:
34  // Get/set the vector<ElementLink>.
35  const std::vector<ElementLink<CVec> >& vel() const;
36  void setVel (const std::vector<ElementLink<CVec> >& vel);
37  void setVel (std::vector<ElementLink<CVec> >&& vel);
38 
39  // Get/set the ElementLinkVector.
40  const ElementLinkVector<CVec>& elv() const;
42  void setElv (const ElementLinkVector<CVec>& elv);
43 
44 
45 private:
46  std::vector<ElementLink<CVec> > m_vel;
48 };
49 
50 
51 } // namespace DMTest
52 
53 
54 #include "xAODCore/CLASS_DEF.h"
55 CLASS_DEF (DMTest::CLinksAOD, 28651380, 1)
56 
57 
58 #endif // not DATAMODELTESTDATACOMMON_CLINKSAOD_H
DMTest::CLinksAOD::setElv
void setElv(const ElementLinkVector< CVec > &elv)
Definition: CLinksAOD.cxx:48
DMTest::CLinksAOD::setVel
void setVel(const std::vector< ElementLink< CVec > > &vel)
Definition: CLinksAOD.cxx:24
DMTest::CLinksAOD::m_vel
std::vector< ElementLink< CVec > > m_vel
Definition: CLinksAOD.h:46
CVec.h
Class used for testing xAOD data reading/writing.
DMTest::CLinksAOD::elv
const ElementLinkVector< CVec > & elv() const
Definition: CLinksAOD.cxx:36
DMTest::CLinksAOD
For testing thinning of AOD objects.
Definition: CLinksAOD.h:32
ElementLinkVector
ElementLinkVector implementation for standalone ROOT.
Definition: AthLinks/ElementLinkVector.h:27
DMTest::CLinksAOD::vel
const std::vector< ElementLink< CVec > > & vel() const
Definition: CLinksAOD.cxx:18
CLASS_DEF.h
File providing the different SG_BASE macros.
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
DMTest::CLinksAOD::m_elv
ElementLinkVector< CVec > m_elv
Definition: CLinksAOD.h:47
DMTest
Definition: B.h:23