Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit 8d7510fa authored by Jérémie Dudouet's avatar Jérémie Dudouet
Browse files

correct zoom for arrows in LSPlayer

parent d247660a
Pipeline #35991 passed with stage
in 4 minutes and 28 seconds
......@@ -178,6 +178,7 @@ void CXLevelSchemePlayer::DrawArrows(TString ListOfNuclei,TH1 *h)
for(int i=0 ; i<fListOfLatex->GetEntries() ; i++)
{
TLatex *l = (TLatex*)fListOfLatex->At(i);
if(gPad->GetListOfPrimitives()->FindObject(l) == nullptr) continue;
Float_t Y = l->GetY()-(gPad->AbsPixeltoY(l->GetBBox().fY+l->GetBBox().fWidth)-gPad->AbsPixeltoY(l->GetBBox().fY));
if(Y>YMax)
YMax = Y;
......@@ -191,6 +192,7 @@ void CXLevelSchemePlayer::DrawArrows(TString ListOfNuclei,TH1 *h)
for(int i=0 ; i<fListOfLatex->GetEntries() ; i++)
{
TLatex *l = (TLatex*)fListOfLatex->At(i);
if(gPad->GetListOfPrimitives()->FindObject(l) == nullptr) continue;
Float_t Y = l->GetY()-(gPad->AbsPixeltoY(l->GetBBox().fY+l->GetBBox().fWidth)-gPad->AbsPixeltoY(l->GetBBox().fY));
if(Y>YMax)
YMax = Y;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment