]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Call to fRunLoader->LoadHeader(); added in InitRunLoader(). In this way the run header
authoracolla <acolla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 18 Oct 2007 09:12:03 +0000 (09:12 +0000)
committeracolla <acolla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 18 Oct 2007 09:12:03 +0000 (09:12 +0000)
is available and the run number can be retrieved.

STEER/AliReconstruction.cxx

index cbd02c0d5eb68ca359217d5c90a3c2eeb712cb5c..33ade2a548118c2535ea119c95d47a3bdd1b174f 100644 (file)
@@ -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