]>
Commit | Line | Data |
---|---|---|
04fa961a | 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 */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
8 | #include "AliMonitorPlot.h" | |
9 | ||
10 | ||
11 | class AliMonitorTrend : public AliMonitorPlot { | |
12 | public: | |
13 | AliMonitorTrend(); | |
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(); | |
18 | ||
19 | virtual void SetReference(TH1* ref); | |
20 | virtual void SetReference(AliMonitorPlot* ref); | |
21 | ||
22 | void Fill(Double_t x); | |
23 | ||
24 | virtual void Update(); | |
25 | virtual void Add(AliMonitorPlot* plot); | |
26 | virtual void Reset(); | |
27 | virtual void ResetList(); | |
28 | ||
29 | Double_t GetMean(); | |
30 | Double_t GetSigma(); | |
31 | protected: | |
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(); | |
37 | ||
38 | TH1* CreateHisto(Int_t nBins); | |
39 | ||
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 | |
45 | ||
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 | |
50 | ||
51 | ClassDef(AliMonitorTrend, 1) // histogram for monitoring the quality of the recorded data (time dependent value) | |
52 | }; | |
53 | ||
54 | ||
55 | #endif | |
56 | ||
57 | ||
58 | ||
59 | ||
60 | ||
61 | ||
62 | ||
63 | ||
64 |