CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
L1TMuonBarrelKalmanTrackFinder Class Reference

#include <L1TMuonBarrelKalmanTrackFinder.h>

Public Member Functions

 L1TMuonBarrelKalmanTrackFinder (const edm::ParameterSet &)
 
L1MuKBMTrackCollection process (L1TMuonBarrelKalmanAlgo *, const L1MuKBMTCombinedStubRefVector &stubs, int bx)
 
 ~L1TMuonBarrelKalmanTrackFinder ()
 

Private Attributes

std::vector
< L1TMuonBarrelKalmanSectorProcessor
sectors_
 
int verbose_
 

Detailed Description

Definition at line 10 of file L1TMuonBarrelKalmanTrackFinder.h.

Constructor & Destructor Documentation

L1TMuonBarrelKalmanTrackFinder::L1TMuonBarrelKalmanTrackFinder ( const edm::ParameterSet iConfig)

Definition at line 3 of file L1TMuonBarrelKalmanTrackFinder.cc.

References edm::ParameterSet::getParameter(), mergeVDriftHistosByStation::sectors, and sectors_.

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 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
std::vector< L1TMuonBarrelKalmanSectorProcessor > sectors_
L1TMuonBarrelKalmanTrackFinder::~L1TMuonBarrelKalmanTrackFinder ( )

Definition at line 11 of file L1TMuonBarrelKalmanTrackFinder.cc.

11 {}

Member Function Documentation

L1MuKBMTrackCollection L1TMuonBarrelKalmanTrackFinder::process ( L1TMuonBarrelKalmanAlgo trackMaker,
const L1MuKBMTCombinedStubRefVector stubs,
int  bx 
)

Definition at line 13 of file L1TMuonBarrelKalmanTrackFinder.cc.

References gpuVertexFinder::printf(), sectors_, createJobs::tmp, and verbose_.

Referenced by L1TMuonBarrelKalmanTrackProducer::produce().

15  {
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 }
printf("params %d %f %f %f\n", minT, eps, errmax, chi2max)
std::vector< L1MuKBMTrack > L1MuKBMTrackCollection
Definition: L1MuKBMTrack.h:15
std::vector< L1TMuonBarrelKalmanSectorProcessor > sectors_
tmp
align.sh
Definition: createJobs.py:716

Member Data Documentation

std::vector<L1TMuonBarrelKalmanSectorProcessor> L1TMuonBarrelKalmanTrackFinder::sectors_
private

Definition at line 19 of file L1TMuonBarrelKalmanTrackFinder.h.

Referenced by L1TMuonBarrelKalmanTrackFinder(), and process().

int L1TMuonBarrelKalmanTrackFinder::verbose_
private

Definition at line 18 of file L1TMuonBarrelKalmanTrackFinder.h.

Referenced by process().