#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 | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndRuns () const final |
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_ |
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<> | |
typedef CacheContexts< T... > | CacheTypes |
typedef CacheTypes::GlobalCache | GlobalCache |
typedef AbilityChecker< T... > | HasAbility |
typedef CacheTypes::LuminosityBlockCache | LuminosityBlockCache |
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > | LuminosityBlockContext |
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
typedef CacheTypes::RunCache | RunCache |
typedef RunContextT< RunCache, GlobalCache > | RunContext |
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
selects a subset of a track collection, copying extra information on demand
Definition at line 53 of file HIMultiTrackSelector.h.
|
protected |
Definition at line 71 of file HIMultiTrackSelector.h.
|
explicit |
constructor
Definition at line 74 of file HIMultiTrackSelector.cc.
|
explicit |
Definition at line 123 of file HIMultiTrackSelector.cc.
References applyAbsCutsIfNoPV_, applyAdaptedPVCuts_, applyPixelMergingCuts_, looper::cfg, chi2n_no1Dmod_par_, chi2n_par_, d0_par1_, d0_par2_, dbFileName_, dz_par1_, dz_par2_, Exception, forest_, forestLabel_, 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_, qualityToSet_, res_par_, setQualityBit_, AlCaHLTBitMon_QueryRunRegistry::string, useAnyMVA_, useForestFromDB_, useMVA_, useVertices_, vertexCut_, vertices_, and vtxNumber_.
|
override |
|
finalprotected |
Definition at line 307 of file HIMultiTrackSelector.cc.
References dbFileName_, forest_, forestLabel_, and useForestFromDB_.
|
protected |
Definition at line 79 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 635 of file HIMultiTrackSelector.cc.
References cms::cuda::assert(), hltPixelTracks_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(), dqmMemoryStats::float, forest_, forestLabel_, edm::EventSetup::get(), get, edm::Event::getByToken(), GBRForest::GetClassifier(), reco::TrackBase::hitPattern(), hSrc_, mps_fire::i, lostmidfrac, SiStripPI::max, 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, edm::ESHandle< T >::product(), reco::TrackBase::pt(), reco::TrackBase::ptError(), edm::Event::put(), reco::Track::recHitsSize(), relpterr, mathSSE::sqrt(), src_, HiCentrality_cfi::srcTracks, reco::HitPattern::TRACK_HITS, reco::HitPattern::trackerLayersWithMeasurement(), reco::HitPattern::trackerLayersWithoutMeasurement(), useAnyMVA_, useForestFromDB_, and pwdgSkimBPark_cfi::vertices.
Referenced by run().
|
inlinefinalprotected |
process one event
Definition at line 73 of file HIMultiTrackSelector.h.
References writedatasetfile::run.
|
protectedvirtual |
Definition at line 314 of file HIMultiTrackSelector.cc.
References beamspot_, trigObjTnPSource_cfi::filler, edm::Event::getByToken(), muons_cff::highPurity, hSrc_, mps_fire::i, dqmiolumiharvest::j, keepAllTracks_, LogTrace, eostools::move(), name_, convertSQLiteXML::ok, HLT_2018_cff::points, preFilter_, processMVA(), reco::TrackBase::pt(), edm::Event::put(), 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 419 of file HIMultiTrackSelector.cc.
References funct::abs(), applyAbsCutsIfNoPV_, applyAdaptedPVCuts_, applyPixelMergingCuts_, 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(), end, PVValHelper::eta, reco::TrackBase::eta(), reco::Track::extra(), f, dqmMemoryStats::float, reco::TrackBase::hitPattern(), 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(), pixel_pTMaxCut_, pixel_pTMinCut_, reco::HitPattern::pixelLayersWithMeasurement(), point, HLT_2018_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_, and useVtxError_.
Referenced by run().
|
protected |
Definition at line 610 of file HIMultiTrackSelector.cc.
References LogDebug, LogTrace, HLT_2018_cff::points, mathSSE::sqrt(), vertexCut_, badGlobalMuonTaggersAOD_cff::vtx, and vtxNumber_.
Referenced by run().
|
protected |
Definition at line 157 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 107 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 100 of file HIMultiTrackSelector.h.
Referenced by run().
|
protected |
Definition at line 121 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 120 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 179 of file HIMultiTrackSelector.h.
Referenced by beginStream(), and HIMultiTrackSelector().
|
protected |
Definition at line 123 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 125 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 177 of file HIMultiTrackSelector.h.
Referenced by beginStream(), HIMultiTrackSelector(), processMVA(), and ~HIMultiTrackSelector().
|
protected |
Definition at line 175 of file HIMultiTrackSelector.h.
Referenced by beginStream(), HIMultiTrackSelector(), and processMVA().
|
protected |
Definition at line 176 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector().
|
protected |
Definition at line 99 of file HIMultiTrackSelector.h.
Referenced by processMVA(), and run().
|
protected |
Definition at line 159 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and run().
|
protected |
Impact parameter absolute cuts.
Definition at line 130 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 155 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 152 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 149 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 141 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 145 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 131 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 156 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 140 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 142 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Cuts on numbers of layers with hits/3D hits/lost hits.
Definition at line 139 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 171 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 146 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 174 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector().
|
protected |
Definition at line 169 of file HIMultiTrackSelector.h.
Referenced by processMVA().
|
protected |
Definition at line 163 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and run().
|
protected |
Definition at line 132 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 136 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 135 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 162 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and run().
|
protected |
Definition at line 111 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and run().
|
protected |
Definition at line 119 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
do I have to set a quality bit?
Definition at line 110 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and run().
|
protected |
source collection label
Definition at line 98 of file HIMultiTrackSelector.h.
Referenced by processMVA(), and run().
|
protected |
Definition at line 103 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), processMVA(), run(), and select().
|
protected |
Definition at line 178 of file HIMultiTrackSelector.h.
Referenced by beginStream(), HIMultiTrackSelector(), and processMVA().
|
protected |
Definition at line 166 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and select().
|
protected |
Definition at line 101 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and run().
|
protected |
Definition at line 102 of file HIMultiTrackSelector.h.
Referenced by select().
|
protected |
Definition at line 116 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and selectVertices().
|
protected |
Definition at line 104 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and run().
|
protected |
vertex cuts
Definition at line 114 of file HIMultiTrackSelector.h.
Referenced by HIMultiTrackSelector(), and selectVertices().