From 3901cc75ea82d4df97d252256e0424246639933d Mon Sep 17 00:00:00 2001 From: hristov Date: Wed, 7 Jan 2004 10:49:49 +0000 Subject: [PATCH] Initialization to avoid runtime problems (valgrind) --- PMD/AliPMDv1.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/PMD/AliPMDv1.cxx b/PMD/AliPMDv1.cxx index b452341c564..3cb66f69fad 100644 --- a/PMD/AliPMDv1.cxx +++ b/PMD/AliPMDv1.cxx @@ -14,6 +14,9 @@ **************************************************************************/ /* $Log$ +Revision 1.34 2003/12/18 04:25:03 bnandi +overlap with beam pipe fixed and Gsposp changed to Gspos + Revision 1.33 2003/11/03 14:33:26 hristov Correct initialization of static data members @@ -700,8 +703,8 @@ void AliPMDv1::CreateMaterials() // // cout << " Inside create materials " << endl; // --- The Argon- CO2 mixture --- - Float_t ag[2] = { 39.95 }; - Float_t zg[2] = { 18. }; + Float_t ag[2] = { 39.95, 44.01 }; + Float_t zg[2] = { 18., 22. }; Float_t wg[2] = { 0.7,0.3 }; Float_t dar = 0.001782; // --- Ar density in g/cm3 --- // --- CO2 --- @@ -748,7 +751,7 @@ void AliPMDv1::CreateMaterials() // define gas-mixtures - char namate[21]; + char namate[21]=""; gMC->Gfmate((*fIdmate)[3], namate, a, z, d, radl, absl, buf, nbuf); ag[1] = a; zg[1] = z; -- 2.39.3