CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Types | 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...
 

Protected Types

typedef dqm::legacy::DQMStore DQMStore
 
typedef dqm::legacy::MonitorElement MonitorElement
 

Private Attributes

MonitorElementme
 

Additional Inherited Members

- Public Attributes inherited from cscdqm::Lock
bool mutex = false
 

Detailed Description

cscdqm::MonitorObject implementation used in CSCMonitorModuleCmn

Definition at line 29 of file CSCMonitorObject.h.

Member Typedef Documentation

Definition at line 31 of file CSCMonitorObject.h.

Definition at line 32 of file CSCMonitorObject.h.

Constructor & Destructor Documentation

CSCMonitorObject::CSCMonitorObject ( MonitorElement p_me)
inline

Definition at line 38 of file CSCMonitorObject.h.

References me.

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

Definition at line 39 of file CSCMonitorObject.h.

39 {}

Member Function Documentation

void CSCMonitorObject::Fill ( float  x)
inlineoverridevirtual
void CSCMonitorObject::Fill ( float  x,
float  yw 
)
inlineoverridevirtual
void CSCMonitorObject::Fill ( float  x,
float  y,
float  zw 
)
inlineoverridevirtual

Implements cscdqm::MonitorObject.

Definition at line 51 of file CSCMonitorObject.h.

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

51  {
53  me->Fill(x, y, zw);
54  }
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 56 of file CSCMonitorObject.h.

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

56  {
58  me->Fill(x, y, z, w);
59  }
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 76 of file CSCMonitorObject.h.

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

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

Implements cscdqm::MonitorObject.

Definition at line 82 of file CSCMonitorObject.h.

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

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

Implements cscdqm::MonitorObject.

Definition at line 122 of file CSCMonitorObject.h.

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

122  {
124  double d = me->getTH1()->GetBinError(bin);
125  return d;
126  }
tuple d
Definition: ztail.py:151
MonitorElement * me
virtual TH1 * getTH1() const
const double CSCMonitorObject::GetEntries ( )
inlineoverridevirtual

Implements cscdqm::MonitorObject.

Definition at line 109 of file CSCMonitorObject.h.

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

109  {
111  double d = me->getTH1()->GetEntries();
112  return d;
113  }
tuple d
Definition: ztail.py:151
MonitorElement * me
virtual TH1 * getTH1() const
const int CSCMonitorObject::GetMaximumBin ( )
inlineoverridevirtual

Implements cscdqm::MonitorObject.

Definition at line 98 of file CSCMonitorObject.h.

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

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

Implements cscdqm::MonitorObject.

Definition at line 120 of file CSCMonitorObject.h.

120 { return nullptr; }
const TH1* CSCMonitorObject::getTH1 ( void  ) const
inlineoverridevirtual

Implements cscdqm::MonitorObject.

Definition at line 133 of file CSCMonitorObject.h.

References dqm::legacy::MonitorElement::getTH1(), and me.

133 { return me->getTH1(); }
MonitorElement * me
virtual TH1 * getTH1() const
TH1* CSCMonitorObject::getTH1Lock ( void  )
inlineoverridevirtual

Implements cscdqm::MonitorObject.

Definition at line 135 of file CSCMonitorObject.h.

References dqm::legacy::MonitorElement::getTH1(), and me.

135 { return me->getTH1(); }
MonitorElement * me
virtual TH1 * getTH1() const
void CSCMonitorObject::SetAxisRange ( const double  from,
const double  to,
const std::string &  axis 
)
inlineoverridevirtual

Implements cscdqm::MonitorObject.

Definition at line 88 of file CSCMonitorObject.h.

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

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

Implements cscdqm::MonitorObject.

Definition at line 93 of file CSCMonitorObject.h.

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

93  {
95  me->setAxisTitle(title, axisN);
96  }
MonitorElement * me
virtual 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 66 of file CSCMonitorObject.h.

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

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

Implements cscdqm::MonitorObject.

Definition at line 71 of file CSCMonitorObject.h.

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

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

Implements cscdqm::MonitorObject.

Definition at line 128 of file CSCMonitorObject.h.

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

128  {
130  me->getTH1()->SetBinError(bin, error);
131  }
MonitorElement * me
virtual TH1 * getTH1() const
void CSCMonitorObject::SetEntries ( const double  value)
inlineoverridevirtual

Implements cscdqm::MonitorObject.

Definition at line 61 of file CSCMonitorObject.h.

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

61  {
64  }
virtual void setEntries(double nentries)
set # of entries
MonitorElement * me
void CSCMonitorObject::SetMaximum ( const double  d)
inlineoverridevirtual

Implements cscdqm::MonitorObject.

Definition at line 115 of file CSCMonitorObject.h.

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

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

Implements cscdqm::MonitorObject.

Definition at line 104 of file CSCMonitorObject.h.

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

104  {
106  me->getTH1()->SetNormFactor(factor);
107  }
MonitorElement * me
virtual TH1 * getTH1() const

Member Data Documentation

MonitorElement* CSCMonitorObject::me
private