AliCDBManager::Instance()->SetDefaultStorage(ocdb);
AliCDBManager::Instance()->SetRun(run);
if (gSystem->AccessPathName("OCDB.root", kFileExists)==0) {
- AliCDBManager::Instance()->InitFromSnapshot("OCDB.root");
+ AliCDBManager::Instance()->SetSnapshotMode("OCDB.root");
}
// magnetic field
if ( !TGeoGlobalMagField::Instance()->GetField() ) {
// geometry
printf("Loading geometry...\n");
AliGeomManager::LoadGeometry();
- if( !AliGeomManager::ApplyAlignObjsFromCDB("GRP ITS TPC") ) {
+ if( !AliGeomManager::ApplyAlignObjsFromCDB("GRP ITS TPC TRD TOF HMPID") ) {
printf("Problem with align objects\n");
}
+ if (gSystem->AccessPathName("localOCDBaccessConfig.C", kFileExists)==0) {
+ gROOT->LoadMacro("localOCDBaccessConfig.C");
+ localOCDBaccessConfig();
+ }
+
}