- setting the ownership of the output TList
authorkkanaki <kkanaki@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 6 Apr 2011 10:59:27 +0000 (10:59 +0000)
committerkkanaki <kkanaki@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 6 Apr 2011 10:59:27 +0000 (10:59 +0000)
- calling PostData in the UserCreateOutputObjects

HLT/QA/tasks/AliAnalysisTaskHLT.cxx

index 8eb70fe..6ac03b7 100644 (file)
@@ -207,8 +207,8 @@ void AliAnalysisTaskHLT::UserCreateOutputObjects(){
   // Create histograms
 
   OpenFile(1);
-
   fOutputList = new TList();
+  fOutputList->SetOwner();
   fOutputList->SetName(GetName());
 
   /*
@@ -370,6 +370,8 @@ void AliAnalysisTaskHLT::UserCreateOutputObjects(){
   fOutputList->Add(fEventSpecieHLT);
 
   SetupESDtrackCuts();
+  
+  PostData(1, fOutputList);
 }
 
 void AliAnalysisTaskHLT::NotifyRun(){