Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:21:43

0001 #include "L1Trigger/CSCTrackFinder/src/CSCTFCandidateBuilder.h"
0002 
0003 CSCTFCandidateBuilder::CSCTFCandidateBuilder(const edm::ParameterSet& pset) : m_muonsorter{pset} {}
0004 
0005 void CSCTFCandidateBuilder::buildCandidates(const L1CSCTrackCollection* trks,
0006                                             std::vector<L1MuRegionalCand>* cands) const {
0007   std::vector<L1MuRegionalCand> result;
0008   CSCTriggerContainer<csc::L1Track> stripped_tracks;
0009 
0010   L1CSCTrackCollection::const_iterator tmp_trk = trks->begin();
0011 
0012   for (; tmp_trk != trks->end(); tmp_trk++) {
0013     stripped_tracks.push_back(tmp_trk->first);
0014   }
0015 
0016   result = m_muonsorter.run(stripped_tracks);
0017 
0018   cands->insert(cands->end(), result.begin(), result.end());
0019 }