5 #include <TClonesArray.h>
10 class AliT0DataDCS : public TObject {
12 enum {kNAliases=6, kNHistos=3, kNGraphs=3, kNFunctions=2};
13 enum {kHvMin=0, kHvMax=20};
16 AliT0DataDCS(Int_t nRun, UInt_t startTime, UInt_t endTime);
19 void SetRun(Int_t run) {fRun = run;}
20 void SetStartTime(Int_t startTime) {fStartTime = startTime;}
21 void SetEndTime(Int_t endTime) {fEndTime = endTime;}
22 Int_t GetRun() {return fRun;}
23 Int_t GetStartTime() {return fStartTime;}
24 Int_t GetEndTime() {return fEndTime;}
26 void ProcessData(TMap& aliasMap);
28 const char* GetAliasName(UInt_t pos)
29 {return pos<kNAliases ? fAliasNames[pos].Data() : 0;}
30 const TH1F* GetHisto(UInt_t pos)
31 {return pos<kNHistos ? fHv[pos] : 0;}
33 Float_t GetMean(UInt_t pos) {return pos<kNHistos ? fMean[pos] : 0;}
34 Float_t GetWidth(UInt_t pos) {return pos<kNHistos ? fWidth[pos] : 0;}
36 const TGraph* GetGraph(UInt_t pos)
37 {return pos<kNGraphs ? ((TGraph*) fGraphs.UncheckedAt(pos)) : 0;}
39 const TF1* GetFunction() {return fFunc;}
41 Double_t Eval(int pos, Double_t time)
42 {return pos<kNGraphs ? ((TGraph*) fGraphs.UncheckedAt(pos))->Eval(time) : -1;}
44 void Draw(const Option_t* option);
49 void Introduce(UInt_t numAlias, const TObjArray* aliasArr);
50 void CreateGraph(int i, int dim, const Double_t *x, const Double_t *y);
56 Float_t fMean[kNHistos];
57 Float_t fWidth[kNHistos];
59 TString fAliasNames[kNAliases];
66 ClassDef(AliT0DataDCS, 2);