CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 ()
 
- Public Member Functions inherited from reco::tau::RecoTauCleanerPlugin
virtual void beginEvent ()
 
 RecoTauCleanerPlugin (const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
 
virtual ~RecoTauCleanerPlugin ()
 
- 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 &)
 
virtual ~RecoTauEventHolderPlugin ()
 
- 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 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_
def move
Definition: eostools.py:508
RecoTauCleanerPlugin(const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
reco::tau::RecoTauStringCleanerPlugin::~RecoTauStringCleanerPlugin ( )
inline

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 44 of file RecoTauStringCleanerPlugin.cc.

References failResult_, function_, and selector_.

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()().