CMS 3D CMS Logo

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

Public Member Functions

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

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

Constructor & Destructor Documentation

GsfEleMinEcalEtCut::GsfEleMinEcalEtCut ( const edm::ParameterSet c)

Definition at line 24 of file GsfEleMinEcalEtCut.cc.

References operator()().

24  :
26  minEt_(c.getParameter<double>("minEt"))
27 {
28 
29 }
T getParameter(std::string const &) const

Member Function Documentation

CandidateType GsfEleMinEcalEtCut::candidateType ( ) const
inlinefinalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 12 of file GsfEleMinEcalEtCut.cc.

References CutApplicatorBase::ELECTRON.

12  {
13  return ELECTRON;
14  }
CutApplicatorBase::result_type GsfEleMinEcalEtCut::operator() ( const reco::GsfElectronPtr cand) const
finalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 33 of file GsfEleMinEcalEtCut.cc.

References reco::GsfElectron::ecalEnergy(), stringResolutionProvider_cfi::et, minEt_, reco::LeafCandidate::p(), and reco::LeafCandidate::pt().

Referenced by GsfEleMinEcalEtCut().

33  {
34  const reco::GsfElectron& ele = *cand;
35  const float sinTheta = ele.p()!=0 ? ele.pt()/ele.p() : 0.;
36  const float et = ele.ecalEnergy()*sinTheta;
37  return et>minEt_;
38 }
double pt() const final
transverse momentum
double p() const final
magnitude of momentum vector
et
define resolution functions of each parameter
float ecalEnergy() const
Definition: GsfElectron.h:860
double GsfEleMinEcalEtCut::value ( const reco::CandidatePtr cand) const
finalvirtual

Implements candidate_functions::CandidateCut.

Definition at line 40 of file GsfEleMinEcalEtCut.cc.

References reco::GsfElectron::ecalEnergy(), stringResolutionProvider_cfi::et, reco::LeafCandidate::p(), and reco::LeafCandidate::pt().

40  {
41  const reco::GsfElectronPtr elePtr(cand);
42  const reco::GsfElectron& ele = *elePtr;
43  const float sinTheta = ele.p()!=0 ? ele.pt()/ele.p() : 0.;
44  const float et = ele.ecalEnergy()*sinTheta;
45  return et;
46 }
double pt() const final
transverse momentum
double p() const final
magnitude of momentum vector
et
define resolution functions of each parameter
float ecalEnergy() const
Definition: GsfElectron.h:860

Member Data Documentation

const double GsfEleMinEcalEtCut::minEt_
private

Definition at line 17 of file GsfEleMinEcalEtCut.cc.

Referenced by operator()().