Added option to write non-std jet branch and jet background to a separate file, added...
[u/mrichter/AliRoot.git] / ZDC / AliZDCDataDCS.h
CommitLineData
64a7c78d 1#ifndef AliZDCDataDCS_H
2#define AliZDCDataDCS_H
3
5a8e8156 4////////////////////////////////////////////////
5// Class for ZDC DCS data //
6////////////////////////////////////////////////
7
8
64a7c78d 9#include <TMap.h>
64a7c78d 10
11class AliZDCDataDCS : public TObject {
12public:
bf867209 13 enum {kNAliases=28};
e83c8d88 14
15 AliZDCDataDCS();
16 AliZDCDataDCS(Int_t nRun, UInt_t startTime, UInt_t endTime,
17 UInt_t startTimeDCSQuery, UInt_t endTimeDCSQuery);
18 AliZDCDataDCS(const AliZDCDataDCS & data);
19 AliZDCDataDCS& operator=(const AliZDCDataDCS & data);
20 ~AliZDCDataDCS();
21
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 void SetStartTimeDCSQuery(Int_t startTimeDCSQuery) {fStartTimeDCSQuery = startTimeDCSQuery;}
26 void SetEndTimeDCSQuery(Int_t endTimeDCSQuery) {fEndTimeDCSQuery = endTimeDCSQuery;}
27 void SetCalibData(Float_t *val) {for(Int_t i=0; i<kNAliases; i++) fCalibData[i] = val[i];}
28 void SetCalibData(Int_t i, Float_t val) {fCalibData[i] = val;}
29 //
30 Int_t GetRun() const {return fRun;}
31 Int_t GetStartTime() const {return fStartTime;}
32 Int_t GetEndTime() const {return fEndTime;}
33 Int_t GetStartTimeDCSQuery() const {return fStartTimeDCSQuery;}
34 Int_t GetEndTimeDCSQuery() const {return fEndTimeDCSQuery;}
35 Float_t GetCalibData() const {return *fCalibData;}
36 Float_t GetCalibData(Int_t i) const {return fCalibData[i];}
37 Float_t GetTimeStamp() const {return *fTimeStamp;}
38 Float_t GetTimeStamp(Int_t i) const {return fTimeStamp[i];}
39
40 Bool_t ProcessData(TMap& aliasMap);
41
42 const char* GetAliasName(UInt_t pos) const
43 {return pos<kNAliases ? fAliasNames[pos].Data() : 0;}
44
64a7c78d 45private:
e83c8d88 46 void Init();
47 void Introduce(UInt_t numAlias, const TObjArray* aliasArr);
64a7c78d 48
e83c8d88 49 Int_t fRun; // Run number
50 UInt_t fStartTime; // Start of run time
51 UInt_t fEndTime; // End of run time
52 Int_t fStartTimeDCSQuery; // start time DCSQuery
53 Int_t fEndTimeDCSQuery; // end time DCSQuery
64a7c78d 54
e83c8d88 55 TString fAliasNames[kNAliases];// Name of the aliases provided by the DCS
56 Double_t fCalibData[kNAliases]; // Array containing calibration data
57 Float_t fTimeStamp[kNAliases]; // Array containing time stamps
c43818e0 58
e83c8d88 59 Bool_t fIsProcessed; // Flag set when data are processed
64a7c78d 60
bf867209 61 ClassDef(AliZDCDataDCS, 5);
64a7c78d 62};
63
64#endif