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::RecoTauDiscriminantCleanerPlugin Class Reference
Inheritance diagram for reco::tau::RecoTauDiscriminantCleanerPlugin:
reco::tau::RecoTauCleanerPlugin reco::tau::RecoTauEventHolderPlugin reco::tau::RecoTauNamedPlugin

Public Member Functions

void beginEvent ()
 
double operator() (const reco::PFTauRef &) const
 
 RecoTauDiscriminantCleanerPlugin (const edm::ParameterSet &pset)
 
virtual ~RecoTauDiscriminantCleanerPlugin ()
 
- Public Member Functions inherited from reco::tau::RecoTauCleanerPlugin
 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

edm::Handle< PFTauDiscriminatordiscriminator_
 
edm::InputTag discriminatorSrc_
 

Detailed Description

Definition at line 15 of file RecoTauDiscriminantCleanerPlugin.cc.

Constructor & Destructor Documentation

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

Definition at line 30 of file RecoTauDiscriminantCleanerPlugin.cc.

References discriminatorSrc_, and edm::ParameterSet::getParameter().

31  :RecoTauCleanerPlugin(pset) {
33 }
T getParameter(std::string const &) const
RecoTauCleanerPlugin(const edm::ParameterSet &pset)
virtual reco::tau::RecoTauDiscriminantCleanerPlugin::~RecoTauDiscriminantCleanerPlugin ( )
inlinevirtual

Definition at line 18 of file RecoTauDiscriminantCleanerPlugin.cc.

18 {}

Member Function Documentation

void reco::tau::RecoTauDiscriminantCleanerPlugin::beginEvent ( )
virtual

Reimplemented from reco::tau::RecoTauCleanerPlugin.

Definition at line 35 of file RecoTauDiscriminantCleanerPlugin.cc.

References discriminator_, discriminatorSrc_, reco::tau::RecoTauEventHolderPlugin::evt(), and edm::Event::getByLabel().

35  {
36  // Load our handle to the discriminators from the event
38 }
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:356
double reco::tau::RecoTauDiscriminantCleanerPlugin::operator() ( const reco::PFTauRef tau) const
virtual

Implements reco::tau::RecoTauCleanerPlugin.

Definition at line 40 of file RecoTauDiscriminantCleanerPlugin.cc.

References query::result, and metsig::tau.

41  {
42  // Get the discriminator result for this tau. N.B. result is negated! lower
43  // = more "tau like"! This is opposite to the normal case.
44  double result = -(*discriminator_)[tau];
45  return result;
46 }
tuple result
Definition: query.py:137

Member Data Documentation

edm::Handle<PFTauDiscriminator> reco::tau::RecoTauDiscriminantCleanerPlugin::discriminator_
private

Definition at line 27 of file RecoTauDiscriminantCleanerPlugin.cc.

Referenced by beginEvent().

edm::InputTag reco::tau::RecoTauDiscriminantCleanerPlugin::discriminatorSrc_
private