CMS 3D CMS Logo

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

Public Member Functions

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

const double _barrelCutOff
 
const double _dPhiInCutValueEB
 
const double _dPhiInCutValueEE
 

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 GsfEleDPhiInCut.cc.

Constructor & Destructor Documentation

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

Definition at line 7 of file GsfEleDPhiInCut.cc.

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

7  :
9  _dPhiInCutValueEB(c.getParameter<double>("dPhiInCutValueEB")),
10  _dPhiInCutValueEE(c.getParameter<double>("dPhiInCutValueEE")),
11  _barrelCutOff(c.getParameter<double>("barrelCutOff")) {
12  }
T getParameter(std::string const &) const
const double _dPhiInCutValueEE
const double _dPhiInCutValueEB
const double _barrelCutOff

Member Function Documentation

CandidateType GsfEleDPhiInCut::candidateType ( ) const
inlinefinalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 18 of file GsfEleDPhiInCut.cc.

References CutApplicatorBase::ELECTRON.

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

Reimplemented from CutApplicatorBase.

Definition at line 32 of file GsfEleDPhiInCut.cc.

References _barrelCutOff, _dPhiInCutValueEB, _dPhiInCutValueEE, funct::abs(), reco::GsfElectron::deltaPhiSuperClusterTrackAtVtx(), and reco::GsfElectron::superCluster().

Referenced by GsfEleDPhiInCut().

32  {
33  const float dPhiInCutValue =
34  ( std::abs(cand->superCluster()->position().eta()) < _barrelCutOff ?
36  return std::abs(cand->deltaPhiSuperClusterTrackAtVtx()) < dPhiInCutValue;
37 }
const double _dPhiInCutValueEE
const double _dPhiInCutValueEB
float deltaPhiSuperClusterTrackAtVtx() const
Definition: GsfElectron.h:252
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
const double _barrelCutOff
SuperClusterRef superCluster() const override
reference to a SuperCluster
Definition: GsfElectron.h:184
double GsfEleDPhiInCut::value ( const reco::CandidatePtr cand) const
finalvirtual

Implements candidate_functions::CandidateCut.

Definition at line 39 of file GsfEleDPhiInCut.cc.

References funct::abs(), and reco::GsfElectron::deltaPhiSuperClusterTrackAtVtx().

Referenced by GsfEleDPhiInCut().

39  {
40  reco::GsfElectronPtr ele(cand);
41  return std::abs(ele->deltaPhiSuperClusterTrackAtVtx());
42 }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22

Member Data Documentation

const double GsfEleDPhiInCut::_barrelCutOff
private

Definition at line 23 of file GsfEleDPhiInCut.cc.

Referenced by operator()().

const double GsfEleDPhiInCut::_dPhiInCutValueEB
private

Definition at line 23 of file GsfEleDPhiInCut.cc.

Referenced by operator()().

const double GsfEleDPhiInCut::_dPhiInCutValueEE
private

Definition at line 23 of file GsfEleDPhiInCut.cc.

Referenced by operator()().