CMS 3D CMS Logo

CSCMonitorObject Class Reference

cscdqm::MonitorObject implementation used in CSCMonitorModuleCmn More...

#include <DQM/CSCMonitorModule/interface/CSCMonitorObject.h>

Inheritance diagram for CSCMonitorObject:

cscdqm::MonitorObject cscdqm::Lock

List of all members.

Public Member Functions

 CSCMonitorObject (MonitorElement *p_me)
void Fill (float x, float y, float z, float w)
void Fill (float x, float y, float zw)
void Fill (float x, float yw)
void Fill (float x)
double GetBinContent (const int binX, int binY)
double GetBinContent (const int binX)
const double GetBinError (const int bin)
const double GetEntries ()
const int GetMaximumBin ()
const TObject * getRefRootObject (void) const
const TH1 * getTH1 (void) const
TH1 * getTH1Lock (void)
void SetAxisRange (const double from, const double to, const std::string &axis)
void setAxisTitle (const std::string title, const int axisN)
void SetBinContent (const int binX, const int binY, const double value)
void SetBinContent (const int binX, const double value)
void SetBinError (const int bin, const double error)
void SetEntries (const double value)
void SetMaximum (const double d)
void SetNormFactor (const double factor)
virtual ~CSCMonitorObject ()

Private Attributes

MonitorElementme


Detailed Description

cscdqm::MonitorObject implementation used in CSCMonitorModuleCmn

Definition at line 29 of file CSCMonitorObject.h.


Constructor & Destructor Documentation

CSCMonitorObject::CSCMonitorObject ( MonitorElement p_me  )  [inline]

Definition at line 37 of file CSCMonitorObject.h.

References me.

00037 { me = p_me; }

virtual CSCMonitorObject::~CSCMonitorObject (  )  [inline, virtual]

Definition at line 38 of file CSCMonitorObject.h.

00038 { }


Member Function Documentation

void CSCMonitorObject::Fill ( float  x,
float  y,
float  z,
float  w 
) [inline, virtual]

Implements cscdqm::MonitorObject.

Definition at line 58 of file CSCMonitorObject.h.

References MonitorElement::Fill(), cscdqm::Lock::lock(), me, and cscdqm::Lock::unlock().

00058                                                   { 
00059       lock();
00060       me->Fill(x, y, z, w); 
00061       unlock();
00062     }

void CSCMonitorObject::Fill ( float  x,
float  y,
float  zw 
) [inline, virtual]

Implements cscdqm::MonitorObject.

Definition at line 52 of file CSCMonitorObject.h.

References MonitorElement::Fill(), cscdqm::Lock::lock(), me, and cscdqm::Lock::unlock().

00052                                           { 
00053       lock();
00054       me->Fill(x, y, zw); 
00055       unlock();
00056     }

void CSCMonitorObject::Fill ( float  x,
float  yw 
) [inline, virtual]

Implements cscdqm::MonitorObject.

Definition at line 46 of file CSCMonitorObject.h.

References MonitorElement::Fill(), cscdqm::Lock::lock(), me, and cscdqm::Lock::unlock().

00046                                  { 
00047       lock();
00048       me->Fill(x, yw); 
00049       unlock();
00050     }

void CSCMonitorObject::Fill ( float  x  )  [inline, virtual]

Implements cscdqm::MonitorObject.

Definition at line 40 of file CSCMonitorObject.h.

References MonitorElement::Fill(), cscdqm::Lock::lock(), me, and cscdqm::Lock::unlock().

00040                        { 
00041       lock();
00042       me->Fill(x); 
00043       unlock();
00044     }

double CSCMonitorObject::GetBinContent ( const int  binX,
int  binY 
) [inline, virtual]

Implements cscdqm::MonitorObject.

Definition at line 89 of file CSCMonitorObject.h.

References d, MonitorElement::getBinContent(), cscdqm::Lock::lock(), me, and cscdqm::Lock::unlock().

00089                                                    { 
00090       lock();
00091       double d = me->getBinContent(binX, binY); 
00092       unlock();
00093       return d;
00094     }

double CSCMonitorObject::GetBinContent ( const int  binX  )  [inline, virtual]

Implements cscdqm::MonitorObject.

Definition at line 82 of file CSCMonitorObject.h.

References d, MonitorElement::getBinContent(), cscdqm::Lock::lock(), me, and cscdqm::Lock::unlock().

00082                                          { 
00083       lock();
00084       double d = me->getBinContent(binX); 
00085       unlock();
00086       return d;
00087     }

const double CSCMonitorObject::GetBinError ( const int  bin  )  [inline, virtual]

Implements cscdqm::MonitorObject.

Definition at line 138 of file CSCMonitorObject.h.

References d, MonitorElement::getTH1(), cscdqm::Lock::lock(), me, and cscdqm::Lock::unlock().

00138                                             {
00139       lock();
00140       double d = me->getTH1()->GetBinError(bin);
00141       unlock();
00142       return d;
00143     }

const double CSCMonitorObject::GetEntries (  )  [inline, virtual]

Implements cscdqm::MonitorObject.

Definition at line 121 of file CSCMonitorObject.h.

References d, MonitorElement::getTH1(), cscdqm::Lock::lock(), me, and cscdqm::Lock::unlock().

00121                               {
00122       lock();
00123       double d = me->getTH1()->GetEntries();
00124       unlock();
00125       return d;
00126     }

const int CSCMonitorObject::GetMaximumBin (  )  [inline, virtual]

