#include <MultiTrackSelector.h>
Protected Types | |
typedef math::XYZPoint | Point |
Protected Member Functions | |
void | beginStream (edm::StreamID) overridefinal |
void | processMVA (edm::Event &evt, const edm::EventSetup &es, std::vector< float > &mvaVals_) const |
void | produce (edm::Event &evt, const edm::EventSetup &es) overridefinal |
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 Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
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_ |
GBRForest * | forest_ |
std::string | forestLabel_ |
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< 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_ |
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 |
Public Types inherited from edm::stream::EDProducerBase | |
typedef EDProducerAdaptorBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Static Public Member Functions inherited from edm::stream::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
selects a subset of a track collection, copying extra information on demand
Definition at line 35 of file MultiTrackSelector.h.
|
protected |
Definition at line 53 of file MultiTrackSelector.h.
|
explicit |
|
explicit |
Definition at line 64 of file MultiTrackSelector.cc.
References applyAbsCutsIfNoPV_, applyAdaptedPVCuts_, chi2n_no1Dmod_par_, chi2n_par_, d0_par1_, d0_par2_, dbFileName_, dz_par1_, dz_par2_, edm::hlt::Exception, edm::ParameterSet::exists(), forest_, forestLabel_, edm::ParameterSet::getParameter(), i, 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_, preFilter_, qualityToSet_, res_par_, setQualityBit_, AlCaHLTBitMon_QueryRunRegistry::string, useAnyMVA_, useForestFromDB_, useMVA_, useVertices_, useVtxError_, vertexCut_, vertices_, and vtxNumber_.
|
virtual |
|
finaloverrideprotectedvirtual |
Reimplemented from edm::stream::EDProducerBase.
Definition at line 236 of file MultiTrackSelector.cc.
References dbFileName_, forest_, forestLabel_, and useForestFromDB_.
|
protected |
Definition at line 533 of file MultiTrackSelector.cc.
References reco::TrackBase::chi2(), cond::rpcobimon::current, TrackingRecHit::dimension(), reco::TrackBase::eta(), reco::Track::extra(), f, forest_, forestLabel_, edm::EventSetup::get(), edm::Event::getByToken(), GBRForest::GetClassifier(), reco::TrackBase::hitPattern(), hSrc_, bookConverter::max, min(), reco::HitPattern::MISSING_INNER_HITS, reco::HitPattern::MISSING_OUTER_HITS, reco::TrackBase::ndof(), reco::TrackBase::normalizedChi2(), reco::TrackBase::numberOfLostHits(), reco::HitPattern::numberOfLostTrackerHits(), reco::TrackBase::numberOfValidHits(), reco::HitPattern::numberOfValidStripLayersWithMonoAndStereo(), reco::HitPattern::pixelLayersWithMeasurement(), edm::ESHandle< class >::product(), reco::TrackBase::pt(), reco::TrackBase::ptError(), edm::Event::put(), reco::Track::recHitsSize(), dt_dqm_sourceclient_common_cff::reco, src_, reco::HitPattern::TRACK_HITS, reco::HitPattern::trackerLayersWithMeasurement(), reco::HitPattern::trackerLayersWithoutMeasurement(), useAnyMVA_, and useForestFromDB_.
Referenced by AnalyticalTrackSelector::run(), and run().
|
inlinefinaloverrideprotectedvirtual |
process one event
Implements edm::stream::EDProducerBase.
Definition at line 55 of file MultiTrackSelector.h.
References DTTTrigCorrFirst::run.
|
protectedvirtual |
Reimplemented in AnalyticalTrackSelector.
Definition at line 246 of file MultiTrackSelector.cc.
References beamspot_, cond::rpcobimon::current, edm::Event::getByToken(), hSrc_, i, j, keepAllTracks_, LogTrace, name_, convertSQLiteXML::ok, preFilter_, processMVA(), reco::TrackBase::pt(), edm::Event::put(), reco::TrackBase::qualityMask(), qualityToSet_, dt_dqm_sourceclient_common_cff::reco, select(), selectVertices(), setQualityBit_, src_, useAnyMVA_, useVertices_, and vertices_.
|
protected |
return class, or -1 if rejected
Definition at line 355 of file MultiTrackSelector.cc.
References funct::abs(), applyAbsCutsIfNoPV_, applyAdaptedPVCuts_, reco::TrackBase::chi2(), chi2n_no1Dmod_par_, chi2n_par_, d0_par1_, d0_par2_, reco::TrackBase::d0Error(), TrackingRecHit::dimension(), reco::TrackBase::dxy(), reco::TrackBase::dz(), dz_par1_, dz_par2_, reco::TrackBase::dzError(), HWWFunctions::dzPV(), end, eta(), reco::TrackBase::eta(), reco::Track::extra(), f, reco::TrackBase::hitPattern(), LogDebug, LogTrace, bookConverter::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, reco::TrackBase::ndof(), reco::TrackBase::normalizedChi2(), nSigmaZ_, reco::TrackBase::numberOfLostHits(), reco::HitPattern::numberOfLostTrackerHits(), reco::TrackBase::numberOfValidHits(), reco::HitPattern::numberOfValidStripLayersWithMonoAndStereo(), reco::HitPattern::pixelLayersWithMeasurement(), point, reco::BeamSpot::position(), funct::pow(), EnergyCorrector::pt, reco::TrackBase::pt(), reco::TrackBase::ptError(), reco::Track::recHitsSize(), res_par_, reco::BeamSpot::sigmaZ(), mathSSE::sqrt(), reco::HitPattern::TRACK_HITS, reco::HitPattern::trackerLayersWithMeasurement(), reco::HitPattern::trackerLayersWithoutMeasurement(), useAnyMVA_, useMVA_, and useVtxError_.
Referenced by AnalyticalTrackSelector::run(), and run().
|
protected |
Definition at line 509 of file MultiTrackSelector.cc.
References LogDebug, LogTrace, dt_dqm_sourceclient_common_cff::reco, mathSSE::sqrt(), vertexCut_, and vtxNumber_.
Referenced by AnalyticalTrackSelector::run(), and run().
|
protected |
Definition at line 130 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 104 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 80 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), AnalyticalTrackSelector::run(), and run().
|
protected |
Definition at line 98 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 97 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 99 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 101 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 149 of file MultiTrackSelector.h.
Referenced by beginStream(), and MultiTrackSelector().
|
protected |
Definition at line 100 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 select().
|
protected |
Definition at line 147 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), beginStream(), MultiTrackSelector(), processMVA(), and ~MultiTrackSelector().
|
protected |
Definition at line 146 of file MultiTrackSelector.h.
Referenced by beginStream(), MultiTrackSelector(), and processMVA().
|
protected |
Definition at line 79 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), processMVA(), AnalyticalTrackSelector::run(), and run().
|
protected |
Definition at line 132 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), AnalyticalTrackSelector::run(), and run().
|
protected |
Impact parameter absolute cuts.
Definition at line 107 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 125 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 114 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 121 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 118 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 129 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 124 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 115 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 112 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 142 of file MultiTrackSelector.h.
Referenced by MultiTrackSelector(), and select().
|
protected |
Definition at line 119 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 145 of file MultiTrackSelector.h.
Referenced by MultiTrackSelector().
|
protected |
Definition at line 136 of file MultiTrackSelector.h.
Referenced by MultiTrackSelector(), and run().
|
protected |
Definition at line 109 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 135 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and run().
|
protected |
Definition at line 88 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), AnalyticalTrackSelector::run(), and run().
|
protected |
Definition at line 96 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
do I have to set a quality bit?
Definition at line 87 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), AnalyticalTrackSelector::run(), and run().
|
protected |
source collection label
Definition at line 78 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), processMVA(), AnalyticalTrackSelector::run(), and run().
|
protected |
Definition at line 83 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), processMVA(), AnalyticalTrackSelector::run(), run(), and select().
|
protected |
Definition at line 148 of file MultiTrackSelector.h.
Referenced by beginStream(), MultiTrackSelector(), and processMVA().
|
protected |
Definition at line 139 of file MultiTrackSelector.h.
Referenced by MultiTrackSelector(), and select().
|
protected |
Definition at line 81 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), AnalyticalTrackSelector::run(), and run().
|
protected |
Definition at line 82 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 93 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and selectVertices().
|
protected |
Definition at line 84 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), AnalyticalTrackSelector::run(), and run().
|
protected |
vertex cuts
Definition at line 91 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and selectVertices().