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
edm::Eventevt ()
 
const edm::Eventevt () const
 
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")) {}

◆ ~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.

43  {
44  if (selector_(*cand))
45  return function_(*cand);
46  else
47  return failResult_;
48  }

References failResult_, function_, and 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()().

reco::tau::RecoTauStringCleanerPlugin::function_
const StringObjectFunction< PFTau > function_
Definition: RecoTauStringCleanerPlugin.cc:33
reco::tau::RecoTauStringCleanerPlugin::failResult_
double failResult_
Definition: RecoTauStringCleanerPlugin.cc:34
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
cand
Definition: decayParser.h:34
reco::tau::RecoTauStringCleanerPlugin::selector_
const StringCutObjectSelector< PFTau > selector_
Definition: RecoTauStringCleanerPlugin.cc:32
reco::tau::RecoTauCleanerPlugin::RecoTauCleanerPlugin
RecoTauCleanerPlugin(const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
Definition: RecoTauBuilderPlugins.h:118
eostools.move
def move(src, dest)
Definition: eostools.py:511
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27