CMS 3D CMS Logo

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