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
virtual void SetAxisRange(const double from, const double to, const std::string &axis)=0
virtual void SetEntries(const double value)=0
virtual const TObject * getRefRootObject(void) const =0
T w() const
virtual void Fill(float x)=0
Monitoring Object interface used to cover Root object and provide common interface to EventProcessor ...
virtual const double GetBinError(const int bin)=0
virtual const double GetEntries()=0
virtual const TH1 * getTH1(void) const =0
virtual const int GetMaximumBin()=0
virtual void SetNormFactor(const double factor=1)=0
virtual TH1 * getTH1Lock(void)=0
virtual void SetBinContent(const int binX, const double value)=0
Definition: value.py:1
d
Definition: ztail.py:151
virtual void SetBinError(const int bin, const double error)=0
virtual double GetBinContent(const int binX)=0
float x
auto zw(V v) -> Vec2< typename std::remove_reference< decltype(v[0])>::type >
Definition: ExtVec.h:75
virtual void SetMaximum(const double d)=0
Lockable interface that blocks thread.
Definition: CSCDQM_Lock.h:42
virtual void setAxisTitle(const std::string title, const int axisN)=0