4 - the OCDB (run number required as input argument)
5 - the geometry (expected to be in the current directory)
6 to run the Calibration train.
9 .L $ALICE_ROOT/ANALYSIS/CalibMacros/MergeCalibration/ConfigCalibTrain.C
10 ConfigCalibTrain(129160,"raw://");
14 void ConfigCalibTrain(Int_t run, const char *ocdb="raw://"){
17 printf("setting run to %d\n",run);
18 AliCDBManager::Instance()->SetDefaultStorage(ocdb);
19 AliCDBManager::Instance()->SetRun(run);
20 if (gSystem->AccessPathName("OCDB.root", kFileExists)==0) {
21 AliCDBManager::Instance()->InitFromSnapshot("OCDB.root");
24 if ( !TGeoGlobalMagField::Instance()->GetField() ) {
25 printf("Loading field map...\n");
27 if( !grpMan.ReadGRPEntry() ) {
28 printf("Cannot get GRP entry\n");
30 if( !grpMan.SetMagField() ) {
31 printf("Problem with magnetic field setup\n");
36 printf("Loading geometry...\n");
37 AliGeomManager::LoadGeometry();
38 if( !AliGeomManager::ApplyAlignObjsFromCDB("GRP ITS TPC TRD TOF HMPID") ) {
39 printf("Problem with align objects\n");