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

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.

25  {
26  return std::abs(cand->superCluster()->position().eta()) < barrelCutOff_;
27  }

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

◆ 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  }

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()().

CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
EBEECutValuesT::barrelCutOff_
const double barrelCutOff_
Definition: EBEECutValues.h:13
cand
Definition: decayParser.h:32
EBEECutValuesT::endcap_
T endcap_
Definition: EBEECutValues.h:11
T
long double T
Definition: Basic3DVectorLD.h:48
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
EBEECutValuesT::isBarrel
const bool isBarrel(const edm::Ptr< CandType > &cand) const
Definition: EBEECutValues.h:25
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
EBEECutValuesT::barrel_
T barrel_
Definition: EBEECutValues.h:10