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

Public Member Functions

CandidateType candidateType () const overridefinal
 
 GsfEleFull5x5E2x5OverE5x5Cut (const edm::ParameterSet &c)
 
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 minE1x5OverE5x5Cut_
 
EBEECutValues minE2x5OverE5x5Cut_
 

Additional Inherited Members

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

Detailed Description

Definition at line 6 of file GsfEleFull5x5E2x5OverE5x5Cut.cc.

Constructor & Destructor Documentation

GsfEleFull5x5E2x5OverE5x5Cut::GsfEleFull5x5E2x5OverE5x5Cut ( const edm::ParameterSet c)

Definition at line 30 of file GsfEleFull5x5E2x5OverE5x5Cut.cc.

30  :
31  CutApplicatorBase(params),
32  minE1x5OverE5x5Cut_(params,"minE1x5OverE5x5"),
33  minE2x5OverE5x5Cut_(params,"minE2x5OverE5x5"){
34 }

Member Function Documentation

CandidateType GsfEleFull5x5E2x5OverE5x5Cut::candidateType ( ) const
inlinefinaloverridevirtual

Reimplemented from CutApplicatorBase.

Definition at line 14 of file GsfEleFull5x5E2x5OverE5x5Cut.cc.

References CutApplicatorBase::ELECTRON.

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

Reimplemented from CutApplicatorBase.

Definition at line 39 of file GsfEleFull5x5E2x5OverE5x5Cut.cc.

References minE1x5OverE5x5Cut_, and minE2x5OverE5x5Cut_.

39  {
40 
41  const double e5x5 = cand->full5x5_e5x5();
42  const double e2x5OverE5x5 = e5x5!=0 ? cand->full5x5_e2x5Max()/e5x5 : 0;
43  const double e1x5OverE5x5 = e5x5!=0 ? cand->full5x5_e1x5()/e5x5 : 0;
44 
45  return e1x5OverE5x5 > minE1x5OverE5x5Cut_(cand) || e2x5OverE5x5 > minE2x5OverE5x5Cut_(cand);
46 
47 }
double GsfEleFull5x5E2x5OverE5x5Cut::value ( const reco::CandidatePtr cand) const
finaloverridevirtual

Implements candidate_functions::CandidateCut.

Definition at line 50 of file GsfEleFull5x5E2x5OverE5x5Cut.cc.

50  {
51  reco::GsfElectronPtr ele(cand);
52  return ele->full5x5_e2x5Max()/ele->full5x5_e1x5();
53 }

Member Data Documentation

EBEECutValues GsfEleFull5x5E2x5OverE5x5Cut::minE1x5OverE5x5Cut_
private

Definition at line 19 of file GsfEleFull5x5E2x5OverE5x5Cut.cc.

Referenced by operator()().

EBEECutValues GsfEleFull5x5E2x5OverE5x5Cut::minE2x5OverE5x5Cut_
private

Definition at line 20 of file GsfEleFull5x5E2x5OverE5x5Cut.cc.

Referenced by operator()().