X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FMUONGenerateGeometryData.C;h=c6e6d20c3f6c421daee478c51184c5f58c4c0a9c;hb=ce4b42552642b79f93a1453e98786c6b3c527372;hp=6fcc8b388f269c3300987671cba1f7fd24e05067;hpb=e54bf126132252878643a557c6d38c0cd67ceb96;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/MUONGenerateGeometryData.C b/MUON/MUONGenerateGeometryData.C index 6fcc8b388f2..c6e6d20c3f6 100644 --- a/MUON/MUONGenerateGeometryData.C +++ b/MUON/MUONGenerateGeometryData.C @@ -36,8 +36,12 @@ #include "AliMUONGeometryTransformer.h" #include "AliRun.h" +#include "AliCDBManager.h" +#include "AliMC.h" #include +#include +#include #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