CMS 3D CMS Logo

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) override
 
void Fill (float x, float yw) override
 
void Fill (float x, float y, float zw) override
 
void Fill (float x, float y, float z, float w) override
 
double GetBinContent (const int binX) override
 
double GetBinContent (const int binX, int binY) override
 
const double GetBinError (const int bin) override
 
const double GetEntries () override
 
const int GetMaximumBin () override
 
const TObject * getRefRootObject (void) const override
 
const TH1 * getTH1 (void) const override
 
TH1 * getTH1Lock (void) override
 
void SetAxisRange (const double from, const double to, const std::string &axis) override
 
void setAxisTitle (const std::string title, const int axisN) override
 
void SetBinContent (const int binX, const double value) override
 
void SetBinContent (const int binX, const int binY, const double value) override
 
void SetBinError (const int bin, const double error) override
 
void SetEntries (const double value) override
 
void SetMaximum (const double d) override
 
void SetNormFactor (const double factor) override
 
 ~CSCMonitorObject () override
 
- 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.

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

Definition at line 38 of file CSCMonitorObject.h.

38 { }

Member Function Documentation

void CSCMonitorObject::Fill ( float  x)
inlineoverridevirtual

Implements cscdqm::MonitorObject.

Definition at line 40 of file CSCMonitorObject.h.

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

40  {
42  me->Fill(x);
43  }
void Fill(long long x)
MonitorElement * me
void CSCMonitorObject::Fill ( float  x,
float  yw 
)
inlineoverridevirtual

Implements cscdqm::MonitorObject.

Definition at line 45 of file CSCMonitorObject.h.

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

45  {
47  me->Fill(x, yw);
48  }
void Fill(long long x)
MonitorElement * me
void CSCMonitorObject::Fill ( float  x,
float  y,
float  zw 
)
inlineoverridevirtual

Implements cscdqm::MonitorObject.

Definition at line 50 of file CSCMonitorObject.h.

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

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

Implements cscdqm::MonitorObject.

Definition at line 55 of file CSCMonitorObject.h.

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

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

Implements cscdqm::MonitorObject.

Definition at line 75 of file CSCMonitorObject.h.

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

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

Implements cscdqm::MonitorObject.

Definition at line 81 of file CSCMonitorObject.h.

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

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

Implements cscdqm::MonitorObject.

Definition at line 123 of file CSCMonitorObject.h.

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

123  {
125  double d = me->getTH1()->GetBinError(bin);
126  return d;
127  }
TH1 * getTH1(void) const
bin
set the eta bin as selection string.
MonitorElement * me
const double CSCMonitorObject::GetEntries ( )
inlineoverridevirtual

Implements cscdqm::MonitorObject.

Definition at line 108 of file CSCMonitorObject.h.

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

108  {
110  double d = me->getTH1()->GetEntries();
111  return d;
112  }
TH1 * getTH1(void) const
MonitorElement * me
const int CSCMonitorObject::GetMaximumBin ( )
inlineoverridevirtual

Implements cscdqm::MonitorObject.

Definition at line 97 of file CSCMonitorObject.h.

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

97  {
99  int i = me->getTH1()->GetMaximumBin();
100  return i;
101  }
TH1 * getTH1(void) const
MonitorElement * me
const TObject* CSCMonitorObject::getRefRootObject ( void  ) const
inlineoverridevirtual

Implements cscdqm::MonitorObject.

Definition at line 119 of file CSCMonitorObject.h.

References MonitorElement::getRefRootObject().

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

Implements cscdqm::MonitorObject.

Definition at line 134 of file CSCMonitorObject.h.

References MonitorElement::getTH1().

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

Implements cscdqm::MonitorObject.

Definition at line 138 of file CSCMonitorObject.h.

References MonitorElement::getTH1().

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 
)
inlineoverridevirtual

Implements cscdqm::MonitorObject.

Definition at line 87 of file CSCMonitorObject.h.

References MonitorElement::getTH1(), CommonMethods::lock(), 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 
)
inlineoverridevirtual

Implements cscdqm::MonitorObject.

Definition at line 92 of file CSCMonitorObject.h.

References CommonMethods::lock(), 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 
)
inlineoverridevirtual

Implements cscdqm::MonitorObject.

Definition at line 65 of file CSCMonitorObject.h.

References CommonMethods::lock(), 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)
Definition: value.py:1
MonitorElement * me
void CSCMonitorObject::SetBinContent ( const int  binX,
const int  binY,
const double  value 
)
inlineoverridevirtual

Implements cscdqm::MonitorObject.

Definition at line 70 of file CSCMonitorObject.h.

References CommonMethods::lock(), 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)
Definition: value.py:1
MonitorElement * me
void CSCMonitorObject::SetBinError ( const int  bin,
const double  error 
)
inlineoverridevirtual

Implements cscdqm::MonitorObject.

Definition at line 129 of file CSCMonitorObject.h.

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

129  {
131  me->getTH1()->SetBinError(bin, error);
132  }
TH1 * getTH1(void) const
bin
set the eta bin as selection string.
MonitorElement * me
void CSCMonitorObject::SetEntries ( const double  value)
inlineoverridevirtual

Implements cscdqm::MonitorObject.

Definition at line 60 of file CSCMonitorObject.h.

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

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

Implements cscdqm::MonitorObject.

Definition at line 114 of file CSCMonitorObject.h.

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

114  {
116  me->getTH1()->SetMaximum(d);
117  }
TH1 * getTH1(void) const
MonitorElement * me
void CSCMonitorObject::SetNormFactor ( const double  factor)
inlineoverridevirtual

Implements cscdqm::MonitorObject.

Definition at line 103 of file CSCMonitorObject.h.

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

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

Member Data Documentation

MonitorElement* CSCMonitorObject::me
private

Definition at line 33 of file CSCMonitorObject.h.