CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
TrackMVAClassifier< MVA > Class Template Reference

#include <TrackMVAClassifier.h>

Inheritance diagram for TrackMVAClassifier< MVA >:
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
 
bool hasAbilityToProduceInLumis () const final
 
bool hasAbilityToProduceInRuns () const final
 

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, MVACollection &mvas) const final
 
void initEvent (const edm::EventSetup &es) final
 

Private Attributes

MVA mva
 

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, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Protected Types inherited from TrackMVAClassifierBase
using MVACollection = std::vector< float >
 
using QualityMaskCollection = std::vector< unsigned char >
 
- Static Protected Member Functions inherited from TrackMVAClassifierBase
static void fill (edm::ParameterSetDescription &desc)
 

Detailed Description

template<typename MVA>
class TrackMVAClassifier< MVA >

Definition at line 60 of file TrackMVAClassifier.h.

Constructor & Destructor Documentation

template<typename MVA >
TrackMVAClassifier< MVA >::TrackMVAClassifier ( const edm::ParameterSet cfg)
inlineexplicit

Definition at line 62 of file TrackMVAClassifier.h.

62  :
64  mva(cfg.getParameter<edm::ParameterSet>("mva")){}
T getParameter(std::string const &) const
TrackMVAClassifierBase(const edm::ParameterSet &cfg)

Member Function Documentation

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

Definition at line 77 of file TrackMVAClassifier.h.

References DetachedQuadStep_cff::mva.

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

Definition at line 66 of file TrackMVAClassifier.h.

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), TrackMVAClassifierBase::fill(), fillDescriptions(), and dataset::name.

66  {
68  fill(desc);
70  MVA::fillDescriptions(mvaDesc);
71  desc.add<edm::ParameterSetDescription>("mva",mvaDesc);
72  descriptions.add(MVA::name(), desc);
73  }
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 >
void TrackMVAClassifier< MVA >::initEvent ( const edm::EventSetup es)
inlinefinalprivatevirtual

Implements TrackMVAClassifierBase.

Definition at line 81 of file TrackMVAClassifier.h.

References DetachedQuadStep_cff::mva.

81  {
82  mva.initEvent(es);
83  }

Member Data Documentation

template<typename MVA >
MVA TrackMVAClassifier< MVA >::mva
private

Definition at line 96 of file TrackMVAClassifier.h.