ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
AtlasTest
DatabaseTest
AthenaPoolTestData
src
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
34
AthenaPoolTestElemLink::AthenaPoolTestElemLink()
35
{
36
}
37
38
AthenaPoolTestElemLink::AthenaPoolTestElemLink(
const
ElementLink
<
DataVector<Trk::Track>
>& track)
39
:
40
m_track(
track
),
41
m_test(123)
42
{
43
}
44
45
AthenaPoolTestElemLink::~AthenaPoolTestElemLink (
void
)
46
{
47
}
48
49
std::string
50
AthenaPoolTestElemLink::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
DataVector
Derived DataVector<T>.
Definition
DataVector.h:795
ElementLink
ElementLink implementation for ROOT usage.
Definition
A/AthLinks/ElementLink.h:40
AthenaPoolTestWrite.stream
str stream
Definition
AthenaPoolTestWrite.py:12
get_generator_info.result
result
Definition
get_generator_info.py:21
xAOD::track
@ track
Definition
TrackingPrimitives.h:531
Generated on
for ATLAS Offline Software by
1.17.0