From: snelling Date: Wed, 20 May 2009 14:39:11 +0000 (+0000) Subject: modifications to TLists naming to allow merging X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=0fe80f886b60e5e050e240e1ff4759802f6975a1;p=u%2Fmrichter%2FAliRoot.git modifications to TLists naming to allow merging --- diff --git a/PWG2/FLOW/AliFlowCommon/AliFittingQDistribution.cxx b/PWG2/FLOW/AliFlowCommon/AliFittingQDistribution.cxx index a7105c6f768..6a3b16b31ce 100644 --- a/PWG2/FLOW/AliFlowCommon/AliFittingQDistribution.cxx +++ b/PWG2/FLOW/AliFlowCommon/AliFittingQDistribution.cxx @@ -177,7 +177,9 @@ void AliFittingQDistribution::WriteHistograms(TString* outputFileName) { //store the final results in output .root file TFile *output = new TFile(outputFileName->Data(),"RECREATE"); - output->WriteObject(fHistList, "cobjFQD","SingleKey"); + //output->WriteObject(fHistList, "cobjFQD","SingleKey"); + fHistList->SetName("cobjFQD"); + fHistList->Write(fHistList->GetName(), TObject::kSingleKey); delete output; } @@ -187,7 +189,9 @@ void AliFittingQDistribution::WriteHistograms(TString outputFileName) { //store the final results in output .root file TFile *output = new TFile(outputFileName.Data(),"RECREATE"); - output->WriteObject(fHistList, "cobjFQD","SingleKey"); + //output->WriteObject(fHistList, "cobjFQD","SingleKey"); + fHistList->SetName("cobjFQD"); + fHistList->Write(fHistList->GetName(), TObject::kSingleKey); delete output; } diff --git a/PWG2/FLOW/AliFlowCommon/AliFlowAnalysisWithCumulants.cxx b/PWG2/FLOW/AliFlowCommon/AliFlowAnalysisWithCumulants.cxx index 5d283db149f..2f095d4d009 100644 --- a/PWG2/FLOW/AliFlowCommon/AliFlowAnalysisWithCumulants.cxx +++ b/PWG2/FLOW/AliFlowCommon/AliFlowAnalysisWithCumulants.cxx @@ -927,7 +927,9 @@ void AliFlowAnalysisWithCumulants::WriteHistograms(TString* outputFileName) { //store the final results in output .root file TFile *output = new TFile(outputFileName->Data(),"RECREATE"); - output->WriteObject(fHistList, "cobjGFC","SingleKey"); + //output->WriteObject(fHistList, "cobjGFC","SingleKey"); + fHistList->SetName("cobjGFC"); + fHistList->Write(fHistList->GetName(), TObject::kSingleKey); delete output; } @@ -939,7 +941,9 @@ void AliFlowAnalysisWithCumulants::WriteHistograms(TString outputFileName) { //store the final results in output .root file TFile *output = new TFile(outputFileName.Data(),"RECREATE"); - output->WriteObject(fHistList, "cobjGFC","SingleKey"); + //output->WriteObject(fHistList, "cobjGFC","SingleKey"); + fHistList->SetName("cobjGFC"); + fHistList->Write(fHistList->GetName(), TObject::kSingleKey); delete output; } diff --git a/PWG2/FLOW/AliFlowCommon/AliFlowAnalysisWithLYZEventPlane.cxx b/PWG2/FLOW/AliFlowCommon/AliFlowAnalysisWithLYZEventPlane.cxx index b61b5474d21..93f4a6dcbd5 100644 --- a/PWG2/FLOW/AliFlowCommon/AliFlowAnalysisWithLYZEventPlane.cxx +++ b/PWG2/FLOW/AliFlowCommon/AliFlowAnalysisWithLYZEventPlane.cxx @@ -105,7 +105,9 @@ void AliFlowAnalysisWithLYZEventPlane::WriteHistograms(TString* outputFileName) //store the final results in output .root file TFile *output = new TFile(outputFileName->Data(),"RECREATE"); - output->WriteObject(fHistList, "cobjLYZEP","SingleKey"); + //output->WriteObject(fHistList, "cobjLYZEP","SingleKey"); + fHistList->SetName("cobjLYZEP"); + fHistList->Write(fHistList->GetName(), TObject::kSingleKey); delete output; } @@ -116,7 +118,9 @@ void AliFlowAnalysisWithLYZEventPlane::WriteHistograms(TString outputFileName) //store the final results in output .root file TFile *output = new TFile(outputFileName.Data(),"RECREATE"); - output->WriteObject(fHistList, "cobjLYZEP","SingleKey"); + //output->WriteObject(fHistList, "cobjLYZEP","SingleKey"); + fHistList->SetName("cobjLYZEP"); + fHistList->Write(fHistList->GetName(), TObject::kSingleKey); delete output; } diff --git a/PWG2/FLOW/AliFlowCommon/AliFlowAnalysisWithLeeYangZeros.cxx b/PWG2/FLOW/AliFlowCommon/AliFlowAnalysisWithLeeYangZeros.cxx index 3b23f8555fe..3a2a5e32667 100644 --- a/PWG2/FLOW/AliFlowCommon/AliFlowAnalysisWithLeeYangZeros.cxx +++ b/PWG2/FLOW/AliFlowCommon/AliFlowAnalysisWithLeeYangZeros.cxx @@ -115,10 +115,14 @@ void AliFlowAnalysisWithLeeYangZeros::WriteHistograms(TString* outputFileName) TFile *output = new TFile(outputFileName->Data(),"RECREATE"); if (GetFirstRun()) { - output->WriteObject(fHistList, "cobjLYZ1","SingleKey"); + //output->WriteObject(fHistList, "cobjLYZ1","SingleKey"); + fHistList->SetName("cobjLYZ1"); + fHistList->Write(fHistList->GetName(), TObject::kSingleKey); } else { - output->WriteObject(fHistList, "cobjLYZ2","SingleKey"); + //output->WriteObject(fHistList, "cobjLYZ2","SingleKey"); + fHistList->SetName("cobjLYZ2"); + fHistList->Write(fHistList->GetName(), TObject::kSingleKey); } delete output; } @@ -131,10 +135,14 @@ void AliFlowAnalysisWithLeeYangZeros::WriteHistograms(TString outputFileName) TFile *output = new TFile(outputFileName.Data(),"RECREATE"); if (GetFirstRun()) { - output->WriteObject(fHistList, "cobjLYZ1","SingleKey"); + //output->WriteObject(fHistList, "cobjLYZ1","SingleKey"); + fHistList->SetName("cobjLYZ1"); + fHistList->Write(fHistList->GetName(), TObject::kSingleKey); } else { - output->WriteObject(fHistList, "cobjLYZ2","SingleKey"); + //output->WriteObject(fHistList, "cobjLYZ2","SingleKey"); + fHistList->SetName("cobjLYZ2"); + fHistList->Write(fHistList->GetName(), TObject::kSingleKey); } delete output; } diff --git a/PWG2/FLOW/AliFlowCommon/AliFlowAnalysisWithMCEventPlane.cxx b/PWG2/FLOW/AliFlowCommon/AliFlowAnalysisWithMCEventPlane.cxx index f4bdfa1c7aa..579fffd2e1e 100644 --- a/PWG2/FLOW/AliFlowCommon/AliFlowAnalysisWithMCEventPlane.cxx +++ b/PWG2/FLOW/AliFlowCommon/AliFlowAnalysisWithMCEventPlane.cxx @@ -84,7 +84,9 @@ void AliFlowAnalysisWithMCEventPlane::WriteHistograms(TString* outputFileName) { //store the final results in output .root file TFile *output = new TFile(outputFileName->Data(),"RECREATE"); - output->WriteObject(fHistList, "cobjMCEP","SingleKey"); + //output->WriteObject(fHistList, "cobjMCEP","SingleKey"); + fHistList->SetName("cobjMCEP"); + fHistList->Write(fHistList->GetName(), TObject::kSingleKey); delete output; } @@ -94,7 +96,9 @@ void AliFlowAnalysisWithMCEventPlane::WriteHistograms(TString outputFileName) { //store the final results in output .root file TFile *output = new TFile(outputFileName.Data(),"RECREATE"); - output->WriteObject(fHistList, "cobjMCEP","SingleKey"); + //output->WriteObject(fHistList, "cobjMCEP","SingleKey"); + fHistList->SetName("cobjMCEP"); + fHistList->Write(fHistList->GetName(), TObject::kSingleKey); delete output; } diff --git a/PWG2/FLOW/AliFlowCommon/AliFlowAnalysisWithQCumulants.cxx b/PWG2/FLOW/AliFlowCommon/AliFlowAnalysisWithQCumulants.cxx index 22a410eb901..b310a3026ef 100644 --- a/PWG2/FLOW/AliFlowCommon/AliFlowAnalysisWithQCumulants.cxx +++ b/PWG2/FLOW/AliFlowCommon/AliFlowAnalysisWithQCumulants.cxx @@ -4474,7 +4474,9 @@ void AliFlowAnalysisWithQCumulants::WriteHistograms(TString outputFileName) { //store the final results in output .root file TFile *output = new TFile(outputFileName.Data(),"RECREATE"); - output->WriteObject(fHistList, "cobjQC","SingleKey"); + //output->WriteObject(fHistList, "cobjQC","SingleKey"); + fHistList->SetName("cobjQC"); + fHistList->Write(fHistList->GetName(), TObject::kSingleKey); delete output; } diff --git a/PWG2/FLOW/AliFlowCommon/AliFlowAnalysisWithScalarProduct.cxx b/PWG2/FLOW/AliFlowCommon/AliFlowAnalysisWithScalarProduct.cxx index a9717cb123e..a057c590855 100644 --- a/PWG2/FLOW/AliFlowCommon/AliFlowAnalysisWithScalarProduct.cxx +++ b/PWG2/FLOW/AliFlowCommon/AliFlowAnalysisWithScalarProduct.cxx @@ -76,7 +76,9 @@ void AliFlowAnalysisWithScalarProduct::WriteHistograms(TString* outputFileName) //store the final results in output .root file TFile *output = new TFile(outputFileName->Data(),"RECREATE"); - output->WriteObject(fHistList, "cobjSP","SingleKey"); + //output->WriteObject(fHistList, "cobjSP","SingleKey"); + fHistList->SetName("cobjSP"); + fHistList->Write(fHistList->GetName(), TObject::kSingleKey); delete output; } @@ -87,7 +89,9 @@ void AliFlowAnalysisWithScalarProduct::WriteHistograms(TString outputFileName) //store the final results in output .root file TFile *output = new TFile(outputFileName.Data(),"RECREATE"); - output->WriteObject(fHistList, "cobjSP","SingleKey"); + //output->WriteObject(fHistList, "cobjSP","SingleKey"); + fHistList->SetName("cobjSP"); + fHistList->Write(fHistList->GetName(), TObject::kSingleKey); delete output; }