CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
TrackMVAClassifier< MVA, EventCache > Class Template Reference

#include <TrackMVAClassifier.h>

Inheritance diagram for TrackMVAClassifier< MVA, EventCache >:
TrackMVAClassifierBase edm::stream::EDProducer<>

Public Member Functions

 TrackMVAClassifier (const edm::ParameterSet &cfg)
 
- Public Member Functions inherited from TrackMVAClassifierBase
 TrackMVAClassifierBase (const edm::ParameterSet &cfg)
 
 ~TrackMVAClassifierBase () override
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 

Private Member Functions

void beginStream (edm::StreamID) final
 
void computeMVA (reco::TrackCollection const &tracks, reco::BeamSpot const &beamSpot, reco::VertexCollection const &vertices, MVAPairCollection &mvas) const final
 
void initEvent (const edm::EventSetup &es) final
 

Private Attributes

MVA mva
 

Additional Inherited Members

- Public Types inherited from TrackMVAClassifierBase
using MVACollection = std::vector< float >
 
using MVAPairCollection = std::vector< std::pair< float, bool >>
 
using QualityMaskCollection = std::vector< unsigned char >
 
- Public Types inherited from edm::stream::EDProducer<>
using CacheTypes = CacheContexts< T...>
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T...>
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 
- Static Protected Member Functions inherited from TrackMVAClassifierBase
static void fill (edm::ParameterSetDescription &desc)
 

Detailed Description

template<typename MVA, typename EventCache = void>
class TrackMVAClassifier< MVA, EventCache >

Definition at line 96 of file TrackMVAClassifier.h.

Constructor & Destructor Documentation

template<typename MVA , typename EventCache = void>
TrackMVAClassifier< MVA, EventCache >::TrackMVAClassifier ( const edm::ParameterSet cfg)
inlineexplicit

Definition at line 98 of file TrackMVAClassifier.h.

99  : TrackMVAClassifierBase(cfg), mva(cfg.getParameter<edm::ParameterSet>("mva"), consumesCollector()) {}
TrackMVAClassifierBase(const edm::ParameterSet &cfg)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303

Member Function Documentation

template<typename MVA , typename EventCache = void>
void TrackMVAClassifier< MVA, EventCache >::beginStream ( edm::StreamID  )
inlinefinalprivate

Definition at line 111 of file TrackMVAClassifier.h.

References TrackMVAClassifier< MVA, EventCache >::mva.

111 { mva.beginStream(); }
template<typename MVA , typename EventCache = void>
void TrackMVAClassifier< MVA, EventCache >::computeMVA ( reco::TrackCollection const &  tracks,
reco::BeamSpot const &  beamSpot,
reco::VertexCollection const &  vertices,
MVAPairCollection mvas 
) const
inlinefinalprivatevirtual
template<typename MVA , typename EventCache = void>
static void TrackMVAClassifier< MVA, EventCache >::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
inlinestatic

Definition at line 101 of file TrackMVAClassifier.h.

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), submitPVResolutionJobs::desc, TrackMVAClassifierBase::fill(), fillDescriptions(), and mergeVDriftHistosByStation::name.

101  {
103  fill(desc);
105  MVA::fillDescriptions(mvaDesc);
106  desc.add<edm::ParameterSetDescription>("mva", mvaDesc);
107  descriptions.add(MVA::name(), desc);
108  }
static void fill(edm::ParameterSetDescription &desc)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
template<typename MVA , typename EventCache = void>
void TrackMVAClassifier< MVA, EventCache >::initEvent ( const edm::EventSetup es)
inlinefinalprivatevirtual

Implements TrackMVAClassifierBase.

Definition at line 113 of file TrackMVAClassifier.h.

References TrackMVAClassifier< MVA, EventCache >::mva.

113 { mva.initEvent(es); }

Member Data Documentation

template<typename MVA , typename EventCache = void>
MVA TrackMVAClassifier< MVA, EventCache >::mva
private