Skip to content

Commit b4e12de

Browse files
authored
[MFT] fixed alignment of skull symbols for digit and cluster maps (#2627)
* auto alignment of skulls in digit and cluster maps * added author
1 parent 9fa3d75 commit b4e12de

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Modules/MFT/src/QcMFTClusterCheck.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
/// \author Diana Maria Krupova
1818
/// \author David Grund
1919
/// \author Sara Haidlova
20+
/// \author Jakub Juracka
2021
///
2122

2223
// C++
@@ -272,8 +273,8 @@ void QcMFTClusterCheck::beautify(std::shared_ptr<MonitorObject> mo, Quality chec
272273
auto* hMap = dynamic_cast<TH2F*>(mo->getObject());
273274
int binCx = hMap->GetXaxis()->FindBin(mX[mMaskedChips[i]]);
274275
int binCy = hMap->GetYaxis()->FindBin(mY[mMaskedChips[i]]);
275-
// the -0.5 is a shift to centre better the skulls
276-
TLatex* tl = new TLatex(hMap->GetXaxis()->GetBinCenter(binCx) - 0.5, hMap->GetYaxis()->GetBinCenter(binCy), "N");
276+
TLatex* tl = new TLatex(hMap->GetXaxis()->GetBinCenter(binCx), hMap->GetYaxis()->GetBinCenter(binCy), "N");
277+
tl->SetTextAlign(22);
277278
tl->SetTextFont(142);
278279
tl->SetTextSize(0.08);
279280
hMap->GetListOfFunctions()->Add(tl);

Modules/MFT/src/QcMFTDigitCheck.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,8 @@ void QcMFTDigitCheck::beautify(std::shared_ptr<MonitorObject> mo, Quality checkR
351351
auto* hMap = dynamic_cast<TH2F*>(mo->getObject());
352352
int binCx = hMap->GetXaxis()->FindBin(mX[mMaskedChips[i]]);
353353
int binCy = hMap->GetYaxis()->FindBin(mY[mMaskedChips[i]]);
354-
// the -0.5 is a shift to centre better the skulls
355-
TLatex* tl = new TLatex(hMap->GetXaxis()->GetBinCenter(binCx) - 0.5, hMap->GetYaxis()->GetBinCenter(binCy), "N");
354+
TLatex* tl = new TLatex(hMap->GetXaxis()->GetBinCenter(binCx), hMap->GetYaxis()->GetBinCenter(binCy), "N");
355+
tl->SetTextAlign(22);
356356
tl->SetTextFont(142);
357357
tl->SetTextSize(0.08);
358358
hMap->GetListOfFunctions()->Add(tl);

0 commit comments

Comments
 (0)