test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 overridefinal
 
 GsfEleDeltaBetaIsoCutStandalone (const edm::ParameterSet &c)
 
result_type operator() (const reco::GsfElectronPtr &) const overridefinal
 
- Public Member Functions inherited from CutApplicatorBase
virtual result_type asCandidate (const argument_type &) const
 
 CutApplicatorBase (const edm::ParameterSet &c)
 
 CutApplicatorBase (const CutApplicatorBase &)=delete
 
const std::string & name () const
 
virtual result_type operator() (const argument_type &) const 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
 
virtual ~CutApplicatorBase ()
 Destructor. More...
 
- Public Member Functions inherited from candidate_functions::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
}
 

Detailed Description

Definition at line 8 of file GsfEleDeltaBetaIsoCutStandalone.cc.

Constructor & Destructor Documentation

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

Definition at line 29 of file GsfEleDeltaBetaIsoCutStandalone.cc.

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

Member Function Documentation

CandidateType GsfEleDeltaBetaIsoCutStandalone::candidateType ( ) const
inlinefinaloverridevirtual

Reimplemented from CutApplicatorBase.

Definition at line 14 of file GsfEleDeltaBetaIsoCutStandalone.cc.

References CutApplicatorBase::ELECTRON.

14  {
15  return ELECTRON;
16  }
CutApplicatorBase::result_type GsfEleDeltaBetaIsoCutStandalone::operator() ( const reco::GsfElectronPtr cand) const
finaloverridevirtual

Reimplemented from CutApplicatorBase.

Definition at line 43 of file GsfEleDeltaBetaIsoCutStandalone.cc.

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

43  {
44  const float isoCut =
45  ( cand->p4().pt() < _ptCutOff ?
46  ( std::abs(cand->superCluster()->position().eta()) < _barrelCutOff ?
48  ( std::abs(cand->superCluster()->position().eta()) < _barrelCutOff ?
51  cand->pfIsolationVariables();
52  const float chad = pfIso.sumChargedHadronPt;
53  const float nhad = pfIso.sumNeutralHadronEt;
54  const float pho = pfIso.sumPhotonEt;
55  const float puchad = pfIso.sumPUPt;
56  float iso = chad + std::max(0.0f, nhad + pho - _deltaBetaConstant*puchad);
57  if( _relativeIso ) iso /= cand->p4().pt();
58  return iso < isoCut;
59 }
float sumPUPt
sum pt of charged Particles not from PV (for Pu corrections)
Definition: GsfElectron.h:563
T eta() const
float sumPhotonEt
sum pt of PF photons // old float photonIso ;
Definition: GsfElectron.h:558
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:557
static int position[264][3]
Definition: ReadPGInfo.cc:509
float sumChargedHadronPt
sum-pt of charged Hadron // old float chargedHadronIso ;
Definition: GsfElectron.h:556

Member Data Documentation

const float GsfEleDeltaBetaIsoCutStandalone::_barrelCutOff
private

Definition at line 20 of file GsfEleDeltaBetaIsoCutStandalone.cc.

Referenced by operator()().

const float GsfEleDeltaBetaIsoCutStandalone::_deltaBetaConstant
private

Definition at line 20 of file GsfEleDeltaBetaIsoCutStandalone.cc.

Referenced by operator()().

const float GsfEleDeltaBetaIsoCutStandalone::_isoCutEBHighPt
private

Definition at line 19 of file GsfEleDeltaBetaIsoCutStandalone.cc.

Referenced by operator()().

const float GsfEleDeltaBetaIsoCutStandalone::_isoCutEBLowPt
private

Definition at line 19 of file GsfEleDeltaBetaIsoCutStandalone.cc.

Referenced by operator()().

const float GsfEleDeltaBetaIsoCutStandalone::_isoCutEEHighPt
private

Definition at line 19 of file GsfEleDeltaBetaIsoCutStandalone.cc.

Referenced by operator()().

const float GsfEleDeltaBetaIsoCutStandalone::_isoCutEELowPt
private

Definition at line 19 of file GsfEleDeltaBetaIsoCutStandalone.cc.

Referenced by operator()().

const float GsfEleDeltaBetaIsoCutStandalone::_ptCutOff
private

Definition at line 20 of file GsfEleDeltaBetaIsoCutStandalone.cc.

Referenced by operator()().

const bool GsfEleDeltaBetaIsoCutStandalone::_relativeIso
private

Definition at line 21 of file GsfEleDeltaBetaIsoCutStandalone.cc.

Referenced by operator()().