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 | Private Attributes
reco::tau::PFRecoTauChargedHadronStringQuality Class Reference
Inheritance diagram for reco::tau::PFRecoTauChargedHadronStringQuality:
reco::tau::PFRecoTauChargedHadronQualityPlugin reco::tau::RecoTauNamedPlugin

Public Member Functions

double operator() (const PFRecoTauChargedHadron &) const override
 Return a number indicating the quality of this chargedHadron. More...
 
 PFRecoTauChargedHadronStringQuality (const edm::ParameterSet &)
 
 ~PFRecoTauChargedHadronStringQuality () override
 
- Public Member Functions inherited from reco::tau::PFRecoTauChargedHadronQualityPlugin
 PFRecoTauChargedHadronQualityPlugin (const edm::ParameterSet &pset)
 
 ~PFRecoTauChargedHadronQualityPlugin () override
 
- Public Member Functions inherited from reco::tau::RecoTauNamedPlugin
const std::string & name () const
 
 RecoTauNamedPlugin (const edm::ParameterSet &pset)
 
virtual ~RecoTauNamedPlugin ()
 

Private Attributes

double failResult_
 
const StringObjectFunction< PFRecoTauChargedHadronfunction_
 
const StringCutObjectSelector< PFRecoTauChargedHadronselector_
 

Detailed Description

Definition at line 21 of file PFRecoTauChargedHadronQualityPlugins.cc.

Constructor & Destructor Documentation

◆ PFRecoTauChargedHadronStringQuality()

reco::tau::PFRecoTauChargedHadronStringQuality::PFRecoTauChargedHadronStringQuality ( const edm::ParameterSet pset)
explicit

Definition at line 33 of file PFRecoTauChargedHadronQualityPlugins.cc.

35  selector_(pset.getParameter<std::string>("selection")),
36  function_(pset.getParameter<std::string>("selectionPassFunction")),
37  failResult_(pset.getParameter<double>("selectionFailValue")) {}
PFRecoTauChargedHadronQualityPlugin(const edm::ParameterSet &pset)
const StringCutObjectSelector< PFRecoTauChargedHadron > selector_
const StringObjectFunction< PFRecoTauChargedHadron > function_

◆ ~PFRecoTauChargedHadronStringQuality()

reco::tau::PFRecoTauChargedHadronStringQuality::~PFRecoTauChargedHadronStringQuality ( )
inlineoverride

Definition at line 24 of file PFRecoTauChargedHadronQualityPlugins.cc.

24 {}

Member Function Documentation

◆ operator()()

double reco::tau::PFRecoTauChargedHadronStringQuality::operator() ( const PFRecoTauChargedHadron ) const
overridevirtual

Return a number indicating the quality of this chargedHadron.

Implements reco::tau::PFRecoTauChargedHadronQualityPlugin.

Definition at line 39 of file PFRecoTauChargedHadronQualityPlugins.cc.

References failResult_, function_, and selector_.

39  {
40  if (selector_(cand))
41  return function_(cand);
42  else
43  return failResult_;
44  }
const StringCutObjectSelector< PFRecoTauChargedHadron > selector_
const StringObjectFunction< PFRecoTauChargedHadron > function_

Member Data Documentation

◆ failResult_

double reco::tau::PFRecoTauChargedHadronStringQuality::failResult_
private

Definition at line 30 of file PFRecoTauChargedHadronQualityPlugins.cc.

Referenced by operator()().

◆ function_

const StringObjectFunction<PFRecoTauChargedHadron> reco::tau::PFRecoTauChargedHadronStringQuality::function_
private

Definition at line 29 of file PFRecoTauChargedHadronQualityPlugins.cc.

Referenced by operator()().

◆ selector_

const StringCutObjectSelector<PFRecoTauChargedHadron> reco::tau::PFRecoTauChargedHadronStringQuality::selector_
private

Definition at line 28 of file PFRecoTauChargedHadronQualityPlugins.cc.

Referenced by operator()().