ATLAS Offline Software
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 
15 #include "GaudiKernel/MsgStream.h"
16 // Constructor with parameters:
18  m_idHash(idHash),
19  m_id()
20 {}
21 
22 // Constructor with parameters:
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.
31 }
32 
33 // Destructor:
35 
37 {
38  return m_id;
39 }
40 
42 {
43  return m_idHash;
44 }
45 
47 {
48  m_id = id;
49 }
50 
51 std::string SpacePointCollection::type() const
52 {
53  return "SpacePointCollection";
54 }
56 MsgStream& operator << ( MsgStream& sl, const SpacePointCollection& coll) {
57  sl << "SpacePointCollection: "
58  << "identify()="<< coll.identify()
59  << ", SP=[";
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=[";
74  for (;it!=itEnd;++it) { sl<< (**it)<<", ";}
75  sl <<" ]"<<std::endl;
76  return sl;
77 }
DataModel_detail::const_iterator
Const iterator class for DataVector/DataList.
Definition: DVLIterator.h:82
SpacePointCollection::identify
virtual Identifier identify() const override final
Definition: SpacePointCollection.cxx:36
SpacePointCollection::SpacePointCollection
SpacePointCollection()=delete
skel.it
it
Definition: skel.GENtoEVGEN.py:423
SpacePointCollection::identifyHash
virtual IdentifierHash identifyHash() const override final
Definition: SpacePointCollection.cxx:41
SpacePointCollection::~SpacePointCollection
virtual ~SpacePointCollection()
SpacePointCollection::m_idHash
const IdentifierHash m_idHash
Definition: SpacePointCollection.h:85
SpacePoint
Definition: Trigger/TrigAccel/TrigCudaFitter/src/SpacePoint.h:6
SpacePointCollection::setIdentifier
void setIdentifier(Identifier id)
Definition: SpacePointCollection.cxx:46
SpacePointCollection.h
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
SpacePointCollection::type
virtual std::string type() const
Definition: SpacePointCollection.cxx:51
SpacePointCollectionCopyConstructorCalled
Definition: SpacePointCollection.h:34
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:194
operator<<
MsgStream & operator<<(MsgStream &sl, const SpacePointCollection &coll)
Overload of << operator for MsgStream for debug output.
Definition: SpacePointCollection.cxx:56
SpacePointCollection::m_id
Identifier m_id
Definition: SpacePointCollection.h:86
DataVector::end
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
SpacePointCollection
Definition: SpacePointCollection.h:40
IdentifierHash
Definition: IdentifierHash.h:38
DataVector::begin
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.