CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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

Definition at line 27 of file RecoTauSoftTwoProngTausCleanerPlugin.cc.

References edm::ParameterSet::getParameter(), and minTrackPt_.

29  : RecoTauCleanerPlugin(pset, std::move(iC)) {
30  minTrackPt_ = pset.getParameter<double>("minTrackPt");
31  }
def move
Definition: eostools.py:511
RecoTauCleanerPlugin(const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
T getParameter(std::string const &) const
Definition: ParameterSet.h:303

Member Function Documentation

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

Implements reco::tau::RecoTauCleanerPlugin.

Definition at line 33 of file RecoTauSoftTwoProngTausCleanerPlugin.cc.

References reco::tau::getTrackFromChargedHadron(), minTrackPt_, reco::TrackBase::pt(), mps_fire::result, and HLT_FULL_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) {
40  const reco::Track* track = getTrackFromChargedHadron(*chargedHadron);
41  if (!(track != nullptr && track->pt() > minTrackPt_))
42  result += 1.e+3;
43  }
44  }
45  return result;
46  }
tuple result
Definition: mps_fire.py:311
double pt() const
track transverse momentum
Definition: TrackBase.h:637
const reco::Track * getTrackFromChargedHadron(const reco::PFRecoTauChargedHadron &chargedHadron)

Member Data Documentation

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