#include <CSCTFCandidateBuilder.h>
Public Member Functions | |
void | buildCandidates (const L1CSCTrackCollection *, std::vector< L1MuRegionalCand > *) const |
CSCTFCandidateBuilder (const edm::ParameterSet &) | |
~CSCTFCandidateBuilder () | |
Private Attributes | |
CSCTFMuonSorter * | m_muonsorter |
Takes sorts csc::L1Tracks and turns them into L1MuRegionalCands
Definition at line 18 of file CSCTFCandidateBuilder.h.
CSCTFCandidateBuilder::CSCTFCandidateBuilder | ( | const edm::ParameterSet & | pset | ) |
Definition at line 3 of file CSCTFCandidateBuilder.cc.
References m_muonsorter.
{ m_muonsorter = new CSCTFMuonSorter(pset); }
CSCTFCandidateBuilder::~CSCTFCandidateBuilder | ( | ) | [inline] |
Definition at line 22 of file CSCTFCandidateBuilder.h.
References m_muonsorter, and NULL.
{ delete m_muonsorter; m_muonsorter = NULL; }
void CSCTFCandidateBuilder::buildCandidates | ( | const L1CSCTrackCollection * | trks, |
std::vector< L1MuRegionalCand > * | cands | ||
) | const |
Definition at line 8 of file CSCTFCandidateBuilder.cc.
References m_muonsorter, CSCTriggerContainer< T >::push_back(), query::result, and CSCTFMuonSorter::run().
Referenced by CSCTFCandidateProducer::produce().
{ std::vector<L1MuRegionalCand> result; CSCTriggerContainer<csc::L1Track> stripped_tracks; L1CSCTrackCollection::const_iterator tmp_trk = trks->begin(); for(; tmp_trk != trks->end(); tmp_trk++) { stripped_tracks.push_back(tmp_trk->first); } result = m_muonsorter->run(stripped_tracks); cands->insert(cands->end(), result.begin(), result.end()); }
Definition at line 28 of file CSCTFCandidateBuilder.h.
Referenced by buildCandidates(), CSCTFCandidateBuilder(), and ~CSCTFCandidateBuilder().