ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkEvent
TrkSpacePoint
src
SpacePointCollection.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// SpacePointCollection.cxx
7
// Implementation file for class SpacePointCollection
9
// (c) ATLAS Detector software
11
// Version 1.0 14/10/2003 Veronique Boisvert
13
14
#include "
TrkSpacePoint/SpacePointCollection.h
"
15
#include "GaudiKernel/MsgStream.h"
16
// Constructor with parameters:
17
SpacePointCollection::SpacePointCollection
(
const
IdentifierHash
idHash) :
18
m_idHash
(idHash),
19
m_id
()
20
{}
21
22
// Constructor with parameters:
23
SpacePointCollection::SpacePointCollection
(
const
SpacePointCollection
& spc) :
24
DataVector
<
Trk
::SpacePoint >( spc ),
25
m_idHash
(),
26
m_id
()
27
{
28
// added this ctor as a temporary hack for HLT
29
// it should never be called.
30
throw
SpacePointCollectionCopyConstructorCalled
();
31
}
32
33
// Destructor:
34
SpacePointCollection::~SpacePointCollection
() =
default
;
35
36
Identifier
SpacePointCollection::identify
()
const
37
{
38
return
m_id
;
39
}
40
41
IdentifierHash
SpacePointCollection::identifyHash
()
const
42
{
43
return
m_idHash
;
44
}
45
46
void
SpacePointCollection::setIdentifier
(
Identifier
id
)
47
{
48
m_id
= id;
49
}
50
51
std::string
SpacePointCollection::type
()
const
52
{
53
return
"SpacePointCollection"
;
54
}
55
56
MsgStream&
operator <<
( MsgStream& sl,
const
SpacePointCollection
& coll) {
57
sl <<
"SpacePointCollection: "
58
<<
"identify()="
<< coll.
identify
()
59
<<
", SP=["
;
60
SpacePointCollection::const_iterator
it = coll.
begin
();
61
SpacePointCollection::const_iterator
itEnd = coll.
end
();
62
for
(;it!=itEnd;++it) { sl<< (**it)<<
", "
;}
63
sl <<
" ]"
<<std::endl;
64
return
sl;
65
}
66
68
std::ostream&
operator <<
( std::ostream& sl,
const
SpacePointCollection
& coll) {
69
sl <<
"SpacePointCollection: "
70
<<
"identify()="
<< coll.
identify
()
71
<<
", SP=["
;
72
SpacePointCollection::const_iterator
it = coll.
begin
();
73
SpacePointCollection::const_iterator
itEnd = coll.
end
();
74
for
(;it!=itEnd;++it) { sl<< (**it)<<
", "
;}
75
sl <<
" ]"
<<std::endl;
76
return
sl;
77
}
operator<<
MsgStream & operator<<(MsgStream &sl, const SpacePointCollection &coll)
Overload of << operator for MsgStream for debug output.
Definition
SpacePointCollection.cxx:56
SpacePointCollection.h
DataVector< Trk::SpacePoint >::const_iterator
DataModel_detail::const_iterator< DataVector > const_iterator
Definition
DataVector.h:838
DataVector< Trk::SpacePoint >::DataVector
DataVector(SG::OwnershipPolicy ownPolicy=SG::OWN_ELEMENTS, SG::IndexTrackingPolicy trackIndices=SG::DEFAULT_TRACK_INDICES)
DataVector::end
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
DataVector::begin
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
IdentifierHash
This is a "hash" representation of an Identifier.
Definition
IdentifierHash.h:25
SpacePointCollectionCopyConstructorCalled
Definition
SpacePointCollection.h:34
SpacePointCollection
Definition
SpacePointCollection.h:40
SpacePointCollection::m_id
Identifier m_id
Definition
SpacePointCollection.h:86
SpacePointCollection::identify
virtual Identifier identify() const override final
Definition
SpacePointCollection.cxx:36
SpacePointCollection::~SpacePointCollection
virtual ~SpacePointCollection()
SpacePointCollection::SpacePointCollection
SpacePointCollection()=delete
SpacePointCollection::setIdentifier
void setIdentifier(Identifier id)
Definition
SpacePointCollection.cxx:46
SpacePointCollection::SpacePointCollection
SpacePointCollection(const IdentifierHash idHash)
Definition
SpacePointCollection.cxx:17
SpacePointCollection::identifyHash
virtual IdentifierHash identifyHash() const override final
Definition
SpacePointCollection.cxx:41
SpacePointCollection::type
virtual std::string type() const
Definition
SpacePointCollection.cxx:51
SpacePointCollection::m_idHash
const IdentifierHash m_idHash
Definition
SpacePointCollection.h:85
Identifier
Definition
IdentifierFieldParser.cxx:14
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
Generated on
for ATLAS Offline Software by
1.17.0