CMS 3D CMS Logo

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 >

List of all members.

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, const EgHLTDQMCut< T > *cut)
 MonElemWithCutEBEE (const std::string &name, const std::string &title, int nrBins, float min, float max, varType(T::*varFunc)() const)
 ~MonElemWithCutEBEE ()

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.

                                                  :
      barrel_(name+"_eb","Barrel "+title,nrBins,min,max,varFunc,NULL),
      endcap_(name+"_ee","Endcap "+title,nrBins,min,max,varFunc,NULL){}
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.

                                                                            :
      barrel_(name+"_eb","Barrel "+title,nrBins,min,max,varFunc,cut),
      endcap_(name+"_ee","Endcap "+title,nrBins,min,max,varFunc,cut ? cut->clone() : NULL){}
template<class T , typename varType >
egHLT::MonElemWithCutEBEE< T, varType >::~MonElemWithCutEBEE ( ) [inline]

Definition at line 37 of file EgHLTMonElemWithCutEBEE.h.

{}

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.

{
  if(fabs(obj.detEta())<1.5) barrel_.fill(obj,evt,weight);
  else endcap_.fill(obj,evt,weight);
}

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.