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 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 _dPhiInCutValueEB
 
const double _dPhiInCutValueEE
 

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

Constructor & Destructor Documentation

◆ GsfEleDPhiInCut()

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

Definition at line 7 of file GsfEleDPhiInCut.cc.

9  _dPhiInCutValueEB(c.getParameter<double>("dPhiInCutValueEB")),
10  _dPhiInCutValueEE(c.getParameter<double>("dPhiInCutValueEE")),
11  _barrelCutOff(c.getParameter<double>("barrelCutOff")) {}

Member Function Documentation

◆ candidateType()

CandidateType GsfEleDPhiInCut::candidateType ( ) const
inlinefinalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 17 of file GsfEleDPhiInCut.cc.

17 { return ELECTRON; }

References CutApplicatorBase::ELECTRON.

◆ operator()()

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

Reimplemented from CutApplicatorBase.

Definition at line 25 of file GsfEleDPhiInCut.cc.

25  {
26  const float dPhiInCutValue =
27  (std::abs(cand->superCluster()->position().eta()) < _barrelCutOff ? _dPhiInCutValueEB : _dPhiInCutValueEE);
28  return std::abs(cand->deltaPhiSuperClusterTrackAtVtx()) < dPhiInCutValue;
29 }

References _barrelCutOff, _dPhiInCutValueEB, _dPhiInCutValueEE, and funct::abs().

◆ value()

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

Implements candidate_functions::CandidateCut.

Definition at line 31 of file GsfEleDPhiInCut.cc.

31  {
33  return std::abs(ele->deltaPhiSuperClusterTrackAtVtx());
34 }

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

Member Data Documentation

◆ _barrelCutOff

const double GsfEleDPhiInCut::_barrelCutOff
private

Definition at line 20 of file GsfEleDPhiInCut.cc.

Referenced by operator()().

◆ _dPhiInCutValueEB

const double GsfEleDPhiInCut::_dPhiInCutValueEB
private

Definition at line 20 of file GsfEleDPhiInCut.cc.

Referenced by operator()().

◆ _dPhiInCutValueEE

const double GsfEleDPhiInCut::_dPhiInCutValueEE
private

Definition at line 20 of file GsfEleDPhiInCut.cc.

Referenced by operator()().

GsfEleDPhiInCut::_dPhiInCutValueEB
const double _dPhiInCutValueEB
Definition: GsfEleDPhiInCut.cc:20
GsfEleDPhiInCut::_barrelCutOff
const double _barrelCutOff
Definition: GsfEleDPhiInCut.cc:20
CutApplicatorBase::CutApplicatorBase
CutApplicatorBase()
Definition: CutApplicatorBase.h:49
GsfEleDPhiInCut::_dPhiInCutValueEE
const double _dPhiInCutValueEE
Definition: GsfEleDPhiInCut.cc:20
cand
Definition: decayParser.h:32
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
edm::Ptr< reco::GsfElectron >
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
CutApplicatorBase::ELECTRON
Definition: CutApplicatorBase.h:47