Skip to content

Commit

Permalink
improve labels for mean profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
mmusich committed May 27, 2023
1 parent e8c139d commit 37ecc1b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions DQMOffline/Alignment/src/DiMuonMassBiasClient.cc
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void DiMuonMassBiasClient::bookMEs(DQMStore::IBooker& iBooker)
const auto& xmax = ME->getAxisMax(1);

MonitorElement* meanToBook =
iBooker.book1D(("Mean" + key), (title + ";" + xtitle + ";" + ytitle), nxbins, xmin, xmax);
iBooker.book1D(("Mean" + key), (title + ";#LT M_{#mu^{-}#mu^{+}} #GT [GeV];" + ytitle), nxbins, xmin, xmax);
meanHistos_.insert({key, meanToBook});

MonitorElement* sigmaToBook =
Expand Down Expand Up @@ -138,8 +138,12 @@ void DiMuonMassBiasClient::fitAndFillProfile(std::pair<std::string, MonitorEleme
const auto& xmin = ME->getAxisMin(1);
const auto& xmax = ME->getAxisMax(1);

TProfile* p_mean = new TProfile(
("Mean" + key).c_str(), (title + ";" + xtitle + ";#LT" + ytitle + "#GT").c_str(), nxbins, xmin, xmax, "g");
TProfile* p_mean = new TProfile(("Mean" + key).c_str(),
(title + ";" + xtitle + ";#LT M_{#mu^{-}#mu^{+}} #GT [GeV]").c_str(),
nxbins,
xmin,
xmax,
"g");

TProfile* p_width = new TProfile(
("Sigma" + key).c_str(), (title + ";" + xtitle + ";#sigma of " + ytitle).c_str(), nxbins, xmin, xmax, "g");
Expand Down

0 comments on commit 37ecc1b

Please sign in to comment.