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 07e953b..054a1ff 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 1db5047..9f95aac 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 0b4cd7e..06cdfc3 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 1273cdc..084163c 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;
 }