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
edm::Eventevt ()
 
const edm::Eventevt () const
 
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 
)

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.

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  }

References muons2muons_cfi::chargedHadron, reco::PFRecoTauChargedHadron::kChargedPFCandidate, reco::PFRecoTauChargedHadron::kPFNeutralHadron, reco::PFRecoTauChargedHadron::kTrack, mps_fire::result, and metsig::tau.

metsig::tau
Definition: SignAlgoResolutions.h:49
muons2muons_cfi.chargedHadron
chargedHadron
Definition: muons2muons_cfi.py:26
reco::PFRecoTauChargedHadron::kChargedPFCandidate
Definition: PFRecoTauChargedHadron.h:30
reco::tau::RecoTauCleanerPlugin::RecoTauCleanerPlugin
RecoTauCleanerPlugin(const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
Definition: RecoTauBuilderPlugins.h:118
eostools.move
def move(src, dest)
Definition: eostools.py:511
reco::PFRecoTauChargedHadron::kPFNeutralHadron
Definition: PFRecoTauChargedHadron.h:32
mps_fire.result
result
Definition: mps_fire.py:311
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
reco::PFRecoTauChargedHadron::kTrack
Definition: PFRecoTauChargedHadron.h:31