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 f0748af..5467324 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();
    }