Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:22:13

0001 #include "L1Trigger/VertexFinder/interface/RecoVertex.h"
0002 
0003 namespace l1tVertexFinder {
0004 
0005   // Template specializations
0006   template <>
0007   RecoVertexWithTP& RecoVertexWithTP::operator+=(const RecoVertex& rhs) {
0008     this->tracks_.insert(std::end(this->tracks_), std::begin(rhs.tracks()), std::end(rhs.tracks()));
0009     this->trueTracks_.insert(std::begin(rhs.trueTracks()), std::end(rhs.trueTracks()));
0010     return *this;
0011   }
0012 
0013   template <>
0014   void RecoVertexWithTP::clear() {
0015     tracks_.clear();
0016     trueTracks_.clear();
0017   }
0018 
0019   template <>
0020   void RecoVertexWithTP::insert(const L1TrackTruthMatched* fitTrack) {
0021     tracks_.push_back(fitTrack);
0022     if (fitTrack->getMatchedTP() != nullptr and fitTrack->getMatchedTP()->physicsCollision())
0023       trueTracks_.insert(fitTrack->getMatchedTP());
0024   }
0025 
0026 }  // namespace l1tVertexFinder