From: kkanaki Date: Fri, 8 Apr 2011 12:28:36 +0000 (+0000) Subject: - corrected the CDB manager initialization depending on the source of the CDB URI X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=832c83e8cf64db39e0e2ca0dad4a966b2701b230;p=u%2Fmrichter%2FAliRoot.git - corrected the CDB manager initialization depending on the source of the CDB URI - removed the specific storage setting, the default storage takes care of what's necessary for the data unpacking --- diff --git a/HLT/exa/extract-ESD.C b/HLT/exa/extract-ESD.C index 1be3dd70286..63cbe6298bb 100644 --- a/HLT/exa/extract-ESD.C +++ b/HLT/exa/extract-ESD.C @@ -29,23 +29,24 @@ void extract_ESD(const char* input, const char *cdbURI, int nofEvents=-1){ // Set the CDB storage location AliCDBManager *man = AliCDBManager::Instance(); man->SetDefaultStorage(cdbURI); - man->SetRun(0); - if (struri.BeginsWith("local://")) man->SetSpecificStorage("HLT/Calib/StreamerInfo", "local://$ALICE_ROOT/OCDB"); - + //man->SetRun(146018); + AliRawReader* pRawReader=AliRawReader::Create(input); if (!pRawReader){ cout << "cannot open RawReader for file " << input << endl; return; } - + if (!pRawReader->NextEvent()){ cerr << "no events available" << endl; return; } + + if(struri.Contains("local") || strfile.Contains("alien")) man->SetRun(pRawReader->GetRunNumber()); // setup of the HLT system AliHLTSystem *pHLT = AliHLTPluginBase::GetInstance(); - if(!pHLT) cerr << "fatal error: can not get HLT instance" << endl; + if(!pHLT) cerr << "fatal error: cannot get HLT instance" << endl; TString arg; arg.Form("-typeid ALIESDV0");