]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ZDC/ConfigGenZDC.C
coverity fixes + bug fixes
[u/mrichter/AliRoot.git] / ZDC / ConfigGenZDC.C
index 61ba3f5b49c24d28b7d812c7e439fe6e79e0306e..3c5d06ab31389890a48759395e219acdf1e5b2c8 100644 (file)
@@ -119,10 +119,11 @@ void Config()
     //
     //gener->SetVertexSmear(perTrack); 
     // Magnetic field
-    AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 2, 1., 10., smag);
+    AliMagF* field = new AliMagF("Maps","Maps", 1., 1., smag);
     field->SetL3ConstField(0); //Using const. field in the barrel
+    TGeoGlobalMagField::Instance()->SetField(field);
+
     rl->CdGAFile();
-    gAlice->SetField(field);    
 
     Int_t   iABSO  =  1;
     Int_t   iDIPO  =  1;
@@ -143,7 +144,7 @@ void Config()
     Int_t   iTRD   =  0;
     Int_t   iZDC   =  1;
     Int_t   iEMCAL =  0;
-    Int_t   iCRT   =  0;
+    Int_t   iACORDE   =  0;
     Int_t   iVZERO =  0;
 
     //=================== Alice BODY parameters =============================
@@ -371,18 +372,18 @@ void Config()
     if (iEMCAL)
     {
         //=================== EMCAL parameters ============================
-        AliEMCAL *EMCAL = new AliEMCALv1("EMCAL", "EMCAL_55_25");
+        AliEMCAL *EMCAL = new AliEMCALv2("EMCAL", "EMCAL_COMPLETE");
     }
 
-     if (iCRT)
+     if (iACORDE)
     {
-        //=================== CRT parameters ============================
-        AliCRT *CRT = new AliCRTv0("CRT", "normal ACORDE");
+        //=================== ACORDE parameters ============================
+        AliACORDE *ACORDE = new AliACORDEv1("ACORDE", "normal ACORDE");
     }
 
      if (iVZERO)
     {
-        //=================== CRT parameters ============================
+        //=================== ACORDE parameters ============================
         AliVZERO *VZERO = new AliVZEROv2("VZERO", "normal VZERO");
     }