CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
EBEECutValuesT< T > Class Template Reference

#include <EBEECutValues.h>

Public Member Functions

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

Private Member Functions

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

Private Attributes

T barrel_
 
const double barrelCutOff_ =1.479
 
T endcap_
 

Detailed Description

template<typename T>
class EBEECutValuesT< T >

Definition at line 13 of file EBEECutValues.h.

Constructor & Destructor Documentation

template<typename T>
EBEECutValuesT< T >::EBEECutValuesT ( const edm::ParameterSet params,
const std::string &  name 
)
inline

Definition at line 20 of file EBEECutValues.h.

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

Member Function Documentation

template<typename T>
const bool EBEECutValuesT< T >::isBarrel ( const reco::GsfElectronPtr cand) const
inlineprivate

Definition at line 26 of file EBEECutValues.h.

26 {return std::abs(cand->superCluster()->position().eta())<barrelCutOff_;}
const double barrelCutOff_
Definition: EBEECutValues.h:17
virtual SuperClusterRef superCluster() const
reference to a SuperCluster
Definition: GsfElectron.h:184
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
template<typename T>
T EBEECutValuesT< T >::operator() ( const reco::GsfElectronPtr cand) const
inline

Definition at line 23 of file EBEECutValues.h.

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

Member Data Documentation

template<typename T>
T EBEECutValuesT< T >::barrel_
private

Definition at line 15 of file EBEECutValues.h.

template<typename T>
const double EBEECutValuesT< T >::barrelCutOff_ =1.479
private

Definition at line 17 of file EBEECutValues.h.

template<typename T>
T EBEECutValuesT< T >::endcap_
private

Definition at line 16 of file EBEECutValues.h.