CMS 3D CMS Logo

CSCDQM_MonitorObject.h
Go to the documentation of this file.
1 /*
2  * =====================================================================================
3  *
4  * Filename: CSCDQM_MonitorObject.h
5  *
6  * Description: Monitor Object interface
7  *
8  * Version: 1.0
9  * Created: 10/06/2008 01:49:51 PM
10  * Revision: none
11  * Compiler: gcc
12  *
13  * Author: Valdas Rapsevicius, valdas.rapsevicius@cern.ch
14  * Company: CERN, CH
15  *
16  * =====================================================================================
17  */
18 
19 #ifndef CSCDQM_MonitorObject_H
20 #define CSCDQM_MonitorObject_H
21 
22 #include <TH1.h>
23 
24 #include "CSCDQM_Logger.h"
25 #include "CSCDQM_Lock.h"
26 
27 namespace cscdqm {
28 
35  class MonitorObject : public Lock {
36  public:
37  virtual void Fill(float x) = 0;
38  virtual void Fill(float x, float yw) = 0;
39  virtual void Fill(float x, float y, float zw) = 0;
40  virtual void Fill(float x, float y, float z, float w) = 0;
41  virtual const TH1 *getTH1(void) const = 0;
42  virtual TH1 *getTH1Lock(void) = 0;
43  virtual void SetEntries(const double value) = 0;
44  virtual const double GetEntries() = 0;
45  virtual void SetBinContent(const int binX, const double value) = 0;
46  virtual void SetBinContent(const int binX, const int binY, const double value) = 0;
47  virtual double GetBinContent(const int binX) = 0;
48  virtual double GetBinContent(const int binX, int binY) = 0;
49  virtual void SetAxisRange(const double from, const double to, const std::string &axis) = 0;
50  virtual void setAxisTitle(const std::string title, const int axisN) = 0;
51  virtual const TObject *getRefRootObject(void) const = 0;
52  virtual const int GetMaximumBin() = 0;
53  virtual void SetMaximum(const double d) = 0;
54  virtual void SetNormFactor(const double factor = 1) = 0;
55  virtual const double GetBinError(const int bin) = 0;
56  virtual void SetBinError(const int bin, const double error) = 0;
57  };
58 
59 } // namespace cscdqm
60 
61 #endif
CSCDQM_Logger.h
cscdqm::MonitorObject::SetAxisRange
virtual void SetAxisRange(const double from, const double to, const std::string &axis)=0
runGCPTkAlMap.title
string title
Definition: runGCPTkAlMap.py:94
cscdqm::MonitorObject::GetEntries
virtual const double GetEntries()=0
cscdqm::MonitorObject::getTH1
virtual const TH1 * getTH1(void) const =0
cscdqm::MonitorObject::SetEntries
virtual void SetEntries(const double value)=0
to
cscdqm::MonitorObject::Fill
virtual void Fill(float x)=0
cscdqm::MonitorObject::GetBinError
virtual const double GetBinError(const int bin)=0
cscdqm::MonitorObject::GetMaximumBin
virtual const int GetMaximumBin()=0
cscdqm::MonitorObject::SetNormFactor
virtual void SetNormFactor(const double factor=1)=0
relativeConstraints.error
error
Definition: relativeConstraints.py:53
w
const double w
Definition: UKUtility.cc:23
cscdqm::Lock
Lockable interface that blocks thread.
Definition: CSCDQM_Lock.h:42
DQMScaleToClient_cfi.factor
factor
Definition: DQMScaleToClient_cfi.py:8
cscdqm::MonitorObject::getTH1Lock
virtual TH1 * getTH1Lock(void)=0
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
cscdqm
Definition: CSCDQM_DCSBase.h:29
value
Definition: value.py:1
cscdqm::MonitorObject::SetBinContent
virtual void SetBinContent(const int binX, const double value)=0
newFWLiteAna.bin
bin
Definition: newFWLiteAna.py:161
cscdqm::MonitorObject::SetMaximum
virtual void SetMaximum(const double d)=0
cscdqm::MonitorObject
Monitoring Object interface used to cover Root object and provide common interface to EventProcessor ...
Definition: CSCDQM_MonitorObject.h:35
cscdqm::MonitorObject::SetBinError
virtual void SetBinError(const int bin, const double error)=0
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
CSCDQM_Lock.h
cscdqm::MonitorObject::setAxisTitle
virtual void setAxisTitle(const std::string title, const int axisN)=0
cscdqm::MonitorObject::GetBinContent
virtual double GetBinContent(const int binX)=0
cscdqm::MonitorObject::getRefRootObject
virtual const TObject * getRefRootObject(void) const =0