CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1AnalysisL1UpgradeTfMuon.cc
Go to the documentation of this file.
2 
4 {
5 }
6 
8 {
9 
10 }
11 
13 {
14  for (int ibx = muon.getFirstBX(); ibx <= muon.getLastBX(); ++ibx) {
15  for (l1t::RegionalMuonCandBxCollection::const_iterator it = muon.begin(ibx); it != muon.end(ibx) && l1upgradetfmuon_.nTfMuons < maxL1UpgradeTfMuon; ++it){
16  if (it->hwPt() > 0) {
17  l1upgradetfmuon_.tfMuonHwPt.push_back(it->hwPt());
18  l1upgradetfmuon_.tfMuonHwEta.push_back(it->hwEta());
19  l1upgradetfmuon_.tfMuonHwPhi.push_back(it->hwPhi());
20  l1upgradetfmuon_.tfMuonHwSign.push_back(it->hwSign());
21  l1upgradetfmuon_.tfMuonHwSignValid.push_back(it->hwSignValid());
22  l1upgradetfmuon_.tfMuonHwQual.push_back(it->hwQual());
23  l1upgradetfmuon_.tfMuonLink.push_back(it->link());
24  l1upgradetfmuon_.tfMuonProcessor.push_back(it->processor());
25  l1upgradetfmuon_.tfMuonTrackFinderType.push_back(it->trackFinderType());
26  l1upgradetfmuon_.tfMuonHwHF.push_back(it->hwHF());
27  l1upgradetfmuon_.tfMuonBx.push_back(ibx);
28  l1upgradetfmuon_.nTfMuons++;
29  }
30  }
31  }
32 }
33 
const_iterator end(int bx) const
int getFirstBX() const
int getLastBX() const
const_iterator begin(int bx) const
void SetTfMuon(const l1t::RegionalMuonCandBxCollection &muon, unsigned maxL1UpgradeTfMuon)
std::vector< RegionalMuonCand >::const_iterator const_iterator
Definition: BXVector.h:20