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 15 of file RecoTauSoftTwoProngTausCleanerPlugin.cc.

Constructor & Destructor Documentation

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

Definition at line 26 of file RecoTauSoftTwoProngTausCleanerPlugin.cc.

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

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

Member Function Documentation

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

Implements reco::tau::RecoTauCleanerPlugin.

Definition at line 32 of file RecoTauSoftTwoProngTausCleanerPlugin.cc.

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

Member Data Documentation

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