CMS 3D CMS Logo

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

◆ DQMStore

Definition at line 31 of file CSCMonitorObject.h.

◆ MonitorElement

Definition at line 32 of file CSCMonitorObject.h.

Constructor & Destructor Documentation

◆ CSCMonitorObject()

CSCMonitorObject::CSCMonitorObject ( MonitorElement p_me)
inline

Definition at line 38 of file CSCMonitorObject.h.

References me.

38 { me = p_me; }
MonitorElement * me

◆ ~CSCMonitorObject()

CSCMonitorObject::~CSCMonitorObject ( )
inlineoverride

Definition at line 39 of file CSCMonitorObject.h.

39 {}

Member Function Documentation

◆ Fill() [1/4]

void CSCMonitorObject::Fill ( float  x)
inlineoverridevirtual

◆ Fill() [2/4]

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

◆ Fill() [3/4]

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, cscdqm::Lock::mutex, x, y, and zw().

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:84

◆ Fill() [4/4]

void CSCMonitorObject::Fill ( float  x,
float  y,
float  z,
float  w 
)
inlineoverridevirtual

◆ GetBinContent() [1/2]

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  }
d
Definition: ztail.py:151
MonitorElement * me
virtual double getBinContent(int binx) const
get content of bin (1-D)

◆ GetBinContent() [2/2]

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  }
d
Definition: ztail.py:151
MonitorElement * me
virtual double getBinContent(int binx) const
get content of bin (1-D)

◆ GetBinError()

const double CSCMonitorObject::GetBinError ( const int  bin)
inlineoverridevirtual

Implements cscdqm::MonitorObject.

Definition at line 122 of file CSCMonitorObject.h.

References newFWLiteAna::bin, 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  }
d
Definition: ztail.py:151
MonitorElement * me
virtual TH1 * getTH1() const

◆ GetEntries()

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  }
d
Definition: ztail.py:151
MonitorElement * me
virtual TH1 * getTH1() const

◆ GetMaximumBin()

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

◆ getRefRootObject()

const TObject* CSCMonitorObject::getRefRootObject ( void  ) const
inlineoverridevirtual

Implements cscdqm::MonitorObject.

Definition at line 120 of file CSCMonitorObject.h.

120 { return nullptr; }

◆ getTH1()

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

◆ getTH1Lock()

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

◆ SetAxisRange()

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

◆ setAxisTitle()

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, dqm::impl::MonitorElement::setAxisTitle(), and runGCPTkAlMap::title.

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)

◆ SetBinContent() [1/2]

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  }
Definition: value.py:1
MonitorElement * me
virtual void setBinContent(int binx, double content)
set content of bin (1-D)

◆ SetBinContent() [2/2]

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  }
Definition: value.py:1
MonitorElement * me
virtual void setBinContent(int binx, double content)
set content of bin (1-D)

◆ SetBinError()

void CSCMonitorObject::SetBinError ( const int  bin,
const double  error 
)
inlineoverridevirtual

◆ SetEntries()

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
Definition: value.py:1
MonitorElement * me

◆ SetMaximum()

void CSCMonitorObject::SetMaximum ( const double  d)
inlineoverridevirtual

Implements cscdqm::MonitorObject.

Definition at line 115 of file CSCMonitorObject.h.

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

115  {
117  me->getTH1()->SetMaximum(d);
118  }
d
Definition: ztail.py:151
MonitorElement * me
virtual TH1 * getTH1() const

◆ SetNormFactor()

void CSCMonitorObject::SetNormFactor ( const double  factor)
inlineoverridevirtual

Member Data Documentation

◆ me

MonitorElement* CSCMonitorObject::me
private