]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG2/UNICOR/AliAnalysisTaskUnicorME.cxx
AliAnalysisTaskUnicor*.cxx: SetOwner moved to the right place
[u/mrichter/AliRoot.git] / PWG2 / UNICOR / AliAnalysisTaskUnicorME.cxx
index 4d1617959125ee4f0771622f24a327442669e72f..de1763e49f06b659c156cf6e894527baa61e1521 100644 (file)
@@ -41,7 +41,6 @@ AliAnalysisTaskUnicorME::AliAnalysisTaskUnicorME(const char *name) :
 
   fEv0 = new AliUnicorEventAliceESD();
   fEv1 = new AliUnicorEventAliceESD();
-  fOutputList->SetOwner();
   DefineOutput(1, TList::Class());
 }
 //=============================================================================
@@ -50,6 +49,7 @@ void AliAnalysisTaskUnicorME::UserCreateOutputObjects()
   // executed once on each worker 
 
   fOutputList = new TList();
+  fOutputList->SetOwner();
   fOutputList->Add(new AliUnicorAnalGlobal("dag"));
   fOutputList->Add(new AliUnicorAnalSingle("all",fEv0->Etamin(),fEv0->Etamax(),0));
   fOutputList->Add(new AliUnicorAnalSingle("pim",fEv0->Etamin(),fEv0->Etamax(),-211));