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

◆ RecoTauPiZeroStringQuality()

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")) {}

◆ ~RecoTauPiZeroStringQuality()

reco::tau::RecoTauPiZeroStringQuality::~RecoTauPiZeroStringQuality ( )
inlineoverride

Definition at line 25 of file RecoTauPiZeroQualityPlugins.cc.

25 {}

Member Function Documentation

◆ operator()()

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.

40  {
41  if (selector_(cand)) {
42  return function_(cand);
43  } else {
44  return failResult_;
45  }
46  }

References failResult_, function_, and selector_.

Member Data Documentation

◆ failResult_

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

Definition at line 31 of file RecoTauPiZeroQualityPlugins.cc.

Referenced by operator()().

◆ function_

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

Definition at line 30 of file RecoTauPiZeroQualityPlugins.cc.

Referenced by operator()().

◆ selector_

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

Definition at line 29 of file RecoTauPiZeroQualityPlugins.cc.

Referenced by operator()().

reco::tau::RecoTauPiZeroStringQuality::failResult_
double failResult_
Definition: RecoTauPiZeroQualityPlugins.cc:31
reco::tau::RecoTauPiZeroQualityPlugin::RecoTauPiZeroQualityPlugin
RecoTauPiZeroQualityPlugin(const edm::ParameterSet &pset)
Definition: RecoTauPiZeroPlugins.h:51
reco::tau::RecoTauPiZeroStringQuality::function_
const StringObjectFunction< RecoTauPiZero > function_
Definition: RecoTauPiZeroQualityPlugins.cc:30
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
cand
Definition: decayParser.h:34
reco::tau::RecoTauPiZeroStringQuality::selector_
const StringCutObjectSelector< RecoTauPiZero > selector_
Definition: RecoTauPiZeroQualityPlugins.cc:29
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27