diff --git a/Be/BeAnalysis.cpp b/Be/BeAnalysis.cpp index d4fbdaa9b84ee4102f21e4a63c1064b2a5a73716..24e10bed9b766fdbf13a2805002fa147c193a943 100644 --- a/Be/BeAnalysis.cpp +++ b/Be/BeAnalysis.cpp @@ -278,17 +278,25 @@ void BeAnalysis::SaveEpsilonTHist(Int_t interval, Int_t chain) { TFile fw("figures/epsilonT.root", "UPDATE"); + TString hName; + if (heeT[interval][chain] != 0) { + hName.Form("heeT%d_%d_%d%d", interval, chain, kMinAngle, kMaxAngle); + heeT[interval][chain]->SetName(hName.Data()); heeT[interval][chain]->Write(); Info("BeAnalysis::SaveEpsilonTHist", "Histogram saved."); } if (hseT[interval][chain] != 0) { - Info("BeAnalysis::SaveEpsilonTHist", "Histogram saved."); + hName.Form("hseT%d_%d_%d%d", interval, chain, kMinAngle, kMaxAngle); + hseT[interval][chain]->SetName(hName.Data()); hseT[interval][chain]->Write(); + Info("BeAnalysis::SaveEpsilonTHist", "Histogram saved."); } if (hieT[interval][chain] != 0) { - Info("BeAnalysis::SaveEpsilonTHist", "Histogram saved."); + hName.Form("hieT%d_%d_%d%d", interval, chain, kMinAngle, kMaxAngle); + hieT[interval][chain]->SetName(hName.Data()); hieT[interval][chain]->Write(); + Info("BeAnalysis::SaveEpsilonTHist", "Histogram saved."); } fw.Close(); @@ -298,17 +306,25 @@ void BeAnalysis::SaveCosThetaTHist(Int_t interval, Int_t chain) { TFile fw("figures/cosThetaT.root", "UPDATE"); + TString hName; + if (hecoskT[interval][chain] != 0) { + hName.Form("hecoskT%d_%d_%d%d", interval, chain, kMinAngle, kMaxAngle); + hecoskT[interval][chain]->SetName(hName.Data()); hecoskT[interval][chain]->Write(); Info("BeAnalysis::SaveCosThetaTHist", "Histogram saved."); } if (hscoskT[interval][chain] != 0) { - Info("BeAnalysis::SaveCosThetaTHist", "Histogram saved."); + hName.Form("hscoskT%d_%d_%d%d", interval, chain, kMinAngle, kMaxAngle); + hscoskT[interval][chain]->SetName(hName.Data()); hscoskT[interval][chain]->Write(); + Info("BeAnalysis::SaveCosThetaTHist", "Histogram saved."); } if (hicoskT[interval][chain] != 0) { - Info("BeAnalysis::SaveCosThetaTHist", "Histogram saved."); + hName.Form("hicoskT%d_%d_%d%d", interval, chain, kMinAngle, kMaxAngle); + hicoskT[interval][chain]->SetName(hName.Data()); hicoskT[interval][chain]->Write(); + Info("BeAnalysis::SaveCosThetaTHist", "Histogram saved."); } fw.Close();