CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 overridefinal
 
 GsfEleDEtaInLinearCut (const edm::ParameterSet &param)
 
result_type operator() (const reco::GsfElectronPtr &) const overridefinal
 
double value (const reco::CandidatePtr &cand) const overridefinal
 
- Public Member Functions inherited from CutApplicatorBase
virtual result_type asCandidate (const argument_type &) const
 
 CutApplicatorBase (const edm::ParameterSet &c)
 
 CutApplicatorBase (const CutApplicatorBase &)=delete
 
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
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.

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

Member Function Documentation

CandidateType GsfEleDEtaInLinearCut::candidateType ( ) const
inlinefinaloverridevirtual

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
finaloverridevirtual

Reimplemented from CutApplicatorBase.

Definition at line 35 of file GsfEleDEtaInLinearCut.cc.

References funct::abs(), constTerm_, bookConverter::max, minValue_, and slopeTerm_.

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 }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
const EBEECutValues constTerm_
const EBEECutValues minValue_
const EBEECutValues slopeTerm_
double GsfEleDEtaInLinearCut::value ( const reco::CandidatePtr cand) const
finaloverridevirtual

Implements candidate_functions::CandidateCut.

Definition at line 43 of file GsfEleDEtaInLinearCut.cc.

References funct::abs().

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()().