Skip to content

Commit a915940

Browse files
committed
change legend entries
1 parent a0d304c commit a915940

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/MFT/src/QcMFTClusterTask.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ void QcMFTClusterTask::initialize(o2::framework::InitContext& /*ctx*/)
262262
mClusterRinAllLayersStack = std::make_unique<THStack>("mClusterRinAllLayersStack", "Cluster Radial Position in All MFT Layers; r (cm); # entries");
263263
for (auto nMFTLayer = 0; nMFTLayer < 10; nMFTLayer++) {
264264
mClusterRinLayer[nMFTLayer]->getNum()->SetLineColor(TColor::GetColor(mColors[nMFTLayer]));
265-
mClusterRinLayer[nMFTLayer]->getNum()->SetTitle(Form("layer %d", nMFTLayer));
265+
mClusterRinLayer[nMFTLayer]->getNum()->SetTitle(Form("D%dF%d", static_cast<int>(std::floor(nMFTLayer / 2.)), nMFTLayer % 2 == 0 ? 0 : 1));
266266
mClusterRinAllLayersStack->Add(mClusterRinLayer[nMFTLayer]->getNum());
267267
}
268268
}
@@ -476,7 +476,7 @@ void QcMFTClusterTask::updateCanvas()
476476
mClusterRinAllLayers->Clear();
477477
mClusterRinAllLayersStack->Draw("nostack hist");
478478
mClusterRinAllLayers->Update();
479-
gPad->BuildLegend(0.8, 0.4, 0.9, 0.9, "", "l");
479+
gPad->BuildLegend(0.83, 0.50, 0.90, 0.90, "", "l");
480480
}
481481

482482
} // namespace o2::quality_control_modules::mft

0 commit comments

Comments
 (0)