CMS 3D CMS Logo

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
void beginEvent () override
 
 RecoTauCleanerPlugin (const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
 
 ~RecoTauCleanerPlugin () override
 
- 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 &)
 
 ~RecoTauEventHolderPlugin () override
 
- 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 15 of file RecoTauChargedHadronMultiplicityCleanerPlugin.cc.

Constructor & Destructor Documentation

◆ RecoTauChargedHadronMultiplicityCleanerPlugin()

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

Definition at line 23 of file RecoTauChargedHadronMultiplicityCleanerPlugin.cc.

RecoTauCleanerPlugin(const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
def move(src, dest)
Definition: eostools.py:511

Member Function Documentation

◆ operator()()

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

Implements reco::tau::RecoTauCleanerPlugin.

Definition at line 27 of file RecoTauChargedHadronMultiplicityCleanerPlugin.cc.

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

27  {
28  // Get the ranking value for this tau.
29  // N.B. lower value means more "tau like"!
30  double result = 0.;
31  const std::vector<PFRecoTauChargedHadron>& chargedHadrons = tau->signalTauChargedHadronCandidates();
32  for (std::vector<PFRecoTauChargedHadron>::const_iterator chargedHadron = chargedHadrons.begin();
33  chargedHadron != chargedHadrons.end();
34  ++chargedHadron) {
36  result -= 8.;
38  result -= 4.;
40  result -= 2.;
41  else
42  result -= 1.;
43  }
44  return result;
45  }