CMS 3D CMS Logo

MonElemWithCutEBEE< T, varType > Class Template Reference

#include <DQMOffline/Trigger/interface/MonElemWithCutEBEE.h>

Inheritance diagram for MonElemWithCutEBEE< T, varType >:

MonElemWithCutBase< T >

List of all members.

Public Member Functions

void fill (const T &obj, const EgHLTOffData &evtData, 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 MonElemWithCutEBEE< T, varType >

Definition at line 22 of file MonElemWithCutEBEE.h.


Constructor & Destructor Documentation

template<class T, typename varType>
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 MonElemWithCutEBEE.h.

00029                                                 :
00030     barrel_(name+"_eb","Barrel "+title,nrBins,min,max,varFunc,NULL),
00031     endcap_(name+"_ee","Endcap "+title,nrBins,min,max,varFunc,NULL){}
   

template<class T, typename varType>
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 MonElemWithCutEBEE.h.

00034                                                                           :
00035     barrel_(name+"_eb","Barrel "+title,nrBins,min,max,varFunc,cut),
00036     endcap_(name+"_ee","Endcap "+title,nrBins,min,max,varFunc,cut ? cut->clone() : NULL){}
  ~MonElemWithCutEBEE(){}

template<class T, typename varType>
MonElemWithCutEBEE< T, varType >::~MonElemWithCutEBEE (  )  [inline]

Definition at line 37 of file MonElemWithCutEBEE.h.

00037 {}


Member Function Documentation

template<class T, typename varType>
void MonElemWithCutEBEE< T, varType >::fill ( const T &  obj,
const EgHLTOffData evtData,
float  weight 
) [inline, virtual]

Implements MonElemWithCutBase< T >.

Definition at line 43 of file MonElemWithCutEBEE.h.

References MonElemWithCutEBEE< T, varType >::barrel_, MonElemWithCutEBEE< T, varType >::endcap_, and MonElemWithCut< T, varTypeX, varTypeY >::fill().

00044 {
00045   if(fabs(obj.detEta())<1.5) barrel_.fill(obj,evtData,weight);
00046   else endcap_.fill(obj,evtData,weight);
00047 }


Member Data Documentation

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

Definition at line 24 of file MonElemWithCutEBEE.h.

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

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

Definition at line 25 of file MonElemWithCutEBEE.h.

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


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:28:20 2009 for CMSSW by  doxygen 1.5.4