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
RecoVertex & operator+=(const RecoVertex &rhs)
Operators.
Definition: RecoVertex.h:29
RecoVertex< L1TrackTruthMatched > RecoVertexWithTP
Definition: RecoVertex.h:91
std::vector< const T * > tracks_
Definition: RecoVertex.h:84
void clear()
Clear track vector.
Definition: RecoVertex.h:35
std::set< const TP * > trueTracks_
Definition: RecoVertex.h:85
void insert(const T *fitTrack)
Assign fitted track to this vertex.
Definition: RecoVertex.h:43