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 edm::ParameterSet &c)
 
 CutApplicatorBase (const CutApplicatorBase &)=delete
 
const std::string & name () const override
 
result_type operator() (const argument_type &) const override 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
 
 ~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
}
 

Detailed Description

Definition at line 4 of file GsfEleDEtaInSeedCut.cc.

Constructor & Destructor Documentation

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

Definition at line 6 of file GsfEleDEtaInSeedCut.cc.

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

6  :
8  _dEtaInSeedCutValueEB(c.getParameter<double>("dEtaInSeedCutValueEB")),
9  _dEtaInSeedCutValueEE(c.getParameter<double>("dEtaInSeedCutValueEE")),
10  _barrelCutOff(c.getParameter<double>("barrelCutOff")){
11  }
T getParameter(std::string const &) const
const double _dEtaInSeedCutValueEB
const double _dEtaInSeedCutValueEE

Member Function Documentation

CandidateType GsfEleDEtaInSeedCut::candidateType ( ) const
inlinefinalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 17 of file GsfEleDEtaInSeedCut.cc.

References CutApplicatorBase::ELECTRON.

17  {
18  return ELECTRON;
19  }
CutApplicatorBase::result_type GsfEleDEtaInSeedCut::operator() ( const reco::GsfElectronPtr cand) const
finalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 37 of file GsfEleDEtaInSeedCut.cc.

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

Referenced by dEtaInSeed(), and GsfEleDEtaInSeedCut().

37  {
38  const float dEtaInSeedCutValue =
39  ( std::abs(cand->superCluster()->eta()) < _barrelCutOff ?
41  // return std::abs(cand->deltaEtaSeedClusterTrackAtVtx()) < dEtaInSeedCutValue;
42  return std::abs(dEtaInSeed(cand))<dEtaInSeedCutValue;
43 }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
const double _dEtaInSeedCutValueEB
const double _dEtaInSeedCutValueEE
float dEtaInSeed(const reco::GsfElectronPtr &ele)
SuperClusterRef superCluster() const override
reference to a SuperCluster
Definition: GsfElectron.h:184
double GsfEleDEtaInSeedCut::value ( const reco::CandidatePtr cand) const
finalvirtual

Implements candidate_functions::CandidateCut.

Definition at line 45 of file GsfEleDEtaInSeedCut.cc.

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

Referenced by GsfEleDEtaInSeedCut().

45  {
46  reco::GsfElectronPtr ele(cand);
47  return std::abs(dEtaInSeed(ele));
48 }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
float dEtaInSeed(const reco::GsfElectronPtr &ele)

Member Data Documentation

const double GsfEleDEtaInSeedCut::_barrelCutOff
private

Definition at line 22 of file GsfEleDEtaInSeedCut.cc.

Referenced by operator()().

const double GsfEleDEtaInSeedCut::_dEtaInSeedCutValueEB
private

Definition at line 22 of file GsfEleDEtaInSeedCut.cc.

Referenced by operator()().

const double GsfEleDEtaInSeedCut::_dEtaInSeedCutValueEE
private

Definition at line 22 of file GsfEleDEtaInSeedCut.cc.

Referenced by operator()().