CMS 3D CMS Logo

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< L1TMuonBarrelKalmanSectorProcessorsectors_
 
int verbose_
 

Detailed Description

Definition at line 10 of file L1TMuonBarrelKalmanTrackFinder.h.

Constructor & Destructor Documentation

◆ L1TMuonBarrelKalmanTrackFinder()

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

Definition at line 3 of file L1TMuonBarrelKalmanTrackFinder.cc.

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 }

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

◆ ~L1TMuonBarrelKalmanTrackFinder()

L1TMuonBarrelKalmanTrackFinder::~L1TMuonBarrelKalmanTrackFinder ( )

Definition at line 11 of file L1TMuonBarrelKalmanTrackFinder.cc.

11 {}

Member Function Documentation

◆ process()

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

Definition at line 13 of file L1TMuonBarrelKalmanTrackFinder.cc.

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 }

References simKBmtfDigis_cfi::bx, createfilelist::int, sectors_, createJobs::tmp, and verbose_.

Referenced by L1TMuonBarrelKalmanTrackProducer::produce().

Member Data Documentation

◆ sectors_

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

Definition at line 19 of file L1TMuonBarrelKalmanTrackFinder.h.

Referenced by L1TMuonBarrelKalmanTrackFinder(), and process().

◆ verbose_

int L1TMuonBarrelKalmanTrackFinder::verbose_
private

Definition at line 18 of file L1TMuonBarrelKalmanTrackFinder.h.

Referenced by process().

L1TMuonBarrelKalmanSectorProcessor
Definition: L1TMuonBarrelKalmanSectorProcessor.h:10
L1MuKBMTrackCollection
std::vector< L1MuKBMTrack > L1MuKBMTrackCollection
Definition: L1MuKBMTrack.h:15
createJobs.tmp
tmp
align.sh
Definition: createJobs.py:716
simKBmtfDigis_cfi.bx
bx
Definition: simKBmtfDigis_cfi.py:55
edm::ParameterSet
Definition: ParameterSet.h:36
createfilelist.int
int
Definition: createfilelist.py:10
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
L1TMuonBarrelKalmanTrackFinder::verbose_
int verbose_
Definition: L1TMuonBarrelKalmanTrackFinder.h:18
L1TMuonBarrelKalmanTrackFinder::sectors_
std::vector< L1TMuonBarrelKalmanSectorProcessor > sectors_
Definition: L1TMuonBarrelKalmanTrackFinder.h:19
volumeBasedMagneticField_160812_cfi.sectors
sectors
Definition: volumeBasedMagneticField_160812_cfi.py:59