CMS 3D CMS Logo

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

Public Member Functions

CandidateType candidateType () const final
 
 GsfEleDEtaInLinearCut (const edm::ParameterSet &param)
 
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
 
virtual const std::string & name () const
 
virtual 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
 
virtual ~CutApplicatorBase ()
 Destructor. More...
 
- Public Member Functions inherited from candidate_functions::CandidateCut
 CandidateCut ()
 
virtual ~CandidateCut ()
 

Private Attributes

const EBEECutValues constTerm_
 
const EBEECutValues minValue_
 
const EBEECutValues slopeTerm_
 

Additional Inherited Members

- Public Types inherited from CutApplicatorBase
enum  CandidateType {
  NONE, ELECTRON, MUON, PHOTON,
  TAU, PATELECTRON, PATMUON, PATPHOTON,
  PATTAU
}
 

Detailed Description

Definition at line 5 of file GsfEleDEtaInLinearCut.cc.

Constructor & Destructor Documentation

GsfEleDEtaInLinearCut::GsfEleDEtaInLinearCut ( const edm::ParameterSet param)
inline

Definition at line 7 of file GsfEleDEtaInLinearCut.cc.

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

7  :
8  CutApplicatorBase(param),
9  slopeTerm_(param,"slopeTerm"),
10  constTerm_(param,"constTerm"),
11  minValue_(param,"minValue")
12  {
13  }
const EBEECutValues constTerm_
const EBEECutValues minValue_
const EBEECutValues slopeTerm_

Member Function Documentation

CandidateType GsfEleDEtaInLinearCut::candidateType ( ) const
inlinefinalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 19 of file GsfEleDEtaInLinearCut.cc.

References CutApplicatorBase::ELECTRON.

19  {
20  return ELECTRON;
21  }
CutApplicatorBase::result_type GsfEleDEtaInLinearCut::operator() ( const reco::GsfElectronPtr cand) const
finalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 35 of file GsfEleDEtaInLinearCut.cc.

References funct::abs(), reco::GsfElectron::caloEnergy(), constTerm_, reco::GsfElectron::deltaEtaSuperClusterTrackAtVtx(), reco::LeafCandidate::energy(), stringResolutionProvider_cfi::et, reco::LeafCandidate::et(), SiStripPI::max, minValue_, and slopeTerm_.

Referenced by GsfEleDEtaInLinearCut().

36 {
37  float et = cand->energy()!=0. ? cand->et()/cand->energy()*cand->caloEnergy() : 0.;
38  double cutValue = std::max(constTerm_(cand)+slopeTerm_(cand)*et,minValue_(cand));
39  return std::abs(cand->deltaEtaSuperClusterTrackAtVtx())<cutValue;
40 
41 }
float deltaEtaSuperClusterTrackAtVtx() const
Definition: GsfElectron.h:249
double et() const final
transverse energy
double energy() const final
energy
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
const EBEECutValues constTerm_
const EBEECutValues minValue_
et
define resolution functions of each parameter
float caloEnergy() const
Definition: GsfElectron.h:840
const EBEECutValues slopeTerm_
double GsfEleDEtaInLinearCut::value ( const reco::CandidatePtr cand) const
finalvirtual

Implements candidate_functions::CandidateCut.

Definition at line 43 of file GsfEleDEtaInLinearCut.cc.

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

Referenced by GsfEleDEtaInLinearCut().

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

Member Data Documentation

const EBEECutValues GsfEleDEtaInLinearCut::constTerm_
private

Definition at line 25 of file GsfEleDEtaInLinearCut.cc.

Referenced by operator()().

const EBEECutValues GsfEleDEtaInLinearCut::minValue_
private

Definition at line 26 of file GsfEleDEtaInLinearCut.cc.

Referenced by operator()().

const EBEECutValues GsfEleDEtaInLinearCut::slopeTerm_
private

Definition at line 24 of file GsfEleDEtaInLinearCut.cc.

Referenced by operator()().