#include <MultiTrackSelector.h>
Public Types | |
using | MVACollection = std::vector< float > |
using | QualityMaskCollection = std::vector< unsigned char > |
Public Types inherited from edm::stream::EDProducer<> | |
using | CacheTypes = CacheContexts< T... > |
using | GlobalCache = typename CacheTypes::GlobalCache |
using | HasAbility = AbilityChecker< T... > |
using | InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache |
using | LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache |
using | LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > |
using | LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache |
using | RunCache = typename CacheTypes::RunCache |
using | RunContext = RunContextT< RunCache, GlobalCache > |
using | RunSummaryCache = typename CacheTypes::RunSummaryCache |
Public Member Functions | |
MultiTrackSelector () | |
constructor More... | |
MultiTrackSelector (const edm::ParameterSet &cfg) | |
~MultiTrackSelector () override | |
destructor More... | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
EDProducer (const EDProducer &)=delete | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndProcessBlocks () const final |
bool | hasAbilityToProduceInEndRuns () const final |
const EDProducer & | operator= (const EDProducer &)=delete |
Protected Types | |
typedef math::XYZPoint | Point |
Protected Member Functions | |
void | beginStream (edm::StreamID) final |
Point | getBestVertex (const reco::TrackBaseRef, const reco::VertexCollection) const |
void | processMVA (edm::Event &evt, const edm::EventSetup &es, const reco::BeamSpot &beamspot, const reco::VertexCollection &vertices, int selIndex, std::vector< float > &mvaVals_, bool writeIt=false) const |
void | produce (edm::Event &evt, const edm::EventSetup &es) final |
process one event More... | |
virtual void | run (edm::Event &evt, const edm::EventSetup &es) const |
bool | select (unsigned tsNum, const reco::BeamSpot &vertexBeamSpot, const TrackingRecHitCollection &recHits, const reco::Track &tk, const std::vector< Point > &points, std::vector< float > &vterr, std::vector< float > &vzerr, double mvaVal) const |
return class, or -1 if rejected More... | |
void | selectVertices (unsigned int tsNum, const reco::VertexCollection &vtxs, std::vector< Point > &points, std::vector< float > &vterr, std::vector< float > &vzerr) const |
Protected Attributes | |
std::vector< bool > | applyAbsCutsIfNoPV_ |
std::vector< bool > | applyAdaptedPVCuts_ |
edm::EDGetTokenT< reco::BeamSpot > | beamspot_ |
std::vector< double > | chi2n_no1Dmod_par_ |
std::vector< double > | chi2n_par_ |
std::vector< std::vector< double > > | d0_par1_ |
std::vector< std::vector< double > > | d0_par2_ |
std::string | dbFileName_ |
std::vector< std::vector< double > > | dz_par1_ |
std::vector< std::vector< double > > | dz_par2_ |
std::vector< GBRForest * > | forest_ |
std::vector< std::string > | forestLabel_ |
std::vector< edm::ESGetToken< GBRForest, GBRWrapperRcd > > | forestToken_ |
edm::EDGetTokenT< TrackingRecHitCollection > | hSrc_ |
std::vector< bool > | keepAllTracks_ |
std::vector< double > | max_d0_ |
Impact parameter absolute cuts. More... | |
std::vector< double > | max_d0NoPV_ |
std::vector< double > | max_eta_ |
std::vector< int32_t > | max_lostHitFraction_ |
std::vector< uint32_t > | max_lostLayers_ |
std::vector< int32_t > | max_minMissHitOutOrIn_ |
std::vector< double > | max_relpterr_ |
std::vector< double > | max_z0_ |
std::vector< double > | max_z0NoPV_ |
std::vector< uint32_t > | min_3Dlayers_ |
std::vector< double > | min_eta_ |
std::vector< uint32_t > | min_hits_bypass_ |
std::vector< uint32_t > | min_layers_ |
Cuts on numbers of layers with hits/3D hits/lost hits. More... | |
std::vector< double > | min_MVA_ |
std::vector< uint32_t > | min_nhits_ |
std::vector< std::string > | mvaType_ |
std::vector< std::string > | name_ |
std::vector< double > | nSigmaZ_ |
std::vector< unsigned int > | preFilter_ |
std::vector< reco::TrackBase::TrackQuality > | qualityToSet_ |
std::vector< std::vector< double > > | res_par_ |
std::vector< bool > | setQualityBit_ |
do I have to set a quality bit? More... | |
edm::EDGetTokenT< reco::TrackCollection > | src_ |
source collection label More... | |
bool | useAnyMVA_ |
bool | useForestFromDB_ |
std::vector< bool > | useMVA_ |
std::vector< bool > | useMVAonly_ |
bool | useVertices_ |
bool | useVtxError_ |
std::vector< StringCutObjectSelector< reco::Vertex > > | vertexCut_ |
edm::EDGetTokenT< reco::VertexCollection > | vertices_ |
std::vector< int32_t > | vtxNumber_ |
vertex cuts More... | |
selects a subset of a track collection, copying extra information on demand
Definition at line 36 of file MultiTrackSelector.h.
using MultiTrackSelector::MVACollection = std::vector<float> |
Definition at line 45 of file MultiTrackSelector.h.
|
protected |
Definition at line 57 of file MultiTrackSelector.h.
using MultiTrackSelector::QualityMaskCollection = std::vector<unsigned char> |
Definition at line 46 of file MultiTrackSelector.h.
|
explicit |
|
explicit |
Definition at line 18 of file MultiTrackSelector.cc.
References applyAbsCutsIfNoPV_, applyAdaptedPVCuts_, looper::cfg, chi2n_no1Dmod_par_, chi2n_par_, d0_par1_, d0_par2_, dbFileName_, dz_par1_, dz_par2_, Exception, forest_, forestLabel_, forestToken_, mps_fire::i, dqmiolumiharvest::j, keepAllTracks_, label, max_d0_, max_d0NoPV_, max_eta_, max_lostHitFraction_, max_lostLayers_, max_minMissHitOutOrIn_, max_relpterr_, max_z0_, max_z0NoPV_, min_3Dlayers_, min_eta_, min_hits_bypass_, min_layers_, min_MVA_, min_nhits_, mvaType_, name_, nSigmaZ_, preFilter_, pixelTrack::qualityByName(), qualityToSet_, res_par_, setQualityBit_, AlCaHLTBitMon_QueryRunRegistry::string, useAnyMVA_, useForestFromDB_, useMVA_, useMVAonly_, useVertices_, useVtxError_, edm::vector_transform(), vertexCut_, vertices_, and vtxNumber_.
|
override |
|
finalprotected |
Definition at line 210 of file MultiTrackSelector.cc.
References dbFileName_, forest_, forestLabel_, mps_fire::i, createfilelist::int, and useForestFromDB_.
|
protected |
Definition at line 656 of file MultiTrackSelector.cc.
References PVValHelper::dz, AlCaHLTBitMon_ParallelJobs::p, HLT_FULL_cff::track, bphysicsOniaDQM_cfi::vertex, AlignmentTracksFromVertexSelector_cfi::vertices, and w.
Referenced by processMVA().
|
protected |
Definition at line 532 of file MultiTrackSelector.cc.
References cms::cuda::assert(), hltPixelTracks_cff::chi2, reco::TrackBase::chi2(), chi2n, reco::TrackBase::dxy(), reco::TrackBase::dz(), reco::TrackBase::eta(), reco::Track::extra(), f, dqmMemoryStats::float, forest_, forestToken_, getBestVertex(), edm::Event::getByToken(), GBRForest::GetClassifier(), edm::EventSetup::getData(), reco::TrackBase::hitPattern(), hSrc_, SiStripPI::max, min(), reco::HitPattern::MISSING_INNER_HITS, reco::HitPattern::MISSING_OUTER_HITS, eostools::move(), mvaType_, ndof, reco::TrackBase::ndof(), reco::TrackBase::normalizedChi2(), reco::TrackBase::numberOfLostHits(), reco::HitPattern::numberOfLostTrackerHits(), reco::TrackBase::numberOfValidHits(), reco::HitPattern::numberOfValidStripLayersWithMonoAndStereo(), reco::HitPattern::pixelLayersWithMeasurement(), reco::TrackBase::pt(), reco::TrackBase::ptError(), edm::Event::put(), reco::Track::recHitsSize(), src_, HiCentrality_cfi::srcTracks, reco::HitPattern::TRACK_HITS, reco::HitPattern::trackerLayersWithMeasurement(), reco::HitPattern::trackerLayersWithoutMeasurement(), useAnyMVA_, useForestFromDB_, useMVA_, and AlignmentTracksFromVertexSelector_cfi::vertices.
Referenced by AnalyticalTrackSelector::run(), and run().
|
inlinefinalprotected |
process one event
Definition at line 59 of file MultiTrackSelector.h.
References writedatasetfile::run.
|
protectedvirtual |
Reimplemented in AnalyticalTrackSelector.
Definition at line 219 of file MultiTrackSelector.cc.
References beamspot_, edm::HandleBase::failedToGet(), trigObjTnPSource_cfi::filler, edm::Event::getByToken(), muons_cff::highPurity, hSrc_, mps_fire::i, dqmiolumiharvest::j, keepAllTracks_, LogTrace, loose, SiStripPI::max, eostools::move(), name_, convertSQLiteXML::ok, HLT_FULL_cff::points, preFilter_, processMVA(), edm::Handle< T >::product(), reco::TrackBase::pt(), edm::Event::put(), submitPVResolutionJobs::q, reco::TrackBase::qualityMask(), qualityToSet_, select(), selectVertices(), setQualityBit_, src_, HiCentrality_cfi::srcTracks, useAnyMVA_, useVertices_, and vertices_.
|
protected |
return class, or -1 if rejected
Definition at line 335 of file MultiTrackSelector.cc.
References funct::abs(), applyAbsCutsIfNoPV_, applyAdaptedPVCuts_, hltPixelTracks_cff::chi2, reco::TrackBase::chi2(), chi2n, chi2n_no1Dmod_par_, chi2n_par_, d0, d0_par1_, d0_par2_, TrackSplittingMonitor_cfi::d0Cut, reco::TrackBase::d0Error(), reco::TrackBase::dxy(), PVValHelper::dz, reco::TrackBase::dz(), dz_par1_, dz_par2_, TrackSplittingMonitor_cfi::dzCut, reco::TrackBase::dzError(), mps_fire::end, PVValHelper::eta, reco::TrackBase::eta(), reco::Track::extra(), f, dqmMemoryStats::float, reco::TrackBase::hitPattern(), gpuVertexFinder::iv, LogDebug, LogTrace, SiStripPI::max, max_d0_, max_d0NoPV_, max_eta_, max_lostHitFraction_, max_lostLayers_, max_minMissHitOutOrIn_, max_relpterr_, max_z0_, max_z0NoPV_, min(), min_3Dlayers_, min_eta_, min_hits_bypass_, min_layers_, min_MVA_, min_nhits_, reco::HitPattern::MISSING_INNER_HITS, reco::HitPattern::MISSING_OUTER_HITS, ndof, reco::TrackBase::ndof(), nhits, nlayers, reco::TrackBase::normalizedChi2(), nSigmaZ_, reco::TrackBase::numberOfLostHits(), reco::HitPattern::numberOfLostTrackerHits(), reco::TrackBase::numberOfValidHits(), reco::HitPattern::numberOfValidStripLayersWithMonoAndStereo(), reco::HitPattern::pixelLayersWithMeasurement(), point, HLT_FULL_cff::points, reco::BeamSpot::position(), funct::pow(), DiDispStaMuonMonitor_cfi::pt, reco::TrackBase::pt(), reco::TrackBase::ptError(), FastTrackerRecHitMaskProducer_cfi::recHits, reco::Track::recHitsSize(), relpterr, res_par_, reco::BeamSpot::sigmaZ(), mathSSE::sqrt(), reco::HitPattern::TRACK_HITS, reco::HitPattern::trackerLayersWithMeasurement(), reco::HitPattern::trackerLayersWithoutMeasurement(), useAnyMVA_, useMVA_, useMVAonly_, and useVtxError_.
Referenced by AnalyticalTrackSelector::run(), and run().
|
protected |
Definition at line 507 of file MultiTrackSelector.cc.
References LogDebug, LogTrace, HLT_FULL_cff::points, mathSSE::sqrt(), vertexCut_, extraflags_cff::vtx, and vtxNumber_.
Referenced by AnalyticalTrackSelector::run(), and run().
|
protected |
Definition at line 139 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 113 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 89 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), AnalyticalTrackSelector::run(), and run().
|
protected |
Definition at line 107 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 106 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 108 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 110 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 158 of file MultiTrackSelector.h.
Referenced by beginStream(), and MultiTrackSelector().
|
protected |
Definition at line 109 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 111 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 156 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), beginStream(), MultiTrackSelector(), processMVA(), and ~MultiTrackSelector().
|
protected |
Definition at line 154 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), beginStream(), and MultiTrackSelector().
|
protected |
Definition at line 155 of file MultiTrackSelector.h.
Referenced by MultiTrackSelector(), and processMVA().
|
protected |
Definition at line 88 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), processMVA(), AnalyticalTrackSelector::run(), and run().
|
protected |
Definition at line 141 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), AnalyticalTrackSelector::run(), and run().
|
protected |
Impact parameter absolute cuts.
Definition at line 116 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 137 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 134 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 131 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 123 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 130 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 127 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 117 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 138 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 122 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 133 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 124 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Cuts on numbers of layers with hits/3D hits/lost hits.
Definition at line 121 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 151 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 128 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 153 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and processMVA().
|
protected |
Definition at line 145 of file MultiTrackSelector.h.
Referenced by MultiTrackSelector(), and run().
|
protected |
Definition at line 118 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 144 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and run().
|
protected |
Definition at line 97 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), AnalyticalTrackSelector::run(), and run().
|
protected |
Definition at line 105 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
do I have to set a quality bit?
Definition at line 96 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), AnalyticalTrackSelector::run(), and run().
|
protected |
source collection label
Definition at line 87 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), processMVA(), AnalyticalTrackSelector::run(), and run().
|
protected |
Definition at line 92 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), processMVA(), AnalyticalTrackSelector::run(), run(), and select().
|
protected |
Definition at line 157 of file MultiTrackSelector.h.
Referenced by beginStream(), MultiTrackSelector(), and processMVA().
|
protected |
Definition at line 148 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), processMVA(), and select().
|
protected |
Definition at line 149 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 90 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), AnalyticalTrackSelector::run(), and run().
|
protected |
Definition at line 91 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 102 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and selectVertices().
|
protected |
Definition at line 93 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), AnalyticalTrackSelector::run(), and run().
|
protected |
vertex cuts
Definition at line 100 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and selectVertices().