CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 &)
 
 ~CSCTFCandidateBuilder ()
 

Private Attributes

CSCTFMuonSorterm_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 ( const edm::ParameterSet pset)

Definition at line 3 of file CSCTFCandidateBuilder.cc.

References m_muonsorter.

4 {
5  m_muonsorter = new CSCTFMuonSorter(pset);
6 }
CSCTFMuonSorter * m_muonsorter
CSCTFCandidateBuilder::~CSCTFCandidateBuilder ( )
inline

Definition at line 22 of file CSCTFCandidateBuilder.h.

References m_muonsorter, and NULL.

22 { delete m_muonsorter; m_muonsorter = NULL; }
CSCTFMuonSorter * m_muonsorter
#define NULL
Definition: scimark2.h:8

Member Function Documentation

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().

10 {
11  std::vector<L1MuRegionalCand> result;
12  CSCTriggerContainer<csc::L1Track> stripped_tracks;
13 
14  L1CSCTrackCollection::const_iterator tmp_trk = trks->begin();
15 
16  for(; tmp_trk != trks->end(); tmp_trk++)
17  {
18  stripped_tracks.push_back(tmp_trk->first);
19  }
20 
21  result = m_muonsorter->run(stripped_tracks);
22 
23  cands->insert(cands->end(), result.begin(), result.end());
24 }
CSCTFMuonSorter * m_muonsorter
void push_back(const T &data)
tuple result
Definition: query.py:137
std::vector< L1MuRegionalCand > run(const CSCTriggerContainer< csc::L1Track > &) const

Member Data Documentation

CSCTFMuonSorter* CSCTFCandidateBuilder::m_muonsorter
private