]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Get the branch name from the RunLoader
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 6 May 2004 08:10:14 +0000 (08:10 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 6 May 2004 08:10:14 +0000 (08:10 +0000)
PHOS/AliPHOSReconstructor.cxx

index 9d6744b45ee0a8982b2fbcd17d5822d2e89bc067..6149745fbcb633ebe2126133010754d18affaaa7 100644 (file)
@@ -77,15 +77,15 @@ void AliPHOSReconstructor::FillESD(AliRunLoader* runLoader, AliESD* esd) const
   // Called by AliReconstruct after Reconstruct() and global tracking and vertxing 
   //Creates the tracksegments and Recparticles
   
+  Int_t eventNumber = runLoader->GetEventNumber() ;
+
   TString headerFile(runLoader->GetFileName()) ; 
-  TString branchName("Default") ;  
+  TString branchName(runLoader->GetEventFolder()->GetName()) ;  
 
   AliPHOSTrackSegmentMakerv1 tsm(headerFile, branchName);
   tsm.SetESD(esd) ; 
   AliPHOSPIDv1 pid(headerFile, branchName);
 
-  //  AliPHOSGetter *gime = AliPHOSGetter::Instance() ;
-  Int_t eventNumber = runLoader->GetEventNumber() ;
   // do current event; the loop over events is done by AliReconstruction::Run()
   tsm.SetEventRange(eventNumber, eventNumber) ; 
   pid.SetEventRange(eventNumber, eventNumber) ;