CMS 3D CMS Logo

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 override final
 
 GsfEleE2x5OverE5x5Cut (const edm::ParameterSet &params)
 
result_type operator() (const reco::GsfElectronPtr &) const override final
 
double value (const reco::CandidatePtr &cand) const override 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
 
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.

References operator()(), and value().

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 reco::GsfElectron::e1x5(), reco::GsfElectron::e2x5Max(), reco::GsfElectron::e5x5(), minE1x5OverE5x5_, and minE2x5OverE5x5_.

Referenced by GsfEleE2x5OverE5x5Cut().

33  {
34 
35  return cand->e2x5Max() > minE2x5OverE5x5_(cand)*cand->e5x5() ||
36  cand->e1x5() > minE1x5OverE5x5_(cand)*cand->e5x5();
37 
38 }
float e2x5Max() const
Definition: GsfElectron.h:437
float e1x5() const
Definition: GsfElectron.h:436
float e5x5() const
Definition: GsfElectron.h:438
double GsfEleE2x5OverE5x5Cut::value ( const reco::CandidatePtr cand) const
finaloverridevirtual

Implements candidate_functions::CandidateCut.

Definition at line 40 of file GsfEleE2x5OverE5x5Cut.cc.

References reco::GsfElectron::e1x5(), and reco::GsfElectron::e2x5Max().

Referenced by GsfEleE2x5OverE5x5Cut().

40  {
41  reco::GsfElectronPtr ele(cand);
42  //btw we broke somebodies nice model of assuming every cut is 1D....
43  //what this is returning is fairly meaningless...
44  return ele->e1x5() ? ele->e2x5Max()/ele->e1x5() : 0.;
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()().