Updating the functionality of AliAnalysisHadEtCorrections to accomodate centrality...
[u/mrichter/AliRoot.git] / prod / LHC09a1 / Config.C
index 5e108b7503fd466077989bc3a87834a6d1e36e27..b5e0bd01809e2b97a4ae27610e8f3faabef6d195 100644 (file)
@@ -45,7 +45,7 @@ class AliGenPythia;
 #include "STEER/AliConfig.h"\r
 #include "PYTHIA6/AliDecayerPythia.h"\r
 #include "PYTHIA6/AliGenPythia.h"\r
-#include "STEER/AliMagFMaps.h"\r
+#include "STEER/AliMagF.h"\r
 #include "STRUCT/AliBODY.h"\r
 #include "STRUCT/AliMAG.h"\r
 #include "STRUCT/AliABSOv3.h"\r
@@ -364,7 +364,7 @@ void Config()
   //gAlice->SetRunNumber(runNumber);\r
   \r
   // Set the trigger configuration\r
-  gAlice->SetTriggerDescriptor(TrigConfName[trig]);\r
+  AliSimulation::Instance()->SetTriggerConfig(TrigConfName[trig]);\r
   cout<<"Trigger configuration is set to  "<<TrigConfName[trig]<<endl;\r
 \r
   //\r
@@ -542,19 +542,19 @@ void Config()
   }\r
   // FIELD\r
   \r
-  printf("\n \n Comment: %s \n \n", comment.Data());\r
+  AliMagF* field = 0x0;\r
   if (mag == kNoField) {\r
     comment = comment.Append(" | L3 field 0.0 T");\r
-    field = new AliMagWrapCheb("Maps","Maps", 2, 0., 10., AliMagWrapCheb::k2kG);\r
+    field = new AliMagF("Maps","Maps", 0., 0., AliMagF::k5kGUniform);\r
   } else if (mag == k5kG) {\r
     comment = comment.Append(" | L3 field 0.5 T");\r
     //    field = new AliMagWrapCheb("Maps","Maps", 2, 1., 10., AliMagWrapCheb::k5kG);\r
-       field = new AliMagWrapCheb("Maps","Maps", 2, 1., 10., AliMagWrapCheb::k5kG,kTRUE,"$(ALICE_ROOT)/data/maps/mfchebKGI_sym.root");\r
+    field = new AliMagF("Maps","Maps", -1., -1., AliMagF::k5kG);\r
   }\r
 \r
   printf("\n \n Comment: %s \n \n", comment.Data());\r
+  TGeoGlobalMagField::Instance()->SetField(field);\r
   rl->CdGAFile();\r
-  gAlice->SetField(field);\r
 \r
 \r
 \r