CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
reco::tau::RecoTauStringCleanerPlugin Class Reference
Inheritance diagram for reco::tau::RecoTauStringCleanerPlugin:
reco::tau::RecoTauCleanerPlugin reco::tau::RecoTauEventHolderPlugin reco::tau::RecoTauNamedPlugin

Public Member Functions

double operator() (const PFTauRef &tau) const override
 
 RecoTauStringCleanerPlugin (const edm::ParameterSet &, edm::ConsumesCollector &&iC)
 
 ~RecoTauStringCleanerPlugin () override
 
- Public Member Functions inherited from reco::tau::RecoTauCleanerPlugin
void beginEvent () override
 
 RecoTauCleanerPlugin (const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
 
 ~RecoTauCleanerPlugin () override
 
- Public Member Functions inherited from reco::tau::RecoTauEventHolderPlugin
const edm::Eventevt () const
 
edm::Eventevt ()
 
const edm::EventSetupevtSetup () const
 
 RecoTauEventHolderPlugin (const edm::ParameterSet &pset)
 
void setup (edm::Event &, const edm::EventSetup &)
 
 ~RecoTauEventHolderPlugin () 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< PFTaufunction_
 
const StringCutObjectSelector< PFTauselector_
 

Detailed Description

Definition at line 25 of file RecoTauStringCleanerPlugin.cc.

Constructor & Destructor Documentation

◆ RecoTauStringCleanerPlugin()

reco::tau::RecoTauStringCleanerPlugin::RecoTauStringCleanerPlugin ( const edm::ParameterSet pset,
edm::ConsumesCollector &&  iC 
)
explicit

Definition at line 37 of file RecoTauStringCleanerPlugin.cc.

39  selector_(pset.getParameter<std::string>("selection")),
40  function_(pset.getParameter<std::string>("selectionPassFunction")),
41  failResult_(pset.getParameter<double>("selectionFailValue")) {}
const StringObjectFunction< PFTau > function_
const StringCutObjectSelector< PFTau > selector_
RecoTauCleanerPlugin(const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
def move(src, dest)
Definition: eostools.py:511

◆ ~RecoTauStringCleanerPlugin()

reco::tau::RecoTauStringCleanerPlugin::~RecoTauStringCleanerPlugin ( )
inlineoverride

Definition at line 28 of file RecoTauStringCleanerPlugin.cc.

28 {}

Member Function Documentation

◆ operator()()

double reco::tau::RecoTauStringCleanerPlugin::operator() ( const PFTauRef tau) const
overridevirtual

Implements reco::tau::RecoTauCleanerPlugin.

Definition at line 43 of file RecoTauStringCleanerPlugin.cc.

References failResult_, function_, and selector_.

43  {
44  if (selector_(*cand))
45  return function_(*cand);
46  else
47  return failResult_;
48  }
const StringObjectFunction< PFTau > function_
const StringCutObjectSelector< PFTau > selector_

Member Data Documentation

◆ failResult_

double reco::tau::RecoTauStringCleanerPlugin::failResult_
private

Definition at line 34 of file RecoTauStringCleanerPlugin.cc.

Referenced by operator()().

◆ function_

const StringObjectFunction<PFTau> reco::tau::RecoTauStringCleanerPlugin::function_
private

Definition at line 33 of file RecoTauStringCleanerPlugin.cc.

Referenced by operator()().

◆ selector_

const StringCutObjectSelector<PFTau> reco::tau::RecoTauStringCleanerPlugin::selector_
private

Definition at line 32 of file RecoTauStringCleanerPlugin.cc.

Referenced by operator()().