CMS 3D CMS Logo

L1TMuonBarrelKalmanTrackFinder.cc
Go to the documentation of this file.
2 
4  : verbose_(iConfig.getParameter<int>("verbose")) {
5  std::vector<int> sectors = iConfig.getParameter<std::vector<int> >("sectorsToProcess");
6  for (const auto sector : sectors)
7  sectors_.push_back(
8  L1TMuonBarrelKalmanSectorProcessor(iConfig.getParameter<edm::ParameterSet>("sectorSettings"), sector));
9 }
10 
12 
14  const L1MuKBMTCombinedStubRefVector& stubsAll,
15  int bx) {
16  L1MuKBMTrackCollection pretracks;
17  for (auto& sector : sectors_) {
18  L1MuKBMTrackCollection tmp = sector.process(trackMaker, stubsAll, bx);
19  if (!tmp.empty())
20  pretracks.insert(pretracks.end(), tmp.begin(), tmp.end());
21  }
22  if (verbose_) {
23  printf(" -----Track Finder Kalman Tracks (Uncleaned!)-----\n");
24  for (const auto& track1 : pretracks)
25  printf("Kalman Track charge=%d pt=%f eta=%f phi=%f curvature=%d curvature STA =%d stubs=%d chi2=%d pts=%f %f\n",
26  track1.charge(),
27  track1.pt(),
28  track1.eta(),
29  track1.phi(),
30  track1.curvatureAtVertex(),
31  track1.curvatureAtMuon(),
32  int(track1.stubs().size()),
33  track1.approxChi2(),
34  track1.pt(),
35  track1.ptUnconstrained());
36  }
37  return pretracks;
38 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
L1MuKBMTrackCollection process(L1TMuonBarrelKalmanAlgo *, const L1MuKBMTCombinedStubRefVector &stubs, int bx)
std::vector< edm::Ref< L1MuKBMTCombinedStubCollection > > L1MuKBMTCombinedStubRefVector
L1TMuonBarrelKalmanTrackFinder(const edm::ParameterSet &)
std::vector< L1MuKBMTrack > L1MuKBMTrackCollection
Definition: L1MuKBMTrack.h:15
std::vector< L1TMuonBarrelKalmanSectorProcessor > sectors_
tmp
align.sh
Definition: createJobs.py:716