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 if (gSystem->AccessPathName("OCDB.root", kFileExists)==0) {
19 Printf("ConfigCalibTrain: using OCDB snapshot");
20 AliCDBManager::Instance()->SetSnapshotMode("OCDB.root");
23 Printf("ConfigCalibTrain: NOT using OCDB snapshot");
26 Printf("Default storage is %s", ocdb);
28 AliCDBManager::Instance()->SetDefaultStorage(ocdb);
29 AliCDBManager::Instance()->SetRun(run);
32 if ( !TGeoGlobalMagField::Instance()->GetField() ) {
33 printf("Loading field map...\n");
35 if( !grpMan.ReadGRPEntry() ) {
36 printf("Cannot get GRP entry\n");
38 if( !grpMan.SetMagField() ) {
39 printf("Problem with magnetic field setup\n");
44 printf("Loading geometry...\n");
45 AliGeomManager::LoadGeometry();
46 if( !AliGeomManager::ApplyAlignObjsFromCDB("GRP ITS TPC TRD TOF HMPID") ) {
47 printf("Problem with align objects\n");
50 if (gSystem->AccessPathName("localOCDBaccessConfig.C", kFileExists)==0) {
51 gROOT->LoadMacro("localOCDBaccessConfig.C");
52 localOCDBaccessConfig();