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 y, float z, float w) override
 
void Fill (float x, float y, float zw) override
 
void Fill (float x, float yw) 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.

38 { me = p_me; }

References 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

Implements cscdqm::MonitorObject.

Definition at line 41 of file CSCMonitorObject.h.

41  {
43  me->Fill(x);
44  }

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

◆ Fill() [2/4]

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

Implements cscdqm::MonitorObject.

Definition at line 56 of file CSCMonitorObject.h.

56  {
58  me->Fill(x, y, z, w);
59  }

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

◆ Fill() [3/4]

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

Implements cscdqm::MonitorObject.

Definition at line 51 of file CSCMonitorObject.h.

51  {
53  me->Fill(x, y, zw);
54  }

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

◆ Fill() [4/4]

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

Implements cscdqm::MonitorObject.

Definition at line 46 of file CSCMonitorObject.h.

46  {
48  me->Fill(x, yw);
49  }

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

◆ GetBinContent() [1/2]

double CSCMonitorObject::GetBinContent ( const int  binX)
inlineoverridevirtual

Implements cscdqm::MonitorObject.

Definition at line 76 of file CSCMonitorObject.h.

76  {
78  double d = me->getBinContent(binX);
79  return d;
80  }

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

◆ GetBinContent() [2/2]

double CSCMonitorObject::GetBinContent ( const int  binX,
int  binY 
)
inlineoverridevirtual

Implements cscdqm::MonitorObject.

Definition at line 82 of file CSCMonitorObject.h.

82  {
84  double d = me->getBinContent(binX, binY);
85  return d;
86  }

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

◆ GetBinError()

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

Implements cscdqm::MonitorObject.

Definition at line 122 of file CSCMonitorObject.h.

122  {
124  double d = me->getTH1()->GetBinError(bin);
125  return d;
126  }

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

◆ GetEntries()

const double CSCMonitorObject::GetEntries ( )
inlineoverridevirtual

Implements cscdqm::MonitorObject.

Definition at line 109 of file CSCMonitorObject.h.

109  {
111  double d = me->getTH1()->GetEntries();
112  return d;
113  }

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

◆ GetMaximumBin()

const int CSCMonitorObject::GetMaximumBin ( )
inlineoverridevirtual

Implements cscdqm::MonitorObject.

Definition at line 98 of file CSCMonitorObject.h.

98  {
100  int i = me->getTH1()->GetMaximumBin();
101  return i;
102  }

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

◆ 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.

133 { return me->getTH1(); }

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

◆ getTH1Lock()

TH1* CSCMonitorObject::getTH1Lock ( void  )
inlineoverridevirtual

Implements cscdqm::MonitorObject.

Definition at line 135 of file CSCMonitorObject.h.

135 { return me->getTH1(); }

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

◆ 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.

88  {
90  me->getTH1()->SetAxisRange(from, to, axis.c_str());
91  }

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

◆ setAxisTitle()

void CSCMonitorObject::setAxisTitle ( const std::string  title,
const int  axisN 
)
inlineoverridevirtual

◆ SetBinContent() [1/2]

void CSCMonitorObject::SetBinContent ( const int  binX,
const double  value 
)
inlineoverridevirtual

◆ 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.

71  {
73  me->setBinContent(binX, binY, value);
74  }

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

◆ SetBinError()

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

◆ SetEntries()

void CSCMonitorObject::SetEntries ( const double  value)
inlineoverridevirtual

◆ SetMaximum()

void CSCMonitorObject::SetMaximum ( const double  d)
inlineoverridevirtual

Implements cscdqm::MonitorObject.

Definition at line 115 of file CSCMonitorObject.h.

115  {
117  me->getTH1()->SetMaximum(d);
118  }

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

◆ SetNormFactor()

void CSCMonitorObject::SetNormFactor ( const double  factor)
inlineoverridevirtual

Member Data Documentation

◆ me

MonitorElement* CSCMonitorObject::me
private
DDAxes::y
runGCPTkAlMap.title
string title
Definition: runGCPTkAlMap.py:94
mps_fire.i
i
Definition: mps_fire.py:428
dqm::impl::MonitorElement::setEntries
virtual void setEntries(double nentries)
set # of entries
Definition: MonitorElement.cc:738
to
CSCMonitorObject::me
MonitorElement * me
Definition: CSCMonitorObject.h:35
DDAxes::x
relativeConstraints.error
error
Definition: relativeConstraints.py:53
w
const double w
Definition: UKUtility.cc:23
dqm::impl::MonitorElement::Fill
void Fill(long long x)
Definition: MonitorElement.h:290
DDAxes::z
DQMScaleToClient_cfi.factor
factor
Definition: DQMScaleToClient_cfi.py:8
dqm::legacy::MonitorElement::getTH1
virtual TH1 * getTH1() const
Definition: MonitorElement.h:474
CommonMethods.lock
def lock()
Definition: CommonMethods.py:82
value
Definition: value.py:1
newFWLiteAna.bin
bin
Definition: newFWLiteAna.py:161
dqm::impl::MonitorElement::setBinContent
virtual void setBinContent(int binx, double content)
set content of bin (1-D)
Definition: MonitorElement.cc:691
cscdqm::LockType
Definition: CSCDQM_Lock.h:31
cscdqm::Lock::mutex
bool mutex
Definition: CSCDQM_Lock.h:48
ztail.d
d
Definition: ztail.py:151
zw
auto zw(V v) -> Vec2< typename std::remove_reference< decltype(v[0])>::type >
Definition: ExtVec.h:75
dqm::impl::MonitorElement::setAxisTitle
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
Definition: MonitorElement.cc:800
dqm::impl::MonitorElement::getBinContent
virtual double getBinContent(int binx) const
get content of bin (1-D)
Definition: MonitorElement.cc:592