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 20 of file PFRecoTauChargedHadronQualityPlugins.cc.

Constructor & Destructor Documentation

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

Definition at line 32 of file PFRecoTauChargedHadronQualityPlugins.cc.

34  selector_(pset.getParameter<std::string>("selection")),
35  function_(pset.getParameter<std::string>("selectionPassFunction")),
36  failResult_(pset.getParameter<double>("selectionFailValue"))
37 {}
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().

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

Member Data Documentation

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

Definition at line 29 of file PFRecoTauChargedHadronQualityPlugins.cc.

Referenced by operator()().

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

Definition at line 28 of file PFRecoTauChargedHadronQualityPlugins.cc.

Referenced by operator()().

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

Definition at line 27 of file PFRecoTauChargedHadronQualityPlugins.cc.

Referenced by operator()().