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
CSCMonitorObject Class Reference

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

#include <CSCMonitorObject.h>

Inheritance diagram for CSCMonitorObject:
cscdqm::MonitorObject cscdqm::Lock

Public Member Functions

 CSCMonitorObject (MonitorElement *p_me)
 
void Fill (float x)
 
void Fill (float x, float yw)
 
void Fill (float x, float y, float zw)
 
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 ()
 
- Public Member Functions inherited from cscdqm::Lock
 Lock ()
 Constructor. More...
 
virtual ~Lock ()
 Destructor. More...
 

Private Attributes

MonitorElementme
 

Additional Inherited Members

- Public Attributes inherited from cscdqm::Lock
bool mutex
 

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.

37 { me = p_me; }
MonitorElement * me
virtual CSCMonitorObject::~CSCMonitorObject ( )
inlinevirtual

Definition at line 38 of file CSCMonitorObject.h.

38 { }

Member Function Documentation

void CSCMonitorObject::Fill ( float  x)
inlinevirtual

Implements cscdqm::MonitorObject.

Definition at line 40 of file CSCMonitorObject.h.

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

40  {
42  me->Fill(x);
43  }
void Fill(long long x)
MonitorElement * me
Definition: DDAxes.h:10
void CSCMonitorObject::Fill ( float  x,
float  yw 
)
inlinevirtual

Implements cscdqm::MonitorObject.

Definition at line 45 of file CSCMonitorObject.h.

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

45  {
47  me->Fill(x, yw);
48  }
void Fill(long long x)
MonitorElement * me
Definition: DDAxes.h:10
void CSCMonitorObject::Fill ( float  x,
float  y,
float  zw 
)
inlinevirtual

Implements cscdqm::MonitorObject.

Definition at line 50 of file CSCMonitorObject.h.

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

50  {
52  me->Fill(x, y, zw);
53  }
auto zw(V v) -> Vec2< typenamestd::remove_reference< decltype(v[0])>::type >
Definition: ExtVec.h:62
void Fill(long long x)
MonitorElement * me
Definition: DDAxes.h:10
void CSCMonitorObject::Fill ( float  x,
float  y,
float  z,
float  w 
)
inlinevirtual

Implements cscdqm::MonitorObject.

Definition at line 55 of file CSCMonitorObject.h.

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

55  {
57  me->Fill(x, y, z, w);
58  }
const double w
Definition: UKUtility.cc:23
float float float z
void Fill(long long x)
MonitorElement * me
Definition: DDAxes.h:10
double CSCMonitorObject::GetBinContent ( const int  binX)
inlinevirtual

Implements cscdqm::MonitorObject.

Definition at line 75 of file CSCMonitorObject.h.

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

75  {
77  double d = me->getBinContent(binX);
78  return d;
79  }
tuple d
Definition: ztail.py:151
MonitorElement * me
double getBinContent(int binx) const
get content of bin (1-D)
double CSCMonitorObject::GetBinContent ( const int  binX,
int  binY 
)
inlinevirtual

Implements cscdqm::MonitorObject.

Definition at line 81 of file CSCMonitorObject.h.

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

81  {
83  double d = me->getBinContent(binX, binY);
84  return d;
85  }
tuple d
Definition: ztail.py:151
MonitorElement * me
double getBinContent(int binx) const
get content of bin (1-D)
const double CSCMonitorObject::GetBinError ( const int  bin)
inlinevirtual

Implements cscdqm::MonitorObject.

Definition at line 123 of file CSCMonitorObject.h.

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

123  {
125  double d = me->getTH1()->GetBinError(bin);
126  return d;
127  }
tuple d
Definition: ztail.py:151
TH1 * getTH1(void) const
MonitorElement * me
const double CSCMonitorObject::GetEntries ( )
inlinevirtual

Implements cscdqm::MonitorObject.

Definition at line 108 of file CSCMonitorObject.h.

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

108  {
110  double d = me->getTH1()->GetEntries();
111  return d;
112  }
tuple d
Definition: ztail.py:151
TH1 * getTH1(void) const
MonitorElement * me
const int CSCMonitorObject::GetMaximumBin ( )
inlinevirtual

