]> git.uio.no Git - u/mrichter/AliRoot.git/blob - T0/AliT0DataDCS.h
2 overlaps corrected.
[u/mrichter/AliRoot.git] / T0 / AliT0DataDCS.h
1 #ifndef AliT0DataDCS_H
2 #define AliT0DataDCS_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6
7 #include <TMap.h>
8 #include <TClonesArray.h>
9 #include <TGraph.h>
10
11 // AliT0DataDCS class
12 // fetching T0 data points from DCS, calculating mean values for the run
13 // and storing the result to Reference DB
14
15 class AliT0DataDCS : public TObject {
16 public:
17         enum {kNAliases=32};
18
19         AliT0DataDCS();
20         AliT0DataDCS(Int_t nRun, UInt_t startTime, UInt_t endTime);
21         ~AliT0DataDCS();
22
23         void SetRun(Int_t run) {fRun = run;}
24         void SetStartTime(Int_t startTime) {fStartTime = startTime;}
25         void SetEndTime(Int_t endTime) {fEndTime = endTime;}
26         Int_t GetRun() const {return fRun;}
27         Int_t GetStartTime() const {return fStartTime;}
28         Int_t GetEndTime() const {return fEndTime;}
29
30         Bool_t ProcessData(TMap& aliasMap);
31
32 private:
33         void Init();
34         void Introduce(UInt_t numAlias, const TObjArray* aliasArr);
35
36         Int_t fRun;     // Run number
37         UInt_t fStartTime;      // Start time
38         UInt_t fEndTime;        // End time
39         Float_t fScalerMean[32];        // Mean value of T0 scaler counts from the entire run 
40         TString fAliasNames[kNAliases];         // T0 data points aliases  
41         Bool_t fIsProcessed;                    // status - was processing data successful
42         ClassDef(AliT0DataDCS, 2);
43
44 protected:
45 };
46
47 #endif