CMS 3D CMS Logo

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

List of all members.

Public Member Functions

void beginEvent ()
double operator() (const reco::PFTauRef &) const
 RecoTauDiscriminantCleanerPlugin (const edm::ParameterSet &pset)
virtual ~RecoTauDiscriminantCleanerPlugin ()

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)
virtual reco::tau::RecoTauDiscriminantCleanerPlugin::~RecoTauDiscriminantCleanerPlugin ( ) [inline, virtual]

Definition at line 18 of file RecoTauDiscriminantCleanerPlugin.cc.

{}

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

                                                  {
  // Load our handle to the discriminators from the event
  evt()->getByLabel(discriminatorSrc_, discriminator_);
}
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.

                                   {
  // Get the discriminator result for this tau. N.B. result is negated!  lower 
  // = more "tau like"! This is opposite to the normal case.
  double result = -(*discriminator_)[tau];
  return result;
}

Member Data Documentation

Definition at line 27 of file RecoTauDiscriminantCleanerPlugin.cc.

Referenced by beginEvent().