Class updated (2 understand something more from retrieved DCS DP)
authorcoppedis <coppedis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 11 Sep 2008 12:24:03 +0000 (12:24 +0000)
committercoppedis <coppedis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 11 Sep 2008 12:24:03 +0000 (12:24 +0000)
ZDC/AliZDCDataDCS.cxx
ZDC/AliZDCDataDCS.h

index ccaabc4..f44f3bb 100644 (file)
@@ -73,7 +73,7 @@ void AliZDCDataDCS::ProcessData(TMap& aliasMap)
       }
       Introduce(j, aliasArr);
 
-      if(aliasArr->GetEntries()<2){
+      if(aliasArr->GetEntries()<kNAliases){
        AliError(Form("Alias %s has just %d entries!",
                        fAliasNames[j].Data(),aliasArr->GetEntries()));
        continue;
@@ -88,12 +88,11 @@ void AliZDCDataDCS::ProcessData(TMap& aliasMap)
       while((aValue = (AliDCSValue*) iterarray.Next())) {
        val[ne] = aValue->GetFloat();
        time[ne] = (Double_t) (aValue->GetTimeStamp());
-       if(j>=4) fCalibData[ne] = val[ne];
+       fCalibData[ne] = val[ne];
+       fTimeStamp[ne] = time[ne];
        ne++;
       }
-      //
       
-      //
 //      if(j>=4) CreateGraph(j, aliasArr->GetEntries(), time, val); // fill graphs 
       //
       delete[] val;
@@ -172,7 +171,6 @@ void AliZDCDataDCS::CreateGraph(int i, int dim, const Double_t *x, const Double_
 
    gr->GetXaxis()->SetTimeDisplay(1);
    gr->SetTitle(fAliasNames[i].Data());
-
 //   AliInfo(Form("Array entries: %d",fGraphs.GetEntriesFast()));
 
 
index 2d6cebd..5c31b7b 100644 (file)
@@ -55,13 +55,14 @@ private:
        UInt_t fEndTime;        // End of run time
 
        TString fAliasNames[kNAliases]; // Name of the aliases provided by the DCS
+       Double_t fCalibData[kNAliases]; // Array containing calibration data
+       Double_t fTimeStamp[kNAliases]; // Array containing time stamps
+
        TClonesArray fGraphs;           // Array containing PTM HV graphics
-       
-       Float_t fCalibData[kNGraphs];   // Array containing calibration data
 
        Bool_t fIsProcessed;            // Flag set when data are processed
 
-       ClassDef(AliZDCDataDCS, 2);
+       ClassDef(AliZDCDataDCS, 3);
 };
 
 #endif