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

◆ MonElemWithCutEBEE() [1/2]

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

◆ MonElemWithCutEBEE() [2/2]

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.

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

◆ ~MonElemWithCutEBEE()

template<class T , typename varType >
egHLT::MonElemWithCutEBEE< T, varType >::~MonElemWithCutEBEE ( )
overridedefault

Member Function Documentation

◆ fill()

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.

58  {
59  if (std::fabs(obj.detEta()) < 1.5)
60  barrel_.fill(obj, evt, weight);
61  else
62  endcap_.fill(obj, evt, weight);
63 }

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

Member Data Documentation

◆ barrel_

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

Definition at line 27 of file EgHLTMonElemWithCutEBEE.h.

◆ endcap_

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

Definition at line 28 of file EgHLTMonElemWithCutEBEE.h.

runGCPTkAlMap.title
string title
Definition: runGCPTkAlMap.py:94
egHLT::MonElemWithCut::fill
void fill(const T &obj, const OffEvt &evt, float weight) override
Definition: EgHLTMonElemWithCut.h:86
TkAlMuonSelectors_cfi.cut
cut
Definition: TkAlMuonSelectors_cfi.py:5
min
T min(T a, T b)
Definition: MathUtil.h:58
egHLT::MonElemWithCutEBEE::barrel_
MonElemWithCut< T, varType > barrel_
Definition: EgHLTMonElemWithCutEBEE.h:27
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
egHLT::MonElemWithCutEBEE::endcap_
MonElemWithCut< T, varType > endcap_
Definition: EgHLTMonElemWithCutEBEE.h:28
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
weight
Definition: weight.py:1