#include <MultiTrackSelector.h>
Public Types | |
using | MVACollection = std::vector< float > |
using | QualityMaskCollection = std::vector< unsigned char > |
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 |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Public Member Functions | |
MultiTrackSelector () | |
constructor More... | |
MultiTrackSelector (const edm::ParameterSet &cfg) | |
virtual | ~MultiTrackSelector () |
destructor More... | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
Public Member Functions inherited from edm::stream::EDProducerBase | |
EDProducerBase () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDProducerBase () |
Public Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Protected Types | |
typedef math::XYZPoint | Point |
Protected Member Functions | |
void | beginStream (edm::StreamID) overridefinal |
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) 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::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_ |
std::vector< GBRForest * > | forest_ |
std::vector< 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::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... | |
Additional Inherited Members | |
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.
using MultiTrackSelector::MVACollection = std::vector<float> |
Definition at line 44 of file MultiTrackSelector.h.
|
protected |
Definition at line 57 of file MultiTrackSelector.h.
using MultiTrackSelector::QualityMaskCollection = std::vector<unsigned char> |
Definition at line 45 of file MultiTrackSelector.h.
|
explicit |
|
explicit |
Definition at line 63 of file MultiTrackSelector.cc.
References applyAbsCutsIfNoPV_, applyAdaptedPVCuts_, chi2n_no1Dmod_par_, chi2n_par_, d0_par1_, d0_par2_, dbFileName_, dz_par1_, dz_par2_, 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_, useMVAonly_, useVertices_, useVtxError_, vertexCut_, vertices_, and vtxNumber_.
|
virtual |
|
finaloverrideprotectedvirtual |
Reimplemented from edm::stream::EDProducerBase.
Definition at line 244 of file MultiTrackSelector.cc.
References dbFileName_, forest_, forestLabel_, i, and useForestFromDB_.
|
protected |
Definition at line 677 of file MultiTrackSelector.cc.
References reco::TrackBase::dz(), edm::RefToBase< T >::get(), AlCaHLTBitMon_ParallelJobs::p, and w.
Referenced by processMVA().
|
protected |
Definition at line 554 of file MultiTrackSelector.cc.
References assert(), reco::TrackBase::chi2(), chi2n, cond::rpcobimon::current, TrackingRecHit::dimension(), reco::TrackBase::dxy(), reco::TrackBase::dz(), reco::TrackBase::eta(), reco::Track::extra(), f, forest_, forestLabel_, edm::EventSetup::get(), getBestVertex(), edm::Event::getByToken(), GBRForest::GetClassifier(), reco::TrackBase::hitPattern(), hSrc_, bookConverter::max, min(), reco::HitPattern::MISSING_INNER_HITS, reco::HitPattern::MISSING_OUTER_HITS, mvaType_, ndof, reco::TrackBase::ndof(), reco::TrackBase::normalizedChi2(), reco::TrackBase::numberOfLostHits(), reco::HitPattern::numberOfLostTrackerHits(), reco::TrackBase::numberOfValidHits(), reco::HitPattern::numberOfValidStripLayersWithMonoAndStereo(), reco::HitPattern::pixelLayersWithMeasurement(), reco::BeamSpot::position(), 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_, useForestFromDB_, and useMVA_.
Referenced by AnalyticalTrackSelector::run(), and run().
|
inlinefinaloverrideprotectedvirtual |
process one event
Implements edm::stream::EDProducerBase.
Definition at line 59 of file MultiTrackSelector.h.
References DTTTrigCorrFirst::run.
|
protectedvirtual |
Reimplemented in AnalyticalTrackSelector.
Definition at line 256 of file MultiTrackSelector.cc.
References beamspot_, cond::rpcobimon::current, edm::Event::getByToken(), hSrc_, i, j, keepAllTracks_, LogTrace, bookConverter::max, name_, convertSQLiteXML::ok, preFilter_, processMVA(), reco::TrackBase::pt(), edm::Event::put(), lumiQueryAPI::q, 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 375 of file MultiTrackSelector.cc.
References funct::abs(), applyAbsCutsIfNoPV_, applyAdaptedPVCuts_, reco::TrackBase::chi2(), chi2n, 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(), HLT_25ns14e33_v1_cff::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, 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, reco::BeamSpot::position(), funct::pow(), EnergyCorrector::pt, reco::TrackBase::pt(), reco::TrackBase::ptError(), 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 530 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 135 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 109 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 85 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), AnalyticalTrackSelector::run(), and run().
|
protected |
Definition at line 103 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 104 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 153 of file MultiTrackSelector.h.
Referenced by beginStream(), and MultiTrackSelector().
|
protected |
Definition at line 105 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 107 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 151 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), beginStream(), MultiTrackSelector(), processMVA(), and ~MultiTrackSelector().
|
protected |
Definition at line 150 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), beginStream(), MultiTrackSelector(), and processMVA().
|
protected |
Definition at line 84 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), processMVA(), AnalyticalTrackSelector::run(), and run().
|
protected |
Definition at line 137 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), AnalyticalTrackSelector::run(), and run().
|
protected |
Impact parameter absolute cuts.
Definition at line 112 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 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 119 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 126 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 113 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 118 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 120 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 117 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 147 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 149 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and processMVA().
|
protected |
Definition at line 141 of file MultiTrackSelector.h.
Referenced by MultiTrackSelector(), and run().
|
protected |
Definition at line 114 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 140 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and run().
|
protected |
Definition at line 93 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), AnalyticalTrackSelector::run(), and run().
|
protected |
Definition at line 101 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
do I have to set a quality bit?
Definition at line 92 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), AnalyticalTrackSelector::run(), and run().
|
protected |
source collection label
Definition at line 83 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), processMVA(), AnalyticalTrackSelector::run(), and run().
|
protected |
Definition at line 88 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), processMVA(), AnalyticalTrackSelector::run(), run(), and select().
|
protected |
Definition at line 152 of file MultiTrackSelector.h.
Referenced by beginStream(), MultiTrackSelector(), and processMVA().
|
protected |
Definition at line 144 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), processMVA(), and select().
|
protected |
Definition at line 145 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 86 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), AnalyticalTrackSelector::run(), and run().
|
protected |
Definition at line 87 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and select().
|
protected |
Definition at line 98 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and selectVertices().
|
protected |
Definition at line 89 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), AnalyticalTrackSelector::run(), and run().
|
protected |
vertex cuts
Definition at line 96 of file MultiTrackSelector.h.
Referenced by AnalyticalTrackSelector::AnalyticalTrackSelector(), MultiTrackSelector(), and selectVertices().