CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch2/src/L1Trigger/CSCTrackFinder/src/CSCTFCandidateBuilder.cc

Go to the documentation of this file.
00001 #include <L1Trigger/CSCTrackFinder/src/CSCTFCandidateBuilder.h>
00002 
00003 CSCTFCandidateBuilder::CSCTFCandidateBuilder(const edm::ParameterSet& pset)
00004 {
00005   m_muonsorter = new CSCTFMuonSorter(pset);
00006 }
00007 
00008 void CSCTFCandidateBuilder::buildCandidates(const L1CSCTrackCollection* trks, 
00009                                             std::vector<L1MuRegionalCand>* cands) const
00010 {
00011   std::vector<L1MuRegionalCand> result;
00012   CSCTriggerContainer<csc::L1Track> stripped_tracks;
00013   
00014   L1CSCTrackCollection::const_iterator tmp_trk = trks->begin();
00015 
00016   for(; tmp_trk != trks->end(); tmp_trk++)
00017     {
00018       stripped_tracks.push_back(tmp_trk->first);
00019     }
00020 
00021   result = m_muonsorter->run(stripped_tracks);
00022 
00023   cands->insert(cands->end(), result.begin(), result.end());
00024 }