CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
GsfEleDeltaBetaIsoCutStandalone Class Reference
Inheritance diagram for GsfEleDeltaBetaIsoCutStandalone:
CutApplicatorBase candidate_functions::CandidateCut

Public Member Functions

CandidateType candidateType () const final
 
 GsfEleDeltaBetaIsoCutStandalone (const edm::ParameterSet &c)
 
result_type operator() (const reco::GsfElectronPtr &) const final
 
double value (const reco::CandidatePtr &cand) const final
 
- Public Member Functions inherited from CutApplicatorBase
virtual result_type asCandidate (const argument_type &) const
 
 CutApplicatorBase ()
 
 CutApplicatorBase (const edm::ParameterSet &c)
 
 CutApplicatorBase (const CutApplicatorBase &)=delete
 
const std::string & name () const override
 
result_type operator() (const argument_type &) const override final
 
virtual result_type operator() (const pat::ElectronPtr &) const
 
virtual result_type operator() (const reco::PhotonPtr &) const
 
virtual result_type operator() (const pat::PhotonPtr &) const
 
virtual result_type operator() (const reco::MuonPtr &) const
 
virtual result_type operator() (const pat::MuonPtr &) const
 
virtual result_type operator() (const reco::PFTauPtr &) const
 
virtual result_type operator() (const pat::TauPtr &) const
 
CutApplicatorBaseoperator= (const CutApplicatorBase &)=delete
 
 ~CutApplicatorBase () override
 Destructor. More...
 
- Public Member Functions inherited from candidate_functions::CandidateCut
 CandidateCut ()
 
virtual ~CandidateCut ()
 

Private Attributes

const float _barrelCutOff
 
const float _deltaBetaConstant
 
const float _isoCutEBHighPt
 
const float _isoCutEBLowPt
 
const float _isoCutEEHighPt
 
const float _isoCutEELowPt
 
const float _ptCutOff
 
const bool _relativeIso
 

Additional Inherited Members

- Public Types inherited from CutApplicatorBase
enum  CandidateType {
  NONE, ELECTRON, MUON, PHOTON,
  TAU, PATELECTRON, PATMUON, PATPHOTON,
  PATTAU
}
 
- Public Types inherited from candidate_functions::CandidateCut
using argument_type = reco::CandidatePtr
 
using result_type = bool
 

Detailed Description

Definition at line 8 of file GsfEleDeltaBetaIsoCutStandalone.cc.

Constructor & Destructor Documentation

GsfEleDeltaBetaIsoCutStandalone::GsfEleDeltaBetaIsoCutStandalone ( const edm::ParameterSet c)

Definition at line 31 of file GsfEleDeltaBetaIsoCutStandalone.cc.

References operator()().

31  :
33  _isoCutEBLowPt(c.getParameter<double>("isoCutEBLowPt")),
34  _isoCutEBHighPt(c.getParameter<double>("isoCutEBHighPt")),
35  _isoCutEELowPt(c.getParameter<double>("isoCutEELowPt")),
36  _isoCutEEHighPt(c.getParameter<double>("isoCutEEHighPt")),
37  _deltaBetaConstant(c.getParameter<double>("deltaBetaConstant")),
38  _ptCutOff(c.getParameter<double>("ptCutOff")),
39  _barrelCutOff(c.getParameter<double>("barrelCutOff")),
40  _relativeIso(c.getParameter<bool>("isRelativeIso")) {
41 }
T getParameter(std::string const &) const

Member Function Documentation

CandidateType GsfEleDeltaBetaIsoCutStandalone::candidateType ( ) const
inlinefinalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 16 of file GsfEleDeltaBetaIsoCutStandalone.cc.

References CutApplicatorBase::ELECTRON.

16  {
17  return ELECTRON;
18  }
CutApplicatorBase::result_type GsfEleDeltaBetaIsoCutStandalone::operator() ( const reco::GsfElectronPtr cand) const
finalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 45 of file GsfEleDeltaBetaIsoCutStandalone.cc.

References _barrelCutOff, _deltaBetaConstant, _isoCutEBHighPt, _isoCutEBLowPt, _isoCutEEHighPt, _isoCutEELowPt, _ptCutOff, _relativeIso, funct::abs(), f, SiStripPI::max, reco::GsfElectron::p4(), reco::GsfElectron::pfIsolationVariables(), reco::GsfElectron::PflowIsolationVariables::sumChargedHadronPt, reco::GsfElectron::PflowIsolationVariables::sumNeutralHadronEt, reco::GsfElectron::PflowIsolationVariables::sumPhotonEt, reco::GsfElectron::PflowIsolationVariables::sumPUPt, reco::GsfElectron::superCluster(), and value().

Referenced by GsfEleDeltaBetaIsoCutStandalone().

