ATLAS Offline Software
Loading...
Searching...
No Matches
SegmentCandidate.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7#include <iostream>
8
11
12std::ostream& operator<<(std::ostream& os, const TrkDriftCircleMath::SegmentCandidate& seg) {
13 os << "line " << seg.line() << " dcs " << seg.dcs().size() << " cls " << seg.clusters().size() << std::endl;
14
15 TrkDriftCircleMath::DCCit it = seg.dcs().begin();
16 TrkDriftCircleMath::DCCit it_end = seg.dcs().end();
17
18 for (; it != it_end; ++it) { os << *it << std::endl; }
19
20 return os;
21}
22
23MsgStream& operator<<(MsgStream& os, const TrkDriftCircleMath::SegmentCandidate& seg) {
24 os << "line " << seg.line() << " dcs " << seg.dcs().size() << " cls " << seg.clusters().size() << endmsg;
25
26 TrkDriftCircleMath::DCCit it = seg.dcs().begin();
27 TrkDriftCircleMath::DCCit it_end = seg.dcs().end();
28
29 for (; it != it_end; ++it) { os << *it << endmsg; }
30
31 return os;
32}
33
34namespace TrkDriftCircleMath {
35
37 m_dcs.reserve(seg.dcs().size());
38 DCOnTrackCit it = seg.dcs().begin();
39 DCOnTrackCit itEnd = seg.dcs().end();
40 for (; it != itEnd; ++it) { m_dcs.push_back(*it); }
41 }
42
44 reserve(segVec.size());
45
46 SegCit segIt = segVec.begin();
47 SegCit segItEnd = segVec.end();
48 for (; segIt != segItEnd; ++segIt) { push_back(SegmentCandidate(*segIt)); }
49 }
50
51} // namespace TrkDriftCircleMath
#define endmsg
std::ostream & operator<<(std::ostream &os, const TrkDriftCircleMath::SegmentCandidate &seg)
SegmentCandidate(const Line &l, const DCVec &dcs, const CLVec &clusters)
Function object to check whether two Segments are sub/super sets or different.
DCOnTrackVec::const_iterator DCOnTrackCit
Definition DCOnTrack.h:61
DCVec::const_iterator DCCit