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 ()
 
- Public Member Functions inherited from reco::tau::RecoTauPiZeroQualityPlugin
 RecoTauPiZeroQualityPlugin (const edm::ParameterSet &pset)
 
virtual ~RecoTauPiZeroQualityPlugin ()
 
- 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 21 of file RecoTauPiZeroQualityPlugins.cc.

Constructor & Destructor Documentation

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

Definition at line 32 of file RecoTauPiZeroQualityPlugins.cc.

34  selector_(pset.getParameter<std::string>("selection")),
35  function_(pset.getParameter<std::string>("selectionPassFunction")),
36  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 ( )
inline

Definition at line 24 of file RecoTauPiZeroQualityPlugins.cc.

References operator()().

24 {}

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 38 of file RecoTauPiZeroQualityPlugins.cc.

References DEFINE_EDM_PLUGIN, failResult_, function_, and selector_.

Referenced by ~RecoTauPiZeroStringQuality().

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

Member Data Documentation

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

Definition at line 29 of file RecoTauPiZeroQualityPlugins.cc.

Referenced by operator()().

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

Definition at line 28 of file RecoTauPiZeroQualityPlugins.cc.

Referenced by operator()().

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

Definition at line 27 of file RecoTauPiZeroQualityPlugins.cc.

Referenced by operator()().