CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
List of all members | Public Member Functions | Static Public Member Functions
EvaluateMuonMVAID Class Reference
Inheritance diagram for EvaluateMuonMVAID:
BaseMVAValueMapProducer< pat::Muon > edm::stream::EDProducer< edm::GlobalCache< BaseMVACache > >

Public Member Functions

 EvaluateMuonMVAID (const edm::ParameterSet &iConfig, const BaseMVACache *cache)
 
void fillAdditionalVariables (const pat::Muon &m) override
 
- Public Member Functions inherited from BaseMVAValueMapProducer< pat::Muon >
 BaseMVAValueMapProducer (const edm::ParameterSet &iConfig, const BaseMVACache *cache)
 
void setValue (const std::string var, float val)
 
 ~BaseMVAValueMapProducer () override
 
- Public Member Functions inherited from edm::stream::EDProducer< edm::GlobalCache< BaseMVACache > >
 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)
 
- Static Public Member Functions inherited from BaseMVAValueMapProducer< pat::Muon >
static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
static edm::ParameterSetDescription getDescription ()
 
static void globalEndJob (const BaseMVACache *cache)
 
static std::unique_ptr< BaseMVACacheinitializeGlobalCache (const edm::ParameterSet &cfg)
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer< edm::GlobalCache< BaseMVACache > >
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
 

Detailed Description

Definition at line 16 of file EvaluateMuonMVAID.cc.

Constructor & Destructor Documentation

◆ EvaluateMuonMVAID()

EvaluateMuonMVAID::EvaluateMuonMVAID ( const edm::ParameterSet iConfig,
const BaseMVACache cache 
)
inlineexplicit

Definition at line 18 of file EvaluateMuonMVAID.cc.

Member Function Documentation

◆ fillAdditionalVariables()

void EvaluateMuonMVAID::fillAdditionalVariables ( const pat::Muon m)
inlineoverridevirtual

Reimplemented from BaseMVAValueMapProducer< pat::Muon >.

Definition at line 21 of file EvaluateMuonMVAID.cc.

References visualization-live-secondInstance_cfg::m, and BaseMVAValueMapProducer< pat::Muon >::setValue().

21  {
22  float norm_chi2;
23  float n_Valid_hits;
24  if (m.globalTrack().isNonnull()) {
25  norm_chi2 = m.globalTrack()->normalizedChi2();
26  n_Valid_hits = m.globalTrack()->hitPattern().numberOfValidMuonHits();
27  } else if (m.innerTrack().isNonnull()) {
28  norm_chi2 = m.innerTrack()->normalizedChi2();
29  n_Valid_hits = m.innerTrack()->hitPattern().numberOfValidMuonHits();
30  } else {
31  norm_chi2 = -99;
32  n_Valid_hits = -99;
33  }
34 
35  this->setValue("Muon_norm_chi2_extended", norm_chi2);
36  this->setValue("Muon_n_Valid_hits_extended", n_Valid_hits);
37  }
void setValue(const std::string var, float val)

◆ fillDescriptions()

static void EvaluateMuonMVAID::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
inlinestatic

Definition at line 39 of file EvaluateMuonMVAID.cc.

References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, and BaseMVAValueMapProducer< T >::getDescription().

39  {
41  descriptions.add("EvaluateMuonMVAID", desc);
42  }
static edm::ParameterSetDescription getDescription()
void add(std::string const &label, ParameterSetDescription const &psetDescription)