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 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

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::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") {}

Member Function Documentation

◆ candidateType()

CandidateType GsfEleEBEECut::candidateType ( ) const
inlinefinalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 18 of file GsfEleEBEECut.cc.

18 { return ELECTRON; }

References CutApplicatorBase::ELECTRON.

◆ operator()()

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

Reimplemented from CutApplicatorBase.

Definition at line 11 of file GsfEleEBEECut.cc.

11 { return cutFormula_(*cand) < cutValue_(cand); }

References cutFormula_, and cutValue_.

◆ value()

double GsfEleEBEECut::value ( const reco::CandidatePtr cand) const
inlinefinalvirtual

Implements candidate_functions::CandidateCut.

Definition at line 13 of file GsfEleEBEECut.cc.

13  {
15  return cutFormula_(*ele);
16  }

References cutFormula_.

Member Data Documentation

◆ cutFormula_

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

Definition at line 21 of file GsfEleEBEECut.cc.

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

◆ cutValue_

const EBEECutValuesT<double> GsfEleEBEECut::cutValue_
private

Definition at line 22 of file GsfEleEBEECut.cc.

Referenced by operator()().

GsfEleEBEECut::cutFormula_
StringObjectFunction< reco::GsfElectron > cutFormula_
Definition: GsfEleEBEECut.cc:21
CutApplicatorBase::CutApplicatorBase
CutApplicatorBase()
Definition: CutApplicatorBase.h:49
GsfEleEBEECut::cutValue_
const EBEECutValuesT< double > cutValue_
Definition: GsfEleEBEECut.cc:22
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
cand
Definition: decayParser.h:34
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
edm::Ptr< reco::GsfElectron >
CutApplicatorBase::ELECTRON
Definition: CutApplicatorBase.h:47