]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - macros/Config_PythiaHeavyFlavours.C
Possibilty to load the geometry either from an external root file or from CDB (Raffaele)
[u/mrichter/AliRoot.git] / macros / Config_PythiaHeavyFlavours.C
index f80ef5670ecb0eab092b366274ead9137f3efa6b..49d48150259ad6cd349b8469ba335db26eefd47b 100644 (file)
@@ -142,6 +142,11 @@ void Config()
 
   new TGeant3TGeo("C++ Interface to Geant3");
 
+  if(!AliCDBManager::Instance()->IsDefaultStorageSet()){
+    AliCDBManager::Instance()->SetDefaultStorage("local://$ALICE_ROOT");
+    AliCDBManager::Instance()->SetRun(0);
+  }
+  
   //=======================================================================
   //  Create the output file
 
@@ -160,6 +165,8 @@ void Config()
   rl->SetCompressionLevel(2);
   rl->SetNumberOfEventsPerFile(3);
   gAlice->SetRunLoader(rl);
+  // gAlice->SetGeometryFromFile("geometry.root");
+  // gAlice->SetGeometryFromCDB();
 
   // Set the trigger configuration
   gAlice->SetTriggerDescriptor(TrigConfName[trig]);