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
virtual void beginEvent ()
 
 RecoTauCleanerPlugin (const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
 
virtual ~RecoTauCleanerPlugin ()
 
- 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 &)
 
virtual ~RecoTauEventHolderPlugin ()
 
- 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 14 of file RecoTauSoftTwoProngTausCleanerPlugin.cc.

Constructor & Destructor Documentation

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

Definition at line 25 of file RecoTauSoftTwoProngTausCleanerPlugin.cc.

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

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

Member Function Documentation

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

Implements reco::tau::RecoTauCleanerPlugin.

Definition at line 31 of file RecoTauSoftTwoProngTausCleanerPlugin.cc.

References muons2muons_cfi::chargedHadron, DEFINE_EDM_PLUGIN, minTrackPt_, and mps_fire::result.

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

Member Data Documentation

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