#ifndef ALITPCDATADCS_H #define ALITPCDATADCS_H #include #include #include #include #include // // This is an example of a container class // of the data retreieved from the DCS archive DB. // It is called by the detector's Preprocessor and // it is stored in the CDB. // class AliTPCDataDCS : public TObject { public: enum {kNAliases=6, kNHistos=3, kNGraphs=3, kNFunctions=2}; enum {kHvMin=0, kHvMax=500}; AliTPCDataDCS(); AliTPCDataDCS(Int_t nRun, UInt_t startTime, UInt_t endTime); ~AliTPCDataDCS(); void SetRun(Int_t run) {fRun = run;} void SetStartTime(Int_t startTime) {fStartTime = startTime;} void SetEndTime(Int_t endTime) {fEndTime = endTime;} Int_t GetRun() {return fRun;} Int_t GetStartTime() {return fStartTime;} Int_t GetEndTime() {return fEndTime;} void ProcessData(TMap& aliasMap); const char* GetAliasName(UInt_t pos) {return posEval(time) : -1;} void Draw(const Option_t* option); void Clean(); private: void Init(); void Introduce(UInt_t numAlias, const TObjArray* aliasArr); void CreateGraph(int i, int dim, const Double_t *x, const Double_t *y); Int_t fRun; // run number UInt_t fStartTime; // run start time UInt_t fEndTime; // run end time Float_t fMean[kNHistos]; // array of histos' mean values Float_t fWidth[kNHistos]; // array of histos' widths TString fAliasNames[kNAliases]; // array of DCS alias names TH1F *fHv[kNHistos]; // array of histos TClonesArray fGraphs; // array of TGraphs TF1 *fFunc; // fit function Bool_t fIsProcessed; // End-of-process flag ClassDef(AliTPCDataDCS, 2); }; #endif