#include <HIMultiTrackSelector.h>
Public Member Functions | |
HIMultiTrackSelector () | |
constructor More... | |
HIMultiTrackSelector (const edm::ParameterSet &cfg) | |
~HIMultiTrackSelector () 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 |
void | ParseForestVars () |
void | processMVA (edm::Event &evt, const edm::EventSetup &es, std::vector< float > &mvaVals_, const reco::VertexCollection &hVtx) 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_ |
bool | applyPixelMergingCuts_ |
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_ |
GBRForest * | forest_ |
std::string | forestLabel_ |
edm::ESGetToken< GBRForest, GBRWrapperRcd > | forestToken_ |
std::vector< std::string > | forestVars_ |
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::string | mvaType_ |
std::vector< int > | mvavars_indices |
std::vector< std::string > | name_ |
std::vector< double > | nSigmaZ_ |
std::vector< std::vector< double > > | pixel_pTMaxCut_ |
std::vector< std::vector< double > > | pixel_pTMinCut_ |
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_ |
bool | useVertices_ |
bool | useVtxError_ |
std::vector< StringCutObjectSelector< reco::Vertex > > | vertexCut_ |
edm::EDGetTokenT< reco::VertexCollection > | vertices_ |
std::vector< int32_t > | vtxNumber_ |
vertex cuts More... | |
Additional Inherited Members | |
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 |
selects a subset of a track collection, copying extra information on demand
Definition at line 55 of file HIMultiTrackSelector.h.
|
protected |
Definition at line 73 of file HIMultiTrackSelector.h.
|
explicit |
|
explicit |
Definition at line 122 of file HIMultiTrackSelector.cc.
References applyAbsCutsIfNoPV_, applyAdaptedPVCuts_, applyPixelMergingCuts_, looper::cfg, chi2n_no1Dmod_par_, chi2n_par_, d0_par1_, d0_par2_, dbFileName_, dz_par1_, dz_par2_, deDxTools::esConsumes(), Exception, forest_, forestLabel_, forestToken_, forestVars_, mps_fire::i, dqmiolumiharvest::j, keepAllTracks_, 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_, ParseForestVars(), pixel_pTMaxCut_, pixel_pTMinCut_, preFilter_, pixelTrack::qualityByName(), qualityToSet_, res_par_, setQualityBit_, AlCaHLTBitMon_QueryRunRegistry::string, useAnyMVA_, useForestFromDB_, useMVA_, useVertices_, vertexCut_, vertices_, and vtxNumber_.
|
override |
|
finalprotected |
Definition at line 309 of file HIMultiTrackSelector.cc.
References dbFileName_, forest_, forestLabel_, and useForestFromDB_.
|
protected |
Definition at line 78 of file HIMultiTrackSelector.cc.
References chi2n, chi2n_no1dmod, chi2perdofperlayer, dxyperdxyerror, dzperdzerror, PVValHelper::eta, etaerror, mps_fire::i, lostmidfrac, minlost, ndof, nhits, nlayers, nlayers3d, nlayerslost, relpterr, AlCaHLTBitMon_QueryRunRegistry::string, and findQualityFiles::v.
Referenced by HIMultiTrackSelector().
|
protected |
Definition at line 637 of file HIMultiTrackSelector.cc.
References cms::cuda::assert(), nano_mu_local_reco_cff::chi2, reco::TrackBase::chi2(), chi2n, chi2n_no1dmod, chi2perdofperlayer, PVValHelper::dxy, reco::TrackBase::dxy(), reco::TrackBase::dxyError(), dxyperdxyerror, PVValHelper::dz, reco::TrackBase::dz(), reco::TrackBase::dzError(), dzperdzerror, PVValHelper::eta, reco::TrackBase::eta(), etaerror, reco::TrackBase::etaError(), reco::Track::extra(), f, spr::find(), nano_mu_digi_cff::float, forest_, forestToken_, edm::Event::getByToken(), GBRForest::GetClassifier(), edm::EventSetup::getData(), reco::TrackBase::hitPattern(), hSrc_, mps_fire::i, lostmidfrac, SiStripPI::max, SiStripPI::min, minlost, reco::HitPattern::MISSING_INNER_HITS, reco::HitPattern::MISSING_OUTER_HITS, eostools::move(), mvavars_indices, ndof, reco::TrackBase::ndof(), nhits, nlayers, nlayers3d, nlayerslost, reco::TrackBase::normalizedChi2(), reco::TrackBase::numberOfLostHits(), reco::HitPattern::numberOfLostTrackerHits(), reco::TrackBase::numberOfValidHits(), reco::HitPattern::numberOfValidStripLayersWithMonoAndStereo(), reco::HitPattern::pixelLayersWithMeasurement(), position, reco::TrackBase::pt(), reco::TrackBase::ptError(), edm::Event::put(), reco::Track::recHitsSize(), relpterr, mathSSE::sqrt(), src_, gmt_cfi::srcTracks, reco::HitPattern::TRACK_HITS, reco::HitPattern::trackerLayersWithMeasurement(), reco::HitPattern::trackerLayersWithoutMeasurement(), useAnyMVA_, useForestFromDB_, and AlignmentTracksFromVertexSelector_cfi::vertices.
Referenced by run().
|
inlinefinalprotected |
process one event
Definition at line 75 of file HIMultiTrackSelector.h.
References writedatasetfile::run.
|
protectedvirtual |
Definition at line 316 of file HIMultiTrackSelector.cc.
References beamspot_, trigObjTnPSource_cfi::filler, edm::Event::getByToken(), muons_cff::highPurity, hSrc_, mps_fire::i, dqmiolumiharvest::j, keepAllTracks_, LogTrace, caHitNtupletGeneratorKernels::loose, eostools::move(), name_, convertSQLiteXML::ok, hiPixelPairStep_cff::points, preFilter_, processMVA(), reco::TrackBase::pt(), edm::Event::put(), reco::TrackBase::qualityMask(), qualityToSet_, select(), selectVertices(), setQualityBit_, src_, gmt_cfi::srcTracks, useAnyMVA_, useVertices_, and vertices_.
|
protected |
return class, or -1 if rejected
Definition at line 421 of file HIMultiTrackSelector.cc.
References funct::abs(), applyAbsCutsIfNoPV_, applyAdaptedPVCuts_, applyPixelMergingCuts_, nano_mu_local_reco_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, nano_mu_digi_cff::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_, SiStripPI::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(), pixel_pTMaxCut_, pixel_pTMinCut_, reco::HitPattern::pixelLayersWithMeasurement(), point, hiPixelPairStep_cff::points, reco::BeamSpot::position(), conifer::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_, and useVtxError_.
Referenced by run().
|
protected |
Definition at line 612 of file HIMultiTrackSelector.cc.
References LogDebug, LogTrace, hiPixelPairStep_cff::points, mathSSE::sqrt(), vertexCut_, L1BJetProducer_cff::vtx, and vtxNumber_.
Referenced by run().
|
protected |
Definition at line 159 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 129 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 109 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 102 of file HIMultiTrackSelector.h.
Referenced by run().
|
protected |
Definition at line 123 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 122 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 124 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 126 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 182 of file HIMultiTrackSelector.h.
Referenced by beginStream(), and HIMultiTrackSelector().
|
protected |
Definition at line 125 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 127 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 179 of file HIMultiTrackSelector.h.
Referenced by beginStream(), HIMultiTrackSelector(), processMVA(), and ~HIMultiTrackSelector().
|
protected |
Definition at line 177 of file HIMultiTrackSelector.h.
Referenced by beginStream(), and HIMultiTrackSelector().
|
protected |
Definition at line 180 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and processMVA().
|
protected |
Definition at line 178 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector().
|
protected |
Definition at line 101 of file HIMultiTrackSelector.h.
Referenced by processMVA(), and run().
|
protected |
Definition at line 161 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and run().
|
protected |
Impact parameter absolute cuts.
Definition at line 132 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 157 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 154 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 151 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 143 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 150 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 147 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 133 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 158 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 142 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 153 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 144 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Cuts on numbers of layers with hits/3D hits/lost hits.
Definition at line 141 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 173 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 148 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 176 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector().
|
protected |
Definition at line 171 of file HIMultiTrackSelector.h.
Referenced by processMVA().
|
protected |
Definition at line 165 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and run().
|
protected |
Definition at line 134 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 138 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 137 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 164 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and run().
|
protected |
Definition at line 113 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and run().
|
protected |
Definition at line 121 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
do I have to set a quality bit?
Definition at line 112 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and run().
|
protected |
source collection label
Definition at line 100 of file HIMultiTrackSelector.h.
Referenced by processMVA(), and run().
|
protected |
Definition at line 105 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), processMVA(), run(), and select().
|
protected |
Definition at line 181 of file HIMultiTrackSelector.h.
Referenced by beginStream(), HIMultiTrackSelector(), and processMVA().
|
protected |
Definition at line 168 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 103 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and run().
|
protected |
Definition at line 104 of file HIMultiTrackSelector.h.
Referenced by select().
|
protected |
Definition at line 118 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and selectVertices().
|
protected |
Definition at line 106 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and run().
|
protected |
vertex cuts
Definition at line 116 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and selectVertices().