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 }
L1TMuonBarrelKalmanTrackFinder::process
L1MuKBMTrackCollection process(L1TMuonBarrelKalmanAlgo *, const L1MuKBMTCombinedStubRefVector &stubs, int bx)
Definition: L1TMuonBarrelKalmanTrackFinder.cc:13
L1TMuonBarrelKalmanSectorProcessor
Definition: L1TMuonBarrelKalmanSectorProcessor.h:10
L1MuKBMTrackCollection
std::vector< L1MuKBMTrack > L1MuKBMTrackCollection
Definition: L1MuKBMTrack.h:15
l1GtPatternGenerator_cfi.bx
bx
Definition: l1GtPatternGenerator_cfi.py:18
L1TMuonBarrelKalmanTrackFinder::~L1TMuonBarrelKalmanTrackFinder
~L1TMuonBarrelKalmanTrackFinder()
Definition: L1TMuonBarrelKalmanTrackFinder.cc:11
createJobs.tmp
tmp
align.sh
Definition: createJobs.py:716
edm::ParameterSet
Definition: ParameterSet.h:47
L1TMuonBarrelKalmanAlgo
Definition: L1TMuonBarrelKalmanAlgo.h:16
createfilelist.int
int
Definition: createfilelist.py:10
L1TMuonBarrelKalmanTrackFinder::verbose_
int verbose_
Definition: L1TMuonBarrelKalmanTrackFinder.h:18
L1TMuonBarrelKalmanTrackFinder::sectors_
std::vector< L1TMuonBarrelKalmanSectorProcessor > sectors_
Definition: L1TMuonBarrelKalmanTrackFinder.h:19
L1TMuonBarrelKalmanTrackFinder.h
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
volumeBasedMagneticField_160812_cfi.sectors
sectors
Definition: volumeBasedMagneticField_160812_cfi.py:59
L1TMuonBarrelKalmanTrackFinder::L1TMuonBarrelKalmanTrackFinder
L1TMuonBarrelKalmanTrackFinder(const edm::ParameterSet &)
Definition: L1TMuonBarrelKalmanTrackFinder.cc:3
L1MuKBMTCombinedStubRefVector
std::vector< edm::Ref< L1MuKBMTCombinedStubCollection > > L1MuKBMTCombinedStubRefVector
Definition: L1MuKBMTCombinedStub.h:43