Coding conventions
authorcheynis <cheynis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 2 Jul 2009 15:11:48 +0000 (15:11 +0000)
committercheynis <cheynis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 2 Jul 2009 15:11:48 +0000 (15:11 +0000)
VZERO/AliVZERODataDCS.cxx
VZERO/AliVZERODataDCS.h

index 4e618c4..c9113cc 100644 (file)
 #include "AliDCSValue.h"
 #include "AliLog.h"
 
-#include "TGraph.h"
-#include "TAxis.h"
-#include "TCanvas.h"
-#include "TTimeStamp.h"
-#include "TMap.h"
+#include <TGraph.h>
+#include <TAxis.h>
+#include <TCanvas.h>
+#include <TTimeStamp.h>
+#include <TMap.h>
+#include <TString.h>
+#include <TH1F.h>
 
 class TH2;
 class AliCDBMetaData;
@@ -108,21 +110,21 @@ void AliVZERODataDCS::ProcessData(TMap& aliasMap){
     
     Int_t nentries = aliasArr->GetEntries();
     
-    Double_t *Times = new Double_t[nentries];
-    Double_t *Values = new Double_t[nentries];
+    Double_t *times = new Double_t[nentries];
+    Double_t *values = new Double_t[nentries];
 
     UInt_t iValue=0;
     while((aValue = (AliDCSValue*) iterarray.Next())) {
-               Values[iValue] = aValue->GetFloat();
-               Times[iValue] = (Double_t) (aValue->GetTimeStamp());
-               fHv[iAlias]->Fill(Values[iValue]);
-               printf("%s %f\n",fAliasNames[iAlias].Data(),Values[iValue]);
+               values[iValue] = aValue->GetFloat();
+               times[iValue] = (Double_t) (aValue->GetTimeStamp());
+               fHv[iAlias]->Fill(values[iValue]);
+               printf("%s %f\n",fAliasNames[iAlias].Data(),values[iValue]);
                iValue++;
     }      
-    CreateGraph(iAlias, aliasArr->GetEntries(), Times, Values); // fill graphs 
+    CreateGraph(iAlias, aliasArr->GetEntries(), times, values); // fill graphs 
     
-    delete[] Values;
-    delete[] Times;          
+    delete[] values;
+    delete[] times;          
   }
   
        // calculate mean and rms of the first two histos
@@ -200,16 +202,16 @@ void AliVZERODataDCS::Draw(const Option_t* /*option*/)
 
   if(fGraphs.GetEntries()==0)  return;
   
-  TString CanvasName;
+  TString canvasName;
   TCanvas *cHV[8];
   
   for(int iSide = 0 ;iSide<2;iSide++){
        for(int iRing=0;iRing<4;iRing++){
-               if(iSide == 0)  CanvasName = "V0A_Ring";
-               else  CanvasName = "V0C_Ring";
-               CanvasName += iRing;
+               if(iSide == 0)  canvasName = "V0A_Ring";
+               else  canvasName = "V0C_Ring";
+               canvasName += iRing;
                int iCanvas = iSide*4 + iRing;
-               cHV[iCanvas] = new TCanvas(CanvasName,CanvasName);
+               cHV[iCanvas] = new TCanvas(canvasName,canvasName);
                cHV[iCanvas]->Divide(3,3);
                for(int iSector=0;iSector<8;iSector++){
                        cHV[iCanvas]->cd(iSector+1);
index 868a5bd..578ba76 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
@@ -73,10 +72,10 @@ private:
   
   
   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[kNAliases];                  // High Voltage histograms
+  Float_t fMeanHV[kNAliases];            // High Voltage mean values
+  Float_t fWidthHV[kNAliases];           // High Voltage widths
  
   Bool_t fIsProcessed;                   // bool to know processing status