CMS 3D CMS Logo

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

List of all members.

Public Member Functions

double operator() (const PFTauRef &tau) const
 RecoTauStringCleanerPlugin (const edm::ParameterSet &)
 ~RecoTauStringCleanerPlugin ()

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) [explicit]

Definition at line 35 of file RecoTauStringCleanerPlugin.cc.

                                : RecoTauCleanerPlugin(pset),
    selector_(pset.getParameter<std::string>("selection")),
    function_(pset.getParameter<std::string>("selectionPassFunction")),
    failResult_(pset.getParameter<double>("selectionFailValue")) {}
reco::tau::RecoTauStringCleanerPlugin::~RecoTauStringCleanerPlugin ( ) [inline]

Definition at line 27 of file RecoTauStringCleanerPlugin.cc.

{}

Member Function Documentation

double reco::tau::RecoTauStringCleanerPlugin::operator() ( const PFTauRef tau) const [virtual]

Implements reco::tau::RecoTauCleanerPlugin.

Definition at line 41 of file RecoTauStringCleanerPlugin.cc.

References failResult_, function_, and selector_.

                                                                        {
  if(selector_(*cand))
    return function_(*cand);
  else
    return failResult_;
}

Member Data Documentation

Definition at line 32 of file RecoTauStringCleanerPlugin.cc.

Referenced by operator()().

Definition at line 31 of file RecoTauStringCleanerPlugin.cc.

Referenced by operator()().

Definition at line 30 of file RecoTauStringCleanerPlugin.cc.

Referenced by operator()().