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)
 
template<typename CandType >
T operator() (const edm::Ptr< CandType > &cand) const
 

Private Member Functions

template<typename CandType >
const bool isBarrel (const edm::Ptr< CandType > &cand) const
 

Private Attributes

T barrel_
 
const double barrelCutOff_ =1.479
 
T endcap_
 

Detailed Description

template<typename T>
class EBEECutValuesT< T >

Definition at line 8 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 15 of file EBEECutValues.h.

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

Member Function Documentation

template<typename T>
template<typename CandType >
const bool EBEECutValuesT< T >::isBarrel ( const edm::Ptr< CandType > &  cand) const
inlineprivate

Definition at line 23 of file EBEECutValues.h.

Referenced by EBEECutValuesT< int >::operator()().

23 {return std::abs(cand->superCluster()->position().eta())<barrelCutOff_;}
const double barrelCutOff_
Definition: EBEECutValues.h:12
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
template<typename T>
template<typename CandType >
T EBEECutValuesT< T >::operator() ( const edm::Ptr< CandType > &  cand) const
inline

Definition at line 19 of file EBEECutValues.h.

19 {return isBarrel(cand) ? barrel_ : endcap_;}
const bool isBarrel(const edm::Ptr< CandType > &cand) const
Definition: EBEECutValues.h:23

Member Data Documentation

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

Definition at line 10 of file EBEECutValues.h.

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

Definition at line 12 of file EBEECutValues.h.

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

Definition at line 11 of file EBEECutValues.h.

Referenced by EBEECutValuesT< int >::operator()().