CMS 3D CMS Logo

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

Public Member Functions

CandidateType candidateType () const final
 
 GsfEleTrkPtIsoCut (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 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_
 
edm::Handle< double > rhoHandle_
 
EBEECutValues slopeStart_
 
EBEECutValues slopeTerm_
 
bool useHEEPIso_
 

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 GsfEleTrkPtIsoCut.cc.

Constructor & Destructor Documentation

◆ GsfEleTrkPtIsoCut()

GsfEleTrkPtIsoCut::GsfEleTrkPtIsoCut ( const edm::ParameterSet c)

Definition at line 29 of file GsfEleTrkPtIsoCut.cc.

31  slopeTerm_(params, "slopeTerm"),
32  slopeStart_(params, "slopeStart"),
33  constTerm_(params, "constTerm"),
34  useHEEPIso_(params.getParameter<bool>("useHEEPIso")) {}

Member Function Documentation

◆ candidateType()

CandidateType GsfEleTrkPtIsoCut::candidateType ( ) const
inlinefinalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 16 of file GsfEleTrkPtIsoCut.cc.

16 { return ELECTRON; }

References CutApplicatorBase::ELECTRON.

◆ operator()()

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

Reimplemented from CutApplicatorBase.

Definition at line 36 of file GsfEleTrkPtIsoCut.cc.

36  {
37  const float isolTrkPt = useHEEPIso_ ? cand->dr03TkSumPtHEEP() : cand->dr03TkSumPt();
38 
39  const float et = cand->et();
40  const float cutValue =
42  return isolTrkPt < cutValue;
43 }

References constTerm_, EgHLTOffHistBins_cfi::et, slopeStart_, slopeTerm_, and useHEEPIso_.

◆ value()

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

Implements candidate_functions::CandidateCut.

Definition at line 45 of file GsfEleTrkPtIsoCut.cc.

45  {
47  return useHEEPIso_ ? ele->dr03TkSumPtHEEP() : ele->dr03TkSumPt();
48 }

References reco::GsfElectron::dr03TkSumPt(), reco::GsfElectron::dr03TkSumPtHEEP(), and useHEEPIso_.

Member Data Documentation

◆ constTerm_

EBEECutValues GsfEleTrkPtIsoCut::constTerm_
private

Definition at line 21 of file GsfEleTrkPtIsoCut.cc.

Referenced by operator()().

◆ rhoHandle_

edm::Handle<double> GsfEleTrkPtIsoCut::rhoHandle_
private

Definition at line 24 of file GsfEleTrkPtIsoCut.cc.

◆ slopeStart_

EBEECutValues GsfEleTrkPtIsoCut::slopeStart_
private

Definition at line 20 of file GsfEleTrkPtIsoCut.cc.

Referenced by operator()().

◆ slopeTerm_

EBEECutValues GsfEleTrkPtIsoCut::slopeTerm_
private

Definition at line 19 of file GsfEleTrkPtIsoCut.cc.

Referenced by operator()().

◆ useHEEPIso_

bool GsfEleTrkPtIsoCut::useHEEPIso_
private

Definition at line 22 of file GsfEleTrkPtIsoCut.cc.

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

GsfEleTrkPtIsoCut::useHEEPIso_
bool useHEEPIso_
Definition: GsfEleTrkPtIsoCut.cc:22
GsfEleTrkPtIsoCut::constTerm_
EBEECutValues constTerm_
Definition: GsfEleTrkPtIsoCut.cc:21
CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
CutApplicatorBase::CutApplicatorBase
CutApplicatorBase()
Definition: CutApplicatorBase.h:49
GsfEleTrkPtIsoCut::slopeStart_
EBEECutValues slopeStart_
Definition: GsfEleTrkPtIsoCut.cc:20
GsfEleTrkPtIsoCut::slopeTerm_
EBEECutValues slopeTerm_
Definition: GsfEleTrkPtIsoCut.cc:19
cand
Definition: decayParser.h:32
EgHLTOffHistBins_cfi.et
et
Definition: EgHLTOffHistBins_cfi.py:8
edm::Ptr< reco::GsfElectron >
CutApplicatorBase::ELECTRON
Definition: CutApplicatorBase.h:47