Skip to content

Commit

Permalink
correct latex table header
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomomagni committed May 22, 2024
1 parent 379e13a commit 4340ca2
Show file tree
Hide file tree
Showing 18 changed files with 54 additions and 35 deletions.
55 changes: 37 additions & 18 deletions extras/lh_bench_23/parse_to_latex.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,28 @@
\end{table}
"""

VFNS_LABELS = r"""
\multicolumn{1}{c|} {$xu_v$} &
\multicolumn{1}{c|} {$xd_v$} &
\multicolumn{1}{c|} {$xL_-$} &
\multicolumn{1}{c|} {$xL_+$} &
\multicolumn{1}{c|} {$xs_+$} &
\multicolumn{1}{c|} {$xc_+$} &
\multicolumn{1}{c|} {$xb_+$} &
\multicolumn{1}{c||}{$xg$} \\[0.5mm]
"""

FFNS_LABELS = r"""
\multicolumn{1}{c|} {$xu_v$} &
\multicolumn{1}{c|} {$xd_v$} &
\multicolumn{1}{c|} {$xL_-$} &
\multicolumn{1}{c|} {$xL_+$} &
\multicolumn{1}{c|} {$xs_v$} &
\multicolumn{1}{c|} {$xs_+$} &
\multicolumn{1}{c|} {$xc_+$} &
\multicolumn{1}{c||}{$xg$}
"""


def insert_haedrule(scheme, approx, caption):
"""Insert the middle rule."""
Expand Down Expand Up @@ -53,22 +75,15 @@ def insert_haedrule(scheme, approx, caption):
# + r"""aN$^3$LO, """
+ approx
+ scheme_label
+ r"""
$\,\mu_{\rm f}^2 = 10^4 \mbox{ GeV}^2$} \\
+ r"""$\,\mu_{\rm f}^2 = 10^4 \mbox{ GeV}^2$} \\
\multicolumn{9}{||c||}{} \\[-0.3cm]
\hline \hline
\multicolumn{9}{||c||}{} \\[-3mm]
\multicolumn{1}{||c||}{$x$} &
\multicolumn{1}{c|} {$xu_v$} &
\multicolumn{1}{c|} {$xd_v$} &
\multicolumn{1}{c|} {$xL_-$} &
\multicolumn{1}{c|} {$xL_+$} &
\multicolumn{1}{c|} {$xs_+$} &
\multicolumn{1}{c|} {$xc_+$} &
\multicolumn{1}{c|} {$xb_+$} &
\multicolumn{1}{c||}{$xg$} \\[0.5mm]
"""
)
HEADRULE += VFNS_LABELS if scheme == "VFNS" else FFNS_LABELS
HEADRULE += r"""\\[0.5mm]"""
return HEADRULE


Expand Down Expand Up @@ -128,8 +143,8 @@ def dump_table(scheme: str, approx: str, caption: str):
caption = r"""
Results for the FFNS aN$^3$LO evolution
for the initial conditions and the input parton distributions
given in \cref{sec:toy_pdf},
with the FHMRUVV splitting functions approximation.
given in Sec.~\ref{sec:toy_pdf},
with the FHMRUVV splitting functions approximation and the NNPDF code.
"""
dump_table(scheme, approx, caption)

Expand All @@ -138,23 +153,27 @@ def dump_table(scheme: str, approx: str, caption: str):
caption = r"""
Results for the VFNS aN$^3$LO evolution
for the initial conditions and the input parton distributions
given in \cref{sec:toy_pdf},
with the FHMRUVV splitting functions approximation.
given in Sec.~\ref{sec:toy_pdf},
with the FHMRUVV splitting functions approximation and the NNPDF code.
"""
dump_table(scheme, approx, caption)

approx = "EKO"
scheme = "FFNS"
caption = r"""
Same as \cref{tab:n3lo_ffns_fhmruvv} but now with
the NNPDF splitting functions approximation.
Results for the FFNS aN$^3$LO evolution
for the initial conditions and the input parton distributions
given in Sec.~\ref{sec:toy_pdf},
with the NNPDF splitting functions approximation.
"""
dump_table(scheme, approx, caption)

