CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
< PFTau
selector_
 

Detailed Description

Definition at line 25 of file RecoTauStringCleanerPlugin.cc.

Constructor & Destructor Documentation

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

Definition at line 37 of file RecoTauStringCleanerPlugin.cc.

38  : RecoTauCleanerPlugin(pset, std::move(iC)),
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_
def move
Definition: eostools.py:511
RecoTauCleanerPlugin(const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
reco::tau::RecoTauStringCleanerPlugin::~RecoTauStringCleanerPlugin ( )
inlineoverride

Definition at line 28 of file RecoTauStringCleanerPlugin.cc.

28 {}

Member Function Documentation

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

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

Definition at line 34 of file RecoTauStringCleanerPlugin.cc.

Referenced by operator()().

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

Definition at line 33 of file RecoTauStringCleanerPlugin.cc.

Referenced by operator()().

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

Definition at line 32 of file RecoTauStringCleanerPlugin.cc.

Referenced by operator()().