CMS 3D CMS Logo

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 final
 
 GsfEleFull5x5E2x5OverE5x5Cut (const edm::ParameterSet &c)
 
result_type operator() (const reco::GsfElectronPtr &) const final
 
double value (const reco::CandidatePtr &cand) const final
 
- Public Member Functions inherited from CutApplicatorBase
virtual result_type asCandidate (const argument_type &) const
 
 CutApplicatorBase ()
 
 CutApplicatorBase (const CutApplicatorBase &)=delete
 
 CutApplicatorBase (const edm::ParameterSet &c)
 
const std::string & name () const override
 
result_type operator() (const argument_type &) const final
 
virtual result_type operator() (const pat::ElectronPtr &) const
 
virtual result_type operator() (const pat::MuonPtr &) const
 
virtual result_type operator() (const pat::PhotonPtr &) const
 
virtual result_type operator() (const pat::TauPtr &) const
 
virtual result_type operator() (const reco::MuonPtr &) const
 
virtual result_type operator() (const reco::PFTauPtr &) const
 
virtual result_type operator() (const reco::PhotonPtr &) const
 
CutApplicatorBaseoperator= (const CutApplicatorBase &)=delete
 
 ~CutApplicatorBase () override
 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
}
 
- Public Types inherited from candidate_functions::CandidateCut
using argument_type = reco::CandidatePtr
 
using result_type = bool
 

Detailed Description

Definition at line 5 of file GsfEleFull5x5E2x5OverE5x5Cut.cc.

Constructor & Destructor Documentation

◆ GsfEleFull5x5E2x5OverE5x5Cut()

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

Definition at line 22 of file GsfEleFull5x5E2x5OverE5x5Cut.cc.

24  minE1x5OverE5x5Cut_(params, "minE1x5OverE5x5"),
25  minE2x5OverE5x5Cut_(params, "minE2x5OverE5x5") {}

Member Function Documentation

◆ candidateType()

CandidateType GsfEleFull5x5E2x5OverE5x5Cut::candidateType ( ) const
inlinefinalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 13 of file GsfEleFull5x5E2x5OverE5x5Cut.cc.

13 { return ELECTRON; }

References CutApplicatorBase::ELECTRON.

◆ operator()()

CutApplicatorBase::result_type GsfEleFull5x5E2x5OverE5x5Cut::operator() ( const reco::GsfElectronPtr cand) const
finalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 27 of file GsfEleFull5x5E2x5OverE5x5Cut.cc.

27  {
28  const double e5x5 = cand->full5x5_e5x5();
29  const double e2x5OverE5x5 = e5x5 != 0 ? cand->full5x5_e2x5Max() / e5x5 : 0;
30  const double e1x5OverE5x5 = e5x5 != 0 ? cand->full5x5_e1x5() / e5x5 : 0;
31 
32  return e1x5OverE5x5 > minE1x5OverE5x5Cut_(cand) || e2x5OverE5x5 > minE2x5OverE5x5Cut_(cand);
33 }

References minE1x5OverE5x5Cut_, and minE2x5OverE5x5Cut_.

◆ value()

double GsfEleFull5x5E2x5OverE5x5Cut::value ( const reco::CandidatePtr cand) const
finalvirtual

Implements candidate_functions::CandidateCut.

Definition at line 35 of file GsfEleFull5x5E2x5OverE5x5Cut.cc.

35  {
37  //btw we broke somebodies nice model of assuming every cut is 1D....
38  //what this is returning is fairly meaningless...
39  return ele->full5x5_e1x5() ? ele->full5x5_e2x5Max() / ele->full5x5_e1x5() : 0.;
40 }

References reco::GsfElectron::full5x5_e1x5(), and reco::GsfElectron::full5x5_e2x5Max().

Member Data Documentation

◆ minE1x5OverE5x5Cut_

EBEECutValues GsfEleFull5x5E2x5OverE5x5Cut::minE1x5OverE5x5Cut_
private

Definition at line 16 of file GsfEleFull5x5E2x5OverE5x5Cut.cc.

Referenced by operator()().

◆ minE2x5OverE5x5Cut_

EBEECutValues GsfEleFull5x5E2x5OverE5x5Cut::minE2x5OverE5x5Cut_
private

Definition at line 17 of file GsfEleFull5x5E2x5OverE5x5Cut.cc.

Referenced by operator()().

CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
CutApplicatorBase::CutApplicatorBase
CutApplicatorBase()
Definition: CutApplicatorBase.h:49
GsfEleFull5x5E2x5OverE5x5Cut::minE1x5OverE5x5Cut_
EBEECutValues minE1x5OverE5x5Cut_
Definition: GsfEleFull5x5E2x5OverE5x5Cut.cc:16
cand
Definition: decayParser.h:34
edm::Ptr< reco::GsfElectron >
GsfEleFull5x5E2x5OverE5x5Cut::minE2x5OverE5x5Cut_
EBEECutValues minE2x5OverE5x5Cut_
Definition: GsfEleFull5x5E2x5OverE5x5Cut.cc:17
CutApplicatorBase::ELECTRON
Definition: CutApplicatorBase.h:47