CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
reco::tau::RecoTauChargedHadronMultiplicityCleanerPlugin Class Reference
Inheritance diagram for reco::tau::RecoTauChargedHadronMultiplicityCleanerPlugin:
reco::tau::RecoTauCleanerPlugin reco::tau::RecoTauEventHolderPlugin reco::tau::RecoTauNamedPlugin

Public Member Functions

double operator() (const reco::PFTauRef &) const override
 
 RecoTauChargedHadronMultiplicityCleanerPlugin (const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
 
- 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 ()
 

Detailed Description

Definition at line 14 of file RecoTauChargedHadronMultiplicityCleanerPlugin.cc.

Constructor & Destructor Documentation

reco::tau::RecoTauChargedHadronMultiplicityCleanerPlugin::RecoTauChargedHadronMultiplicityCleanerPlugin ( const edm::ParameterSet pset,
edm::ConsumesCollector &&  iC 
)

Definition at line 23 of file RecoTauChargedHadronMultiplicityCleanerPlugin.cc.

24  : RecoTauCleanerPlugin(pset,std::move(iC))
25 {}
def move
Definition: eostools.py:510
RecoTauCleanerPlugin(const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)

Member Function Documentation

double reco::tau::RecoTauChargedHadronMultiplicityCleanerPlugin::operator() ( const reco::PFTauRef tau) const
overridevirtual

Implements reco::tau::RecoTauCleanerPlugin.

Definition at line 27 of file RecoTauChargedHadronMultiplicityCleanerPlugin.cc.

References reco::PFRecoTauChargedHadron::kChargedPFCandidate, reco::PFRecoTauChargedHadron::kPFNeutralHadron, reco::PFRecoTauChargedHadron::kTrack, and mps_fire::result.

28 {
29  // Get the ranking value for this tau.
30  // N.B. lower value means more "tau like"!
31  double result = 0.;
32  const std::vector<PFRecoTauChargedHadron>& chargedHadrons = tau->signalTauChargedHadronCandidates();
33  for ( std::vector<PFRecoTauChargedHadron>::const_iterator chargedHadron = chargedHadrons.begin();
34  chargedHadron != chargedHadrons.end(); ++chargedHadron ) {
35  if ( chargedHadron->algo() == PFRecoTauChargedHadron::kChargedPFCandidate ) result -= 8.;
36  else if ( chargedHadron->algo() == PFRecoTauChargedHadron::kTrack ) result -= 4.;
37  else if ( chargedHadron->algo() == PFRecoTauChargedHadron::kPFNeutralHadron ) result -= 2.;
38  else result -= 1.;
39  }
40  return result;
41 }
tuple result
Definition: mps_fire.py:84