Implements cscdqm::MonitorObject.

Definition at line 108 of file CSCMonitorObject.h.

References MonitorElement::getTH1(), i, cscdqm::Lock::lock(), me, and cscdqm::Lock::unlock().

00108                               {
00109       lock();
00110       int i = me->getTH1()->GetMaximumBin();
00111       unlock();
00112       return i;
00113     }

const TObject* CSCMonitorObject::getRefRootObject ( void   )  const [inline, virtual]

Implements cscdqm::MonitorObject.

Definition at line 134 of file CSCMonitorObject.h.

References MonitorElement::getRefRootObject(), and me.

00134                                                 {
00135       return me->getRefRootObject();
00136     }

const TH1* CSCMonitorObject::getTH1 ( void   )  const [inline, virtual]

Implements cscdqm::MonitorObject.

Definition at line 151 of file CSCMonitorObject.h.

References MonitorElement::getTH1(), and me.

00151                                   { 
00152       return me->getTH1(); 
00153     }

TH1* CSCMonitorObject::getTH1Lock ( void   )  [inline, virtual]

Implements cscdqm::MonitorObject.

Definition at line 155 of file CSCMonitorObject.h.

References MonitorElement::getTH1(), cscdqm::Lock::lock(), and me.

00155                           { 
00156       lock();
00157       return me->getTH1(); 
00158     }

void CSCMonitorObject::SetAxisRange ( const double  from,
const double  to,
const std::string &  axis 
) [inline, virtual]

Implements cscdqm::MonitorObject.

Definition at line 96 of file CSCMonitorObject.h.

References MonitorElement::getTH1(), cscdqm::Lock::lock(), me, and cscdqm::Lock::unlock().

00096                                                                                  {
00097       lock();
00098       me->getTH1()->SetAxisRange(from, to, axis.c_str());
00099       unlock();
00100     }

void CSCMonitorObject::setAxisTitle ( const std::string  title,
const int  axisN 
) [inline, virtual]

Implements cscdqm::MonitorObject.

Definition at line 102 of file CSCMonitorObject.h.

References cscdqm::Lock::lock(), me, MonitorElement::setAxisTitle(), and cscdqm::Lock::unlock().

00102                                                               { 
00103       lock();
00104       me->setAxisTitle(title, axisN);  
00105       unlock();
00106     } 

void CSCMonitorObject::SetBinContent ( const int  binX,
const int  binY,
const double  value 
) [inline, virtual]

Implements cscdqm::MonitorObject.

Definition at line 76 of file CSCMonitorObject.h.

References cscdqm::Lock::lock(), me, MonitorElement::setBinContent(), and cscdqm::Lock::unlock().

00076                                                                            { 
00077       lock();
00078       me->setBinContent(binX, binY, value); 
00079       unlock();
00080     }

void CSCMonitorObject::SetBinContent ( const int  binX,
const double  value 
) [inline, virtual]

Implements cscdqm::MonitorObject.

Definition at line 70 of file CSCMonitorObject.h.

References cscdqm::Lock::lock(), me, MonitorElement::setBinContent(), and cscdqm::Lock::unlock().

00070                                                            { 
00071       lock();
00072       me->setBinContent(binX, value);  
00073       unlock();
00074     }

void CSCMonitorObject::SetBinError ( const int  bin,
const double  error 
) [inline, virtual]

Implements cscdqm::MonitorObject.

Definition at line 145 of file CSCMonitorObject.h.

References MonitorElement::getTH1(), cscdqm::Lock::lock(), me, and cscdqm::Lock::unlock().

00145                                                         {
00146       lock();
00147       me->getTH1()->SetBinError(bin, error);
00148       unlock();
00149     }

void CSCMonitorObject::SetEntries ( const double  value  )  [inline, virtual]

Implements cscdqm::MonitorObject.

Definition at line 64 of file CSCMonitorObject.h.

References cscdqm::Lock::lock(), me, MonitorElement::setEntries(), and cscdqm::Lock::unlock().

00064                                         { 
00065       lock();
00066       me->setEntries(value); 
00067       unlock();
00068     }

void CSCMonitorObject::SetMaximum ( const double  d  )  [inline, virtual]

Implements cscdqm::MonitorObject.

Definition at line 128 of file CSCMonitorObject.h.

References MonitorElement::getTH1(), cscdqm::Lock::lock(), me, and cscdqm::Lock::unlock().

00128                                     {
00129       lock();
00130       me->getTH1()->SetMaximum(d);
00131       unlock();
00132     }

void CSCMonitorObject::SetNormFactor ( const double  factor  )  [inline, virtual]

Implements cscdqm::MonitorObject.

Definition at line 115 of file CSCMonitorObject.h.

References MonitorElement::getTH1(), cscdqm::Lock::lock(), me, and cscdqm::Lock::unlock().

00115                                             {
00116       lock();
00117       me->getTH1()->SetNormFactor(factor);
00118       unlock();
00119     }


Member Data Documentation

MonitorElement* CSCMonitorObject::me [private]

Definition at line 33 of file CSCMonitorObject.h.

Referenced by CSCMonitorObject(), Fill(), GetBinContent(), GetBinError(), GetEntries(), GetMaximumBin(), getRefRootObject(), getTH1(), getTH1Lock(), SetAxisRange(), setAxisTitle(), SetBinContent(), SetBinError(), SetEntries(), SetMaximum(), and SetNormFactor().


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