Corrected initialization of arrays (Opteron)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 2 May 2007 17:16:53 +0000 (17:16 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 2 May 2007 17:16:53 +0000 (17:16 +0000)
TRD/Cal/AliTRDCalMonitoring.cxx

index 270a6f6..fe983cc 100644 (file)
@@ -35,7 +35,21 @@ AliTRDCalMonitoring::AliTRDCalMonitoring()
   //
   // AliTRDCalMonitoring default constructor
   //
-
+  
+  for (Int_t i=0; i<540; ++i) {
+    fAnodeCurrentsMin[i] = 0;
+    fAnodeCurrentsMax[i] = 0;
+    fDriftCurrentsMin[i] = 0;
+    fDriftCurrentsMax[i] = 0;
+    fAnodeVoltagesMin[i] = 0;
+    fAnodeVoltagesMax[i] = 0;
+    fDriftVoltagesMin[i] = 0;
+    fDriftVoltagesMax[i] = 0;
+  }
+  for (Int_t i=0; i<360; ++i) {
+    fLVVoltage[i] = 0;
+    fLVCurrent[i] = 0;
+  }
 }
 
 //_____________________________________________________________________________
@@ -49,5 +63,19 @@ AliTRDCalMonitoring::AliTRDCalMonitoring(const Text_t *name, const Text_t *title
   // AliTRDCalMonitoring constructor
   //
 
+  for (Int_t i=0; i<540; ++i) {
+    fAnodeCurrentsMin[i] = 0;
+    fAnodeCurrentsMax[i] = 0;
+    fDriftCurrentsMin[i] = 0;
+    fDriftCurrentsMax[i] = 0;
+    fAnodeVoltagesMin[i] = 0;
+    fAnodeVoltagesMax[i] = 0;
+    fDriftVoltagesMin[i] = 0;
+    fDriftVoltagesMax[i] = 0;
+  }
+  for (Int_t i=0; i<360; ++i) {
+    fLVVoltage[i] = 0;
+    fLVCurrent[i] = 0;
+  }
 }