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 Member Functions | Private Attributes
EBEECutValues Class Reference

#include <EBEECutValues.h>

Public Member Functions

 EBEECutValues (const edm::ParameterSet &params, const std::string &name)
 
double operator() (const reco::GsfElectronPtr &cand) const
 

Private Member Functions

const bool isBarrel (const reco::GsfElectronPtr &cand) const
 

Private Attributes

double barrel_
 
const double barrelCutOff_ =1.479
 
double endcap_
 

Detailed Description

Definition at line 12 of file EBEECutValues.h.

Constructor & Destructor Documentation

EBEECutValues::EBEECutValues ( const edm::ParameterSet params,
const std::string &  name 
)
inline

Definition at line 19 of file EBEECutValues.h.

19  :
20  barrel_(params.getParameter<double>(name+"EB")),
21  endcap_(params.getParameter<double>(name+"EE")){}
T getParameter(std::string const &) const

Member Function Documentation

const bool EBEECutValues::isBarrel ( const reco::GsfElectronPtr cand) const
inlineprivate

Definition at line 25 of file EBEECutValues.h.

References funct::abs(), and barrelCutOff_.

Referenced by operator()().

25 {return std::abs(cand->superCluster()->position().eta())<barrelCutOff_;}
const double barrelCutOff_
Definition: EBEECutValues.h:16
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double EBEECutValues::operator() ( const reco::GsfElectronPtr cand) const
inline

Definition at line 22 of file EBEECutValues.h.

References barrel_, endcap_, and isBarrel().

22 {return isBarrel(cand) ? barrel_ : endcap_;}
const bool isBarrel(const reco::GsfElectronPtr &cand) const
Definition: EBEECutValues.h:25

Member Data Documentation

double EBEECutValues::barrel_
private

Definition at line 14 of file EBEECutValues.h.

Referenced by operator()().

const double EBEECutValues::barrelCutOff_ =1.479
private

Definition at line 16 of file EBEECutValues.h.

Referenced by isBarrel().

double EBEECutValues::endcap_
private

Definition at line 15 of file EBEECutValues.h.

Referenced by operator()().