#include <TrackMVAClassifier.h>
Public Member Functions | |
TrackMVAClassifierBase (const edm::ParameterSet &cfg) | |
~TrackMVAClassifierBase () | |
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) |
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
void | resolvePutIndicies (BranchType iBranchType, std::unordered_multimap< std::string, edm::ProductResolverIndex > const &iIndicies, std::string const &moduleLabel) |
virtual | ~ProducerBase () noexcept(false) |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
void | convertCurrentProcessAlias (std::string const &processName) |
Convert "@currentProcess" in InputTag process names to the actual current process name. More... | |
EDConsumerBase () | |
EDConsumerBase (EDConsumerBase const &)=delete | |
EDConsumerBase (EDConsumerBase &&)=default | |
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
virtual | ~EDConsumerBase () noexcept(false) |
Protected Types | |
using | MVACollection = std::vector< float > |
using | QualityMaskCollection = std::vector< unsigned char > |
Protected Member Functions | |
virtual void | computeMVA (reco::TrackCollection const &tracks, reco::BeamSpot const &beamSpot, reco::VertexCollection const &vertices, GBRForest const *forestP, MVACollection &mvas) const =0 |
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) |
Static Protected Member Functions | |
static void | fill (edm::ParameterSetDescription &desc) |
Private Member Functions | |
void | beginStream (edm::StreamID) override final |
void | produce (edm::Event &evt, const edm::EventSetup &es) override final |
Private Attributes | |
edm::EDGetTokenT< reco::BeamSpot > | beamspot_ |
const std::string | dbFileName_ |
std::unique_ptr< GBRForest > | forest_ |
const std::string | forestLabel_ |
bool | ignoreVertices_ |
float | qualityCuts [3] |
edm::EDGetTokenT< reco::TrackCollection > | src_ |
source collection label More... | |
const bool | useForestFromDB_ |
edm::EDGetTokenT< reco::VertexCollection > | vertices_ |
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 |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::stream::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Definition at line 23 of file TrackMVAClassifier.h.
|
protected |
Definition at line 32 of file TrackMVAClassifier.h.
|
protected |
Definition at line 33 of file TrackMVAClassifier.h.
|
explicit |
Definition at line 29 of file TrackMVAClassifierBase.cc.
References begin, popcon2dropbox::copy(), end, edm::ParameterSet::getParameter(), and qualityCuts.
TrackMVAClassifierBase::~TrackMVAClassifierBase | ( | ) |
Definition at line 27 of file TrackMVAClassifierBase.cc.
|
finaloverrideprivatevirtual |
Reimplemented from edm::stream::EDProducerBase.
Definition at line 101 of file TrackMVAClassifierBase.cc.
References dbFileName_, forest_, and forestLabel_.
|
protectedpure virtual |
Implemented in TrackMVAClassifier< MVA >.
Referenced by produce().
|
staticprotected |
Definition at line 14 of file TrackMVAClassifierBase.cc.
References edm::ParameterSetDescription::add(), particleFlowClusterECALTimeSelected_cfi::cuts, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by TrackMVAClassifier< MVA >::fillDescriptions().
|
finaloverrideprivate |
Definition at line 47 of file TrackMVAClassifierBase.cc.
References beamspot_, computeMVA(), forest_, forestLabel_, edm::EventSetup::get(), edm::Event::getByToken(), reco::TrackBase::highPurity, ignoreVertices_, edm::HandleBase::isValid(), gen::k, reco::TrackBase::loose, eostools::move(), RecoTauHPSTancTauProdcuer_cfi::mvas, edm::ESHandle< T >::product(), edm::Event::put(), qualityCuts, src_, reco::TrackBase::tight, l1t::tracks, useForestFromDB_, ecalDrivenElectronSeedsParameters_cff::vertices, and vertices_.
|
private |
Definition at line 50 of file TrackMVAClassifier.h.
Referenced by produce().
|
private |
Definition at line 58 of file TrackMVAClassifier.h.
Referenced by beginStream().
|
private |
Definition at line 56 of file TrackMVAClassifier.h.
Referenced by beginStream(), and produce().
|
private |
Definition at line 57 of file TrackMVAClassifier.h.
Referenced by beginStream(), and produce().
|
private |
Definition at line 53 of file TrackMVAClassifier.h.
Referenced by produce().
|
private |
Definition at line 62 of file TrackMVAClassifier.h.
Referenced by produce(), and TrackMVAClassifierBase().
|
private |
source collection label
Definition at line 49 of file TrackMVAClassifier.h.
Referenced by produce().
|
private |
Definition at line 59 of file TrackMVAClassifier.h.
Referenced by produce().
|
private |
Definition at line 51 of file TrackMVAClassifier.h.
Referenced by produce().