4 - the OCDB (run number required as input argument)
5 - the geometry and mag. field initialized from GRP
8 .L $ALICE_ROOT/PWGPP/TPC/macros/ConfigOCDB.C
9 ConfigOCDB(129160,"raw://");
13 void ConfigOCDB(Int_t run, const char *ocdb="raw://") {
16 printf("setting run to %d\n",run);
17 AliCDBManager::Instance()->SetDefaultStorage(ocdb);
18 AliCDBManager::Instance()->SetRun(run);
21 if ( !TGeoGlobalMagField::Instance()->GetField() ) {
22 printf("Loading field map...\n");
24 if( !grpMan.ReadGRPEntry() ) {
25 printf("Cannot get GRP entry\n");
27 if( !grpMan.SetMagField() ) {
28 printf("Problem with magnetic field setup\n");
31 if ( !TGeoGlobalMagField::Instance()->GetField()){
32 AliMagF::BMap_t smag = AliMagF::k5kG;
34 AliMagF* magF= new AliMagF("Maps","Maps", bzfac, 1., smag);
35 TGeoGlobalMagField::Instance()->SetField(magF);
39 printf("Loading geometry...\n");
40 AliGeomManager::LoadGeometry();
41 if( !AliGeomManager::ApplyAlignObjsFromCDB("GRP ITS TPC") ) {
42 printf("Problem with align objects\n");
45 if (gSystem->AccessPathName("localOCDBaccessConfig.C", kFileExists)==0) {
46 printf("loading localOCDBaccessConfig.C\n");
47 gROOT->LoadMacro("localOCDBaccessConfig.C");
48 localOCDBaccessConfig();