CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 16 of file EBEECutValues.h.

17  : barrel_(params.getParameter<T>(name + "EB")), endcap_(params.getParameter<T>(name + "EE")) {}
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
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 25 of file EBEECutValues.h.

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

25  {
26  return std::abs(cand->superCluster()->position().eta()) < barrelCutOff_;
27  }
const double barrelCutOff_
Definition: EBEECutValues.h:13
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  {
20  return isBarrel(cand) ? barrel_ : endcap_;
21  }
const bool isBarrel(const edm::Ptr< CandType > &cand) const
Definition: EBEECutValues.h:25

Member Data Documentation

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

Definition at line 10 of file EBEECutValues.h.

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

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

Definition at line 13 of file EBEECutValues.h.

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

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

Definition at line 11 of file EBEECutValues.h.

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