fix
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 31 Oct 2012 23:19:03 +0000 (23:19 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 31 Oct 2012 23:19:03 +0000 (23:19 +0000)
PWGJE/EMCALJetTasks/AliJetEmbeddingFromGenTask.cxx

index 6bfff1b..bbb0633 100644 (file)
@@ -58,7 +58,6 @@ void AliJetEmbeddingFromGenTask::ExecOnce()
 {
   // Exec only once.
 
-  cout << "afjalfja " <<endl;
   if (!gAlice) {
     new AliRun("gAlice","The ALICE Off-line Simulation Framework");
     delete gRandom;
@@ -76,6 +75,7 @@ void AliJetEmbeddingFromGenTask::ExecOnce()
   if (InputEvent()->FindListObject(fTracksName) == 0) {
     fOutTracks = new TClonesArray("AliPicoTrack", 1000);
     fOutTracks->SetName(fTracksName);
+    InputEvent()->AddObject(fOutTracks);
     fNTracks = 0;
   }
 }