CMS 3D CMS Logo

RecoVertex.cc
Go to the documentation of this file.
2 
3 namespace l1tVertexFinder {
4 
5  // Template specializations
6  template <>
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 <>
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
l1tVertexFinder
Definition: AlgoSettings.h:10
l1tVertexFinder::RecoVertexWithTP
RecoVertex< L1TrackTruthMatched > RecoVertexWithTP
Definition: RecoVertex.h:89
l1tVertexFinder::RecoVertex::operator+=
RecoVertex & operator+=(const RecoVertex &rhs)
Operators.
Definition: RecoVertex.h:29
RecoVertex.h
l1tVertexFinder::RecoVertex::tracks_
std::vector< const T * > tracks_
Definition: RecoVertex.h:82
mps_fire.end
end
Definition: mps_fire.py:242
RecoVertex
Definition: ConvertError.h:7
l1tVertexFinder::RecoVertex::trueTracks_
std::set< const TP * > trueTracks_
Definition: RecoVertex.h:83
l1tVertexFinder::RecoVertex::insert
void insert(const T *fitTrack)
Assign fitted track to this vertex.
Definition: RecoVertex.h:43
l1tVertexFinder::RecoVertex::clear
void clear()
Clear track vector.
Definition: RecoVertex.h:35