]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MONITOR/AliMonitorPlot.h
Classes for reading raw data moved to the RAW module. New on-line MONITORING module...
[u/mrichter/AliRoot.git] / MONITOR / AliMonitorPlot.h
1 #ifndef ALIMONITORPLOT_H
2 #define ALIMONITORPLOT_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7
8 #include <TNamed.h>
9 #include <TH1.h>
10 #include <TString.h>
11
12
13 class AliMonitorPlot : public TNamed {
14 public:
15   AliMonitorPlot();
16   AliMonitorPlot(const AliMonitorPlot& plot);
17   AliMonitorPlot(const char* name, const char* title);
18
19   virtual void    SetReference(TH1* ref) = 0;
20   virtual void    SetReference(AliMonitorPlot* ref) = 0;
21   inline void     SetDescription(TString description) 
22                     {fDescription = description;};
23   inline TString  GetDescription() {return fDescription;};
24
25   virtual void    Update() = 0;
26   virtual void    Add(AliMonitorPlot* plot) = 0;
27   virtual void    Reset() = 0;
28   virtual void    ResetList() = 0;
29
30   static void     SetDrawRef(Bool_t drawRef = kTRUE); // *MENU*
31   static Bool_t   GetDrawRef() {return fgDrawRef;};
32   static void     SetThreshold(Float_t threshold); // *MENU*
33   static Float_t  GetThreshold() {return fgThreshold;};
34
35   virtual void    DrawEvent(Int_t number = 1); // *MENU*
36   virtual void    DrawSum(Int_t number); // *MENU*
37   virtual void    DrawRun(); // *MENU*
38
39   virtual Bool_t  CompareEvent(Int_t number = 1);
40   virtual Bool_t  CompareSum(Int_t number);
41   virtual Bool_t  CompareRun();
42
43 protected:
44   virtual Bool_t  ComparePlot() = 0;
45   virtual Bool_t  GetEvent(Int_t number = 1) = 0;
46   virtual Bool_t  GetSum(Int_t number) = 0;
47   virtual Bool_t  GetRun() = 0;
48   virtual void    DrawPlot() = 0;
49
50   TString         fDescription;  // description of the monitor histogram
51   Int_t           fNumberOfEvents;// number of monitored events
52
53   static Bool_t   fgDrawRef;     //! draw the reference histogram or not
54   static Float_t  fgThreshold;   //! threshold for the comparison to the reference histogram
55
56   static Color_t  fgColorData;   //! color of the data histogram
57   static Color_t  fgColorRef;    //! color of the reference histogram
58   static Color_t  fgColorCompare;//! color of the comparison histogram
59
60   ClassDef(AliMonitorPlot, 1)   // base class for plots used to monitor the quality of the recorded data
61 };
62  
63
64 #endif
65
66
67
68
69
70
71
72
73