CMS 3D CMS Logo

Public Member Functions | Private Attributes

reco::tau::RecoTauPiZeroStringQuality Class Reference

Inheritance diagram for reco::tau::RecoTauPiZeroStringQuality:
reco::tau::RecoTauPiZeroQualityPlugin reco::tau::RecoTauNamedPlugin

List of all members.

Public Member Functions

double operator() (const RecoTauPiZero &) const
 Return a number indicating the quality of this PiZero.
 RecoTauPiZeroStringQuality (const edm::ParameterSet &)
 ~RecoTauPiZeroStringQuality ()

Private Attributes

double failResult_
const StringObjectFunction
< RecoTauPiZero
function_
const StringCutObjectSelector
< RecoTauPiZero
selector_

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

                                : RecoTauPiZeroQualityPlugin(pset),
  selector_(pset.getParameter<std::string>("selection")),
  function_(pset.getParameter<std::string>("selectionPassFunction")),
  failResult_(pset.getParameter<double>("selectionFailValue")) {}
reco::tau::RecoTauPiZeroStringQuality::~RecoTauPiZeroStringQuality ( ) [inline]

Definition at line 25 of file RecoTauPiZeroQualityPlugins.cc.

{}

Member Function Documentation

double reco::tau::RecoTauPiZeroStringQuality::operator() ( const RecoTauPiZero ) const [virtual]

Return a number indicating the quality of this PiZero.

Implements reco::tau::RecoTauPiZeroQualityPlugin.

Definition at line 39 of file RecoTauPiZeroQualityPlugins.cc.

References failResult_, function_, and selector_.

                                                                            {
  if(selector_(cand)) {
    return function_(cand);
  } 
  else {
    return failResult_;
  }
}

Member Data Documentation

Definition at line 30 of file RecoTauPiZeroQualityPlugins.cc.

Referenced by operator()().

Definition at line 29 of file RecoTauPiZeroQualityPlugins.cc.

Referenced by operator()().

Definition at line 28 of file RecoTauPiZeroQualityPlugins.cc.

Referenced by operator()().