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 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

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 9 of file GsfEleTrkPtIsoCut.cc.

Constructor & Destructor Documentation

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

Definition at line 36 of file GsfEleTrkPtIsoCut.cc.

References operator()().

36  :
37  CutApplicatorBase(params),
38  slopeTerm_(params,"slopeTerm"),
39  slopeStart_(params,"slopeStart"),
40  constTerm_(params,"constTerm"),
41  useHEEPIso_(params.getParameter<bool>("useHEEPIso"))
42 {
43 
44 }
EBEECutValues slopeStart_
EBEECutValues constTerm_
EBEECutValues slopeTerm_

Member Function Documentation

CandidateType GsfEleTrkPtIsoCut::candidateType ( ) const
inlinefinalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 17 of file GsfEleTrkPtIsoCut.cc.

References CutApplicatorBase::ELECTRON.

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

Reimplemented from CutApplicatorBase.

Definition at line 49 of file GsfEleTrkPtIsoCut.cc.

References constTerm_, reco::GsfElectron::dr03TkSumPt(), reco::GsfElectron::dr03TkSumPtHEEP(), stringResolutionProvider_cfi::et, reco::LeafCandidate::et(), slopeStart_, slopeTerm_, useHEEPIso_, and value().

Referenced by GsfEleTrkPtIsoCut().

49  {
50 
51  const float isolTrkPt = useHEEPIso_ ? cand->dr03TkSumPtHEEP() : cand->dr03TkSumPt();
52 
53  const float et = cand->et();
54  const float cutValue = et > slopeStart_(cand) ? slopeTerm_(cand)*(et-slopeStart_(cand)) + constTerm_(cand) : constTerm_(cand);
55  return isolTrkPt < cutValue;
56 }
EBEECutValues slopeStart_
EBEECutValues constTerm_
float dr03TkSumPtHEEP() const
Definition: GsfElectron.h:553
double et() const final
transverse energy
float dr03TkSumPt() const
Definition: GsfElectron.h:552
EBEECutValues slopeTerm_
et
define resolution functions of each parameter
double GsfEleTrkPtIsoCut::value ( const reco::CandidatePtr cand) const
finalvirtual

Implements candidate_functions::CandidateCut.

Definition at line 59 of file GsfEleTrkPtIsoCut.cc.

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

Referenced by operator()().

59  {
60  reco::GsfElectronPtr ele(cand);
61  return useHEEPIso_ ? ele->dr03TkSumPtHEEP() : ele->dr03TkSumPt();
62 }

Member Data Documentation

EBEECutValues GsfEleTrkPtIsoCut::constTerm_
private

Definition at line 25 of file GsfEleTrkPtIsoCut.cc.

Referenced by operator()().

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

Definition at line 28 of file GsfEleTrkPtIsoCut.cc.

EBEECutValues GsfEleTrkPtIsoCut::slopeStart_
private

Definition at line 24 of file GsfEleTrkPtIsoCut.cc.

Referenced by operator()().

EBEECutValues GsfEleTrkPtIsoCut::slopeTerm_
private

Definition at line 23 of file GsfEleTrkPtIsoCut.cc.

Referenced by operator()().

bool GsfEleTrkPtIsoCut::useHEEPIso_
private

Definition at line 26 of file GsfEleTrkPtIsoCut.cc.

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