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

Public Member Functions

CandidateType candidateType () const overridefinal
 
 GsfEleHadronicOverEMLinearCut (const edm::ParameterSet &params)
 
result_type operator() (const reco::GsfElectronPtr &) const overridefinal
 
double value (const reco::CandidatePtr &cand) const overridefinal
 
- Public Member Functions inherited from CutApplicatorBase
virtual result_type asCandidate (const argument_type &) const
 
 CutApplicatorBase ()
 
 CutApplicatorBase (const edm::ParameterSet &c)
 
 CutApplicatorBase (const CutApplicatorBase &)=delete
 
virtual 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
 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
}
 

Detailed Description

Definition at line 4 of file GsfEleHadronicOverEMLinearCut.cc.

Constructor & Destructor Documentation

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

Definition at line 6 of file GsfEleHadronicOverEMLinearCut.cc.

6  :
7  CutApplicatorBase(params),
8  slopeTerm_(params,"slopeTerm"),
9  slopeStart_(params,"slopeStart"),
10  constTerm_(params,"constTerm"){}

Member Function Documentation

CandidateType GsfEleHadronicOverEMLinearCut::candidateType ( ) const
inlinefinaloverridevirtual

Reimplemented from CutApplicatorBase.

Definition at line 16 of file GsfEleHadronicOverEMLinearCut.cc.

References CutApplicatorBase::ELECTRON.

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

Reimplemented from CutApplicatorBase.

Definition at line 33 of file GsfEleHadronicOverEMLinearCut.cc.

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

33  {
34 
35  const float energy = cand->superCluster()->energy();
36  const float cutValue = energy > slopeStart_(cand) ? slopeTerm_(cand)*(energy-slopeStart_(cand)) + constTerm_(cand) : constTerm_(cand);
37 
38  return cand->hadronicOverEm()*energy < cutValue;
39 }
double GsfEleHadronicOverEMLinearCut::value ( const reco::CandidatePtr cand) const
finaloverridevirtual

Implements candidate_functions::CandidateCut.

Definition at line 42 of file GsfEleHadronicOverEMLinearCut.cc.

References relval_parameters_module::energy.

42  {
43  reco::GsfElectronPtr ele(cand);
44  const float energy = ele->superCluster()->energy();
45  return ele->hadronicOverEm()*energy;
46 }

Member Data Documentation

EBEECutValues GsfEleHadronicOverEMLinearCut::constTerm_
private

Definition at line 23 of file GsfEleHadronicOverEMLinearCut.cc.

Referenced by operator()().

EBEECutValues GsfEleHadronicOverEMLinearCut::slopeStart_
private

Definition at line 22 of file GsfEleHadronicOverEMLinearCut.cc.

Referenced by operator()().

EBEECutValues GsfEleHadronicOverEMLinearCut::slopeTerm_
private

Definition at line 21 of file GsfEleHadronicOverEMLinearCut.cc.

Referenced by operator()().