CMS 3D CMS Logo

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

Public Member Functions

CandidateType candidateType () const final
 
 GsfEleEBEECut (const edm::ParameterSet &c)
 
result_type operator() (const reco::GsfElectronPtr &cand) 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 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

StringObjectFunction< reco::GsfElectroncutFormula_
 
const EBEECutValuesT< double > cutValue_
 

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 6 of file GsfEleEBEECut.cc.

Constructor & Destructor Documentation

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

Definition at line 8 of file GsfEleEBEECut.cc.

9  : CutApplicatorBase(c), cutFormula_(c.getParameter<std::string>("cutString")), cutValue_(c, "cutValue") {}
T getParameter(std::string const &) const
const EBEECutValuesT< double > cutValue_
StringObjectFunction< reco::GsfElectron > cutFormula_

Member Function Documentation

CandidateType GsfEleEBEECut::candidateType ( ) const
inlinefinalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 18 of file GsfEleEBEECut.cc.

References CutApplicatorBase::ELECTRON.

result_type GsfEleEBEECut::operator() ( const reco::GsfElectronPtr cand) const
inlinefinalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 11 of file GsfEleEBEECut.cc.

References cutFormula_, and cutValue_.

11 { return cutFormula_(*cand) < cutValue_(cand); }
const EBEECutValuesT< double > cutValue_
StringObjectFunction< reco::GsfElectron > cutFormula_
double GsfEleEBEECut::value ( const reco::CandidatePtr cand) const
inlinefinalvirtual

Implements candidate_functions::CandidateCut.

Definition at line 13 of file GsfEleEBEECut.cc.

References cutFormula_.

13  {
14  reco::GsfElectronPtr ele(cand);
15  return cutFormula_(*ele);
16  }
StringObjectFunction< reco::GsfElectron > cutFormula_

Member Data Documentation

StringObjectFunction<reco::GsfElectron> GsfEleEBEECut::cutFormula_
private

Definition at line 21 of file GsfEleEBEECut.cc.

Referenced by operator()(), and value().

const EBEECutValuesT<double> GsfEleEBEECut::cutValue_
private

Definition at line 22 of file GsfEleEBEECut.cc.

Referenced by operator()().