CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
37  public:
38 
39  virtual void Fill(float x) = 0;
40  virtual void Fill(float x, float yw) = 0;
41  virtual void Fill(float x, float y, float zw) = 0;
42  virtual void Fill(float x, float y, float z, float w) = 0;
43  virtual const TH1 *getTH1(void) const = 0;
44  virtual TH1 *getTH1Lock(void) = 0;
45  virtual void SetEntries(const double value) = 0;
46  virtual const double GetEntries() = 0;
47  virtual void SetBinContent(const int binX, const double value) = 0;
48  virtual void SetBinContent(const int binX, const int binY, const double value) = 0;
49  virtual double GetBinContent(const int binX) = 0;
50  virtual double GetBinContent(const int binX, int binY) = 0;
51  virtual void SetAxisRange(const double from, const double to, const std::string& axis) = 0;
52  virtual void setAxisTitle(const std::string title, const int axisN) = 0;
53  virtual const TObject *getRefRootObject(void) const = 0;
54  virtual const int GetMaximumBin() = 0;
55  virtual void SetMaximum(const double d) = 0;
56  virtual void SetNormFactor(const double factor = 1) = 0;
57  virtual const double GetBinError(const int bin) = 0;
58  virtual void SetBinError(const int bin, const double error) = 0;
59 
60  };
61 
62 }
63 
64 #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
virtual void Fill(float x)=0
Monitoring Object interface used to cover Root object and provide common interface to EventProcessor ...
auto zw(V v) -> Vec2< typenamestd::remove_reference< decltype(v[0])>::type >
Definition: ExtVec.h:36
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
float float float z
virtual TH1 * getTH1Lock(void)=0
virtual void SetBinContent(const int binX, const double value)=0
virtual void SetBinError(const int bin, const double error)=0
virtual double GetBinContent(const int binX)=0
T w() const
Definition: DDAxes.h:10
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