ATLAS Offline Software
Loading...
Searching...
No Matches
AthenaPoolTestElemLink.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
9/***************************************************************************
10
11 -----------------------------------------
12 ***************************************************************************/
13
14//<doc><file> $Id: AthenaPoolTestElemLink.cxx,v 1.2 2005-01-10 15:50:19 cranshaw Exp $
15//<version> $Name: not supported by cvs2svn $
16
17//<<<<<< INCLUDES >>>>>>
18
19#include "AthenaPoolTestData/AthenaPoolTestElemLink.h"
20//#include "TrkTrack/Track.h"
21
22#include <sstream>
23
24//<<<<<< PRIVATE DEFINES >>>>>>
25//<<<<<< PRIVATE CONSTANTS >>>>>>
26//<<<<<< PRIVATE TYPES >>>>>>
27//<<<<<< PRIVATE VARIABLE DEFINITIONS >>>>>>
28//<<<<<< PUBLIC VARIABLE DEFINITIONS >>>>>>
29//<<<<<< CLASS STRUCTURE INITIALIZATION >>>>>>
30//<<<<<< PRIVATE FUNCTION DEFINITIONS >>>>>>
31//<<<<<< PUBLIC FUNCTION DEFINITIONS >>>>>>
32//<<<<<< MEMBER FUNCTION DEFINITIONS >>>>>>
33
34AthenaPoolTestElemLink::AthenaPoolTestElemLink()
35{
36}
37
38AthenaPoolTestElemLink::AthenaPoolTestElemLink(const ElementLink<DataVector<Trk::Track> >& track)
39 :
40 m_track(track),
41 m_test(123)
42{
43}
44
45AthenaPoolTestElemLink::~AthenaPoolTestElemLink (void)
46{
47}
48
49std::string
50AthenaPoolTestElemLink::printWhoYouAre (void) const
51{
52 std::stringstream stream;
53// stream << "AthenaPoolTestElemLink::printWhoYouAre track, index, cachedElement - NO ACCESS TO DATA. test " << m_test;
54 stream << "AthenaPoolTestElemLink::printWhoYouAre track, index, cachedElement "
55 << m_test << " " << m_track.index() << " " << m_track.cachedElement();
56 stream << " and then, cptr, index, cachedElement "
57 << m_track.cptr() << " " << m_track.index() << " " << m_track.cachedElement();
58 stream << " and the the track: "
59 << (**m_track);
60 std::string result(stream.str());
61 return (result);
62}
63
Derived DataVector<T>.
Definition DataVector.h:795