CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
CSCTFCandidateBuilder Class Reference

#include <CSCTFCandidateBuilder.h>

Public Member Functions

void buildCandidates (const L1CSCTrackCollection *, std::vector< L1MuRegionalCand > *) const
 
 CSCTFCandidateBuilder (const edm::ParameterSet &)
 

Private Attributes

CSCTFMuonSorter m_muonsorter
 

Detailed Description

Author
L. Gray (UF)

Takes sorts csc::L1Tracks and turns them into L1MuRegionalCands

Definition at line 18 of file CSCTFCandidateBuilder.h.

Constructor & Destructor Documentation

◆ CSCTFCandidateBuilder()

CSCTFCandidateBuilder::CSCTFCandidateBuilder ( const edm::ParameterSet pset)
explicit

Definition at line 3 of file CSCTFCandidateBuilder.cc.

3 : m_muonsorter{pset} {}

References muonDTDigis_cfi::pset.

Member Function Documentation

◆ buildCandidates()

void CSCTFCandidateBuilder::buildCandidates ( const L1CSCTrackCollection trks,
std::vector< L1MuRegionalCand > *  cands 
) const

Definition at line 5 of file CSCTFCandidateBuilder.cc.

6  {
7  std::vector<L1MuRegionalCand> result;
8  CSCTriggerContainer<csc::L1Track> stripped_tracks;
9 
10  L1CSCTrackCollection::const_iterator tmp_trk = trks->begin();
11 
12  for (; tmp_trk != trks->end(); tmp_trk++) {
13  stripped_tracks.push_back(tmp_trk->first);
14  }
15 
16  result = m_muonsorter.run(stripped_tracks);
17 
18  cands->insert(cands->end(), result.begin(), result.end());
19 }

References HLT_FULL_cff::cands, m_muonsorter, CSCTriggerContainer< T >::push_back(), mps_fire::result, CSCTFMuonSorter::run(), and hltEgammaHLTExtra_cfi::trks.

Referenced by CSCTFCandidateProducer::produce().

Member Data Documentation

◆ m_muonsorter

CSCTFMuonSorter CSCTFCandidateBuilder::m_muonsorter
private

Definition at line 25 of file CSCTFCandidateBuilder.h.

Referenced by buildCandidates().

CSCTFMuonSorter::run
std::vector< L1MuRegionalCand > run(const CSCTriggerContainer< csc::L1Track > &) const
Definition: CSCTFMuonSorter.cc:10
CSCTFCandidateBuilder::m_muonsorter
CSCTFMuonSorter m_muonsorter
Definition: CSCTFCandidateBuilder.h:25
HLT_FULL_cff.cands
cands
Definition: HLT_FULL_cff.py:15161
CSCTriggerContainer< csc::L1Track >
CSCTriggerContainer::push_back
void push_back(const T &data)
Definition: CSCTriggerContainer.h:51
hltEgammaHLTExtra_cfi.trks
trks
Definition: hltEgammaHLTExtra_cfi.py:43
mps_fire.result
result
Definition: mps_fire.py:311
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27