#include "AliCDBId.h"
#include "AliCDBMetaData.h"
#include "AliGeomManager.h"
+#include "AliMC.h"
#include <TROOT.h>
#include "AliRun.h"
#include <TGeoManager.h>
#include <TString.h>
+#include <TInterpreter.h>
#endif
void UpdateCDBIdealGeom(const char* cdbUri, const char* cfgFile){
// we set the default storage to the repository because some dets require
// already at the time of geometry creation to find calibration objects in the cdb
AliCDBStorage* storage = 0;
- if(!cdb->IsDefaultStorageSet()) cdb->SetDefaultStorage("local://$ALICE_ROOT");
+ if(!cdb->IsDefaultStorageSet()) cdb->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
storage = cdb->GetStorage(cdbUri);
if(!storage)
{
md->SetAliRootVersion(av.Data());
md->SetComment(Form("Geometry produced with root version %s and AliRoot %s, revision number %d",rootv,av.Data(),revnum));
- gAlice->Init(cfgFile);
+ gROOT->LoadMacro(cfgFile);
+ gInterpreter->ProcessLine(gAlice->GetConfigFunction());
+ gAlice->GetMCApp()->Init();
if(!gGeoManager){
Printf("Unable to produce a valid geometry to be put in the CDB!");