Skip to content

Commit 673b68e

Browse files
committed
auto alignment of skulls in digit and cluster maps
1 parent 9ecaada commit 673b68e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Modules/MFT/src/QcMFTClusterCheck.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@ void QcMFTClusterCheck::beautify(std::shared_ptr<MonitorObject> mo, Quality chec
272272
auto* hMap = dynamic_cast<TH2F*>(mo->getObject());
273273
int binCx = hMap->GetXaxis()->FindBin(mX[mMaskedChips[i]]);
274274
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");
275+
TLatex* tl = new TLatex(hMap->GetXaxis()->GetBinCenter(binCx), hMap->GetYaxis()->GetBinCenter(binCy), "N");
276+
tl->SetTextAlign(22);
277277
tl->SetTextFont(142);
278278
tl->SetTextSize(0.08);
279279
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)