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 24 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"))
42 {}
T getParameter(std::string const &) const
const StringObjectFunction< PFTau > function_
const StringCutObjectSelector< PFTau > selector_
RecoTauCleanerPlugin(const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
def move(src, dest)
Definition: eostools.py:510
reco::tau::RecoTauStringCleanerPlugin::~RecoTauStringCleanerPlugin ( )
inlineoverride

Definition at line 28 of file RecoTauStringCleanerPlugin.cc.

References operator()(), and metsig::tau.

28 {}

Member Function Documentation

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

Implements reco::tau::RecoTauCleanerPlugin.

Definition at line 44 of file RecoTauStringCleanerPlugin.cc.

References DEFINE_EDM_PLUGIN, failResult_, function_, and selector_.

Referenced by ~RecoTauStringCleanerPlugin().

45 {
46  if ( selector_(*cand) ) return function_(*cand);
47  else 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()().