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
 
- 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 17 of file GsfEleDEtaInLinearCut.cc.

References CutApplicatorBase::ELECTRON.

17  {
18  return ELECTRON;
19  }
CutApplicatorBase::result_type GsfEleDEtaInLinearCut::operator() ( const reco::GsfElectronPtr cand) const
finaloverridevirtual

Reimplemented from CutApplicatorBase.

Definition at line 33 of file GsfEleDEtaInLinearCut.cc.

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

34 {
35  float et = cand->energy()!=0. ? cand->et()/cand->energy()*cand->caloEnergy() : 0.;
36  double cutValue = std::max(constTerm_(cand)+slopeTerm_(cand)*et,minValue_(cand));
37  return std::abs(cand->deltaEtaSuperClusterTrackAtVtx())<cutValue;
38 
39 }
const T & max(const T &a, const T &b)
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
const EBEECutValues constTerm_
const EBEECutValues minValue_
const EBEECutValues slopeTerm_

Member Data Documentation

const EBEECutValues GsfEleDEtaInLinearCut::constTerm_
private

Definition at line 23 of file GsfEleDEtaInLinearCut.cc.

Referenced by operator()().

const EBEECutValues GsfEleDEtaInLinearCut::minValue_
private

Definition at line 24 of file GsfEleDEtaInLinearCut.cc.

Referenced by operator()().

const EBEECutValues GsfEleDEtaInLinearCut::slopeTerm_
private

Definition at line 22 of file GsfEleDEtaInLinearCut.cc.

Referenced by operator()().