]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - VZERO/AliVZERODataDCS.h
changes and additions for the response maker task. fix visualisation (M. Verweij)
[u/mrichter/AliRoot.git] / VZERO / AliVZERODataDCS.h
index 578ba76261e1c36a6055552c933c91b811b3796b..53c7de920f621bc78fee9b428d5a7be7ed52a7bc 100644 (file)
@@ -20,21 +20,25 @@ class TH1F;
 
 class AliVZERODataDCS : public TObject {
 public:
-  enum {kNAliases=64,kNGraphs=64};
-  enum {kHvMin=0, kHvMax=2000};
+  enum {kNAliases=240,kNGraphs=64,kNHvChannel=64,kNLvChannel=16,kNCIUBoards = 8};
+  enum {kHvMin=0, kHvMax=3000};
   
   AliVZERODataDCS();
-  AliVZERODataDCS(Int_t nRun, UInt_t startTime, UInt_t endTime);
+  AliVZERODataDCS(Int_t nRun, UInt_t timeCreated, UInt_t timeCompleted, UInt_t daqStart, UInt_t daqEnd, UInt_t ctpStart, UInt_t ctpEnd);
   ~AliVZERODataDCS();
   
   void SetRun(Int_t run) {fRun = run;}
   void SetStartTime(Int_t startTime) {fStartTime = startTime;}
   void SetEndTime(Int_t endTime) {fEndTime = endTime;}
+  void SetDaqStartTime(Int_t startTime) {fDaqStartTime = startTime;}
+  void SetDaqEndTime(Int_t endTime) {fDaqEndTime = endTime;}
   Int_t GetRun() const {return fRun;}
   Int_t GetStartTime() const {return fStartTime;}
   Int_t GetEndTime() const {return fEndTime;}
+  Int_t GetDaqStartTime() const {return fDaqStartTime;}
+  Int_t GetDaqEndTime() const {return fDaqEndTime;}
   
-  void ProcessData(TMap& aliasMap);
+  Bool_t ProcessData(TMap& aliasMap);
   
   const char* GetAliasName(Int_t pos) const 
     {return pos<kNAliases ? fAliasNames[pos].Data() : 0;}
@@ -43,7 +47,9 @@ public:
   
   Float_t* GetMeanHV()    const {return (float*)fMeanHV;}
   Float_t* GetWidthHV()   const {return (float*)fWidthHV;}
-
+  Bool_t * GetDeadMap()   const {return (bool*)fDeadChannel;}
+  TMap * GetFEEParameters() const {return fFEEParameters;};
+  
 // Getter of Offline Channel number as used in aliroot (defined by aliroot 
 // numbering convention) from DCS Channel number
 
@@ -67,19 +73,24 @@ private:
   void CreateGraph(int i, int dim, const Double_t *x, const Double_t *y);
     
   Int_t fRun;       // Run number
-  Int_t fStartTime; // start time
-  Int_t fEndTime;   // end time
-  
+  Int_t fStartTime; // start time (time created)
+  Int_t fEndTime;   // end time (time completed)
+  UInt_t fDaqStartTime; // DAQ start time
+  UInt_t fDaqEndTime;   // DAQ end time
+  UInt_t fCtpStartTime; // CTP start time
+  UInt_t fCtpEndTime;   // CTP end time
   
   TString fAliasNames[kNAliases];        // aliases for DCS data
   TClonesArray fGraphs;                         // Array containing  graphics
-  TH1F *fHv[kNAliases];                  // High Voltage histograms
-  Float_t fMeanHV[kNAliases];            // High Voltage mean values
-  Float_t fWidthHV[kNAliases];           // High Voltage widths
+  TH1F *fHv[kNHvChannel];                  // High Voltage histograms
+  Float_t fMeanHV[kNHvChannel];            // High Voltage mean values
+  Float_t fWidthHV[kNHvChannel];           // High Voltage widths
+  Bool_t  fDeadChannel[kNHvChannel];       // Dead Map 
+  TMap * fFEEParameters;  // TMap holding the FEE parameters of Time Resolution
+    
   Bool_t fIsProcessed;                   // bool to know processing status
   
-  ClassDef(AliVZERODataDCS, 2);
+  ClassDef(AliVZERODataDCS, 7);
 };
 
 #endif