]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
- 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 8eb70fe9e5db5dc625f535b8b0fb265a18f252b0..6ac03b794b1cb68314b3895c2c959cd69667fd94 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(){