]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
coverity
authorpchrist <pchrist@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 29 Dec 2011 10:22:00 +0000 (10:22 +0000)
committerpchrist <pchrist@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 29 Dec 2011 10:22:00 +0000 (10:22 +0000)
PWG2/EBYE/AliAnalysisTaskToyModel.cxx

index 62e7f4ca22a1e8c149aeefc641be20d706f80a9e..55aa625a2c157e9979ce12fbba699835e3a249af 100755 (executable)
@@ -298,13 +298,13 @@ void AliAnalysisTaskToyModel::CreateOutputObjects() {
 void AliAnalysisTaskToyModel::Run(Int_t nEvents) {\r
   // Main loop\r
   // Called for each event\r
-  Double_t v_charge;\r
-  Double_t v_y;\r
-  Double_t v_eta;\r
-  Double_t v_phi;\r
-  Double_t v_p[3];\r
-  Double_t v_pt;\r
-  Double_t v_E;\r
+  Double_t v_charge = 0;\r
+  Double_t v_y = 0.0;\r
+  Double_t v_eta = 0.0;\r
+  Double_t v_phi = 0.0;\r
+  Double_t v_p[3] = {0.,0.,0.};\r
+  Double_t v_pt = 0.0;\r
+  Double_t v_E = 0.0;\r
   Bool_t isPion = kFALSE, isKaon = kFALSE, isProton = kFALSE;\r
 \r
   if(fUseAllCharges) {\r
@@ -622,13 +622,13 @@ void AliAnalysisTaskToyModel::Run(Int_t nEvents) {
     }//generated negative particle loop\r
    \r
     //Dynamical correlations\r
-    Double_t v_chargePrime;\r
-    Double_t v_yPrime;\r
-    Double_t v_etaPrime;\r
-    Double_t v_phiPrime;\r
-    Double_t v_pPrime[3];\r
-    Double_t v_ptPrime;\r
-    Double_t v_EPrime;\r
+    Double_t v_chargePrime = 0;\r
+    Double_t v_yPrime = 0.0;\r
+    Double_t v_etaPrime = 0.0;\r
+    Double_t v_phiPrime = 0.0;\r
+    Double_t v_pPrime[3] = {0.,0.,0.};\r
+    Double_t v_ptPrime = 0.0;\r
+    Double_t v_EPrime = 0.0;\r
     Int_t nGeneratedPositiveDynamicalCorrelations = 0;\r
     Int_t nGeneratedNegativeDynamicalCorrelations = 0;\r
     //Generate "correlated" particles \r