Line data Source code
1 : #ifndef ALIADTRENDING_H
2 : #define ALIADTRENDING_H
3 : /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights
4 : * reserved.
5 : *
6 : * See cxx source for full Copyright notice
7 : */
8 :
9 :
10 : //
11 : // Class AliADTrending
12 : // ---------------------------
13 : //
14 : // class used in QA to publish variables evolution versus time in AMORE.
15 : // These histo are the one which will be looked at by QA Shifter
16 : //
17 :
18 :
19 : #include <TH1.h>
20 :
21 : class TGraph;
22 : class TMultiGraph;
23 :
24 : class AliADTrending : public TH1 {
25 : public:
26 : AliADTrending();
27 : AliADTrending(const char* name, const char* title);
28 : virtual ~AliADTrending();
29 : AliADTrending(const AliADTrending &trend);
30 :
31 0 : Double_t * GetTime(){return fTime;};
32 0 : Double_t * GetChannel(Int_t i){return fData[i];};
33 0 : Double_t GetLastTime(){return fTime[fNEntries-1];};
34 0 : Double_t GetLastChannel(Int_t i){return fData[i][fNEntries];};
35 0 : UInt_t GetNEntries(){return fNEntries;};
36 : void AddEntry(Double_t * data, UInt_t time);
37 : void PrintEntry(UInt_t entry);
38 : virtual void Draw(Option_t *option="");
39 :
40 : private:
41 :
42 : AliADTrending& operator= (const AliADTrending & /*trend*/); // Not implemented
43 : enum{kDataSize = 500};
44 : Double_t fData[4][kDataSize];
45 : Double_t fTime[kDataSize];
46 : UInt_t fNEntries;
47 : TMultiGraph *fMultiGraphs;
48 : TGraph * fGraphs[4];
49 :
50 16 : ClassDef( AliADTrending, 2 )
51 :
52 : };
53 :
54 : #endif // ALIADTRENDING_H
55 :
|