CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
reco::tau::RecoTauPiZeroStringQuality Class Reference
Inheritance diagram for reco::tau::RecoTauPiZeroStringQuality:
reco::tau::RecoTauPiZeroQualityPlugin reco::tau::RecoTauNamedPlugin

Public Member Functions

double operator() (const RecoTauPiZero &) const override
 Return a number indicating the quality of this PiZero. More...
 
 RecoTauPiZeroStringQuality (const edm::ParameterSet &)
 
 ~RecoTauPiZeroStringQuality () override
 
- Public Member Functions inherited from reco::tau::RecoTauPiZeroQualityPlugin
 RecoTauPiZeroQualityPlugin (const edm::ParameterSet &pset)
 
 ~RecoTauPiZeroQualityPlugin () 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< RecoTauPiZerofunction_
 
const StringCutObjectSelector< RecoTauPiZeroselector_
 

Detailed Description

Definition at line 22 of file RecoTauPiZeroQualityPlugins.cc.

Constructor & Destructor Documentation

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

Definition at line 34 of file RecoTauPiZeroQualityPlugins.cc.

36  selector_(pset.getParameter<std::string>("selection")),
37  function_(pset.getParameter<std::string>("selectionPassFunction")),
38  failResult_(pset.getParameter<double>("selectionFailValue")) {}
T getParameter(std::string const &) const
RecoTauPiZeroQualityPlugin(const edm::ParameterSet &pset)
const StringObjectFunction< RecoTauPiZero > function_
const StringCutObjectSelector< RecoTauPiZero > selector_
reco::tau::RecoTauPiZeroStringQuality::~RecoTauPiZeroStringQuality ( )
inlineoverride

Definition at line 25 of file RecoTauPiZeroQualityPlugins.cc.

References operator()().

25 {}

Member Function Documentation

double reco::tau::RecoTauPiZeroStringQuality::operator() ( const RecoTauPiZero ) const
overridevirtual

Return a number indicating the quality of this PiZero.

Implements reco::tau::RecoTauPiZeroQualityPlugin.

Definition at line 40 of file RecoTauPiZeroQualityPlugins.cc.

References DEFINE_EDM_PLUGIN, failResult_, function_, and selector_.

Referenced by ~RecoTauPiZeroStringQuality().

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

Member Data Documentation

double reco::tau::RecoTauPiZeroStringQuality::failResult_
private

Definition at line 31 of file RecoTauPiZeroQualityPlugins.cc.

Referenced by operator()().

const StringObjectFunction<RecoTauPiZero> reco::tau::RecoTauPiZeroStringQuality::function_
private

Definition at line 30 of file RecoTauPiZeroQualityPlugins.cc.

Referenced by operator()().

const StringCutObjectSelector<RecoTauPiZero> reco::tau::RecoTauPiZeroStringQuality::selector_
private

Definition at line 29 of file RecoTauPiZeroQualityPlugins.cc.

Referenced by operator()().