]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - macros/ConfigCharmPPR.C
Possibilty to load the geometry either from an external root file or from CDB (Raffaele)
[u/mrichter/AliRoot.git] / macros / ConfigCharmPPR.C
index 36814ce28b7b18592f122fdfde9ae53a578c8efc..2ffd68faf5622960af36d684d42f1bb9d71d7aac 100644 (file)
@@ -54,6 +54,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
    
@@ -71,6 +76,8 @@ void Config()
   rl->SetCompressionLevel(2);
   rl->SetNumberOfEventsPerFile(3);
   gAlice->SetRunLoader(rl);
+  // gAlice->SetGeometryFromFile("geometry.root");
+  // gAlice->SetGeometryFromCDB();
 
   // Set the trigger configuration
   gAlice->SetTriggerDescriptor("Pb-Pb");