]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG2/FLOW/AliFlowCommon/AliFlowAnalysisWithLYZEventPlane.cxx
fix ownerschip of TLists
[u/mrichter/AliRoot.git] / PWG2 / FLOW / AliFlowCommon / AliFlowAnalysisWithLYZEventPlane.cxx
index 1432f1facb689873bec0bd9ea21c3cfad99d2a60..4cd5e03ad64330446c089a5057daa3c33bf42bb1 100644 (file)
@@ -107,6 +107,7 @@ void AliFlowAnalysisWithLYZEventPlane::WriteHistograms(TString* outputFileName)
   TFile *output = new TFile(outputFileName->Data(),"RECREATE");
   //output->WriteObject(fHistList, "cobjLYZEP","SingleKey");
   fHistList->SetName("cobjLYZEP");
+  fHistList->SetOwner(kTRUE);
   fHistList->Write(fHistList->GetName(), TObject::kSingleKey);
   delete output;
 }
@@ -120,6 +121,7 @@ void AliFlowAnalysisWithLYZEventPlane::WriteHistograms(TString outputFileName)
   TFile *output = new TFile(outputFileName.Data(),"RECREATE");
   //output->WriteObject(fHistList, "cobjLYZEP","SingleKey");
   fHistList->SetName("cobjLYZEP");
+  fHistList->SetOwner(kTRUE);
   fHistList->Write(fHistList->GetName(), TObject::kSingleKey);
   delete output;
 }