Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
L1Trigger
VertexFinder
src
RecoVertex.cc
Go to the documentation of this file.
1
#include "
L1Trigger/VertexFinder/interface/RecoVertex.h
"
2
3
namespace
l1tVertexFinder {
4
5
// Template specializations
6
template
<>
7
RecoVertexWithTP
&
RecoVertexWithTP::operator+=
(
const
RecoVertex
& rhs) {
8
this->
tracks_
.insert(
std::end
(this->
tracks_
),
std::begin
(rhs.tracks()),
std::end
(rhs.tracks()));
9
this->
trueTracks_
.insert(
std::begin
(rhs.trueTracks()),
std::end
(rhs.trueTracks()));
10
return
*
this
;
11
}
12
13
template
<>
14
void
RecoVertexWithTP::clear
() {
15
tracks_
.clear();
16
trueTracks_
.clear();
17
}
18
19
template
<>
20
void
RecoVertexWithTP::insert
(
const
L1TrackTruthMatched* fitTrack) {
21
tracks_
.push_back(fitTrack);
22
if
(fitTrack->getMatchedTP() !=
nullptr
and fitTrack->getMatchedTP()->physicsCollision())
23
trueTracks_
.insert(fitTrack->getMatchedTP());
24
}
25
26
}
// namespace l1tVertexFinder
reco::btag::Vertices::RecoVertex
Definition:
VertexTypes.h:18
SplitLinear.begin
list begin
Definition:
SplitLinear.py:25
l1tVertexFinder::RecoVertex::operator+=
RecoVertex & operator+=(const RecoVertex &rhs)
Operators.
Definition:
RecoVertex.h:29
l1tVertexFinder::RecoVertexWithTP
RecoVertex< L1TrackTruthMatched > RecoVertexWithTP
Definition:
RecoVertex.h:89
l1tVertexFinder::RecoVertex::tracks_
std::vector< const T * > tracks_
Definition:
RecoVertex.h:82
l1tVertexFinder::RecoVertex::clear
void clear()
Clear track vector.
Definition:
RecoVertex.h:35
dataset.end
string end
Definition:
dataset.py:937
l1tVertexFinder::RecoVertex::trueTracks_
std::set< const TP * > trueTracks_
Definition:
RecoVertex.h:83
RecoVertex.h
l1tVertexFinder::RecoVertex::insert
void insert(const T *fitTrack)
Assign fitted track to this vertex.
Definition:
RecoVertex.h:43
Generated for CMSSW Reference Manual by
1.8.5