CMS 3D CMS Logo

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
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndRuns () 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, 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<>
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
 
- 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 95 of file TrackMVAClassifier.h.

Constructor & Destructor Documentation

◆ TrackMVAClassifier()

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

Definition at line 97 of file TrackMVAClassifier.h.

98  : TrackMVAClassifierBase(cfg), mva(cfg.getParameter<edm::ParameterSet>("mva")) {}

Member Function Documentation

◆ beginStream()

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

Definition at line 110 of file TrackMVAClassifier.h.

110 { mva.beginStream(); }

References TrackMVAClassifier< MVA, EventCache >::mva.

◆ computeMVA()

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

◆ fillDescriptions()

template<typename MVA , typename EventCache = void>
static void TrackMVAClassifier< MVA, EventCache >::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
inlinestatic

Definition at line 100 of file TrackMVAClassifier.h.

100  {
102  fill(desc);
104  MVA::fillDescriptions(mvaDesc);
105  desc.add<edm::ParameterSetDescription>("mva", mvaDesc);
106  descriptions.add(MVA::name(), desc);
107  }

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

◆ initEvent()

template<typename MVA , typename EventCache = void>
void TrackMVAClassifier< MVA, EventCache >::initEvent ( const edm::EventSetup es)
inlinefinalprivatevirtual

Implements TrackMVAClassifierBase.

Definition at line 112 of file TrackMVAClassifier.h.

112 { mva.initEvent(es); }

References TrackMVAClassifier< MVA, EventCache >::mva.

Member Data Documentation

◆ mva

template<typename MVA , typename EventCache = void>
MVA TrackMVAClassifier< MVA, EventCache >::mva
private
PDWG_EXOHSCP_cff.tracks
tracks
Definition: PDWG_EXOHSCP_cff.py:28
edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:95
pwdgSkimBPark_cfi.beamSpot
beamSpot
Definition: pwdgSkimBPark_cfi.py:5
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
TrackMVAClassifierBase::TrackMVAClassifierBase
TrackMVAClassifierBase(const edm::ParameterSet &cfg)
Definition: TrackMVAClassifierBase.cc:22
edm::ParameterSet
Definition: ParameterSet.h:36
TrackMVAClassifierBase::fill
static void fill(edm::ParameterSetDescription &desc)
Definition: TrackMVAClassifierBase.cc:10
TrackMVAClassifier::mva
MVA mva
Definition: TrackMVAClassifier.h:122
looper.cfg
cfg
Definition: looper.py:297
HLT_2018_cff.computer
computer
Definition: HLT_2018_cff.py:50520
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
trackMVAClassifierImpl::ComputeMVA
Definition: TrackMVAClassifier.h:60
pwdgSkimBPark_cfi.vertices
vertices
Definition: pwdgSkimBPark_cfi.py:7