1 #ifndef ALIMONITORTREND_H
2 #define ALIMONITORTREND_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 #include "AliMonitorPlot.h"
11 class AliMonitorTrend : public AliMonitorPlot {
14 AliMonitorTrend(const AliMonitorTrend& trend);
15 AliMonitorTrend(const char* name, const char* title,
16 const char* label, Double_t min = 0, Double_t max = 0);
17 virtual ~AliMonitorTrend();
19 virtual void SetReference(TH1* ref);
20 virtual void SetReference(AliMonitorPlot* ref);
22 void Fill(Double_t x);
24 virtual void Update();
25 virtual void Add(AliMonitorPlot* plot);
27 virtual void ResetList();
32 virtual Bool_t ComparePlot();
33 virtual Bool_t GetEvent(Int_t number = 1);
34 virtual Bool_t GetSum(Int_t number);
35 virtual Bool_t GetRun();
36 virtual void DrawPlot();
38 TH1* CreateHisto(Int_t nBins);
40 TString fLabel; // label of the y axis
41 Double_t fMin; // minimal y axis value
42 Double_t fMax; // maximal y axis value
43 TArrayD fData; // monitored values
44 static Int_t fgIncSize; //! amount by which the TArrayD is increased
46 TH1* fHistoDraw; //! the histogram for the trend, used for comparison to a reference
47 Double_t fRefMean; //! mean reference value
48 Double_t fRefSigma; //! standard deviation of the reference value
49 TH1* fHistoCompare; //! the result of the comparison to the reference, only bins with large deviation are set
51 ClassDef(AliMonitorTrend, 1) // histogram for monitoring the quality of the recorded data (time dependent value)