CMS 3D CMS Logo

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

Public Member Functions

CandidateType candidateType () const final
 
 GsfEleNormalizedGsfChi2Cut (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 normalizedGsfChi2CutValueEB_
 
const double normalizedGsfChi2CutValueEE_
 

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

Constructor & Destructor Documentation

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

Definition at line 6 of file GsfEleNormalizedGsfChi2Cut.cc.

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

6  :
8  normalizedGsfChi2CutValueEB_(c.getParameter<double>("normalizedGsfChi2CutValueEB")),
9  normalizedGsfChi2CutValueEE_(c.getParameter<double>("normalizedGsfChi2CutValueEE")),
10  barrelCutOff_(c.getParameter<double>("barrelCutOff")){
11  }
T getParameter(std::string const &) const

Member Function Documentation

CandidateType GsfEleNormalizedGsfChi2Cut::candidateType ( ) const
inlinefinalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 17 of file GsfEleNormalizedGsfChi2Cut.cc.

References CutApplicatorBase::ELECTRON.

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

Reimplemented from CutApplicatorBase.

Definition at line 35 of file GsfEleNormalizedGsfChi2Cut.cc.

References funct::abs(), barrelCutOff_, normalizedGsfChi2(), normalizedGsfChi2CutValueEB_, normalizedGsfChi2CutValueEE_, and reco::GsfElectron::superCluster().

Referenced by GsfEleNormalizedGsfChi2Cut(), and normalizedGsfChi2().

35  {
36  const float normalizedGsfChi2CutValue =
37  ( std::abs(cand->superCluster()->eta()) < barrelCutOff_ ?
39 
40  return std::abs(normalizedGsfChi2(cand)) < normalizedGsfChi2CutValue;
41 }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
float normalizedGsfChi2(const reco::GsfElectronPtr &ele)
SuperClusterRef superCluster() const override
reference to a SuperCluster
Definition: GsfElectron.h:184
double GsfEleNormalizedGsfChi2Cut::value ( const reco::CandidatePtr cand) const
finalvirtual

Implements candidate_functions::CandidateCut.

Definition at line 43 of file GsfEleNormalizedGsfChi2Cut.cc.

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

Referenced by GsfEleNormalizedGsfChi2Cut().

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

Member Data Documentation

const double GsfEleNormalizedGsfChi2Cut::barrelCutOff_
private

Definition at line 22 of file GsfEleNormalizedGsfChi2Cut.cc.

Referenced by operator()().

const double GsfEleNormalizedGsfChi2Cut::normalizedGsfChi2CutValueEB_
private

Definition at line 22 of file GsfEleNormalizedGsfChi2Cut.cc.

Referenced by operator()().

const double GsfEleNormalizedGsfChi2Cut::normalizedGsfChi2CutValueEE_
private

Definition at line 22 of file GsfEleNormalizedGsfChi2Cut.cc.

Referenced by operator()().