Implements cscdqm::MonitorObject.

Definition at line 97 of file CSCMonitorObject.h.

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

97  {
99  int i = me->getTH1()->GetMaximumBin();
100  return i;
101  }
int i
Definition: DBlmapReader.cc:9
TH1 * getTH1(void) const
MonitorElement * me
const TObject* CSCMonitorObject::getRefRootObject ( void  ) const
inlinevirtual

Implements cscdqm::MonitorObject.

Definition at line 119 of file CSCMonitorObject.h.

References MonitorElement::getRefRootObject(), and me.

119  {
120  return me->getRefRootObject();
121  }
MonitorElement * me
TObject * getRefRootObject(void) const
const TH1* CSCMonitorObject::getTH1 ( void  ) const
inlinevirtual

Implements cscdqm::MonitorObject.

Definition at line 134 of file CSCMonitorObject.h.

References MonitorElement::getTH1(), and me.

134  {
135  return me->getTH1();
136  }
TH1 * getTH1(void) const
MonitorElement * me
TH1* CSCMonitorObject::getTH1Lock ( void  )
inlinevirtual

Implements cscdqm::MonitorObject.

Definition at line 138 of file CSCMonitorObject.h.

References MonitorElement::getTH1(), and me.

138  {
139  return me->getTH1();
140  }
TH1 * getTH1(void) const
MonitorElement * me
void CSCMonitorObject::SetAxisRange ( const double  from,
const double  to,
const std::string &  axis 
)
inlinevirtual

Implements cscdqm::MonitorObject.

Definition at line 87 of file CSCMonitorObject.h.

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

87  {
89  me->getTH1()->SetAxisRange(from, to, axis.c_str());
90  }
TH1 * getTH1(void) const
MonitorElement * me
void CSCMonitorObject::setAxisTitle ( const std::string  title,
const int  axisN 
)
inlinevirtual

Implements cscdqm::MonitorObject.

Definition at line 92 of file CSCMonitorObject.h.

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

92  {
94  me->setAxisTitle(title, axisN);
95  }
MonitorElement * me
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
void CSCMonitorObject::SetBinContent ( const int  binX,
const double  value 
)
inlinevirtual

Implements cscdqm::MonitorObject.

Definition at line 65 of file CSCMonitorObject.h.

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

65  {
67  me->setBinContent(binX, value);
68  }
void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * me
void CSCMonitorObject::SetBinContent ( const int  binX,
const int  binY,
const double  value 
)
inlinevirtual

Implements cscdqm::MonitorObject.

Definition at line 70 of file CSCMonitorObject.h.

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

70  {
72  me->setBinContent(binX, binY, value);
73  }
void setBinContent(int binx, double content)
set content of bin (1-D)
MonitorElement * me
void CSCMonitorObject::SetBinError ( const int  bin,
const double  error 
)
inlinevirtual

Implements cscdqm::MonitorObject.

Definition at line 129 of file CSCMonitorObject.h.

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

129  {
131  me->getTH1()->SetBinError(bin, error);
132  }
TH1 * getTH1(void) const
MonitorElement * me
void CSCMonitorObject::SetEntries ( const double  value)
inlinevirtual

Implements cscdqm::MonitorObject.

Definition at line 60 of file CSCMonitorObject.h.

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

60  {
62  me->setEntries(value);
63  }
void setEntries(double nentries)
set # of entries
MonitorElement * me
void CSCMonitorObject::SetMaximum ( const double  d)
inlinevirtual

Implements cscdqm::MonitorObject.

Definition at line 114 of file CSCMonitorObject.h.

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

114  {
116  me->getTH1()->SetMaximum(d);
117  }
tuple d
Definition: ztail.py:151
TH1 * getTH1(void) const
MonitorElement * me
void CSCMonitorObject::SetNormFactor ( const double  factor)
inlinevirtual

Implements cscdqm::MonitorObject.

Definition at line 103 of file CSCMonitorObject.h.

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

103  {
105  me->getTH1()->SetNormFactor(factor);
106  }
TH1 * getTH1(void) const
MonitorElement * me

Member Data Documentation

MonitorElement* CSCMonitorObject::me
private