test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
< RecoTauPiZero
function_
 
const StringCutObjectSelector
< RecoTauPiZero
selector_
 

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.

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

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()().