]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PMD/AliPMDv3.cxx
Modifications to get a much more explicit report on token lost readout errors for...
[u/mrichter/AliRoot.git] / PMD / AliPMDv3.cxx
index 7feae99ffceb7ecd4107e6f7bb68576b2acf01f1..2afbed4dbbdace26cbf640e474c4a66382aa64a4 100644 (file)
@@ -575,8 +575,8 @@ void AliPMDv3::CreateMaterials()
   Float_t wsteel[4] = { .715,.18,.1,.005 };
   
   Int_t *idtmed = fIdtmed->GetArray()-599;
-  Int_t isxfld = gAlice->Field()->Integ();
-  Float_t sxmgmx = gAlice->Field()->Max();
+  Int_t isxfld = ((AliMagF*)TGeoGlobalMagField::Instance()->GetField())->Integ();
+  Float_t sxmgmx = ((AliMagF*)TGeoGlobalMagField::Instance()->GetField())->Max();
   
   // --- Define the various materials for GEANT --- 
   AliMaterial(1, "Pb    $", 207.19, 82., 11.35, .56, 18.5);
@@ -602,7 +602,7 @@ void AliPMDv3::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;