#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) |
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 | |
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) overridefinal |
void | produce (edm::Event &evt, const edm::EventSetup &es) overridefinal |
Private Attributes | |
edm::EDGetTokenT< reco::BeamSpot > | beamspot_ |
const std::string | dbFileName_ |
std::unique_ptr< GBRForest > | forest_ |
const std::string | forestLabel_ |
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 24 of file TrackMVAClassifier.h.
|
protected |
Definition at line 33 of file TrackMVAClassifier.h.
|
protected |
Definition at line 34 of file TrackMVAClassifier.h.
|
explicit |
Definition at line 27 of file TrackMVAClassifierBase.cc.
References assert(), begin, filterCSVwithJSON::copy, end, edm::ParameterSet::getParameter(), and qualityCuts.
TrackMVAClassifierBase::~TrackMVAClassifierBase | ( | ) |
Definition at line 25 of file TrackMVAClassifierBase.cc.
|
finaloverrideprivatevirtual |
Reimplemented from edm::stream::EDProducerBase.
Definition at line 94 of file TrackMVAClassifierBase.cc.
References dbFileName_, forest_, and forestLabel_.
|
protectedpure virtual |
Implemented in TrackMVAClassifier< MVA >.
Referenced by produce().
|
staticprotected |
Definition at line 13 of file TrackMVAClassifierBase.cc.
References edm::ParameterSetDescription::add(), ParticleFlowFastSim_cff::cuts, HLT_25ns14e33_v1_cff::InputTag, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by TrackMVAClassifier< MVA >::fillDescriptions().
|
finaloverrideprivatevirtual |
Implements edm::stream::EDProducerBase.
Definition at line 44 of file TrackMVAClassifierBase.cc.
References assert(), beamspot_, computeMVA(), forest_, forestLabel_, edm::EventSetup::get(), edm::Event::getByToken(), reco::TrackBase::highPurity, relval_steps::k, reco::TrackBase::loose, eostools::move(), edm::ESHandle< class >::product(), edm::Event::put(), qualityCuts, src_, reco::TrackBase::tight, testEve_cfg::tracks, useForestFromDB_, and vertices_.
|
private |
Definition at line 51 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 62 of file TrackMVAClassifier.h.
Referenced by produce(), and TrackMVAClassifierBase().
|
private |
source collection label
Definition at line 50 of file TrackMVAClassifier.h.
Referenced by produce().
|
private |
Definition at line 59 of file TrackMVAClassifier.h.
Referenced by produce().
|
private |
Definition at line 52 of file TrackMVAClassifier.h.
Referenced by produce().