CMS 3D CMS Logo

L1AnalysisL1UpgradeTfMuonShower.cc
Go to the documentation of this file.
2 #include <cmath>
4 
6 
8  unsigned maxL1UpgradeTfMuonShower) {
9  for (int ibx = muonShower.getFirstBX(); ibx <= muonShower.getLastBX(); ++ibx) {
10  for (auto it = muonShower.begin(ibx);
11  it != muonShower.end(ibx) && l1upgradetfmuonshower_.nTfMuonShowers < maxL1UpgradeTfMuonShower;
12  ++it) {
13  if (it->isValid()) {
14  l1upgradetfmuonshower_.tfMuonShowerBx.push_back(ibx);
15  l1upgradetfmuonshower_.tfMuonShowerEndcap.push_back(it->trackFinderType() == l1t::tftype::emtf_pos ? 1 : -1);
16  l1upgradetfmuonshower_.tfMuonShowerSector.push_back(it->processor() + 1);
17  l1upgradetfmuonshower_.tfMuonShowerOneNominal.push_back(it->isOneNominalInTime());
18  l1upgradetfmuonshower_.tfMuonShowerOneTight.push_back(it->isOneTightInTime());
19  l1upgradetfmuonshower_.tfMuonShowerOneLoose.push_back(it->isOneLooseInTime());
20  l1upgradetfmuonshower_.tfMuonShowerTwoLoose.push_back(it->isTwoLooseInTime());
21  l1upgradetfmuonshower_.nTfMuonShowers++;
22  }
23  }
24  }
25 }
int getLastBX() const
int getFirstBX() const
const_iterator begin(int bx) const
void SetTfMuonShower(const l1t::RegionalMuonShowerBxCollection &muon, unsigned maxL1UpgradeTfMuonShower)
const_iterator end(int bx) const