CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
reco::tau::RecoTauSoftTwoProngTausCleanerPlugin Class Reference
Inheritance diagram for reco::tau::RecoTauSoftTwoProngTausCleanerPlugin:
reco::tau::RecoTauCleanerPlugin reco::tau::RecoTauEventHolderPlugin reco::tau::RecoTauNamedPlugin

Public Member Functions

double operator() (const reco::PFTauRef &) const override
 
 RecoTauSoftTwoProngTausCleanerPlugin (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 ()
 

Private Attributes

double minTrackPt_
 

Detailed Description

Definition at line 16 of file RecoTauSoftTwoProngTausCleanerPlugin.cc.

Constructor & Destructor Documentation

◆ RecoTauSoftTwoProngTausCleanerPlugin()

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

Definition at line 27 of file RecoTauSoftTwoProngTausCleanerPlugin.cc.

30  minTrackPt_ = pset.getParameter<double>("minTrackPt");
31  }

References minTrackPt_, and muonDTDigis_cfi::pset.

Member Function Documentation

◆ operator()()

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

Implements reco::tau::RecoTauCleanerPlugin.

Definition at line 33 of file RecoTauSoftTwoProngTausCleanerPlugin.cc.

33  {
34  double result = 0.;
35  const std::vector<PFRecoTauChargedHadron>& chargedHadrons = tau->signalTauChargedHadronCandidates();
36  if (chargedHadrons.size() == 2) {
37  for (std::vector<PFRecoTauChargedHadron>::const_iterator chargedHadron = chargedHadrons.begin();
38  chargedHadron != chargedHadrons.end();
39  ++chargedHadron) {
41  if (!(track != nullptr && track->pt() > minTrackPt_))
42  result += 1.e+3;
43  }
44  }
45  return result;
46  }

References HPSPFTauProducerPuppi_cfi::chargedHadron, reco::tau::getTrackFromChargedHadron(), minTrackPt_, mps_fire::result, metsig::tau, and HLT_2018_cff::track.

Member Data Documentation

◆ minTrackPt_

double reco::tau::RecoTauSoftTwoProngTausCleanerPlugin::minTrackPt_
private
reco::tau::RecoTauSoftTwoProngTausCleanerPlugin::minTrackPt_
double minTrackPt_
Definition: RecoTauSoftTwoProngTausCleanerPlugin.cc:24
metsig::tau
Definition: SignAlgoResolutions.h:49
reco::tau::getTrackFromChargedHadron
const reco::Track * getTrackFromChargedHadron(const reco::PFRecoTauChargedHadron &chargedHadron)
Definition: pfRecoTauChargedHadronAuxFunctions.cc:12
HPSPFTauProducerPuppi_cfi.chargedHadron
chargedHadron
Definition: HPSPFTauProducerPuppi_cfi.py:7
reco::Track
Definition: Track.h:27
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
HLT_2018_cff.track
track
Definition: HLT_2018_cff.py:10352
mps_fire.result
result
Definition: mps_fire.py:303
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27