45  {
46  const float isoCut =
47  ( cand->p4().pt() < _ptCutOff ?
48  ( std::abs(cand->superCluster()->position().eta()) < _barrelCutOff ?
50  ( std::abs(cand->superCluster()->position().eta()) < _barrelCutOff ?
53  cand->pfIsolationVariables();
54  const float chad = pfIso.sumChargedHadronPt;
55  const float nhad = pfIso.sumNeutralHadronEt;
56  const float pho = pfIso.sumPhotonEt;
57  const float puchad = pfIso.sumPUPt;
58  float iso = chad + std::max(0.0f, nhad + pho - _deltaBetaConstant*puchad);
59  if( _relativeIso ) iso /= cand->p4().pt();
60  return iso < isoCut;
61 }
const PflowIsolationVariables & pfIsolationVariables() const
Definition: GsfElectron.h:677
const LorentzVector & p4(P4Kind kind) const
Definition: GsfElectron.cc:225
float sumPUPt
sum pt of charged Particles not from PV (for Pu corrections)
Definition: GsfElectron.h:636
float sumPhotonEt
sum pt of PF photons // old float photonIso ;
Definition: GsfElectron.h:631
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double f[11][100]
float sumNeutralHadronEt
sum pt of neutral hadrons // old float neutralHadronIso ;
Definition: GsfElectron.h:630
static int position[264][3]
Definition: ReadPGInfo.cc:509
SuperClusterRef superCluster() const override
reference to a SuperCluster
Definition: GsfElectron.h:184
float sumChargedHadronPt
sum-pt of charged Hadron // old float chargedHadronIso ;
Definition: GsfElectron.h:629
double GsfEleDeltaBetaIsoCutStandalone::value ( const reco::CandidatePtr cand) const
finalvirtual

Implements candidate_functions::CandidateCut.

Definition at line 64 of file GsfEleDeltaBetaIsoCutStandalone.cc.

References _deltaBetaConstant, _relativeIso, f, SiStripPI::max, reco::GsfElectron::pfIsolationVariables(), reco::GsfElectron::PflowIsolationVariables::sumChargedHadronPt, reco::GsfElectron::PflowIsolationVariables::sumNeutralHadronEt, reco::GsfElectron::PflowIsolationVariables::sumPhotonEt, and reco::GsfElectron::PflowIsolationVariables::sumPUPt.

Referenced by operator()().

64  {
65  reco::GsfElectronPtr ele(cand);
67  ele->pfIsolationVariables();
68  const float chad = pfIso.sumChargedHadronPt;
69  const float nhad = pfIso.sumNeutralHadronEt;
70  const float pho = pfIso.sumPhotonEt;
71  const float puchad = pfIso.sumPUPt;
72  float iso = chad + std::max(0.0f, nhad + pho - _deltaBetaConstant*puchad);
73  if( _relativeIso ) iso /= cand->p4().pt();
74  return iso;
75 }
float sumPUPt
sum pt of charged Particles not from PV (for Pu corrections)
Definition: GsfElectron.h:636
float sumPhotonEt
sum pt of PF photons // old float photonIso ;
Definition: GsfElectron.h:631
double f[11][100]
float sumNeutralHadronEt
sum pt of neutral hadrons // old float neutralHadronIso ;
Definition: GsfElectron.h:630
float sumChargedHadronPt
sum-pt of charged Hadron // old float chargedHadronIso ;
Definition: GsfElectron.h:629

Member Data Documentation

const float GsfEleDeltaBetaIsoCutStandalone::_barrelCutOff
private

Definition at line 22 of file GsfEleDeltaBetaIsoCutStandalone.cc.

Referenced by operator()().

const float GsfEleDeltaBetaIsoCutStandalone::_deltaBetaConstant
private

Definition at line 22 of file GsfEleDeltaBetaIsoCutStandalone.cc.

Referenced by operator()(), and value().

const float GsfEleDeltaBetaIsoCutStandalone::_isoCutEBHighPt
private

Definition at line 21 of file GsfEleDeltaBetaIsoCutStandalone.cc.

Referenced by operator()().

const float GsfEleDeltaBetaIsoCutStandalone::_isoCutEBLowPt
private

Definition at line 21 of file GsfEleDeltaBetaIsoCutStandalone.cc.

Referenced by operator()().

const float GsfEleDeltaBetaIsoCutStandalone::_isoCutEEHighPt
private

Definition at line 21 of file GsfEleDeltaBetaIsoCutStandalone.cc.

Referenced by operator()().

const float GsfEleDeltaBetaIsoCutStandalone::_isoCutEELowPt
private

Definition at line 21 of file GsfEleDeltaBetaIsoCutStandalone.cc.

Referenced by operator()().

const float GsfEleDeltaBetaIsoCutStandalone::_ptCutOff
private

Definition at line 22 of file GsfEleDeltaBetaIsoCutStandalone.cc.

Referenced by operator()().

const bool GsfEleDeltaBetaIsoCutStandalone::_relativeIso
private

Definition at line 23 of file GsfEleDeltaBetaIsoCutStandalone.cc.

Referenced by operator()(), and value().