CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
egHLT::MonElemWithCutEBEE< T, varType > Class Template Reference

#include <EgHLTMonElemWithCutEBEE.h>

Inheritance diagram for egHLT::MonElemWithCutEBEE< T, varType >:
egHLT::MonElemWithCutBase< T >

Public Member Functions

void fill (const T &obj, const OffEvt &evt, float weight) override
 
 MonElemWithCutEBEE (DQMStore::IBooker &iBooker, const std::string &name, const std::string &title, int nrBins, float min, float max, varType(T::*varFunc)() const)
 
 MonElemWithCutEBEE (DQMStore::IBooker &iBooker, const std::string &name, const std::string &title, int nrBins, float min, float max, varType(T::*varFunc)() const, const EgHLTDQMCut< T > *cut)
 
 ~MonElemWithCutEBEE () override=default
 
- Public Member Functions inherited from egHLT::MonElemWithCutBase< T >
 MonElemWithCutBase ()=default
 
virtual ~MonElemWithCutBase ()=default
 

Private Attributes

MonElemWithCut< T, varType > barrel_
 
MonElemWithCut< T, varType > endcap_
 

Detailed Description

template<class T, typename varType>
class egHLT::MonElemWithCutEBEE< T, varType >

Definition at line 24 of file EgHLTMonElemWithCutEBEE.h.

Constructor & Destructor Documentation

template<class T , typename varType >
egHLT::MonElemWithCutEBEE< T, varType >::MonElemWithCutEBEE ( DQMStore::IBooker iBooker,
const std::string &  name,
const std::string &  title,
int  nrBins,
float  min,
float  max,
varType(T::*)() const  varFunc 
)
inline

Definition at line 30 of file EgHLTMonElemWithCutEBEE.h.

31  :
32  barrel_(iBooker,name+"_eb","Barrel "+title,nrBins,min,max,varFunc,nullptr),
33  endcap_(iBooker,name+"_ee","Endcap "+title,nrBins,min,max,varFunc,nullptr){}
T min(T a, T b)
Definition: MathUtil.h:58
MonElemWithCut< T, varType > endcap_
MonElemWithCut< T, varType > barrel_
template<class T , typename varType >
egHLT::MonElemWithCutEBEE< T, varType >::MonElemWithCutEBEE ( DQMStore::IBooker iBooker,
const std::string &  name,
const std::string &  title,
int  nrBins,
float  min,
float  max,
varType(T::*)() const  varFunc,
const EgHLTDQMCut< T > *  cut 
)
inline

Definition at line 35 of file EgHLTMonElemWithCutEBEE.h.

References egHLT::MonElemWithCutEBEE< T, varType >::fill(), GetRecoTauVFromDQM_MC_cff::obj, and egHLT::MonElemWithCutEBEE< T, varType >::~MonElemWithCutEBEE().

36  :
37  barrel_(iBooker,name+"_eb","Barrel "+title,nrBins,min,max,varFunc,cut),
38  endcap_(iBooker,name+"_ee","Endcap "+title,nrBins,min,max,varFunc,cut ? cut->clone() : nullptr){}
T min(T a, T b)
Definition: MathUtil.h:58
MonElemWithCut< T, varType > endcap_
MonElemWithCut< T, varType > barrel_
template<class T , typename varType >
egHLT::MonElemWithCutEBEE< T, varType >::~MonElemWithCutEBEE ( )
overridedefault

Member Function Documentation

template<class T , typename varType >
void egHLT::MonElemWithCutEBEE< T, varType >::fill ( const T obj,
const OffEvt evt,
float  weight 
)
overridevirtual

Implements egHLT::MonElemWithCutBase< T >.

Definition at line 46 of file EgHLTMonElemWithCutEBEE.h.

References egHLT::MonElemWithCut< T, varTypeX, varTypeY >::fill().

Referenced by egHLT::MonElemWithCutEBEE< T, varType >::MonElemWithCutEBEE().

47 {
48  if(std::fabs(obj.detEta())<1.5) barrel_.fill(obj,evt,weight);
49  else endcap_.fill(obj,evt,weight);
50 }
void fill(const T &obj, const OffEvt &evt, float weight) override
Definition: weight.py:1
MonElemWithCut< T, varType > endcap_
MonElemWithCut< T, varType > barrel_

Member Data Documentation

template<class T , typename varType >
MonElemWithCut<T,varType> egHLT::MonElemWithCutEBEE< T, varType >::barrel_
private

Definition at line 26 of file EgHLTMonElemWithCutEBEE.h.

template<class T , typename varType >
MonElemWithCut<T,varType> egHLT::MonElemWithCutEBEE< T, varType >::endcap_
private

Definition at line 27 of file EgHLTMonElemWithCutEBEE.h.