]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Bug correction. (C.Finck)
authorskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 2 Nov 2004 13:14:29 +0000 (13:14 +0000)
committerskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 2 Nov 2004 13:14:29 +0000 (13:14 +0000)
ANALYSIS/AliReaderAOD.cxx

index f0748af7222ad8ded74c1a5c0d49bc9452a877fd..5467324a36720d4212cf59a2965af1e195c5e60a 100644 (file)
@@ -414,6 +414,7 @@ Int_t AliReaderAOD::WriteAOD(AliReader* reader, const char* outfilename, const c
          {//else just pointer to event from input reader is passed
            recbuffer = event;
          } 
+       recbuffer->GetParticle(0)->Print();
       }
 
      if (reader->ReadsSim())
@@ -428,9 +429,8 @@ Int_t AliReaderAOD::WriteAOD(AliReader* reader, const char* outfilename, const c
          {//else just pointer to event from input reader is passed
            simbuffer = event;
          } 
+       simbuffer->GetParticle(0)->Print();
       }
-     recbuffer->GetParticle(0)->Print();
-     simbuffer->GetParticle(0)->Print();
      tree->Fill();
    }