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 25 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 31 of file EgHLTMonElemWithCutEBEE.h.

38  : barrel_(iBooker, name + "_eb", "Barrel " + title, nrBins, min, max, varFunc, nullptr),
39  endcap_(iBooker, name + "_ee", "Endcap " + title, nrBins, min, max, varFunc, nullptr) {}
MonElemWithCut< T, varType > barrel_
MonElemWithCut< T, varType > endcap_
T min(T a, T b)
Definition: MathUtil.h:58
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 41 of file EgHLTMonElemWithCutEBEE.h.

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

49  : barrel_(iBooker, name + "_eb", "Barrel " + title, nrBins, min, max, varFunc, cut),
50  endcap_(iBooker, name + "_ee", "Endcap " + title, nrBins, min, max, varFunc, cut ? cut->clone() : nullptr) {}
MonElemWithCut< T, varType > barrel_
MonElemWithCut< T, varType > endcap_
T min(T a, T b)
Definition: MathUtil.h:58
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 58 of file EgHLTMonElemWithCutEBEE.h.

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

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

58  {
59  if (std::fabs(obj.detEta()) < 1.5)
60  barrel_.fill(obj, evt, weight);
61  else
62  endcap_.fill(obj, evt, weight);
63 }
MonElemWithCut< T, varType > barrel_
void fill(const T &obj, const OffEvt &evt, float weight) override
Definition: weight.py:1
MonElemWithCut< T, varType > endcap_

Member Data Documentation

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

Definition at line 27 of file EgHLTMonElemWithCutEBEE.h.

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

Definition at line 28 of file EgHLTMonElemWithCutEBEE.h.