1313from latqcdtools .base .logger import ToolboxException
1414from latqcdtools .base .printErrorBars import get_err_str
1515from latqcdtools .physics .constants import M_mu_phys , M_K0_phys , M_Kpm_phys , M_pi0_phys , M_pipm_phys ,\
16- M_rho_phys , frho_phys , fk_phys , fpi_phys , w0_phys , r0_phys , r1_phys , alpha_e , lambda_MSbar_phys ,\
17- Rproton_phys , Tpc_chiral , sqrtt0_phys , worlds
16+ M_rho_phys , frho_phys , fk_phys , fpi_phys , fphi_phys , w0_phys , r0_phys , r1_phys , alpha_e , lambda_MSbar_phys ,\
17+ Rproton_phys , sqrtt0_phys , Tpc_chiral , worlds
1818import latqcdtools .base .logger as logger
1919
2020
@@ -71,22 +71,22 @@ def testScales():
7171 lpass *= print_results ( sqrtt0_div_a (6.800 ) , 5.524714874614185 , text = "sqrt(t0)/a" , prec = EPSILON )
7272
7373 # Test some physical scales for particular worlds and years.
74- lpass *= print_results ( 105.6583755 , M_mu_phys (year = 2022 ,units = "MeV" ) , text = "muon mass 2022" )
75- lpass *= print_results ( 134.9768 , M_pi0_phys (year = 2022 ,units = "MeV" ) , text = "pi0 mass 2022" )
76- lpass *= print_results ( 139.57039 , M_pipm_phys (year = 2022 ,units = "MeV" ) , text = "pi+/- mass 2022" )
77- lpass *= print_results ( 497.611 , M_K0_phys (year = 2022 ,units = "MeV" ) , text = "K0 mass 2022" )
78- lpass *= print_results ( 493.677 , M_Kpm_phys (year = 2022 ,units = "MeV" ) , text = "K+/- mass 2022" )
79- lpass *= print_results ( 775.26 , M_rho_phys (year = 2022 ,units = "MeV" ) , text = "rho mass 2022" )
80- lpass *= print_results ( 0.21 , frho_phys (year = 2017 ,units = "GeV" ) , text = "f_rho 2017" )
81- lpass *= print_results ( 155.7 / np .sqrt (2. ), fk_phys (year = 2019 ,units = "MeV" ,world = "Nf21" ), text = "f_K 2019" )
82- lpass *= print_results ( 130.50 , fpi_phys (year = 2018 ,units = "MeV" ) , text = "f_pi 2018" )
83- lpass *= print_results ( 0.1715 , w0_phys (year = 2013 ,units = "fm" ) , text = "w0 2018" )
84- lpass *= print_results ( 0.3106 , r1_phys (year = 2010 ,units = "fm" ) , text = "r1 2010" )
85- lpass *= print_results ( 0.46875752 , r0_phys (year = 2014 ,units = "fm" ) , text = "r0 2014" )
86- lpass *= print_results ( 7.2973525693e-3 , alpha_e (year = 2018 ) , text = "alpha_e 2018" )
87- lpass *= print_results ( 339 , lambda_MSbar_phys (year = 2021 ,units = "MeV" ) , text = "lambda_MSbar 2021" )
88- lpass *= print_results ( 0.8414 , Rproton_phys (year = 2018 ,units = "fm" ) , text = "R_proton 2021" )
89- lpass *= print_results ( 157.2555509 , Tpc_chiral (year = 2020 ,units = "MeV" ) , text = "Tpc_chiral 2020" )
74+ lpass *= print_results ( 105.6583755 , M_mu_phys (year = 2022 ,units = "MeV" ) , text = "muon mass 2022" )
75+ lpass *= print_results ( 134.9768 , M_pi0_phys (year = 2022 ,units = "MeV" ) , text = "pi0 mass 2022" )
76+ lpass *= print_results ( 139.57039 , M_pipm_phys (year = 2022 ,units = "MeV" ) , text = "pi+/- mass 2022" )
77+ lpass *= print_results ( 497.611 , M_K0_phys (year = 2022 ,units = "MeV" ) , text = "K0 mass 2022" )
78+ lpass *= print_results ( 493.677 , M_Kpm_phys (year = 2022 ,units = "MeV" ) , text = "K+/- mass 2022" )
79+ lpass *= print_results ( 775.26 , M_rho_phys (year = 2022 ,units = "MeV" ) , text = "rho mass 2022" )
80+ # lpass *= print_results( 0.21 , frho_phys(year=2017,units="GeV") , text="f_rho 2017" )
81+ lpass *= print_results ( 155.7 / np .sqrt (2. ) , fk_phys (year = 2019 ,units = "MeV" ,world = "Nf21" ), text = "f_K 2019" )
82+ lpass *= print_results ( 130.50 / np . sqrt ( 2. ) , fpi_phys (year = 2018 ,units = "MeV" ) , text = "f_pi 2018" )
83+ lpass *= print_results ( 0.1715 , w0_phys (year = 2013 ,units = "fm" ) , text = "w0 2018" )
84+ lpass *= print_results ( 0.3106 , r1_phys (year = 2010 ,units = "fm" ) , text = "r1 2010" )
85+ lpass *= print_results ( 0.46875752 , r0_phys (year = 2014 ,units = "fm" ) , text = "r0 2014" )
86+ lpass *= print_results ( 7.2973525693e-3 , alpha_e (year = 2018 ) , text = "alpha_e 2018" )
87+ lpass *= print_results ( 339 , lambda_MSbar_phys (year = 2021 ,units = "MeV" ) , text = "lambda_MSbar 2021" )
88+ lpass *= print_results ( 0.8414 , Rproton_phys (year = 2018 ,units = "fm" ) , text = "R_proton 2021" )
89+ lpass *= print_results ( 157.2555509 , Tpc_chiral (year = 2020 ,units = "MeV" ) , text = "Tpc_chiral 2020" )
9090
9191 # Test physical scales from different years against each other to check they are statistically compatible
9292 lpass *= checkStatisticalCompatability (M_mu_phys ,"M_mu" )
@@ -95,13 +95,13 @@ def testScales():
9595 lpass *= checkStatisticalCompatability (M_K0_phys ,"M_K0" )
9696 lpass *= checkStatisticalCompatability (M_Kpm_phys ,"M_K+/-" )
9797 lpass *= checkStatisticalCompatability (M_rho_phys ,"M_rho" )
98- lpass *= checkStatisticalCompatability (frho_phys ,"f_rho" )
98+ # lpass *= checkStatisticalCompatability(frho_phys ,"f_rho")
9999 lpass *= checkStatisticalCompatability (fk_phys ,"f_k" )
100100 lpass *= checkStatisticalCompatability (fpi_phys ,"f_pi" )
101101 lpass *= checkStatisticalCompatability (w0_phys ,"w0" )
102102 lpass *= checkStatisticalCompatability (r1_phys ,"r1" )
103103 lpass *= checkStatisticalCompatability (r0_phys ,"r0" )
104- # lpass *= checkStatisticalCompatability(sqrtt0_phys ,"t0") # need to understand why this doesn't work
104+ lpass *= checkStatisticalCompatability (sqrtt0_phys ,"t0" ) # need to understand why this doesn't work
105105 lpass *= checkStatisticalCompatability (lambda_MSbar_phys ,"lambda_MSbar" )
106106 lpass *= checkStatisticalCompatability (Rproton_phys ,"R_proton" )
107107 lpass *= checkStatisticalCompatability (Tpc_chiral ,"chiral T_pc" )
0 commit comments