diff --git a/Modules/MFT/src/QcMFTClusterCheck.cxx b/Modules/MFT/src/QcMFTClusterCheck.cxx index 8d3878dbc6..a6a86d99a8 100644 --- a/Modules/MFT/src/QcMFTClusterCheck.cxx +++ b/Modules/MFT/src/QcMFTClusterCheck.cxx @@ -17,6 +17,7 @@ /// \author Diana Maria Krupova /// \author David Grund /// \author Sara Haidlova +/// \author Jakub Juracka /// // C++ @@ -272,8 +273,8 @@ void QcMFTClusterCheck::beautify(std::shared_ptr mo, Quality chec auto* hMap = dynamic_cast(mo->getObject()); int binCx = hMap->GetXaxis()->FindBin(mX[mMaskedChips[i]]); int binCy = hMap->GetYaxis()->FindBin(mY[mMaskedChips[i]]); - // the -0.5 is a shift to centre better the skulls - TLatex* tl = new TLatex(hMap->GetXaxis()->GetBinCenter(binCx) - 0.5, hMap->GetYaxis()->GetBinCenter(binCy), "N"); + TLatex* tl = new TLatex(hMap->GetXaxis()->GetBinCenter(binCx), hMap->GetYaxis()->GetBinCenter(binCy), "N"); + tl->SetTextAlign(22); tl->SetTextFont(142); tl->SetTextSize(0.08); hMap->GetListOfFunctions()->Add(tl); diff --git a/Modules/MFT/src/QcMFTDigitCheck.cxx b/Modules/MFT/src/QcMFTDigitCheck.cxx index d1411d1c94..420838229a 100644 --- a/Modules/MFT/src/QcMFTDigitCheck.cxx +++ b/Modules/MFT/src/QcMFTDigitCheck.cxx @@ -351,8 +351,8 @@ void QcMFTDigitCheck::beautify(std::shared_ptr mo, Quality checkR auto* hMap = dynamic_cast(mo->getObject()); int binCx = hMap->GetXaxis()->FindBin(mX[mMaskedChips[i]]); int binCy = hMap->GetYaxis()->FindBin(mY[mMaskedChips[i]]); - // the -0.5 is a shift to centre better the skulls - TLatex* tl = new TLatex(hMap->GetXaxis()->GetBinCenter(binCx) - 0.5, hMap->GetYaxis()->GetBinCenter(binCy), "N"); + TLatex* tl = new TLatex(hMap->GetXaxis()->GetBinCenter(binCx), hMap->GetYaxis()->GetBinCenter(binCy), "N"); + tl->SetTextAlign(22); tl->SetTextFont(142); tl->SetTextSize(0.08); hMap->GetListOfFunctions()->Add(tl);