1 #ifndef AliACORDEDataDCS_H
2 #define AliACORDEDataDCS_H
5 #include <TClonesArray.h>
10 class AliACORDEDataDCS : public TObject {
12 enum {kNAliases=60, kNHistos=60, kNGraphs=60, kNFunctions=2};
13 enum {kHvMin=0, kHvMax=20};
16 AliACORDEDataDCS(Int_t nRun, UInt_t startTime, UInt_t endTime);
17 AliACORDEDataDCS(const AliACORDEDataDCS & data);
18 AliACORDEDataDCS& operator=(const AliACORDEDataDCS & data);
22 void SetRun(Int_t run) {fRun = run;}
23 void SetStartTime(Int_t startTime) {fStartTime = startTime;}
24 void SetEndTime(Int_t endTime) {fEndTime = endTime;}
25 Int_t GetRun() {return fRun;}
26 Int_t GetStartTime() {return fStartTime;}
27 Int_t GetEndTime() {return fEndTime;}
29 void ProcessData(TMap& aliasMap);
31 const char* GetAliasName(UInt_t pos)
32 {return pos<kNAliases ? fAliasNames[pos].Data() : 0;}
33 const TH1F* GetHisto(UInt_t pos)
34 {return pos<kNHistos ? fHv[pos] : 0;}
36 Float_t GetMean(UInt_t pos) {return pos<kNHistos ? fMean[pos] : 0;}
37 Float_t GetWidth(UInt_t pos) {return pos<kNHistos ? fWidth[pos] : 0;}
39 const TGraph* GetGraph(UInt_t pos)
40 {return pos<kNGraphs ? ((TGraph*) fGraphs.UncheckedAt(pos)) : 0;}
42 const TF1* GetFunction() {return fFunc;}
44 Double_t Eval(int pos, Double_t time)
45 {return pos<kNGraphs ? ((TGraph*) fGraphs.UncheckedAt(pos))->Eval(time) : -1;}
47 void Draw(const Option_t* option);
52 void Introduce(UInt_t numAlias, const TObjArray* aliasArr);
53 void CreateGraph(int i, int dim, const Double_t *x, const Double_t *y);
59 Float_t fMean[kNHistos];
60 Float_t fWidth[kNHistos];
62 TString fAliasNames[kNAliases];
69 ClassDef(AliACORDEDataDCS, 1);