CMS 3D CMS Logo

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

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")) {}
T getParameter(std::string const &) const
PFRecoTauChargedHadronQualityPlugin(const edm::ParameterSet &pset)
const StringCutObjectSelector< PFRecoTauChargedHadron > selector_
const StringObjectFunction< PFRecoTauChargedHadron > function_
reco::tau::PFRecoTauChargedHadronStringQuality::~PFRecoTauChargedHadronStringQuality ( )
inlineoverride

Definition at line 24 of file PFRecoTauChargedHadronQualityPlugins.cc.

References operator()().

24 {}

Member Function Documentation

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 DEFINE_EDM_PLUGIN, failResult_, function_, and selector_.

Referenced by ~PFRecoTauChargedHadronStringQuality().

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

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

Definition at line 30 of file PFRecoTauChargedHadronQualityPlugins.cc.

Referenced by operator()().

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

Definition at line 29 of file PFRecoTauChargedHadronQualityPlugins.cc.

Referenced by operator()().

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

Definition at line 28 of file PFRecoTauChargedHadronQualityPlugins.cc.

Referenced by operator()().