From: acolla Date: Thu, 18 Oct 2007 09:12:03 +0000 (+0000) Subject: Call to fRunLoader->LoadHeader(); added in InitRunLoader(). In this way the run header X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=f2ee4290a91b583fcb2fa2ea39ee0498e3460b91;p=u%2Fmrichter%2FAliRoot.git Call to fRunLoader->LoadHeader(); added in InitRunLoader(). In this way the run header is available and the run number can be retrieved. --- diff --git a/STEER/AliReconstruction.cxx b/STEER/AliReconstruction.cxx index cbd02c0d5eb..33ade2a5481 100644 --- a/STEER/AliReconstruction.cxx +++ b/STEER/AliReconstruction.cxx @@ -469,7 +469,7 @@ Bool_t AliReconstruction::SetRunNumber() } // read run number from gAlice if(fRunLoader->GetAliRun()) - AliCDBManager::Instance()->SetRun(fRunLoader->GetAliRun()->GetRunNumber()); + AliCDBManager::Instance()->SetRun(fRunLoader->GetHeader()->GetRun()); else { if(fRawReader) { if(fRawReader->NextEvent()) { @@ -1606,6 +1606,7 @@ Bool_t AliReconstruction::InitRunLoader() //PH This is a temporary fix to give access to the kinematics //PH that is needed for the labels of ITS clusters + fRunLoader->LoadHeader(); fRunLoader->LoadKinematics(); } else { // galice.root does not exist