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::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
 
 RecoTauRandomCleanerPlugin (const edm::ParameterSet &pset)
 
virtual ~RecoTauRandomCleanerPlugin ()
 
- Public Member Functions inherited from reco::tau::RecoTauCleanerPlugin
virtual void beginEvent ()
 
 RecoTauCleanerPlugin (const edm::ParameterSet &pset)
 
virtual ~RecoTauCleanerPlugin ()
 
- Public Member Functions inherited from reco::tau::RecoTauEventHolderPlugin
const edm::Eventevt () const
 
const edm::EventSetupevtSetup () const
 
 RecoTauEventHolderPlugin (const edm::ParameterSet &pset)
 
void setup (const 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

unsigned int seed_
 

Detailed Description

Definition at line 16 of file RecoTauRandomCleanerPlugin.cc.

Constructor & Destructor Documentation

reco::tau::RecoTauRandomCleanerPlugin::RecoTauRandomCleanerPlugin ( const edm::ParameterSet pset)

Definition at line 26 of file RecoTauRandomCleanerPlugin.cc.

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

27  :RecoTauCleanerPlugin(pset) {
28  seed_ = pset.exists("seed") ? pset.getParameter<unsigned int>("seed") : 1234;
29 }
T getParameter(std::string const &) const
RecoTauCleanerPlugin(const edm::ParameterSet &pset)
bool exists(std::string const &parameterName) const
checks if a parameter exists
virtual reco::tau::RecoTauRandomCleanerPlugin::~RecoTauRandomCleanerPlugin ( )
inlinevirtual

Definition at line 19 of file RecoTauRandomCleanerPlugin.cc.

19 {}

Member Function Documentation

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

Implements reco::tau::RecoTauCleanerPlugin.

Definition at line 31 of file RecoTauRandomCleanerPlugin.cc.

References convertSQLitetoXML_cfg::output, and seed_.

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