CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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)
 
 MonElemWithCutEBEE (const std::string &name, const std::string &title, int nrBins, float min, float max, varType(T::*varFunc)() const)
 
 MonElemWithCutEBEE (const std::string &name, const std::string &title, int nrBins, float min, float max, varType(T::*varFunc)() const, const EgHLTDQMCut< T > *cut)
 
 ~MonElemWithCutEBEE ()
 
- Public Member Functions inherited from egHLT::MonElemWithCutBase< T >
 MonElemWithCutBase ()
 
virtual ~MonElemWithCutBase ()
 

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

Constructor & Destructor Documentation

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

Definition at line 28 of file EgHLTMonElemWithCutEBEE.h.

29  :
30  barrel_(name+"_eb","Barrel "+title,nrBins,min,max,varFunc,NULL),
31  endcap_(name+"_ee","Endcap "+title,nrBins,min,max,varFunc,NULL){}
#define NULL
Definition: scimark2.h:8
const T & max(const T &a, const T &b)
MonElemWithCut< T, varType > endcap_
MonElemWithCut< T, varType > barrel_
template<class T , typename varType >
egHLT::MonElemWithCutEBEE< T, varType >::MonElemWithCutEBEE ( 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 33 of file EgHLTMonElemWithCutEBEE.h.

34  :
35  barrel_(name+"_eb","Barrel "+title,nrBins,min,max,varFunc,cut),
36  endcap_(name+"_ee","Endcap "+title,nrBins,min,max,varFunc,cut ? cut->clone() : NULL){}
#define NULL
Definition: scimark2.h:8
const T & max(const T &a, const T &b)
MonElemWithCut< T, varType > endcap_
MonElemWithCut< T, varType > barrel_
template<class T , typename varType >
egHLT::MonElemWithCutEBEE< T, varType >::~MonElemWithCutEBEE ( )
inline

Definition at line 37 of file EgHLTMonElemWithCutEBEE.h.

37 {}

Member Function Documentation

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

Implements egHLT::MonElemWithCutBase< T >.

Definition at line 44 of file EgHLTMonElemWithCutEBEE.h.

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

Member Data Documentation

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

Definition at line 24 of file EgHLTMonElemWithCutEBEE.h.

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

Definition at line 25 of file EgHLTMonElemWithCutEBEE.h.