#include <AlignmentTrackSelector.h>
Classes | |
struct | ComparePt |
compare two tracks in pt (used by theNHighestPtTracks) More... | |
Public Types | |
typedef std::vector< const reco::Track * > | Tracks |
Public Member Functions | |
AlignmentTrackSelector (const edm::ParameterSet &cfg, edm::ConsumesCollector &iC) | |
constructor More... | |
Tracks | select (const Tracks &tracks, const edm::Event &evt, const edm::EventSetup &eSetup) const |
select tracks More... | |
bool | useThisFilter () |
returns if any of the Filters is used. More... | |
~AlignmentTrackSelector () | |
destructor More... | |
Private Member Functions | |
Tracks | basicCuts (const Tracks &tracks, const edm::Event &evt, const edm::EventSetup &eSetup) const |
apply basic cuts on pt,eta,phi,nhit More... | |
Tracks | checkPrescaledHits (const Tracks &tracks, const edm::Event &evt) const |
bool | detailedHitsCheck (const reco::Track *track, const edm::Event &evt, const edm::EventSetup &eSetup) const |
checking hit requirements beyond simple number of valid hits More... | |
bool | isHit2D (const TrackingRecHit &hit) const |
bool | isIsolated (const TrackingRecHit *therechit, const edm::Event &evt) const |
bool | isOkCharge (const TrackingRecHit *therechit) const |
if valid, check for minimum charge (currently only in strip), if invalid give true More... | |
bool | isOkChargeStripHit (const SiStripRecHit1D &siStripRecHit1D) const |
bool | isOkChargeStripHit (const SiStripRecHit2D &siStripRecHit2D) const |
bool | isOkTrkQuality (const reco::Track *track) const |
Tracks | theNHighestPtTracks (const Tracks &tracks) const |
filter the n highest pt tracks More... | |
Definition at line 23 of file AlignmentTrackSelector.h.
typedef std::vector<const reco::Track*> AlignmentTrackSelector::Tracks |
Definition at line 28 of file AlignmentTrackSelector.h.
AlignmentTrackSelector::AlignmentTrackSelector | ( | const edm::ParameterSet & | cfg, |
edm::ConsumesCollector & | iC | ||
) |
constructor
Definition at line 33 of file AlignmentTrackSelector.cc.
References reco::TrackBase::algoByName(), applyBasicCuts_, applyIsolation_, applyIterStepCheck_, applyMultiplicityFilter_, applyNHighestPt_, applyPrescaledHitsFilter_, applyTrkQualityCheck_, chargeCheck_, chi2nMax_, clusterValueMapTag_, clusterValueMapToken_, edm::ConsumesCollector::consumes(), countStereoHitAs2D_, etaMax_, etaMin_, Exception, edm::ParameterSet::getParameter(), i, matchedrecHitsToken_, maxHitDiffEndcaps_, maxMultiplicity_, minHitChargeStrip_, minHitIsolation_, minHitsinBPIX_, minHitsinENDCAP_, minHitsinENDCAPminus_, minHitsinENDCAPplus_, minHitsinFPIX_, minHitsinFPIXminus_, minHitsinFPIXplus_, minHitsinPIX_, minHitsinTEC_, minHitsinTECminus_, minHitsinTECplus_, minHitsinTIB_, minHitsinTID_, minHitsinTIDminus_, minHitsinTIDplus_, minHitsinTOB_, minMultiplicity_, minPrescaledHits_, multiplicityOnInput_, nHighestPt_, nHitMax_, nHitMin2D_, nHitMin_, nLostHitMax_, phiMax_, phiMin_, pMax_, pMin_, ptMax_, ptMin_, reco::TrackBase::qualityByName(), RorZofFirstHitMax_, RorZofFirstHitMin_, RorZofLastHitMax_, RorZofLastHitMin_, rphirecHitsToken_, AlCaHLTBitMon_QueryRunRegistry::string, trkQualities_, and trkSteps_.
AlignmentTrackSelector::~AlignmentTrackSelector | ( | ) |
|
private |
apply basic cuts on pt,eta,phi,nhit
Definition at line 282 of file AlignmentTrackSelector.cc.
References applyIterStepCheck_, applyTrkQualityCheck_, reco::TrackBase::charge(), chi2n, chi2nMax_, reco::TrackBase::d0(), d0Max_, d0Min_, detailedHitsCheck(), reco::TrackBase::dz(), dzMax_, dzMin_, eta, reco::TrackBase::eta(), etaMax_, etaMin_, edm::false, isOkTrkQuality(), nHitMax_, nHitMin_, nLostHitMax_, reco::TrackBase::normalizedChi2(), reco::TrackBase::numberOfLostHits(), reco::TrackBase::numberOfValidHits(), AlCaHLTBitMon_ParallelJobs::p, reco::TrackBase::p(), phi, reco::TrackBase::phi(), phiMax_, phiMin_, pMax_, pMin_, EnergyCorrector::pt, reco::TrackBase::pt(), ptMax_, ptMin_, lumiQueryAPI::q, query::result, theCharge_, and funct::true.
Referenced by select().
|
private |
Definition at line 686 of file AlignmentTrackSelector.cc.
References SiStripRecHit1D::cluster(), SiStripRecHit2D::cluster(), SiPixelRecHit::cluster(), clusterValueMapToken_, TrackingRecHit::geographicalId(), edm::Event::getByToken(), AlignmentClusterFlag::isTaken(), TrackingRecHit::isValid(), kBPIX, kFPIX, minPrescaledHits_, reco::Track::recHitsBegin(), reco::Track::recHitsEnd(), query::result, and DetId::subdetId().
Referenced by select().
|
private |
checking hit requirements beyond simple number of valid hits
Definition at line 333 of file AlignmentTrackSelector.cc.
References funct::abs(), applyIsolation_, chargeCheck_, edm::EventSetup::get(), reco::Track::innerPosition(), isHit2D(), isIsolated(), isOkCharge(), kBPIX, kFPIX, maxHitDiffEndcaps_, minHitsinBPIX_, minHitsinENDCAP_, minHitsinENDCAPminus_, minHitsinENDCAPplus_, minHitsinFPIX_, minHitsinFPIXminus_, minHitsinFPIXplus_, minHitsinPIX_, minHitsinTEC_, minHitsinTECminus_, minHitsinTECplus_, minHitsinTIB_, minHitsinTID_, minHitsinTIDminus_, minHitsinTIDplus_, minHitsinTOB_, nHitMin2D_, reco::Track::outerPosition(), edm::ESHandle< class >::product(), TrackerTopology::pxfSide(), reco::Track::recHitsBegin(), reco::Track::recHitsEnd(), RorZofFirstHitMax_, RorZofFirstHitMin_, RorZofLastHitMax_, RorZofLastHitMin_, seedOnlyFromAbove_, DetId::subdetId(), SiStripDetId::TEC, TrackerTopology::tecIsZMinusSide(), TrackerTopology::tecIsZPlusSide(), SiStripDetId::TIB, SiStripDetId::TID, TrackerTopology::tidIsZMinusSide(), TrackerTopology::tidIsZPlusSide(), SiStripDetId::TOB, and DetId::Tracker.
Referenced by basicCuts().
|
private |
Definition at line 481 of file AlignmentTrackSelector.cc.
References countStereoHitAs2D_, TrackingRecHit::dimension(), TrackingRecHit::geographicalId(), TrackingRecHit::isValid(), kBPIX, kFPIX, ProjectedSiStripRecHit2D::originalHit(), SiStripDetId::stereo(), and DetId::Tracker.
Referenced by detailedHitsCheck().
|
private |
Definition at line 619 of file AlignmentTrackSelector.cc.
References TrackingRecHit::geographicalId(), edm::Event::getByToken(), BaseTrackerRecHit::localPosition(), TrackingRecHit::localPosition(), mag(), matchedrecHitsToken_, minHitIsolation_, DetId::rawId(), and rphirecHitsToken_.
Referenced by detailedHitsCheck().
|
private |
if valid, check for minimum charge (currently only in strip), if invalid give true
Definition at line 521 of file AlignmentTrackSelector.cc.
References TrackingRecHit::geographicalId(), isOkChargeStripHit(), TrackingRecHit::isValid(), kBPIX, kFPIX, SiStripMatchedRecHit2D::monoHit(), ProjectedSiStripRecHit2D::originalHit(), SiStripMatchedRecHit2D::stereoHit(), and DetId::Tracker.
Referenced by detailedHitsCheck().
|
private |
Definition at line 603 of file AlignmentTrackSelector.cc.
References RecoTauCleanerPlugins::charge, SiStripRecHit1D::cluster(), and minHitChargeStrip_.
Referenced by isOkCharge().
|
private |
Definition at line 587 of file AlignmentTrackSelector.cc.
References RecoTauCleanerPlugins::charge, SiStripRecHit2D::cluster(), and minHitChargeStrip_.
|
private |
Definition at line 758 of file AlignmentTrackSelector.cc.
References reco::TrackBase::algo(), applyIterStepCheck_, applyTrkQualityCheck_, i, reco::TrackBase::quality(), trkQualities_, and trkSteps_.
Referenced by basicCuts().
AlignmentTrackSelector::Tracks AlignmentTrackSelector::select | ( | const Tracks & | tracks, |
const edm::Event & | evt, | ||
const edm::EventSetup & | eSetup | ||
) | const |
select tracks
Definition at line 239 of file AlignmentTrackSelector.cc.
References applyBasicCuts_, applyMultiplicityFilter_, applyNHighestPt_, applyPrescaledHitsFilter_, basicCuts(), checkPrescaledHits(), maxMultiplicity_, minMultiplicity_, multiplicityOnInput_, query::result, theNHighestPtTracks(), and testEve_cfg::tracks.
Referenced by Vispa.Views.LineDecayView.LineDecayContainer::createObject(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController::find(), Vispa.Views.LineDecayView.LineDecayContainer::mousePressEvent(), Vispa.Gui.PortConnection.PointToPointConnection::mousePressEvent(), Vispa.Gui.VispaWidget.VispaWidget::mousePressEvent(), Vispa.Views.AbstractView.AbstractView::restoreSelection(), and TrackConfigSelector::select().
|
private |
filter the n highest pt tracks
Definition at line 665 of file AlignmentTrackSelector.cc.
References gen::n, nHighestPt_, ptComparator, query::result, and testEve_cfg::tracks.
Referenced by select().
bool AlignmentTrackSelector::useThisFilter | ( | ) |
returns if any of the Filters is used.
Definition at line 272 of file AlignmentTrackSelector.cc.
References applyBasicCuts_, applyMultiplicityFilter_, applyNHighestPt_, and applyPrescaledHitsFilter_.
Referenced by TrackConfigSelector::TrackConfigSelector().
|
private |
Definition at line 70 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), select(), and useThisFilter().
|
private |
Definition at line 71 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and detailedHitsCheck().
|
private |
Definition at line 103 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), basicCuts(), and isOkTrkQuality().
|
private |
Definition at line 70 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), select(), and useThisFilter().
|
private |
Definition at line 70 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), select(), and useThisFilter().
|
private |
Definition at line 97 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), select(), and useThisFilter().
|
private |
Definition at line 102 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), basicCuts(), and isOkTrkQuality().
|
private |
Definition at line 71 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and detailedHitsCheck().
|
private |
Definition at line 75 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and basicCuts().
|
private |
Definition at line 94 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector().
|
private |
Definition at line 95 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and checkPrescaledHits().
|
private |
Definition at line 80 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and isHit2D().
|
private |
Definition at line 75 of file AlignmentTrackSelector.h.
Referenced by basicCuts().
|
private |
Definition at line 75 of file AlignmentTrackSelector.h.
Referenced by basicCuts().
|
private |
Definition at line 75 of file AlignmentTrackSelector.h.
Referenced by basicCuts().
|
private |
Definition at line 75 of file AlignmentTrackSelector.h.
Referenced by basicCuts().
|
private |
Definition at line 74 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and basicCuts().
|
private |
Definition at line 74 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and basicCuts().
|
private |
Definition at line 79 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and isIsolated().
|
private |
Definition at line 87 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and detailedHitsCheck().
|
private |
Definition at line 72 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and select().
|
private |
Definition at line 77 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and isOkChargeStripHit().
|
private |
Definition at line 77 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and isIsolated().
|
private |
Definition at line 83 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and detailedHitsCheck().
|
private |
Definition at line 86 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and detailedHitsCheck().
|
private |
Definition at line 86 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and detailedHitsCheck().
|
private |
Definition at line 86 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and detailedHitsCheck().
|
private |
Definition at line 83 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and detailedHitsCheck().
|
private |
Definition at line 85 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and detailedHitsCheck().
|
private |
Definition at line 85 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and detailedHitsCheck().
|
private |
Definition at line 83 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and detailedHitsCheck().
|
private |
Definition at line 82 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and detailedHitsCheck().
|
private |
Definition at line 84 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and detailedHitsCheck().
|
private |
Definition at line 84 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and detailedHitsCheck().
|
private |
Definition at line 82 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and detailedHitsCheck().
|
private |
Definition at line 82 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and detailedHitsCheck().
|
private |
Definition at line 84 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and detailedHitsCheck().
|
private |
Definition at line 84 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and detailedHitsCheck().
|
private |
Definition at line 82 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and detailedHitsCheck().
|
private |
Definition at line 72 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and select().
|
private |
Definition at line 96 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and checkPrescaledHits().
|
private |
Definition at line 73 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and select().
|
private |
Definition at line 72 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and theNHighestPtTracks().
|
private |
Definition at line 75 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and basicCuts().
|
private |
Definition at line 81 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and detailedHitsCheck().
|
private |
Definition at line 75 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and basicCuts().
|
private |
Definition at line 88 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and basicCuts().
|
private |
Definition at line 74 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and basicCuts().
|
private |
Definition at line 74 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and basicCuts().
|
private |
Definition at line 74 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and basicCuts().
|
private |
Definition at line 74 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and basicCuts().
|
private |
Definition at line 68 of file AlignmentTrackSelector.h.
Referenced by theNHighestPtTracks().
|
private |
Definition at line 74 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and basicCuts().
|
private |
if true, cut min/maxMultiplicity on input instead of on final result
Definition at line 74 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and basicCuts().
|
private |
Definition at line 90 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and detailedHitsCheck().
|
private |
Definition at line 89 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and detailedHitsCheck().
|
private |
Definition at line 92 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and detailedHitsCheck().
|
private |
Definition at line 91 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and detailedHitsCheck().
|
private |
Definition at line 78 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and isIsolated().
|
private |
Definition at line 71 of file AlignmentTrackSelector.h.
Referenced by detailedHitsCheck().
|
private |
Definition at line 76 of file AlignmentTrackSelector.h.
Referenced by basicCuts().
|
private |
Definition at line 99 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and isOkTrkQuality().
|
private |
Definition at line 101 of file AlignmentTrackSelector.h.
Referenced by AlignmentTrackSelector(), and isOkTrkQuality().