CMS 3D CMS Logo

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

Public Member Functions

double operator() (const PFRecoTauChargedHadron &) const override
 Return a number indicating the quality of this chargedHadron. More...
 
 PFRecoTauChargedHadronStringQuality (const edm::ParameterSet &)
 
 ~PFRecoTauChargedHadronStringQuality () override
 
- Public Member Functions inherited from reco::tau::PFRecoTauChargedHadronQualityPlugin
 PFRecoTauChargedHadronQualityPlugin (const edm::ParameterSet &pset)
 
 ~PFRecoTauChargedHadronQualityPlugin () 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< PFRecoTauChargedHadronfunction_
 
const StringCutObjectSelector< PFRecoTauChargedHadronselector_
 

Detailed Description

Definition at line 21 of file PFRecoTauChargedHadronQualityPlugins.cc.

Constructor & Destructor Documentation

◆ PFRecoTauChargedHadronStringQuality()

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

Definition at line 33 of file PFRecoTauChargedHadronQualityPlugins.cc.

35  selector_(pset.getParameter<std::string>("selection")),
36  function_(pset.getParameter<std::string>("selectionPassFunction")),
37  failResult_(pset.getParameter<double>("selectionFailValue")) {}

◆ ~PFRecoTauChargedHadronStringQuality()

reco::tau::PFRecoTauChargedHadronStringQuality::~PFRecoTauChargedHadronStringQuality ( )
inlineoverride

Definition at line 24 of file PFRecoTauChargedHadronQualityPlugins.cc.

24 {}

Member Function Documentation

◆ operator()()

double reco::tau::PFRecoTauChargedHadronStringQuality::operator() ( const PFRecoTauChargedHadron ) const
overridevirtual

Return a number indicating the quality of this chargedHadron.

Implements reco::tau::PFRecoTauChargedHadronQualityPlugin.

Definition at line 39 of file PFRecoTauChargedHadronQualityPlugins.cc.

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

References failResult_, function_, and selector_.

Member Data Documentation

◆ failResult_

double reco::tau::PFRecoTauChargedHadronStringQuality::failResult_
private

Definition at line 30 of file PFRecoTauChargedHadronQualityPlugins.cc.

Referenced by operator()().

◆ function_

const StringObjectFunction<PFRecoTauChargedHadron> reco::tau::PFRecoTauChargedHadronStringQuality::function_
private

Definition at line 29 of file PFRecoTauChargedHadronQualityPlugins.cc.

Referenced by operator()().

◆ selector_

const StringCutObjectSelector<PFRecoTauChargedHadron> reco::tau::PFRecoTauChargedHadronStringQuality::selector_
private

Definition at line 28 of file PFRecoTauChargedHadronQualityPlugins.cc.

Referenced by operator()().

reco::tau::PFRecoTauChargedHadronStringQuality::function_
const StringObjectFunction< PFRecoTauChargedHadron > function_
Definition: PFRecoTauChargedHadronQualityPlugins.cc:29
reco::tau::PFRecoTauChargedHadronQualityPlugin::PFRecoTauChargedHadronQualityPlugin
PFRecoTauChargedHadronQualityPlugin(const edm::ParameterSet &pset)
Definition: PFRecoTauChargedHadronPlugins.h:53
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
cand
Definition: decayParser.h:34
reco::tau::PFRecoTauChargedHadronStringQuality::selector_
const StringCutObjectSelector< PFRecoTauChargedHadron > selector_
Definition: PFRecoTauChargedHadronQualityPlugins.cc:28
reco::tau::PFRecoTauChargedHadronStringQuality::failResult_
double failResult_
Definition: PFRecoTauChargedHadronQualityPlugins.cc:30
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27