]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - VZERO/AliVZERODataDCS.h
Macro and default object for the new Pb-Pb entry.
[u/mrichter/AliRoot.git] / VZERO / AliVZERODataDCS.h
index 868a5bd7d4a15ddbe731c3b6b710b9f7775ce3c9..2592367f6215712ebe1b7f6079dccaa5ab3e8bd8 100644 (file)
@@ -4,16 +4,15 @@
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
-#include "TObject.h" 
-#include "TString.h"
-
+#include <TObject.h> 
 #include <TClonesArray.h>
-#include <TH1F.h>
 
 class TMap;
 class TH2F;
 class TGraph;
 class TF1;
+class TString;
+class TH1F;
 
 // AliVZERODataDCS class
 // main aim is to process DCS data
@@ -21,21 +20,25 @@ class TF1;
 
 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);
   ~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;}
@@ -44,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
 
@@ -68,19 +73,22 @@ 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
   
   TString fAliasNames[kNAliases];        // aliases for DCS data
-  TClonesArray fGraphs;                // Array containing  graphics
-  TH1F *fHv[kNAliases];
-  Float_t fMeanHV[kNAliases]; 
-  Float_t fWidthHV[kNAliases];
+  TClonesArray fGraphs;                         // Array containing  graphics
+  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, 6);
 };
 
 #endif