approx = "EKO"
scheme = "VFNS"
caption = r"""
Same as \cref{tab:n3lo_vfns_fhmruvv} but now with
the NNPDF splitting functions approximation.
Results for the VFNS aN$^3$LO evolution
for the initial conditions and the input parton distributions
given in Sec.~\ref{sec:toy_pdf},
with the NNPDF splitting functions approximation.
"""
dump_table(scheme, approx, caption)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
100.00000000000000 1.0000000116860974E-007 1.1073436842679030E-004 5.3078116501126260E-005 7.8440013595582059E-006 158.98448342903407 -2.7409080530560459E-005 78.420291447506216 77.695957374410852 1164.1199844485227
100.00000000000000 9.9999999747524271E-007 5.7850897675137958E-004 3.1907598062730358E-004 3.0969373312927928E-005 74.870422626646302 -4.2595660495692300E-005 36.583852704365881 36.010525221209534 526.39688596148198
100.00000000000000 9.9999997473787516E-006 2.9147080724563068E-003 1.6974144677810443E-003 1.2300754381122658E-004 34.491866464262500 7.7558289248713663E-006 16.570297537394620 16.116360432976627 227.62525141193967
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
100.00000000000000 1.0000000116860974E-007 1.1073436842679030E-004 5.3078116501126260E-005 7.8440013595582059E-006 138.96411571982844 -2.7409080530560459E-005 68.410107592903401 67.685776329870180 1007.7770380433128
100.00000000000000 9.9999999747524271E-007 5.7850897675137958E-004 3.1907598062730358E-004 3.0969373312927928E-005 68.902534411018109 -4.2595660495692300E-005 33.599908596551785 33.026582187175393 480.89658370868221
100.00000000000000 9.9999997473787516E-006 2.9147080724563068E-003 1.6974144677810443E-003 1.2300754381477930E-004 33.188548024973770 7.7558289248713663E-006 15.918638317750251 15.464701533493528 217.83322051452035
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
100.00000000000000 1.0000000116860974E-007 1.1073436842679030E-004 5.3078116501126260E-005 7.8440013595582059E-006 152.80737782156342 -2.7409080530560459E-005 75.331738643770890 74.607405364346931 1114.8462243486822
100.00000000000000 9.9999999747524271E-007 5.7850897675137958E-004 3.1907598062730358E-004 3.0969373320033355E-005 73.231942033184538 -4.2595660495692300E-005 35.764612407634992 35.191285199168135 513.51140688584087
100.00000000000000 9.9999997473787516E-006 2.9147080724563068E-003 1.6974144677810443E-003 1.2300754381477930E-004 34.223006699310361 7.7558289248713663E-006 16.435867654918543 15.981930615401740 225.46124651649257
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
100.00000000000000 1.0000000116860974E-007 1.1073436842679030E-004 5.3078116501126260E-005 7.8440013453473512E-006 145.10322273865611 -2.7409080530560459E-005 71.479661102317252 70.755329045645894 1056.7021925519598
100.00000000000000 9.9999999747524271E-007 5.7850897675137958E-004 3.1907598062730358E-004 3.0969373320033355E-005 70.548244793879149 -4.2595660495692300E-005 34.422763787982298 33.849437103915477 493.83654380918813
100.00000000000000 9.9999997473787516E-006 2.9147080724563068E-003 1.6974144677810443E-003 1.2300754381122658E-004 33.459423595685678 7.7558289248713663E-006 16.054076103106208 15.600139253947013 220.01484611683000
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
100.00000000000000 1.0000000116860974E-007 1.1073436842679030E-004 5.3078116501126260E-005 7.8440013453473512E-006 151.08534490362433 -2.7409080530560459E-005 74.470722184801360 73.745637287622031 1089.3705632942376
100.00000000000000 9.9999999747524271E-007 5.7850897675137958E-004 3.1907598062730358E-004 3.0969373327138783E-005 72.571950710934573 -4.2595660495692300E-005 35.434616746510002 34.860960942546093 504.44856342792536
100.00000000000000 9.9999997473787516E-006 2.9147080724563068E-003 1.6974144677810443E-003 1.2300754381477930E-004 33.995060637816721 7.7558289248713663E-006 16.321894624171723 15.867855453023179 222.82619594008270
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
100.00000000000000 1.0000000116860974E-007 1.1073436842679030E-004 5.3078116501126260E-005 7.8440013595582059E-006 146.82345512702517 -2.7409080530560459E-005 72.339777296501765 71.616196857586033 1082.1576473345106
100.00000000000000 9.9999999747524271E-007 5.7850897675137958E-004 3.1907598062730358E-004 3.0969373327138783E-005 71.208295457797817 -4.2595660495692300E-005 34.752789119941625 34.179791031372048 502.89955006210027
100.00000000000000 9.9999997473787516E-006 2.9147080724563068E-003 1.6974144677810443E-003 1.2300754381477930E-004 33.687434378885641 7.7558289248713663E-006 16.168081494706183 15.714246777178783 222.65057630055901
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
100.00000000000000 1.0000000116860974E-007 1.1073436842679030E-004 5.3078116501126260E-005 7.8440013453473512E-006 148.68903766865787 -2.7409080530560459E-005 73.272568567318132 72.548361890841903 1085.1765644050179
100.00000000000000 9.9999999747524271E-007 5.7850897675137958E-004 3.1907598062730358E-004 3.0969373320033355E-005 71.792504661251002 -4.2595660495692300E-005 35.044893721668224 34.471627598820980 503.52703490762542
100.00000000000000 9.9999997473787516E-006 2.9147080724563068E-003 1.6974144677810443E-003 1.2300754381477930E-004 33.813130280425398 7.7558289248713663E-006 16.230929445476065 15.777014500681659 222.71594792696169
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
100.00000000000000 1.0000000116860974E-007 1.2188813535374265E-004 6.7095969779273901E-005 2.4726524152640650E-006 51.765901270673879 -9.9200779182240240E-006 24.809838891149042 24.091153727252092 452.88961136560920
100.00000000000000 9.9999999747524271E-007 5.8593489566760582E-004 3.3362104220913125E-004 1.2769432279569060E-005 32.529930571647853 -1.9932355789009648E-005 15.412654126678230 14.843273565533545 275.85699472895311
100.00000000000000 9.9999997473787516E-006 2.8964623221137131E-003 1.6913606170989581E-003 6.8966711238793721E-005 20.130899017860777 1.3958046515938349E-005 9.3889497293661321 8.9375031129079829 155.27080062356600
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
100.00000000000000 1.0000000116860974E-007 1.2188813535374265E-004 6.7095969779273901E-005 2.4726524117113513E-006 102.21910930411154 -9.9200779146713103E-006 50.036442907867880 49.317754525690397 864.43546032854169
100.00000000000000 9.9999999747524271E-007 5.8593489566760582E-004 3.3362104220913125E-004 1.2769432277792703E-005 51.369668520197578 -1.9932355787233291E-005 24.832523100953093 24.263140396575423 420.87282207926097
100.00000000000000 9.9999997473787516E-006 2.8964623221137131E-003 1.6913606170989581E-003 6.8966711238793721E-005 25.937165492268313 1.3958046515938349E-005 12.292082966569900 11.840635133496122 197.07223581991354
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
100.00000000000000 1.0000000116860974E-007 1.2188813535374265E-004 6.7095969779273901E-005 2.4726524117113513E-006 80.063668092992813 -9.9200779146713103E-006 38.958722302308516 38.241168659126764 707.22039801310052
100.00000000000000 9.9999999747524271E-007 5.8593489566760582E-004 3.3362104220913125E-004 1.2769432277792703E-005 42.732159327574223 -1.9932355787233291E-005 20.513768504641416 19.945043246276505 365.55495085765449
100.00000000000000 9.9999997473787516E-006 2.8964623221137131E-003 1.6913606170989581E-003 6.8966711240570078E-005 23.137074543875329 1.3958046515938349E-005 10.892037492373406 10.440918180383436 181.27012988022375
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
100.00000000000000 1.0000000116860974E-007 1.2188813535374265E-004 6.7095969779273901E-005 2.4726524223694923E-006 101.74119285098439 -9.9200779146713103E-006 49.797484681304283 49.074064881273316 760.40242851177118
100.00000000000000 9.9999999747524271E-007 5.8593489566760582E-004 3.3362104220913125E-004 1.2769432277792703E-005 52.786591928666581 -1.9932355787233291E-005 25.540984805187595 24.968861320555895 384.97817940769039
100.00000000000000 9.9999997473787516E-006 2.8964623221137131E-003 1.6913606170989581E-003 6.8966711238793721E-005 26.954715855202060 1.3958046515938349E-005 12.800858148036772 12.348041034529231 186.26185534325910
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
100.00000000000000 1.0000000116860974E-007 1.2188813535374265E-004 6.7095969779273901E-005 2.4726524223694923E-006 79.778249418273305 -9.9200779146713103E-006 38.816012964948740 38.098919721113589 701.89344080422757
100.00000000000000 9.9999999747524271E-007 5.8593489566760582E-004 3.3362104220913125E-004 1.2769432277792703E-005 42.172664176586395 -1.9932355787233291E-005 20.234020929147501 19.665687953107124 362.19963941731726
100.00000000000000 9.9999997473787516E-006 2.8964623221137131E-003 1.6913606170989581E-003 6.8966711238793721E-005 22.669227657304681 1.3958046515938349E-005 10.658114049088084 10.207300016840069 179.80169396984240
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
100.00000000000000 1.0000000116860974E-007 1.2188813535374265E-004 6.7095969779273901E-005 2.4726524117113513E-006 92.788086150245633 -9.9200779146713103E-006 45.320931330934926 44.599489959745455 745.44540497551191
100.00000000000000 9.9999999747524271E-007 5.8593489566760582E-004 3.3362104220913125E-004 1.2769432277792703E-005 49.230086711347354 -1.9932355787233291E-005 23.762732196527981 23.191538122626504 381.70459364423681
100.00000000000000 9.9999997473787516E-006 2.8964623221137131E-003 1.6913606170989581E-003 6.8966711238793721E-005 25.982111330651840 1.3958046515938349E-005 12.314555885761662 11.862014448311825 186.41777990367567
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
100.00000000000000 1.0000000116860974E-007 1.2188813535463083E-004 6.7095969778385722E-005 2.4726524134877081E-006 27.037663359073420 -9.9200779164476671E-006 12.445719935348814 11.724529245104392 195.45637455639988
100.00000000000000 9.9999999747524271E-007 5.8593489566849399E-004 3.3362104220913125E-004 1.2769432279569060E-005 24.433001902191801 -1.9932355789009648E-005 11.364189791950206 10.793225193441293 186.19936348000047
100.00000000000000 9.9999997473787516E-006 2.8964623221137131E-003 1.6913606170989581E-003 6.8966711240570078E-005 18.891900563195556 1.3958046515938349E-005 8.7694505020335196 8.3170969721232630 134.19912277274810
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
100.00000000000000 1.0000000116860974E-007 1.2188813535374265E-004 6.7095969779273901E-005 2.4726524152640650E-006 79.048963345116789 -9.9200779146713103E-006 38.451369928370497 37.730175458064934 627.63998118875850
100.00000000000000 9.9999999747524271E-007 5.8593489566760582E-004 3.3362104220913125E-004 1.2769432277792703E-005 44.212441762119020 -1.9932355787233291E-005 21.253909721913814 20.682942883592233 342.03345852126694
100.00000000000000 9.9999997473787516E-006 2.8964623221137131E-003 1.6913606170989581E-003 6.8966711240570078E-005 24.524203815547949 1.3958046515938349E-005 11.585602128209716 11.133247511813883 176.39071351403481
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
100.00000000000000 1.0000000116860974E-007 1.2188813535374265E-004 6.7095969779273901E-005 2.4726524152640650E-006 41.389110988050120 -9.9200779182240240E-006 19.621443749837162 18.900252040763423 317.64987485757928
100.00000000000000 9.9999999747524271E-007 5.8593489566849399E-004 3.3362104220913125E-004 1.2769432277792703E-005 30.062728093481752 -1.9932355789009648E-005 14.179052887595184 13.608087690965277 231.51507901093620
100.00000000000000 9.9999997473787516E-006 2.8964623221137131E-003 1.6913606170989581E-003 6.8966711238793721E-005 20.404705945413959 1.3958046515938349E-005 9.5258531931427211 9.0734993978249339 145.91907323288333
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
# q2 x xuv xdv xL- 2xL+ xsv xs+ xc+ xg
100.00000000000000 1.0000000116860974E-007 1.2188813535374265E-004 6.7095969779273901E-005 2.4726524223694923E-006 75.376318725362495 -9.9200779146713103E-006 36.615047618493335 35.887119305230222 465.47456503867295
100.00000000000000 9.9999999747524271E-007 5.8593489566760582E-004 3.3362104220913125E-004 1.2769432277792703E-005 45.635430113943869 -1.9932355787233291E-005 21.965403897826238 21.390535305964420 286.23772770262161
100.00000000000000 9.9999997473787516E-006 2.8964623221137131E-003 1.6913606170989581E-003 6.8966711238793721E-005 26.149755048878042 1.3958046515938349E-005 12.398377744874765 11.944073487995208 161.23589845487552
Expand Down

0 comments on commit 4340ca2

Please sign in to comment.