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

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.

References minTrackPt_, and muonDTDigis_cfi::pset.

30  minTrackPt_ = pset.getParameter<double>("minTrackPt");
31  }
RecoTauCleanerPlugin(const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
def move(src, dest)
Definition: eostools.py:511

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.

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

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  }
const reco::Track * getTrackFromChargedHadron(const reco::PFRecoTauChargedHadron &chargedHadron)

Member Data Documentation

◆ minTrackPt_

double reco::tau::RecoTauSoftTwoProngTausCleanerPlugin::minTrackPt_
private