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
GsfEleTrkPtIsoCut Class Reference
Inheritance diagram for GsfEleTrkPtIsoCut:
CutApplicatorBase candidate_functions::CandidateCut

Public Member Functions

CandidateType candidateType () const overridefinal
 
 GsfEleTrkPtIsoCut (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

EBEECutValues constTerm_
 
edm::Handle< double > rhoHandle_
 
EBEECutValues slopeStart_
 
EBEECutValues slopeTerm_
 

Additional Inherited Members

- Public Types inherited from CutApplicatorBase
enum  CandidateType {
  NONE, ELECTRON, MUON, PHOTON,
  TAU, PATELECTRON, PATMUON, PATPHOTON,
  PATTAU
}
 

Detailed Description

Definition at line 9 of file GsfEleTrkPtIsoCut.cc.

Constructor & Destructor Documentation

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

Definition at line 34 of file GsfEleTrkPtIsoCut.cc.

34  :
35  CutApplicatorBase(params),
36  slopeTerm_(params,"slopeTerm"),
37  slopeStart_(params,"slopeStart"),
38  constTerm_(params,"constTerm")
39 {
40 
41 }
EBEECutValues slopeStart_
EBEECutValues constTerm_
EBEECutValues slopeTerm_
CutApplicatorBase(const edm::ParameterSet &c)

Member Function Documentation

CandidateType GsfEleTrkPtIsoCut::candidateType ( ) const
inlinefinaloverridevirtual

Reimplemented from CutApplicatorBase.

Definition at line 15 of file GsfEleTrkPtIsoCut.cc.

References CutApplicatorBase::ELECTRON.

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

Reimplemented from CutApplicatorBase.

Definition at line 46 of file GsfEleTrkPtIsoCut.cc.

References constTerm_, slopeStart_, and slopeTerm_.

46  {
47 
48  const float isolTrkPt = cand->dr03TkSumPt();
49 
50  const float et = cand->et();
51  const float cutValue = et > slopeStart_(cand) ? slopeTerm_(cand)*(et-slopeStart_(cand)) + constTerm_(cand) : constTerm_(cand);
52  return isolTrkPt < cutValue;
53 }
EBEECutValues slopeStart_
EBEECutValues constTerm_
EBEECutValues slopeTerm_

Member Data Documentation

EBEECutValues GsfEleTrkPtIsoCut::constTerm_
private

Definition at line 23 of file GsfEleTrkPtIsoCut.cc.

Referenced by operator()().

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

Definition at line 26 of file GsfEleTrkPtIsoCut.cc.

EBEECutValues GsfEleTrkPtIsoCut::slopeStart_
private

Definition at line 22 of file GsfEleTrkPtIsoCut.cc.

Referenced by operator()().

EBEECutValues GsfEleTrkPtIsoCut::slopeTerm_
private

Definition at line 21 of file GsfEleTrkPtIsoCut.cc.

Referenced by operator()().