CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
reco::tau::RecoTauRandomCleanerPlugin Class Reference
Inheritance diagram for reco::tau::RecoTauRandomCleanerPlugin:
reco::tau::RecoTauCleanerPlugin reco::tau::RecoTauEventHolderPlugin reco::tau::RecoTauNamedPlugin

Public Member Functions

double operator() (const reco::PFTauRef &) const override
 
 RecoTauRandomCleanerPlugin (const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
 
 ~RecoTauRandomCleanerPlugin () 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

unsigned int seed_
 

Detailed Description

Definition at line 16 of file RecoTauRandomCleanerPlugin.cc.

Constructor & Destructor Documentation

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

Definition at line 26 of file RecoTauRandomCleanerPlugin.cc.

References edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), and seed_.

27  :RecoTauCleanerPlugin(pset,std::move(iC)) {
28  seed_ = pset.exists("seed") ? pset.getParameter<unsigned int>("seed") : 1234;
29 }
T getParameter(std::string const &) const
bool exists(std::string const &parameterName) const
checks if a parameter exists
RecoTauCleanerPlugin(const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
def move(src, dest)
Definition: eostools.py:511
reco::tau::RecoTauRandomCleanerPlugin::~RecoTauRandomCleanerPlugin ( )
inlineoverride

Definition at line 19 of file RecoTauRandomCleanerPlugin.cc.

References operator()().

19 {}

Member Function Documentation

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

Implements reco::tau::RecoTauCleanerPlugin.

Definition at line 31 of file RecoTauRandomCleanerPlugin.cc.

References DEFINE_EDM_PLUGIN, convertSQLitetoXML_cfg::output, and seed_.

Referenced by ~RecoTauRandomCleanerPlugin().

31  {
32  size_t output = seed_;
33  boost::hash_combine(output, tau->pt());
34  boost::hash_combine(output, tau->eta());
35  return output;
36 }

Member Data Documentation

unsigned int reco::tau::RecoTauRandomCleanerPlugin::seed_
private

Definition at line 23 of file RecoTauRandomCleanerPlugin.cc.

Referenced by operator()(), and RecoTauRandomCleanerPlugin().