CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
GsfEleDEtaInSeedCut Class Reference
Inheritance diagram for GsfEleDEtaInSeedCut:
CutApplicatorBase candidate_functions::CandidateCut

Public Member Functions

CandidateType candidateType () const final
 
 GsfEleDEtaInSeedCut (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

const double _barrelCutOff
 
const double _dEtaInSeedCutValueEB
 
const double _dEtaInSeedCutValueEE
 

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 4 of file GsfEleDEtaInSeedCut.cc.

Constructor & Destructor Documentation

◆ GsfEleDEtaInSeedCut()

GsfEleDEtaInSeedCut::GsfEleDEtaInSeedCut ( const edm::ParameterSet c)
inline

Definition at line 6 of file GsfEleDEtaInSeedCut.cc.

8  _dEtaInSeedCutValueEB(c.getParameter<double>("dEtaInSeedCutValueEB")),
9  _dEtaInSeedCutValueEE(c.getParameter<double>("dEtaInSeedCutValueEE")),
10  _barrelCutOff(c.getParameter<double>("barrelCutOff")) {}

Member Function Documentation

◆ candidateType()

CandidateType GsfEleDEtaInSeedCut::candidateType ( ) const
inlinefinalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 16 of file GsfEleDEtaInSeedCut.cc.

16 { return ELECTRON; }

References CutApplicatorBase::ELECTRON.

◆ operator()()

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

Reimplemented from CutApplicatorBase.

Definition at line 31 of file GsfEleDEtaInSeedCut.cc.

31  {
32  const float dEtaInSeedCutValue =
34  // return std::abs(cand->deltaEtaSeedClusterTrackAtVtx()) < dEtaInSeedCutValue;
35  return std::abs(dEtaInSeed(cand)) < dEtaInSeedCutValue;
36 }

References _barrelCutOff, _dEtaInSeedCutValueEB, _dEtaInSeedCutValueEE, funct::abs(), and dEtaInSeed().

◆ value()

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

Implements candidate_functions::CandidateCut.

Definition at line 38 of file GsfEleDEtaInSeedCut.cc.

38  {
40  return std::abs(dEtaInSeed(ele));
41 }

References funct::abs(), and dEtaInSeed().

Member Data Documentation

◆ _barrelCutOff

const double GsfEleDEtaInSeedCut::_barrelCutOff
private

Definition at line 19 of file GsfEleDEtaInSeedCut.cc.

Referenced by operator()().

◆ _dEtaInSeedCutValueEB

const double GsfEleDEtaInSeedCut::_dEtaInSeedCutValueEB
private

Definition at line 19 of file GsfEleDEtaInSeedCut.cc.

Referenced by operator()().

◆ _dEtaInSeedCutValueEE

const double GsfEleDEtaInSeedCut::_dEtaInSeedCutValueEE
private

Definition at line 19 of file GsfEleDEtaInSeedCut.cc.

Referenced by operator()().

CutApplicatorBase::CutApplicatorBase
CutApplicatorBase()
Definition: CutApplicatorBase.h:49
GsfEleDEtaInSeedCut::_barrelCutOff
const double _barrelCutOff
Definition: GsfEleDEtaInSeedCut.cc:19
dEtaInSeed
float dEtaInSeed(const reco::GsfElectronPtr &ele)
Definition: GsfEleDEtaInSeedCut.cc:25
cand
Definition: decayParser.h:34
GsfEleDEtaInSeedCut::_dEtaInSeedCutValueEB
const double _dEtaInSeedCutValueEB
Definition: GsfEleDEtaInSeedCut.cc:19
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
GsfEleDEtaInSeedCut::_dEtaInSeedCutValueEE
const double _dEtaInSeedCutValueEE
Definition: GsfEleDEtaInSeedCut.cc:19
edm::Ptr< reco::GsfElectron >
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
CutApplicatorBase::ELECTRON
Definition: CutApplicatorBase.h:47