]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/MUONGenerateGeometryData.C
Move verbose to debug (Javier)
[u/mrichter/AliRoot.git] / MUON / MUONGenerateGeometryData.C
index 6fcc8b388f269c3300987671cba1f7fd24e05067..c6e6d20c3f6c421daee478c51184c5f58c4c0a9c 100644 (file)
 #include "AliMUONGeometryTransformer.h"
 
 #include "AliRun.h"
+#include "AliCDBManager.h"
+#include "AliMC.h"
 
 #include <Riostream.h>
+#include <TROOT.h>
+#include <TInterpreter.h>
 
 #endif
 
@@ -50,8 +54,16 @@ void MUONGenerateGeometryData(Bool_t transforms = true,
 /// \param writeEnvelope   option to include virtual envelopes
 ///                        in the volume paths
 
+  // Default CDB and run number
+  AliCDBManager* man = AliCDBManager::Instance();
+  man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
+  man->SetRun(0);
+
   // Initialize
-  gAlice->Init("$ALICE_ROOT/MUON/Config.C");
+  TString configFileName = "$ALICE_ROOT/MUON/Config.C";
+  gROOT->LoadMacro(configFileName.Data());
+  gInterpreter->ProcessLine(gAlice->GetConfigFunction());
+  gAlice->GetMCApp()->Init();
   cout << "Init done " << endl;
 
   // Get MUON detector