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

◆ EBEECutValuesT()

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")) {}
long double T

Member Function Documentation

◆ isBarrel()

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

◆ operator()()

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

◆ barrel_

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

Definition at line 10 of file EBEECutValues.h.

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

◆ barrelCutOff_

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

Definition at line 13 of file EBEECutValues.h.

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

◆ endcap_

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

Definition at line 11 of file EBEECutValues.h.

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