From bd77b386243da7b063ae2dbaabcdd389638e068c Mon Sep 17 00:00:00 2001 From: Vratislav Chudoba Date: Wed, 2 Aug 2017 16:02:43 +0300 Subject: [PATCH] Cosmetic changes. --- Be/BeAnalysis.cpp | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/Be/BeAnalysis.cpp b/Be/BeAnalysis.cpp index d4fbdaa..24e10be 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(); -- 2.18.1