]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Macro replacing the gAlice->Init() to initialize the geometry
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 18 Aug 2009 11:51:39 +0000 (11:51 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 18 Aug 2009 11:51:39 +0000 (11:51 +0000)
 Suggested by Raffaele Grosso <Raffaele.Grosso@cern.ch>

macros/initGeom.C [new file with mode: 0644]

diff --git a/macros/initGeom.C b/macros/initGeom.C
new file mode 100644 (file)
index 0000000..5608130
--- /dev/null
@@ -0,0 +1,13 @@
+void initGeom()
+{
+    // Macro replacing the gAlice->Init() to initialize the geometry
+    // Suggested by Raffaele Grosso <Raffaele.Grosso@cern.ch>
+    
+    AliCDBManager* man = AliCDBManager::Instance();
+    man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
+    man->SetRun(0);
+    
+    gROOT->LoadMacro("Config.C");
+    gInterpreter->ProcessLine(gAlice->GetConfigFunction());
+    gAlice->GetMCApp()->Init();
+}