Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
IPNL_GAMMA
gammaware
Commits
8d7510fa
Commit
8d7510fa
authored
Jun 27, 2019
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/root/gui/cubix/src/CXLevelSchemePlayer.cpp
src/root/gui/cubix/src/CXLevelSchemePlayer.cpp
+2
-0
No files found.
src/root/gui/cubix/src/CXLevelSchemePlayer.cpp
View file @
8d7510fa
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment