CMS 3D CMS Logo

L1TMuonBarrelKalmanSectorProcessor.cc
Go to the documentation of this file.
2 
3 
4 
6  verbose_(iConfig.getParameter<int>("verbose")),
7  sector_(sector)
8 {
9  std::vector<int> wheels = iConfig.getParameter<std::vector<int> >("wheelsToProcess");
10  for (const auto wheel : wheels)
11  regions_.push_back(L1TMuonBarrelKalmanRegionModule(iConfig.getParameter<edm::ParameterSet>("regionSettings"),wheel,sector));
12 }
13 
14 
15 
17 
19 
20 
21  L1MuKBMTrackCollection pretracks;
22  for (auto& region: regions_) {
23  L1MuKBMTrackCollection tmp = region.process(trackMaker,stubsAll,bx);
24  if (!tmp.empty())
25  pretracks.insert(pretracks.end(),tmp.begin(),tmp.end());
26  }
27 
28  L1MuKBMTrackCollection out =trackMaker->cleanAndSort(pretracks,3);
29 
30 
31 
32 
33  return out;
34 
35 }
T getParameter(std::string const &) const
std::vector< L1TMuonBarrelKalmanRegionModule > regions_
std::vector< edm::Ref< L1MuKBMTCombinedStubCollection > > L1MuKBMTCombinedStubRefVector
L1MuKBMTrackCollection process(L1TMuonBarrelKalmanAlgo *, const L1MuKBMTCombinedStubRefVector &stubs, int bx)
L1MuKBMTrackCollection cleanAndSort(const L1MuKBMTrackCollection &, uint)
std::vector< std::vector< double > > tmp
Definition: MVATrainer.cc:100
std::vector< L1MuKBMTrack > L1MuKBMTrackCollection
Definition: L1MuKBMTrack.h:14
L1TMuonBarrelKalmanSectorProcessor(const edm::ParameterSet &, int sector)