message: fix Invalid AliEn path string
  error
diff: #include <AliMEStenderV2.h>
  #endif
  -AliMEStenderV2 *AddMEStenderV2(Bool_t mc, Int_t configuration = 0)
  +AliMEStenderV2 *AddMEStenderV2(Bool_t mc, Int_t configuration = 1, const AliVEvent *event)
  {
  AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
  + AliCDBManager *man = AliCDBManager::Instance();
  + if (man)
  + {
  + if (!man->IsDefaultStorageSet())
  + {
  + man->SetDefaultStorage(Form("alien://folder=/alice/data/2015/OCDB?cacheFolder=%s/local", gSystem->ExpandPathName("$HOME")));
  + man->SetRun(event->GetRunNumber());
  + AliGRPObject *grp = (AliGRPObject *)man->Get("GRP/GRP/Data")->GetObject();
  + }
  + }
  AliMEStenderV2 *tender = new AliMEStenderV2((char *)"MEStenderV2");
  mgr->AddTask(tender);
  @@ -18,7 +28,8 @@ AliMEStenderV2 *AddMEStenderV2(Bool_t mc, Int_t configuration = 0)
  // task set-up
  tender->SetMCdata(mc);
  tender->SetDebugLevel(1);
  - switch (configuration) {
  + switch (configuration)
  + {
  case 0:
  tender->ConfigTask(AliMEStenderV2::AliMESconfigTender::k7TeV, // event cuts
  AliMEStenderV2::AliMESconfigTender::kStandardITSTPCTrackCuts2010, // track cuts
  @@ -27,9 +38,10 @@ AliMEStenderV2 *AddMEStenderV2(Bool_t mc, Int_t configuration = 0)
  case 1:
  tender->ConfigTask(AliMEStenderV2::AliMESconfigTender::k13TeV, // event cuts
  AliMEStenderV2::AliMESconfigTender::kStandardITSTPCTrackCuts2011, // track cuts
  - AliMEStenderV2::AliMESconfigTender::kTPC); // PID priors
  + AliMEStenderV2::AliMESconfigTender::kNoPP); // PID priors
  break;
  - default: printf("Configuration not defined\n");
  + default:
  + printf("Configuration not defined\n");
  break;
  }
  tender->SetPriors(); // always call this after ConfigTask !!
  @@ -42,17 +54,16 @@ AliMEStenderV2 *AddMEStenderV2(Bool_t mc, Int_t configuration = 0)
  co[0] = mgr->CreateContainer("tenderQA", TList::Class(), AliAnalysisManager::kOutputContainer, Form("%s:MES", mgr->GetCommonFileName()));
  co[AliMESbaseTask::kEventInfo] = mgr->CreateContainer("MESeventInfo", AliMESeventInfo::Class(), AliAnalysisManager::kExchangeContainer);
  co[AliMESbaseTask::kTracks] = mgr->CreateContainer("MEStracks", TObjArray::Class(), AliAnalysisManager::kExchangeContainer);
  - if(mc){
  + if (mc)
  + {
  co[AliMESbaseTask::kMCeventInfo] = mgr->CreateContainer("MESMCeventInfo", AliMESeventInfo::Class(), AliAnalysisManager::kExchangeContainer);
  co[AliMESbaseTask::kMCtracks] = mgr->CreateContainer("MESMCtracks", TObjArray::Class(), AliAnalysisManager::kExchangeContainer);
  }
  // connect output
  for (Int_t ios(0); ios < AliMESbaseTask::kNcontainers; ios++)
  - if(co[ios]) mgr->ConnectOutput(tender, ios+1, co[ios]);
  -
  + if (co[ios])
  + mgr->ConnectOutput(tender, ios + 1, co[ios]);
  return tender;
  -
  }
  -
  