]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coverity corrections.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 23 Jan 2011 20:20:44 +0000 (20:20 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 23 Jan 2011 20:20:44 +0000 (20:20 +0000)
PYTHIA6/AliDecayerPythia.cxx
PYTHIA6/AliGenPythiaPlus.cxx

index 5cadc49af8ee48b986717bc2b231bd72dae74c59..6cf6d84a1ff16b2dfc78401809381fff19614103 100644 (file)
@@ -75,6 +75,7 @@ AliDecayerPythia::AliDecayerPythia(const AliDecayerPythia &decayer):
 {
     // Copy Constructor
     decayer.Copy(*this);
+    for (Int_t i = 0; i < 501; i++) fBraPart[i] = 0.;
 }
 
 void AliDecayerPythia::Init()
index 8184b87c7d52a639ad03bb3100a2f689b531cc31..1b5598ade5720376415b8060673bfbf6c0de1848 100644 (file)
@@ -1013,6 +1013,7 @@ Int_t  AliGenPythiaPlus::GenerateMB()
            //
            // Special Treatment to store color-flow
            //
+           /*
            if (ks == 3 || ks == 13 || ks == 14) {
                TParticle* particle = 0;
                if (fStack) {
@@ -1020,10 +1021,10 @@ Int_t  AliGenPythiaPlus::GenerateMB()
                } else {
                    particle = AliRunLoader::Instance()->Stack()->Particle(nt);
                }
-//             particle->SetFirstDaughter(fPythia->GetK(2, i));
-//             particle->SetLastDaughter(fPythia->GetK(3, i));         
+               particle->SetFirstDaughter(fPythia->GetK(2, i));
+               particle->SetLastDaughter(fPythia->GetK(3, i));         
            }
-           
+           */  
            KeepTrack(nt);
            pParent[i] = nt;
            SetHighWaterMark(nt);
@@ -1137,8 +1138,9 @@ void AliGenPythiaPlus::MakeHeader()
 // Store quenching parameters
 //
     if (fQuench){
-       Double_t z[4];
-       Double_t xp, yp;
+        Double_t z[4] = {0.};
+       Double_t xp = 0.;
+       Double_t yp = 0.;
        if (fQuench == 1) {
            // Pythia::Quench()
            fPythia->GetQuenchingParameters(xp, yp, z);