for local runs write histograms lists singlekey
authorsnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 23 Jan 2009 10:40:10 +0000 (10:40 +0000)
committersnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 23 Jan 2009 10:40:10 +0000 (10:40 +0000)
PWG2/FLOW/AliFittingQDistribution.cxx
PWG2/FLOW/AliFlowAnalysisWithCumulants.cxx
PWG2/FLOW/AliFlowAnalysisWithMCEventPlane.cxx
PWG2/FLOW/AliFlowAnalysisWithQCumulants.cxx

index 07e953b97c3374f8e546de6cf649ab414627017a..054a1ff0ccaf26c55dbd6e3993baec7b9a5d3c55 100644 (file)
@@ -173,7 +173,7 @@ void AliFittingQDistribution::WriteHistograms(TString* outputFileName)
 {
  //store the final results in output .root file
  TFile *output = new TFile(outputFileName->Data(),"RECREATE");
- fHistList->Write(); 
+ output->WriteObject(fHistList, "cobjFQD","SingleKey");
  delete output;
 }
 
index 1db5047beeb861cdfb3205047ffd497d12822063..9f95aacf32d47dfcc8d9964541272a9e1c005535 100644 (file)
@@ -821,9 +821,7 @@ void AliFlowAnalysisWithCumulants::WriteHistograms(TString* outputFileName)
 {
  //store the final results in output .root file
  TFile *output = new TFile(outputFileName->Data(),"RECREATE");
- output->mkdir("cobjGFC","cobjGFC");
- output->cd("cobjGFC");
- fHistList->Write(); 
+ output->WriteObject(fHistList, "cobjGFC","SingleKey");
  delete output;
 }
 
index 0b4cd7e50b6fd44370c7c51bfee109436d2210b0..06cdfc3285ad78c6aa5edeecce0d3f531e2698a0 100644 (file)
@@ -78,9 +78,7 @@ void AliFlowAnalysisWithMCEventPlane::WriteHistograms(TString* outputFileName)
 {
  //store the final results in output .root file
  TFile *output = new TFile(outputFileName->Data(),"RECREATE");
- output->mkdir("cobjMCEP","cobjMCEP");
- output->cd("cobjMCEP"); 
- fHistList->Write(); 
+ output->WriteObject(fHistList, "cobjMCEP","SingleKey");
  delete output;
 }
 
index 1273cdc34f5e26c97da441bdca0efbefa356c7fe..084163cfebd6421c69978a6bfbafe1b8271445dd 100644 (file)
@@ -1489,9 +1489,7 @@ void AliFlowAnalysisWithQCumulants::WriteHistograms(TString* outputFileName)
 {
  //store the final results in output .root file
  TFile *output = new TFile(outputFileName->Data(),"RECREATE");
- output->mkdir("cobjQC","cobjQC");
- output->cd("cobjQC");
- fHistList->Write(); 
+ output->WriteObject(fHistList, "cobjQC","SingleKey");
  delete output;
 }