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

Public Member Functions

CandidateType candidateType () const overridefinal
 
 GsfEleE2x5OverE5x5Cut (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 minE1x5OverE5x5_
 
EBEECutValues minE2x5OverE5x5_
 

Additional Inherited Members

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

Detailed Description

Definition at line 5 of file GsfEleE2x5OverE5x5Cut.cc.

Constructor & Destructor Documentation

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

Definition at line 7 of file GsfEleE2x5OverE5x5Cut.cc.

7  :
8  CutApplicatorBase(params),
9  minE1x5OverE5x5_(params,"minE1x5OverE5x5"),
10  minE2x5OverE5x5_(params,"minE2x5OverE5x5"){}

Member Function Documentation

CandidateType GsfEleE2x5OverE5x5Cut::candidateType ( ) const
inlinefinaloverridevirtual

Reimplemented from CutApplicatorBase.

Definition at line 16 of file GsfEleE2x5OverE5x5Cut.cc.

References CutApplicatorBase::ELECTRON.

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

Reimplemented from CutApplicatorBase.

Definition at line 33 of file GsfEleE2x5OverE5x5Cut.cc.

References minE1x5OverE5x5_, and minE2x5OverE5x5_.

33  {
34 
35  return cand->e2x5Max() > minE2x5OverE5x5_(cand)*cand->e5x5() ||
36  cand->e1x5() > minE1x5OverE5x5_(cand)*cand->e5x5();
37 
38 }
double GsfEleE2x5OverE5x5Cut::value ( const reco::CandidatePtr cand) const
finaloverridevirtual

Implements candidate_functions::CandidateCut.

Definition at line 40 of file GsfEleE2x5OverE5x5Cut.cc.

40  {
41  reco::GsfElectronPtr ele(cand);
42  // here return the ratio since it is a decent encoding of the value of
43  // both variables
44  return ele->e2x5Max()/ele->e1x5();
45 }

Member Data Documentation

EBEECutValues GsfEleE2x5OverE5x5Cut::minE1x5OverE5x5_
private

Definition at line 21 of file GsfEleE2x5OverE5x5Cut.cc.

Referenced by operator()().

EBEECutValues GsfEleE2x5OverE5x5Cut::minE2x5OverE5x5_
private

Definition at line 22 of file GsfEleE2x5OverE5x5Cut.cc.

Referenced by operator()().