ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkUtilityPackages
TrkDriftCircleMath
src
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
5
#include "
TrkDriftCircleMath/SegmentCandidate.h
"
6
7
#include <iostream>
8
9
#include "
TrkDriftCircleMath/ResidualWithLine.h
"
10
#include "
TrkDriftCircleMath/Segment.h
"
11
12
std::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
23
MsgStream&
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
34
namespace
TrkDriftCircleMath
{
35
36
SegmentCandidate::SegmentCandidate
(
const
Segment
& seg) :
m_line
(seg.
line
()),
m_clusters
(seg.
clusters
()) {
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
43
SegCandVec::SegCandVec
(
const
SegVec
& segVec) {
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
endmsg
#define endmsg
Definition
AnalysisConfig_Ntuple.cxx:54
ResidualWithLine.h
operator<<
std::ostream & operator<<(std::ostream &os, const TrkDriftCircleMath::SegmentCandidate &seg)
Definition
SegmentCandidate.cxx:12
SegmentCandidate.h
Segment.h
TrkDriftCircleMath::SegCandVec::SegCandVec
SegCandVec()
Definition
SegmentCandidate.h:44
TrkDriftCircleMath::SegmentCandidate
Definition
SegmentCandidate.h:21
TrkDriftCircleMath::SegmentCandidate::dcs
const DCVec & dcs() const
Definition
SegmentCandidate.h:30
TrkDriftCircleMath::SegmentCandidate::m_clusters
CLVec m_clusters
Definition
SegmentCandidate.h:39
TrkDriftCircleMath::SegmentCandidate::m_line
Line m_line
Definition
SegmentCandidate.h:37
TrkDriftCircleMath::SegmentCandidate::m_dcs
DCVec m_dcs
Definition
SegmentCandidate.h:38
TrkDriftCircleMath::SegmentCandidate::clusters
const CLVec & clusters() const
Definition
SegmentCandidate.h:31
TrkDriftCircleMath::SegmentCandidate::line
const Line & line() const
Definition
SegmentCandidate.h:29
TrkDriftCircleMath::SegmentCandidate::SegmentCandidate
SegmentCandidate(const Line &l, const DCVec &dcs, const CLVec &clusters)
Definition
SegmentCandidate.h:23
TrkDriftCircleMath::Segment
Definition
Tracking/TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:18
TrkDriftCircleMath::Segment::dcs
const DCOnTrackVec & dcs() const
Definition
Tracking/TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:28
TrkDriftCircleMath
Function object to check whether two Segments are sub/super sets or different.
Definition
IMdtSegmentFinder.h:13
TrkDriftCircleMath::DCOnTrackCit
DCOnTrackVec::const_iterator DCOnTrackCit
Definition
DCOnTrack.h:61
TrkDriftCircleMath::DCCit
DCVec::const_iterator DCCit
Definition
DriftCircle.h:119
TrkDriftCircleMath::SegVec
std::vector< Segment > SegVec
Definition
Tracking/TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:122
TrkDriftCircleMath::SegCit
SegVec::const_iterator SegCit
Definition
Tracking/TrkUtilityPackages/TrkDriftCircleMath/TrkDriftCircleMath/Segment.h:124
Generated on
for ATLAS Offline Software by
1.17.0