CMS 3D CMS Logo

L1AnalysisL1UpgradeTfMuon.cc
Go to the documentation of this file.
2 #include <cmath>
4 
6 
8  unsigned maxL1UpgradeTfMuon) {
9  for (int ibx = muon.getFirstBX(); ibx <= muon.getLastBX(); ++ibx) {
11  it != muon.end(ibx) && l1upgradetfmuon_.nTfMuons < maxL1UpgradeTfMuon;
12  ++it) {
13  if (it->hwPt() > 0) {
14  l1upgradetfmuon_.tfMuonHwPt.push_back(it->hwPt());
15  l1upgradetfmuon_.tfMuonHwEta.push_back(it->hwEta());
16  l1upgradetfmuon_.tfMuonHwPhi.push_back(it->hwPhi());
17  l1upgradetfmuon_.tfMuonGlobalPhi.push_back(
18  l1t::MicroGMTConfiguration::calcGlobalPhi(it->hwPhi(), it->trackFinderType(), it->processor()));
19  l1upgradetfmuon_.tfMuonHwSign.push_back(it->hwSign());
20  l1upgradetfmuon_.tfMuonHwSignValid.push_back(it->hwSignValid());
21  l1upgradetfmuon_.tfMuonHwQual.push_back(it->hwQual());
22  l1upgradetfmuon_.tfMuonLink.push_back(it->link());
23  l1upgradetfmuon_.tfMuonProcessor.push_back(it->processor());
24  l1upgradetfmuon_.tfMuonTrackFinderType.push_back(it->trackFinderType());
25  l1upgradetfmuon_.tfMuonHwHF.push_back(it->hwHF());
26  l1upgradetfmuon_.tfMuonBx.push_back(ibx);
27  std::map<int, int> trAdd;
28  trAdd = it->trackAddress();
29  int wheel = pow(-1, trAdd[0]) * trAdd[1];
30  l1upgradetfmuon_.tfMuonWh.push_back(wheel);
31  l1upgradetfmuon_.tfMuonTrAdd.push_back(trAdd[2]);
32  l1upgradetfmuon_.tfMuonTrAdd.push_back(trAdd[3]);
33  l1upgradetfmuon_.tfMuonTrAdd.push_back(trAdd[4]);
34  l1upgradetfmuon_.tfMuonTrAdd.push_back(trAdd[5]);
35 
36  l1upgradetfmuon_.nTfMuons++;
37  }
38  }
39  }
40 }
L1Analysis::L1AnalysisL1UpgradeTfMuon::SetTfMuon
void SetTfMuon(const l1t::RegionalMuonCandBxCollection &muon, unsigned maxL1UpgradeTfMuon)
Definition: L1AnalysisL1UpgradeTfMuon.cc:7
muon
Definition: MuonCocktails.h:17
L1Analysis::L1AnalysisL1UpgradeTfMuon::L1AnalysisL1UpgradeTfMuon
L1AnalysisL1UpgradeTfMuon()
Definition: L1AnalysisL1UpgradeTfMuon.cc:3
BXVector< RegionalMuonCand >::const_iterator
std::vector< RegionalMuonCand >::const_iterator const_iterator
Definition: BXVector.h:18
L1Analysis::L1AnalysisL1UpgradeTfMuon::~L1AnalysisL1UpgradeTfMuon
~L1AnalysisL1UpgradeTfMuon()
Definition: L1AnalysisL1UpgradeTfMuon.cc:5
l1t::MicroGMTConfiguration::calcGlobalPhi
static int calcGlobalPhi(int locPhi, tftype t, int proc)
Definition: MicroGMTConfiguration.cc:11
BXVector< RegionalMuonCand >
l1UpgradeTfMuonTree_cfi.maxL1UpgradeTfMuon
maxL1UpgradeTfMuon
Definition: l1UpgradeTfMuonTree_cfi.py:10
makeMuonMisalignmentScenario.wheel
wheel
Definition: makeMuonMisalignmentScenario.py:319
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:30
L1AnalysisL1UpgradeTfMuon.h