CMS 3D CMS Logo

Public Member Functions | Private Attributes

CSCMonitorObject Class Reference

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

#include <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 yw)
void Fill (float x, float y, float zw)
void Fill (float x)
void Fill (float x, float y, float z, float w)
double GetBinContent (const int binX)
double GetBinContent (const int binX, int binY)
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 double value)
void SetBinContent (const int binX, const int binY, 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.

{ me = p_me; }
virtual CSCMonitorObject::~CSCMonitorObject ( ) [inline, virtual]

Definition at line 38 of file CSCMonitorObject.h.

{ }

Member Function Documentation

void CSCMonitorObject::Fill ( float  x) [inline, virtual]
void CSCMonitorObject::Fill ( float  x,
float  yw 
) [inline, virtual]
void CSCMonitorObject::Fill ( float  x,
float  y,
float  z,
float  w 
) [inline, virtual]
void CSCMonitorObject::Fill ( float  x,
float  y,
float  zw 
) [inline, virtual]
double CSCMonitorObject::GetBinContent ( const int  binX) [inline, virtual]

Implements cscdqm::MonitorObject.

Definition at line 75 of file CSCMonitorObject.h.

References MonitorElement::getBinContent(), CommonMethods::lock(), me, and cscdqm::Lock::mutex.

                                         { 
      cscdqm::LockType lock(mutex);
      double d = me->getBinContent(binX); 
      return d;
    }
double CSCMonitorObject::GetBinContent ( const int  binX,
int  binY 
) [inline, virtual]

Implements cscdqm::MonitorObject.

Definition at line 81 of file CSCMonitorObject.h.

References MonitorElement::getBinContent(), CommonMethods::lock(), me, and cscdqm::Lock::mutex.

                                                   { 
      cscdqm::LockType lock(mutex);
      double d = me->getBinContent(binX, binY); 
      return d;
    }
const double CSCMonitorObject::GetBinError ( const int  bin) [inline, virtual]

Implements cscdqm::MonitorObject.

Definition at line 123 of file CSCMonitorObject.h.

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

                                            {
      cscdqm::LockType lock(mutex);
      double d = me->getTH1()->GetBinError(bin);
      return d;
    }
const double CSCMonitorObject::GetEntries ( ) [inline, virtual]

Implements cscdqm::MonitorObject.

Definition at line 108 of file CSCMonitorObject.h.

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

                              {
      cscdqm::LockType lock(mutex);
      double d = me->getTH1()->GetEntries();
      return d;
    }
const int CSCMonitorObject::GetMaximumBin ( ) [inline, virtual]

Implements cscdqm::MonitorObject.

Definition at line 97 of file CSCMonitorObject.h.

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

                              {
      cscdqm::LockType lock(mutex);
      int i = me->getTH1()->GetMaximumBin();
      return i;
    }
const TObject* CSCMonitorObject::getRefRootObject ( void  ) const [inline, virtual]

Implements cscdqm::MonitorObject.

Definition at line 119 of file CSCMonitorObject.h.

References MonitorElement::getRefRootObject(), and me.

                                                {
      return me->getRefRootObject();
    }
const TH1* CSCMonitorObject::getTH1 ( void  ) const [inline, virtual]

Implements cscdqm::MonitorObject.

Definition at line 134 of file CSCMonitorObject.h.

References MonitorElement::getTH1(), and me.

                                  {
      return me->getTH1(); 
    }
TH1* CSCMonitorObject::getTH1Lock ( void  ) [inline, virtual]

Implements cscdqm::MonitorObject.

Definition at line 138 of file CSCMonitorObject.h.

References MonitorElement::getTH1(), and me.

                          { 
      return me->getTH1(); 
    }
void CSCMonitorObject::SetAxisRange ( const double  from,
const double  to,
const std::string &  axis 
) [inline, virtual]

Implements cscdqm::MonitorObject.

Definition at line 87 of file CSCMonitorObject.h.

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

                                                                                 {
      cscdqm::LockType lock(mutex);
      me->getTH1()->SetAxisRange(from, to, axis.c_str());
    }
void CSCMonitorObject::setAxisTitle ( const std::string  title,
const int  axisN 
) [inline, virtual]
void CSCMonitorObject::SetBinContent ( const int  binX,
const int  binY,
const double  value 
) [inline, virtual]
void CSCMonitorObject::SetBinContent ( const int  binX,
const double  value 
) [inline, virtual]
void CSCMonitorObject::SetBinError ( const int  bin,
const double  error 
) [inline, virtual]
void CSCMonitorObject::SetEntries ( const double  value) [inline, virtual]
void CSCMonitorObject::SetMaximum ( const double  d) [inline, virtual]

Implements cscdqm::MonitorObject.

Definition at line 114 of file CSCMonitorObject.h.

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

                                    {
      cscdqm::LockType lock(mutex);
      me->getTH1()->SetMaximum(d);
    }
void CSCMonitorObject::SetNormFactor ( const double  factor) [inline, virtual]

Implements cscdqm::MonitorObject.

Definition at line 103 of file CSCMonitorObject.h.

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

                                            {
      cscdqm::LockType lock(mutex);
      me->getTH1()->SetNormFactor(factor);
    }

Member Data Documentation