CMS 3D CMS Logo

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

Public Member Functions

CandidateType candidateType () const final
 
 GsfEleHadronicOverEMLinearCut (const edm::ParameterSet &params)
 
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 CutApplicatorBase &)=delete
 
 CutApplicatorBase (const edm::ParameterSet &c)
 
const std::string & name () const override
 
result_type operator() (const argument_type &) const final
 
virtual result_type operator() (const pat::ElectronPtr &) const
 
virtual result_type operator() (const pat::MuonPtr &) const
 
virtual result_type operator() (const pat::PhotonPtr &) const
 
virtual result_type operator() (const pat::TauPtr &) const
 
virtual result_type operator() (const reco::MuonPtr &) const
 
virtual result_type operator() (const reco::PFTauPtr &) const
 
virtual result_type operator() (const reco::PhotonPtr &) const
 
CutApplicatorBaseoperator= (const CutApplicatorBase &)=delete
 
 ~CutApplicatorBase () override
 Destructor. More...
 
- Public Member Functions inherited from candidate_functions::CandidateCut
 CandidateCut ()
 
virtual ~CandidateCut ()
 

Private Attributes

EBEECutValues constTerm_
 
EBEECutValues slopeStart_
 
EBEECutValues slopeTerm_
 

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 5 of file GsfEleHadronicOverEMLinearCut.cc.

Constructor & Destructor Documentation

◆ GsfEleHadronicOverEMLinearCut()

GsfEleHadronicOverEMLinearCut::GsfEleHadronicOverEMLinearCut ( const edm::ParameterSet params)
inline

Definition at line 7 of file GsfEleHadronicOverEMLinearCut.cc.

9  slopeTerm_(params, "slopeTerm"),
10  slopeStart_(params, "slopeStart"),
11  constTerm_(params, "constTerm") {}

Member Function Documentation

◆ candidateType()

CandidateType GsfEleHadronicOverEMLinearCut::candidateType ( ) const
inlinefinalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 17 of file GsfEleHadronicOverEMLinearCut.cc.

17 { return ELECTRON; }

References CutApplicatorBase::ELECTRON.

◆ operator()()

CutApplicatorBase::result_type GsfEleHadronicOverEMLinearCut::operator() ( const reco::GsfElectronPtr cand) const
finalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 27 of file GsfEleHadronicOverEMLinearCut.cc.

27  {
28  const float energy = cand->superCluster()->energy();
29  const float cutValue = energy > slopeStart_(cand) ? slopeTerm_(cand) * (energy - slopeStart_(cand)) + constTerm_(cand)
30  : constTerm_(cand);
31 
32  return cand->hadronicOverEm() * energy < cutValue;
33 }

References constTerm_, HCALHighEnergyHPDFilter_cfi::energy, slopeStart_, and slopeTerm_.

◆ value()

double GsfEleHadronicOverEMLinearCut::value ( const reco::CandidatePtr cand) const
finalvirtual

Implements candidate_functions::CandidateCut.

Definition at line 35 of file GsfEleHadronicOverEMLinearCut.cc.

35  {
37  const float energy = ele->superCluster()->energy();
38  return ele->hadronicOverEm() * energy;
39 }

References HCALHighEnergyHPDFilter_cfi::energy, reco::GsfElectron::hadronicOverEm(), and reco::GsfElectron::superCluster().

Member Data Documentation

◆ constTerm_

EBEECutValues GsfEleHadronicOverEMLinearCut::constTerm_
private

Definition at line 22 of file GsfEleHadronicOverEMLinearCut.cc.

Referenced by operator()().

◆ slopeStart_

EBEECutValues GsfEleHadronicOverEMLinearCut::slopeStart_
private

Definition at line 21 of file GsfEleHadronicOverEMLinearCut.cc.

Referenced by operator()().

◆ slopeTerm_

EBEECutValues GsfEleHadronicOverEMLinearCut::slopeTerm_
private

Definition at line 20 of file GsfEleHadronicOverEMLinearCut.cc.

Referenced by operator()().

CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
CutApplicatorBase::CutApplicatorBase
CutApplicatorBase()
Definition: CutApplicatorBase.h:49
GsfEleHadronicOverEMLinearCut::slopeTerm_
EBEECutValues slopeTerm_
Definition: GsfEleHadronicOverEMLinearCut.cc:20
HCALHighEnergyHPDFilter_cfi.energy
energy
Definition: HCALHighEnergyHPDFilter_cfi.py:5
cand
Definition: decayParser.h:34
GsfEleHadronicOverEMLinearCut::constTerm_
EBEECutValues constTerm_
Definition: GsfEleHadronicOverEMLinearCut.cc:22
GsfEleHadronicOverEMLinearCut::slopeStart_
EBEECutValues slopeStart_
Definition: GsfEleHadronicOverEMLinearCut.cc:21
edm::Ptr< reco::GsfElectron >
CutApplicatorBase::ELECTRON
Definition: CutApplicatorBase.h:47