]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - macros/g4ConfigCommon.C
framework update; new classes for track rotation (for background), cuts grouping...
[u/mrichter/AliRoot.git] / macros / g4ConfigCommon.C
index 0791ba8df2a6446eda7bcb75e5312ee47a7a7011..723e2e522975405eb8ca9b9e193e65c38da2f690 100644 (file)
@@ -43,7 +43,7 @@ void ConfigCommon(Bool_t setRootGeometry = kTRUE)
   }
 
   // Set the trigger configuration
-  gAlice->SetTriggerDescriptor("Pb-Pb");
+  AliSimulation::Instance()->SetTriggerConfig("Pb-Pb");
   cout<<"Trigger configuration is set to  Pb-Pb"<<endl;
 
     // Set Random Number seed
@@ -80,8 +80,7 @@ void ConfigCommon(Bool_t setRootGeometry = kTRUE)
   // ============================= 
 
     // Field (L3 0.4 T)
-    AliMagFMaps* field = new AliMagFMaps("Maps","Maps", 2, 1., 10., 1);
-    gAlice->SetField(field);    
+    TGeoGlobalMagField::Instance()->SetField(new AliMagF("Maps","Maps", 1., 1., AliMagF::k5kG));
 
     Int_t   iABSO  =  1;
     Int_t   iDIPO  =  1;