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 */
13 class AliMonitorPlot : public TNamed {
16 AliMonitorPlot(const AliMonitorPlot& plot);
17 AliMonitorPlot(const char* name, const char* title);
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;};
25 virtual void Update() = 0;
26 virtual void Add(AliMonitorPlot* plot) = 0;
27 virtual void Reset() = 0;
28 virtual void ResetList() = 0;
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;};
35 virtual void DrawEvent(Int_t number = 1); // *MENU*
36 virtual void DrawSum(Int_t number); // *MENU*
37 virtual void DrawRun(); // *MENU*
39 virtual Bool_t CompareEvent(Int_t number = 1);
40 virtual Bool_t CompareSum(Int_t number);
41 virtual Bool_t CompareRun();
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;
50 TString fDescription; // description of the monitor histogram
51 Int_t fNumberOfEvents;// number of monitored events
53 static Bool_t fgDrawRef; //! draw the reference histogram or not
54 static Float_t fgThreshold; //! threshold for the comparison to the reference histogram
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
60 ClassDef(AliMonitorPlot, 1) // base class for plots used to monitor the quality of the recorded data