CMS 3D CMS Logo

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

List of all members.

Public Member Functions

double operator() (const reco::PFTauRef &) const
 RecoTauRandomCleanerPlugin (const edm::ParameterSet &pset)
virtual ~RecoTauRandomCleanerPlugin ()

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_.

                                :RecoTauCleanerPlugin(pset) {
  seed_ = pset.exists("seed") ? pset.getParameter<unsigned int>("seed") : 1234;
}
virtual reco::tau::RecoTauRandomCleanerPlugin::~RecoTauRandomCleanerPlugin ( ) [inline, virtual]

Definition at line 19 of file RecoTauRandomCleanerPlugin.cc.

{}

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_.

                                                                           {
  size_t output = seed_;
  boost::hash_combine(output, tau->pt());
  boost::hash_combine(output, tau->eta());
  return output;
}

Member Data Documentation

Definition at line 23 of file RecoTauRandomCleanerPlugin.cc.

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