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

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)
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
overridevirtual

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