Search is not available for this dataset
repo
stringlengths
2
152
file
stringlengths
15
239
code
stringlengths
0
58.4M
file_length
int64
0
58.4M
avg_line_length
float64
0
1.81M
max_line_length
int64
0
12.7M
extension_type
stringclasses
364 values
artemide-public
artemide-public-master/Models/Vpion19/Model/uTMDPDF_model.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! Model for unpolarized TMD PDF Vpion19.bFIT [1907.10356] ! ! proton uTMDPDF is from BSV19.HERA set (h=1) ! pion uTMDPDF is here (h=2) ! ! Requres 6 (proton)+3 (pion)=9 NP parameters ! Uses HERAPDF20_NNLO_VAR and JAM18PionPDFnlo ! A.Vladimirov (11.07.2019) ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! module uTMDPDF_model use aTMDe_Numerics use IO_functions implicit none private !!!!!------------------------------------------------------------------------------------ !!!!! These functions MUST defined in module !! !!!!! !!!!! 1) The subroutine is called during the initialization of TMD-module !!!!! arg=array of initial NP-parameters public:: ModelInitialization !!!!! 2) The subroutine that is called on reset of NP-parameters in TMD-module !!!!! arg=array of new NP-parameters public:: ModelUpdate !!!!! 3) Function which returns FNP function !!!!! arg=(x,z,b,hadron,lambdaNP) with x=x_Bj for TMD (real_dp), z=convolution variable(real_dp), !!!!! b=transverse distance(real_dp), hadron=number of the hadron in grid(integer) !!!!! lambdaNP = array of NP parameters (real_dp(:)) real(dp),public,dimension(-5:5):: FNP !!!!! 4) Function which returns the value of b used as argument of convolution integrals !!!!! arg=(b,lambdaNP) with b=transverse distance(real_dp), lambdaNP = array of NP parameters (real_dp(:)) real(dp),public:: bSTAR !!!!! 5) Function which returns the scale of matching (OPE scale) !!!!! arg=(z,bt) with z=convolution variable(real_dp), b=transverse distance(real_dp) real(dp),public:: mu_OPE !!!!! 6) Subroutine which returns the array of parameters CA which compose the TMDs into a single one !!!!! i.e. the TMD for hardon=h is build as TMD(h)=Sum_c CA(h,c) TMD(c) !!!!! it is used only if the option UseComposite TMD is ON, !!!!! arg=(h,lambdaNP,includeArray,CA) with h=hadron(integer),lambdaNP = array of NP parameters (real_dp(:)) !!!!! includeArray=logical array with .true. for terms included in the sum (logical(:),allocatable,intent(out)) !!!!! CA=coefficient CA (real_dp(:),allocatable,intent(out)) public:: GetCompositionArray !!!!! 7) Subroutine which returns the array of NP-parameters corresponding to certain integer (replica) !!!!! arg=rep input integer, NParray (real_dp(:), allocatable, intent(out)) returned array public:: GetReplicaParameters !!!!!------------------------------------------------------------------------------------ real(dp),allocatable::NPparam(:) contains !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! USER DEFINED FUNCTIONS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!! Write nessecery model intitialization. subroutine ModelInitialization(NPstart) real(dp),intent(in)::NPstart(:) allocate(NPparam(1:size(NPstart))) NPparam=NPstart write(*,*) color(">>> The model for uTMDPDF is Vpion19 & BSV19. Please, cite [1902.08474]&[1907.10356] <<<",c_cyan) end subroutine ModelInitialization !!!!!! Write nessecery model update (e.g. save current NP-parameters) !!!!!! newNPParams is the new NP-array subroutine ModelUpdate(newNPParams) real(dp),intent(in):: newNPParams(:) NPparam=newNPParams !! save new vector of NP-parameters end subroutine ModelUpdate !!! This is non-pertrubative function !!! non=pertrubative parameters are lambdaNP() !!! x-- is the bjorken variable of TMD !!! z-- is convolution variable function FNP(x,z,bT,hadron,lambdaNP) real(dp),intent(in)::x,z,bT integer,intent(in)::hadron real(dp),intent(in)::lambdaNP(:) real*8::FNP0 real*8::bb,w1,w2,w3 if(hadron==1) then bb=bT**2 w1=lambdaNP(1)*(1-x)+x*lambdaNP(2)+x*(1-x)*lambdaNP(5) w2=lambdaNP(3)*x**lambdaNP(4)+lambdaNP(6) if(w2<0d0 .or. w1<0d0) then FNP0=-1d0 else FNP0=Exp(-w1*bb/sqrt(1+w2*bb)) end if else bb=bT**2 w1=(lambdaNP(7)+(1-x)**2*lambdaNP(8)) w2=lambdaNP(9) if(w2<0d0 .or. w1<0d0) then FNP0=-1d0 else FNP0=Exp(-w1*bb/sqrt(1+w2*bb)) end if end if FNP=FNP0*(/1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0/) end function FNP !!!! This is the function b* that enter the logarithms of coefficient function !!!! at small-b it should be ~b to match the collinear regime !!!! at large-b it is a part of model !!!! NOTE: if it is lambda-dependent, the grid will be recalculate each reset of lambdaNP pure function bSTAR(bT,lambdaNP) real(dp),intent(in)::bT real(dp),intent(in)::lambdaNP(:) bSTAR=bT/sqrt(1d0+(bT/500d0)**2) end function bSTAR !!!!This function is the mu(x,b), which is used inside the OPE pure function mu_OPE(z,bt) real(dp),intent(in)::z,bt mu_OPE=C0_const*1d0/bT+2d0 if(mu_OPE>1000d0) then mu_OPE=1000d0 end if end function mu_OPE !!!! if the option UseComposite TMD is OFF, this function is ignored !!!! If the option UseComposite TMD is ON, !!!! than the TMD for hardon is build as TMD(hadron)=Sum_c CA(h,c) TMD(c) !!!! where h=hadron, CA=coefficientArray !!!! coefficientArray real(dp) list of coefficeints !!!! includeArray is logical array list (true=TMD(c) is computed, false TMD(c) ignored) subroutine GetCompositionArray(hadron,lambdaNP,includeArray,coefficientArray) real(dp),intent(in)::lambdaNP(:) integer::hadron logical,allocatable,intent(out)::includeArray(:) real(dp),allocatable,intent(out)::coefficientArray(:) allocate(includeArray(1:1)) allocate(coefficientArray(1:1)) end subroutine GetCompositionArray !!! In SV19 model the replica parameters are stored in separate file. subroutine GetReplicaParameters(rep,NParray) integer,intent(in)::rep real(dp),allocatable,intent(out)::NParray(:) real*8,parameter,dimension(1:6):: protonNP=(/0.3204d0, 11.8747d0, 298.593d0, 1.8738d0, -9.0685d0, 0.0d0/) real,parameter,dimension(1:309)::replicas=(/& 0.173426, 0.482789, 2.15172, & 0.093, 0.264, 0.377,& 0.173426, 0.482789, 2.15172, & 0.249541, 0.634629, 3.09413, & 0.105834, 0.156929, 0.385113, & 0.0978039, 0.281598, 0.449822, & 0.154557, 0.350553, 1.10694, & 0.261972, 0.676967, 3.37234, & 0.183507, 0.520334, 1.87893, & 0.0785418, 0.356815, 0.41225, & 0.355825, 0.846914, 5.60176, & 0.223488, 0.553231, 2.8377, & 0.629039, 1.61353, 16.4577, & 0.0818166, 0.360383, 0.435636, & 0.222895, 0.629612, 2.65102, & 0.0965146, 0.178813, 0.219953, & 0.491635, 1.15167, 10.0341, & 0.153072, 0.319388, 1.10683, & 0.161597, 0.382618, 1.2612, & 0.128724, 0.373911, 0.736818, & 0.152192, 0.290414, 0.823574, & 0.0954244, 0.278245, 0.356441, & 0.165523, 0.345776, 1.29734, & 0.176371, 0.421179, 1.6543, & 0.198816, 0.340405, 1.68137, & 0.0894031, 0.322207, 0.387982, & 0.163753, 0.473674, 1.29232, & 0.0947285, 0.198516, 0.326766, & 0.0814235, 0.329594, 0.422357, & 0.149341, 0.366549, 0.914248, & 0.0942002, 0.266578, 0.368842, & 0.133111, 0.572628, 1.31634, & 0.180704, 0.41721, 1.62999, & 0.065896, 0.316252, 0.250545, & 0.10734, 0.247779, 0.362931, & 0.139521, 0.471966, 1.31441, & 0.366519, 1.25787, 8.21266, & 0.0790098, 0.241259, 0.230682, & 0.581215, 2.27234, 21.0271, & 0.0954821, 0.261137, 0.374515, & 0.115915, 0.368228, 0.786806, & 0.273399, 0.749383, 4.03135, & 0.465171, 1.07553, 9.80427, & 0.0903598, 0.263619, 0.406335, & 0.123613, 0.374445, 0.849558, & 0.285171, 0.418185, 3.34914, & 0.269755, 0.553625, 3.96405, & 0.259095, 1.16033, 4.84876, & 0.0899398, 0.248281, 0.399757, & 0.259753, 0.814591, 4.63706, & 0.0947479, 0.272567, 0.365655, & 0.108101, 0.256952, 0.452232, & 0.0914599, 0.304369, 0.38939, & 0.170683, 0.272946, 1.06934, & 0.118159, 0.279235, 0.604779, & 0.264408, 0.762043, 3.82065, & 0.0784105, 0.316828, 0.458274, & 0.360117, 1.33631, 9.64109, & 0.105368, 0.225053, 0.322375, & 0.0987314, 0.303631, 0.477949, & 0.150731, 0.437147, 1.11623, & 0.238012, 0.87718, 2.98115, & 0.278189, 0.492043, 3.65615, & 0.0804673, 0.2964, 0.289875, & 0.0837756, 0.328657, 0.428778, & 0.100518, 0.276298, 0.456033, & 0.104566, 0.200711, 0.347386, & 0.132109, 0.380439, 1.01348, & 0.113121, 0.188703, 0.36785, & 0.103887, 0.26594, 0.400361, & 0.0936283, 0.272979, 0.366824, & 0.112749, 0.393731, 0.670924, & 0.12597, 0.491501, 1.02126, & 0.184632, 0.567039, 1.97799, & 0.0897044, 0.244245, 0.395551, & 0.101595, 0.265109, 0.38515, & 0.247302, 0.471764, 2.98563, & 0.284248, 0.821081, 4.66352, & 0.18231, 1.03437, 3.07118, & 0.108571, 0.375484, 0.727352, & 0.140538, 0.270434, 0.67072, & 0.233778, 0.496306, 3.07228, & 0.120892, 0.378347, 0.696918, & 0.322058, 0.91204, 6.34466, & 0.134719, 0.352275, 0.759533, & 0.157389, 0.4007, 1.20728, & 0.0814492, 0.37148, 0.442985, & 0.239761, 0.604956, 2.83285, & 0.104431, 0.216468, 0.423611, & 0.113135, 0.307468, 0.522409, & 0.128644, 0.357123, 0.837743, & 0.136476, 0.292455, 0.815463, & 0.143915, 0.468419, 1.26521, & 0.0938552, 0.272222, 0.374274, & 0.17918, 0.457854, 1.82332, & 0.0827782, 0.270842, 0.342522, & 0.167811, 0.298295, 1.05922, & 0.170454, 0.315802, 1.18806, & 0.0885638, 0.321581, 0.444846, & 0.33685, 1.1168, 6.69006, & 0.131763, 0.302245, 0.888346, & 0.117674, 0.38926, 0.906957, & 0.391747, 0.989056, 7.27382/) allocate(NParray(1:9)) if(rep>100) then write(*,*) color('ERROR in Vpion19 model. It has only 100 replicas. Central replica is set',c_red) NParray=(/protonNP(1),protonNP(2),protonNP(3),protonNP(4),protonNP(5),protonNP(6),& 1d0*replicas((0+2)*3+1),1d0*replicas((0+2)*3+2),1d0*replicas((0+2)*3+3)/) else NParray=(/protonNP(1),protonNP(2),protonNP(3),protonNP(4),protonNP(5),protonNP(6),& 1d0*replicas((rep+2)*3+1),1d0*replicas((rep+2)*3+2),1d0*replicas((rep+2)*3+3)/) end if end subroutine GetReplicaParameters end module uTMDPDF_model
10,426
36.37276
122
f90
artemide-public
artemide-public-master/Prog/DY_example_v14.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! Program that evaluate the cross-section for DY !! Surves as an example of ardemide-based code !! Please, refer to 1902.???? if you use it. !! !! Question, suggestions, etc: [email protected] !! Extra information & details: https://github.com/VladimirovAlexey/artemide-public/blob/master/doc/Manual.pdf !! !! MADE ON ARTEMIDE 1.4 !! (compatibility with other versions in not guarantied) !! !! A.Vladimirov: 13.02.2019 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! program DYtest !!load the artemide library related to DY cross-section use TMDX_DY implicit none real*8::s,Qmin,Qmax,ymin,ymax,qtMin(1:5),qtMax(1:5),pTcut,etaCutMin,etaCutMax,xSec(1:5),xx integer::process(1:3),i !!The first step: initialize the artemide !! it is a complex routine that runs thorugh modules, and read all initial inputs and prepare all variables !! it could be called only ones (further calls will be ignored) !! argument is "LO", "NLO", "NNLO" which specifies the order (see details in the manual) call TMDX_DY_Initialize("NNLO") write(*,*) "-----------------------------------------------------------------------------------------------------------------" write(*,*) "---- if you do not need all these loading messages change the output level in the begining of constants-file ----" write(*,*) "-----------------------------------------------------------------------------------------------------------------" !!The second step: state the parameters of the non-perturbative model for TMDs !! it can be done directly like --> call TMDX_DY_SetNPParameters((/3.3235d0,0.0380d0,0.2204d0, 7.0808d0,351.7950d0, 2.4632d0,-3.8334d0,0.0001d0, 0.0000d0/)) !! or using provided set (this is prefered option if you are not going to make a fit of TMDs) !! In this case just state the number of the replica you would like to use (0=central) --> call TMDX_DY_SetNPParameters(0) !! !! The model is defined in the set of files in src/Model/ (see manual for details). !! Some extra models are collected in /Models (change of the model module requares recompilation of the artemide) !! !! IMPORTANT: if the preparation of TMDs grid is ON (check it in "constants"-file option *3*B !! then these grids will be calculated after evaluation of this command. !! At NNLO it can take significant time (~3-5 min depending on computer), so set "LO" if you would like just to test the installation. !! Switch off the grid option if you need to evaluate several points, otherwice using the grids significantly speed up the calculation. call TMDX_DY_SetNPParameters(0) !!---------------------------------------------- !!Now the artemide is ready for calculation! !!---------------------------------------------- !!There are many parameters and specifications for xSec, including different phase space elements, fiducial cuts, bin-integrations, etc. !!Artemide allows to calculate xSec in various combination/configurations. Check manual (sec on TMDX_DY) for details. !!Naturally, it does not include all possibilities, but many. If your task requares some not included case, ask me -- I will be happy to include it into the code. !!--------------------------------------------- !!Example of xSec calculation !!--------------------------------------------- !! input: !! process pp->gamma/Z !! s=(8TeV)^2 !! 66<Q<116 GeV !! 0.8<|y|<1.2 !! qt-bins: 0-2, 2-4, 4-6, 6-8, 8-10 GeV !! fiducial cuts on detected lepton pair: !! pT>20 GeV, -2.4<eta<2.4 !! !! It corresponds to one of y-bins in ATLAS measurement at 8 TeV, presented in 1512.02192 process=(/1,1,5/)!! this is pp->gamma/Z s=8000d0**2 Qmin=66d0 Qmax=116d0 ymin=0.8d0 ymax=1.2d0 qtMin=(/0.01d0,2d0,4d0,6d0,8d0/) !! for convergence it is better not to set qt=0 exactly in the presentce of fiducial cuts.Anyway cross-section ->0 at qt->0 qtMax=(/2d0,4d0,6d0,8d0,10d0/) pTcut=20d0 etaCutMin=-2.4d0 etaCutMax=2.4d0 !!There are two equivalent interfaces to evaluation of DY xsec. !! 1) Specify the process, kinematics, cuts first and then ask for xSec. !! 2) The same in a single command with plenty of arguments. !! Here is example of usage of both commands !!--------------- !!1) step-by-step !! set process call TMDX_DY_SetProcess(process) !! specify cut parameters (call with .false. if not fiducial cuts are needed) call SetCuts(.true.,PTcut,etaCutMin,etaCutMax) !! specify kinematic domain (s,Q,y) (since we going to integrate over Q and y, Q and y arguments play no role) call TMDX_DY_XSetup(s,Qmin,ymin) !! calculate xSec !! here xSec must be array of the same length as qt-list. call CalcXsec_DY_PTint_Qint_Yint(xSec,qtMin,qtMax,Qmin,Qmax,ymin,ymax) !! Note that the calculate xSec is in the region 0.8<y<1.2. For the region 0.8<|y|<1.2 multiply it by 2 (since it is symmetric in y->-y) !! also the data is avaraged in bit (while here is integrated), so we devide by a size of the bin xSec=2d0*xSec/(qtMax-qtMin) !! Here is the result! write(*,*) "evaluation 1 : ",xSec !!--------------- !!2) This way is simpler (and faster if you have many cores and compile artemde with openmp) !! there is no need to specify all details independently. There is also a listable version of this function do i=1,5 call xSec_DY(xx,process,s,(/qtMin(i),qtMax(i)/),(/Qmin,Qmax/),(/ymin,ymax/),.true.,(/pTcut,pTcut,etaCutMin,etaCutMax/)) xSec(i)=2d0*xx/(qtMax(i)-qtMin(i)) end do !! Here is the result! write(*,*) "evaluation 2 : ",xSec !! results of both evaluations should be equal !! compare it to actual numbers write(*,*) "values from [1512.02192]: ", (/3.112d0,6.462d0,6.548d0,5.647d0,4.716d0/) end program DYtest
5,757
47.79661
162
f90
artemide-public
artemide-public-master/Prog/DY_example_v2.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! Program that evaluate the cross-section for DY !! Surves as an example of ardemide-based code !! Please, refer to 1902.08474 if you use it. !! !! Question, suggestions, etc: [email protected] !! Extra information & details: https://github.com/VladimirovAlexey/artemide-public/blob/master/doc/Manual.pdf !! !! MADE ON ARTEMIDE 2.00 !! (compatibility with earlier versions is absent) !! !! A.Vladimirov: 05.04.2019 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! program DYtest !!load the artemide control library use aTMDe_control !!load the artemide library related to DY cross-section use TMDX_DY implicit none real*8::s,Qmin,Qmax,ymin,ymax,qtMin(1:5),qtMax(1:5),pTcut,etaCutMin,etaCutMax,xSec(1:5),xx integer::process(1:3),i !!The first step: initialize the artemide !! it is a complex routine that runs through modules, and read all initial inputs and prepare all variables !! it could be called only ones (further calls will be ignored) !! the setup for current run is taken from the `constant-file' !! here we load constants file from the model BSV19 call artemide_Initialize('constants-file','Models/BSV19.bFIT/') write(*,*) "-----------------------------------------------------------------------------------------------------------------" write(*,*) "---- if you do not need all these loading messages change the output level in the begining of constants-file ----" write(*,*) "-----------------------------------------------------------------------------------------------------------------" !!The second step: state the parameters of the non-perturbative model for TMDs, and evolution !! it can be done directly like --> call uTMDPDF_SetNPParameters((/0.2204d0, 7.0808d0,351.7950d0, 2.4632d0,-3.8334d0,0.0001d0, 0.0000d0/)) !! or using provided set (this is prefered option if you are not going to make a fit of TMDs) !! In this case just state the number of the replica you would like to use (0=central) --> call artemide_SetReplica_uTMDPDF(0) (for TMDPDF) !! --> call artemide_SetReplica_TMDR(0) (for evolution) !! !! The model is defined in the set of files in src/Model/ (see manual for details). !! Some extra models are collected in /Models (change of the model module requares recompilation of the artemide) !! !! IMPORTANT: if the preparation of TMDs grid is ON (check it in "constants"-file option *3*B !! then these grids will be calculated after evaluation of this command. !! At NNLO it can take significant time (~3-5 min depending on computer), so set "LO" if you would like just to test the installation. !! Switch off the grid option if you need to evaluate several points, otherwice using the grids significantly speed up the calculation. call artemide_SetReplica_uTMDPDF(0) call artemide_SetReplica_TMDR(0) !!---------------------------------------------- !!Now the artemide is ready for calculation! !!---------------------------------------------- !!There are many parameters and specifications for xSec, including different phase space elements, fiducial cuts, bin-integrations, etc. !!Artemide allows to calculate xSec in various combination/configurations. Check manual (sec on TMDX_DY) for details. !!Naturally, it does not include all possibilities, but many. If your task requares some not included case, ask me -- I will be happy to include it into the code. !!--------------------------------------------- !!Example of xSec calculation !!--------------------------------------------- !! input: !! process pp->gamma/Z !! s=(8TeV)^2 !! 66<Q<116 GeV !! 0.8<|y|<1.2 !! qt-bins: 0-2, 2-4, 4-6, 6-8, 8-10 GeV !! fiducial cuts on detected lepton pair: !! pT>20 GeV, -2.4<eta<2.4 !! !! It corresponds to one of y-bins in ATLAS measurement at 8 TeV, presented in 1512.02192 process=(/1,1,5/)!! this is pp->gamma/Z s=8000d0**2 Qmin=66d0 Qmax=116d0 ymin=0.8d0 ymax=1.2d0 qtMin=(/0.01d0,2d0,4d0,6d0,8d0/) !! for convergence it is better not to set qt=0 exactly in the presentce of fiducial cuts.Anyway cross-section ->0 at qt->0 qtMax=(/2d0,4d0,6d0,8d0,10d0/) pTcut=20d0 etaCutMin=-2.4d0 etaCutMax=2.4d0 !!There are two equivalent interfaces to evaluation of DY xsec. !! 1) Specify the process, kinematics, cuts first and then ask for xSec. !! 2) The same in a single command with plenty of arguments. !! Here is example of usage of both commands !!--------------- !!1) step-by-step !! set process call TMDX_DY_SetProcess(process) !! specify cut parameters (call with .false. if not fiducial cuts are needed) call TMDX_DY_SetCuts(.true.,PTcut,etaCutMin,etaCutMax) !! specify kinematic domain (s,Q,y) (since we going to integrate over Q and y, Q and y arguments play no role) call TMDX_DY_XSetup(s,Qmin,ymin) !! calculate xSec !! here xSec must be array of the same length as qt-list. call CalcXsec_DY_PTint_Qint_Yint(xSec,qtMin,qtMax,Qmin,Qmax,ymin,ymax) !! Note that the calculate xSec is in the region 0.8<y<1.2. For the region 0.8<|y|<1.2 multiply it by 2 (since it is symmetric in y->-y) !! also the data is avaraged in bit (while here is integrated), so we devide by a size of the bin xSec=2d0*xSec/(qtMax-qtMin) !! Here is the result! write(*,*) "evaluation 1 : ",xSec !!--------------- !!2) This way is simpler (and faster if you have many cores and compile artemde with openmp) !! there is no need to specify all details independently. There is also a listable version of this function do i=1,5 call xSec_DY(xx,process,s,(/qtMin(i),qtMax(i)/),(/Qmin,Qmax/),(/ymin,ymax/),.true.,(/pTcut,pTcut,etaCutMin,etaCutMax/)) xSec(i)=2d0*xx/(qtMax(i)-qtMin(i)) end do !! Here is the result! write(*,*) "evaluation 2 : ",xSec !! results of both evaluations should be equal !! compare it to actual numbers write(*,*) "values from [1512.02192]: ", (/3.112d0,6.462d0,6.548d0,5.647d0,4.716d0/) end program DYtest
5,996
47.756098
162
f90
artemide-public
artemide-public-master/Prog/DY_for_CMS.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! Calculation of DY cross-section for CMS. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! program xSec_DY use aTMDe_control use TMDX_DY implicit none !!! this program evaluate cross-section for SIDIS real*8 :: time1, time2 integer :: dummyINT,j real*8 :: dummyREAL logical::exist integer:: process,ss real*8:: Qmin,Qmax,s,ymin,ymax,ptCut,ptCut2 integer::s1,s2,s3,s4 !!! TMD sizes real*8,allocatable, dimension(:) :: pt, xSec1,xSec2,xSec3,xSec4 real*8,allocatable, dimension(:) :: xSec11,xSec21,xSec31,xSec41!!!xSec for variation of c2+ real*8,allocatable, dimension(:) :: xSec12,xSec22,xSec32,xSec42!!!xSec for variation of c2- real*8,allocatable, dimension(:) :: xSec13,xSec23,xSec33,xSec43!!!xSec for variation of c4+ real*8,allocatable, dimension(:) :: xSec14,xSec24,xSec34,xSec44!!!xSec for variation of c4- ! real*8,dimension(1:17)::ptBINS=(/0.1d0,2d0, 4d0, 6d0, 8d0, 10d0, & ! 12d0, 14d0, 18d0,22d0, 28d0, 37d0, 52d0, 85d0, 160d0, 240d0, 1000d0/) real*8,dimension(1:17)::ptBINS=(/0.1d0,2d0, 4d0, 6d0, 8d0, 10d0, & 13d0, 16d0, 20d0,25d0, 30d0, 37d0, 45d0, 55d0, 65d0, 75d0, 1000d0/) call cpu_time(time1) process=1!! !This is from the artemide ver.1.4 ! call TMDX_DY_Initialize("NNLO") ! call TMDX_DY_SetNPParameters((/3.3235d0,0.0380d0,0.2204d0, 7.0808d0,351.7950d0, 2.4632d0,-3.8334d0,0.0001d0, 0.0000d0/)) !This is for artemide ver.2.00 call artemide_Initialize('constants-file','Models/BSV19.bFIT/') call artemide_SetReplica_uTMDPDF(0) call artemide_SetReplica_TMDR(0) s=13000d0**2 ymin=-2.4d0 ymax=2.4d0 ptCut=25d0 ptCut2=20d0 call TMDX_DY_SetProcess(process) !call SetCuts(.true.,ptCut,ptCut2,yMin,yMax) call TMDX_DY_SetCuts(.true.,ptCut,ptCut2,yMin,yMax) call TMDX_DY_XSetup(s,91d0,0d0) !---------------------------------------------------------CENTRAL VALUE Qmin=50d0 Qmax=76d0 do j=1,17 if(0.2d0*Qmax<ptBINS(j)) exit end do s1=j-1 allocate(pt(1:j)) allocate(xSec1(1:j-1),xSec11(1:j-1),xSec12(1:j-1),xSec13(1:j-1),xSec14(1:j-1)) pt=ptBINS(1:j) ss=j-1 call CalcXsec_DY_PTint_Qint_Yint(xSec1,pt,Qmin,Qmax,ymin,ymax) xSec1=xSec1/(pt(2:ss+1)-pt(1:ss)) deallocate(pt) Qmin=76d0 Qmax=106d0 do j=1,17 if(0.2d0*Qmax<ptBINS(j)) exit end do s2=j-1 allocate(pt(1:j)) allocate(xSec2(1:j-1),xSec21(1:j-1),xSec22(1:j-1),xSec23(1:j-1),xSec24(1:j-1)) pt=ptBINS(1:j) ss=j-1 call CalcXsec_DY_PTint_Qint_Yint(xSec2,pt,Qmin,Qmax,ymin,ymax) xSec2=xSec2/(pt(2:ss+1)-pt(1:ss)) deallocate(pt) Qmin=106d0 Qmax=170d0 do j=1,17 if(0.2d0*Qmax<ptBINS(j)) exit end do s3=j-1 allocate(pt(1:j)) allocate(xSec3(1:j-1),xSec31(1:j-1),xSec32(1:j-1),xSec33(1:j-1),xSec34(1:j-1)) pt=ptBINS(1:j) ss=j-1 call CalcXsec_DY_PTint_Qint_Yint(xSec3,pt,Qmin,Qmax,ymin,ymax) xSec3=xSec3/(pt(2:ss+1)-pt(1:ss)) deallocate(pt) Qmin=170d0 Qmax=350d0 do j=1,17 if(0.2d0*Qmax<ptBINS(j)) exit end do s4=j-1 allocate(pt(1:j)) allocate(xSec4(1:j-1),xSec41(1:j-1),xSec42(1:j-1),xSec43(1:j-1),xSec44(1:j-1)) pt=ptBINS(1:j) ss=j-1 call CalcXsec_DY_PTint_Qint_Yint(xSec4,pt,Qmin,Qmax,ymin,ymax) xSec4=xSec4/(pt(2:ss+1)-pt(1:ss)) deallocate(pt) !----------------------------------------------------------------- !---------------------------------------------------------Variation of c2+ ! call TMDX_DY_SetScaleVariations(1d0,2d0,1d0,1d0) call artemide_SetScaleVariations(1d0,2d0,1d0,1d0) Qmin=50d0 Qmax=76d0 call CalcXsec_DY_PTint_Qint_Yint(xSec11,ptBINS(1:s1+1),Qmin,Qmax,ymin,ymax) xSec11=xSec11/(ptBins(2:s1+1)-ptBins(1:s1)) Qmin=76d0 Qmax=106d0 call CalcXsec_DY_PTint_Qint_Yint(xSec21,ptBINS(1:s2+1),Qmin,Qmax,ymin,ymax) xSec21=xSec21/(ptBins(2:s2+1)-ptBins(1:s2)) Qmin=106d0 Qmax=170d0 call CalcXsec_DY_PTint_Qint_Yint(xSec31,ptBINS(1:s3+1),Qmin,Qmax,ymin,ymax) xSec31=xSec31/(ptBins(2:s3+1)-ptBins(1:s3)) Qmin=170d0 Qmax=350d0 call CalcXsec_DY_PTint_Qint_Yint(xSec41,ptBINS(1:s4+1),Qmin,Qmax,ymin,ymax) xSec41=xSec41/(ptBins(2:s4+1)-ptBins(1:s4)) !----------------------------------------------------------------- !---------------------------------------------------------Variation of c2- ! call TMDX_DY_SetScaleVariations(1d0,0.5d0,1d0,1d0) call artemide_SetScaleVariations(1d0,0.5d0,1d0,1d0) Qmin=50d0 Qmax=76d0 call CalcXsec_DY_PTint_Qint_Yint(xSec12,ptBINS(1:s1+1),Qmin,Qmax,ymin,ymax) xSec12=xSec12/(ptBins(2:s1+1)-ptBins(1:s1)) Qmin=76d0 Qmax=106d0 call CalcXsec_DY_PTint_Qint_Yint(xSec22,ptBINS(1:s2+1),Qmin,Qmax,ymin,ymax) xSec22=xSec22/(ptBins(2:s2+1)-ptBins(1:s2)) Qmin=106d0 Qmax=170d0 call CalcXsec_DY_PTint_Qint_Yint(xSec32,ptBINS(1:s3+1),Qmin,Qmax,ymin,ymax) xSec32=xSec32/(ptBins(2:s3+1)-ptBins(1:s3)) Qmin=170d0 Qmax=350d0 call CalcXsec_DY_PTint_Qint_Yint(xSec42,ptBINS(1:s4+1),Qmin,Qmax,ymin,ymax) xSec42=xSec42/(ptBins(2:s4+1)-ptBins(1:s4)) !----------------------------------------------------------------- !---------------------------------------------------------Variation of c4+ ! call TMDX_DY_SetScaleVariations(1d0,1d0,1d0,2d0) call artemide_SetScaleVariations(1d0,1d0,1d0,2d0) Qmin=50d0 Qmax=76d0 call CalcXsec_DY_PTint_Qint_Yint(xSec13,ptBINS(1:s1+1),Qmin,Qmax,ymin,ymax) xSec13=xSec13/(ptBins(2:s1+1)-ptBins(1:s1)) Qmin=76d0 Qmax=106d0 call CalcXsec_DY_PTint_Qint_Yint(xSec23,ptBINS(1:s2+1),Qmin,Qmax,ymin,ymax) xSec23=xSec23/(ptBins(2:s2+1)-ptBins(1:s2)) Qmin=106d0 Qmax=170d0 call CalcXsec_DY_PTint_Qint_Yint(xSec33,ptBINS(1:s3+1),Qmin,Qmax,ymin,ymax) xSec33=xSec33/(ptBins(2:s3+1)-ptBins(1:s3)) Qmin=170d0 Qmax=350d0 call CalcXsec_DY_PTint_Qint_Yint(xSec43,ptBINS(1:s4+1),Qmin,Qmax,ymin,ymax) xSec43=xSec43/(ptBins(2:s4+1)-ptBins(1:s4)) !----------------------------------------------------------------- !---------------------------------------------------------Variation of c4- ! call TMDX_DY_SetScaleVariations(1d0,1d0,1d0,0.5d0) call artemide_SetScaleVariations(1d0,1d0,1d0,0.5d0) Qmin=50d0 Qmax=76d0 call CalcXsec_DY_PTint_Qint_Yint(xSec14,ptBINS(1:s1+1),Qmin,Qmax,ymin,ymax) xSec14=xSec14/(ptBins(2:s1+1)-ptBins(1:s1)) Qmin=76d0 Qmax=106d0 call CalcXsec_DY_PTint_Qint_Yint(xSec24,ptBINS(1:s2+1),Qmin,Qmax,ymin,ymax) xSec24=xSec24/(ptBins(2:s2+1)-ptBins(1:s2)) Qmin=106d0 Qmax=170d0 call CalcXsec_DY_PTint_Qint_Yint(xSec34,ptBINS(1:s3+1),Qmin,Qmax,ymin,ymax) xSec34=xSec34/(ptBins(2:s3+1)-ptBins(1:s3)) Qmin=170d0 Qmax=350d0 call CalcXsec_DY_PTint_Qint_Yint(xSec44,ptBINS(1:s4+1),Qmin,Qmax,ymin,ymax) xSec44=xSec44/(ptBins(2:s4+1)-ptBins(1:s4)) !----------------------------------------------------------------- write(*,*) ' sqrt(s) = ',Sqrt(s) write(*,*) ' y in (',ymin,',',ymax,')' write(*,*) ' pt(cut1) = ',ptCut write(*,*) ' pt(cut2) = ',ptCut2 write(*,*) ' ' write(*,*) '50<Q< 76: number of TMD bins ',size(xSec1) write(*,*) 'pt(min), pt(max), xSec, err-, err+' do j=1,size(xSec1) write(*,'(F6.2," ", F6.2," ", ES12.3E3," ", ES12.3E3," ", ES12.3E3)') ptBINS(j),ptBINS(j+1),xSec1(j),& min(xSec1(j),xSec11(j),xSec12(j),xSec13(j),xSec14(j)),& max(xSec1(j),xSec11(j),xSec12(j),xSec13(j),xSec14(j)) end do write(*,*) " " write(*,*) '76<Q< 106: number of TMD bins ',size(xSec2) write(*,*) 'pt(min), pt(max), xSec, err-, err+' do j=1,size(xSec2) write(*,'(F6.2," ", F6.2," ", ES12.3E3," ", ES12.3E3," ", ES12.3E3)') ptBINS(j),ptBINS(j+1),xSec2(j),& min(xSec2(j),xSec21(j),xSec22(j),xSec23(j),xSec24(j)),& max(xSec2(j),xSec21(j),xSec22(j),xSec23(j),xSec24(j)) end do write(*,*) " " write(*,*) '106<Q< 170: number of TMD bins ',size(xSec3) write(*,*) 'pt(min), pt(max), xSec, err-, err+' do j=1,size(xSec3) write(*,'(F6.2," ", F6.2," ", ES12.3E3," ", ES12.3E3," ", ES12.3E3)') ptBINS(j),ptBINS(j+1),xSec3(j),& min(xSec3(j),xSec31(j),xSec32(j),xSec33(j),xSec34(j)),& max(xSec3(j),xSec31(j),xSec32(j),xSec33(j),xSec34(j)) end do write(*,*) " " write(*,*) '170<Q< 350: number of TMD bins ',size(xSec4) write(*,*) 'pt(min), pt(max), xSec, err-, err+' do j=1,size(xSec4) write(*,'(F6.2," ", F6.2," ", ES12.3E3," ", ES12.3E3," ", ES12.3E3)') ptBINS(j),ptBINS(j+1),xSec4(j),& min(xSec4(j),xSec41(j),xSec42(j),xSec43(j),xSec44(j)),& max(xSec4(j),xSec41(j),xSec42(j),xSec43(j),xSec44(j)) end do call cpu_time(time2) ! write(*,*) 'Calculation time=',time2-time1 ! end program xSec_DY
8,987
28.276873
124
f90
artemide-public
artemide-public-master/Prog/DY_for_RHIC.f90
program example use aTMDe_control use TMDX_DY implicit none !-------------------------------------------------------- !! CALCULATING THE unpolarized DY-cross-section for RHIC !! !! !!leptons-PT > 25 GeV !!|leptons-Eta| < 1.1 !!73 < Minv < 126 GeV !!sqrt(s) = 510 GeV !-------------------------------------------------------- ! pt-bins integer,parameter::numPoints=11 integer,parameter::numReplica=300 ! !-------Kinematics definition real*8,parameter::ptABSOLUTEMAX=25d0 real*8,parameter::s=510d0**2 integer,dimension(1:3),parameter::proc=(/1,1,5/) !p+p->gamma*+Z real*8,parameter::etamax=1.1d0 real*8,parameter::ptCut=25d0 real*8,parameter::Qmin=73d0 real*8,parameter::Qmax=126d0 !------ real*8::pmin(1:numPoints),pmax(1:numPoints),X(1:numPoints),Xrep(1:numReplica,1:numPoints) real*8::Xmean(1:numPoints), Xdev(1:numPoints) integer::i,j !$ real*8::OMP_get_wtime,t1,t2,t3,t4 call artemide_Initialize('const-DYfit18_NNLO',prefix='/misc/data2/braun/vla18041/arTeMiDe_Repository/') !$ t3=OMP_get_wtime() call artemide_SetReplica_uTMDPDF(0) call artemide_SetReplica_TMDR(0) !! make pt-bins ! do i=1,numPoints ! pmin(i)=ptABSOLUTEMAX*real(i-1)/real(numPoints) ! pmax(i)=ptABSOLUTEMAX*real(i)/real(numPoints) ! end do pmin=(/0d0, 1.25d0, 2.5d0, 3.75d0, 5d0, 7.5d0, 10d0, 12.5d0, 15d0, 17.5d0, 20d0/) pmax=(/1.25d0, 2.5d0, 3.75d0, 5d0, 7.5d0, 10d0, 12.5d0, 15d0, 17.5d0, 20d0,25d0/) ! ! just for check ! do i=1,numPoints ! call xSec_DY(X1(i),proc,s,(/pmin(i),pmax(i)/),(/Qmin,Qmax/),(/-2d0,2d0/),.true.,(/ptCut,ptCut,-etamax,etamax/)) ! write(*,*) pmin(i),'--',pmax(i),': ',X1(i) ! end do !$ t1=OMP_get_wtime() !! setting parameters call TMDX_DY_SetProcess(proc) call TMDX_DY_XSetup(s,91d0,0d0) call TMDX_DY_SetCuts(.true.,ptCut,-etamax,etamax) !! main replica call CalcXsec_DY_PTint_Qint_Yint(X,pmin,pmax,Qmin,Qmax) !$ t2=OMP_get_wtime() !$ write(*,*) 'Evaluation took', t2-t1, 'sec. (wallclock time)' do j=1,numPoints X(j)=X(j)/(pmax(j)-pmin(j)) end do !!! fit replicas do i=1,numReplica write(*,*) '----------------------REPLICA',i,'------------------------' !$ t1=OMP_get_wtime() call artemide_SetReplica_uTMDPDF(i) call artemide_SetReplica_TMDR(i) !! setting parameters call TMDX_DY_SetProcess(proc) call TMDX_DY_XSetup(s,91d0,0d0) call TMDX_DY_SetCuts(.true.,ptCut,-etamax,etamax) call CalcXsec_DY_PTint_Qint_Yint(Xrep(i,:),pmin,pmax,Qmin,Qmax) do j=1,numPoints Xrep(i,j)=Xrep(i,j)/(pmax(j)-pmin(j)) end do !$ t2=OMP_get_wtime() !$ write(*,*) 'Evaluation took', t2-t1, 'sec. (wallclock time)' end do call artemide_ShowStatistics() !$ t4=OMP_get_wtime() !$ write(*,*) 'Total Evaluation took', t4-t3, 'sec. (wallclock time)' !! caluculating mean value do i=1,numPoints Xmean(i)=sum(Xrep(:,i))/numReplica end do write(*,*) 'check:',Xmean-X !! caluculating deviation do i=1,numPoints Xdev(i)=sqrt(sum(Xrep(:,i)**2)/numReplica-Xmean(i)**2) end do open(7, file='RHIC-01-bins', status="replace", action="write") do i=1,numPoints write(7,"(F8.2,F8.2,F12.6,F12.6,F12.6)") pmin(i),pmax(i), X(i), Xmean(i)-Xdev(i)-X(i),Xmean(i)+Xdev(i)-X(i) end do CLOSE (7, STATUS='KEEP') end program example
3,153
27.672727
115
f90
artemide-public
artemide-public-master/Prog/Test_Fourier.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !Program computes Fouries of test cases and compare to exact values !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! program example use aTMDe_control use TMDF implicit none integer,parameter::Nt=18 real*8::testString(1:Nt),qT(1:Nt) real*8::par1,par2,par3,tt,tt1 integer::j call artemide_Initialize('const-TEST',prefix='/home/vla18041/LinkData2/arTeMiDe_Repository/artemide/Prog/') !---------------------------------------------------------------------------------------------------------------------------------- qT(1)=0.001d0 qT(2)=0.01d0 qT(3)=0.05d0 qT(4)=0.1d0 qT(5)=0.5d0 qT(6)=1d0 qT(7)=2d0 qT(8)=4d0 qT(9)=6d0 qT(10)=10d0 qT(11)=15d0 qT(12)=20d0 qT(13)=25d0 qT(14)=30d0 qT(15)=40d0 qT(16)=50d0 qT(17)=75d0 qT(18)=90d0 !---------------------------------------------------------------------------------------------------------------------------------- write(*,*) '------------------------Exponential test-------------------------------------------------------------------------' write(*,*) '>>>> mu=0.2, x1=0, x2=0 ' par1=0.2d0 par2=0d0 par3=0d0 ! tt=TMDF_F(1d0,2d0,par2,par3,par1,1d0,1d0,9999) ! ! stop do j=1,Nt tt=TMDF_F(1d0,qT(j),par2,par3,par1,1d0,1d0,9999) tt1=Exact9999(qT(j),par1,par2,par3) write(*,"(F14.6,' ')",advance='no') tt/tt1 call TMDF_ResetCounters() end do write(*,*) write(*,*) '>>>> mu=0.5, x1=0, x2=0 ' par1=0.5d0 par2=0d0 par3=0d0 do j=1,Nt tt=TMDF_F(1d0,qT(j),par2,par3,par1,1d0,1d0,9999) tt1=Exact9999(qT(j),par1,par2,par3) write(*,"(F14.6,' ')",advance='no') tt/tt1 call TMDF_ResetCounters() end do write(*,*) write(*,*) '------------------------Gaussian test-------------------------------------------------------------------------' write(*,*) '>>>> mu=0.2, x1=0, x2=0 ' par1=0.2d0 par2=0d0 par3=0d0 do j=1,Nt tt=TMDF_F(1d0,qT(j),par2,par3,par1,1d0,1d0,9998) tt1=Exact9998(qT(j),par1,par2,par3) if(abs(tt1)>0d0) then write(*,"(F14.6,' ')",advance='no') tt/tt1 else write(*,"(F14.6,'/0 ')",advance='no') tt end if call TMDF_ResetCounters() end do write(*,*) write(*,*) '>>>> mu=0.5, x1=0, x2=0 ' par1=0.5d0 par2=0d0 par3=0d0 do j=1,Nt tt=TMDF_F(1d0,qT(j),par2,par3,par1,1d0,1d0,9998) tt1=Exact9998(qT(j),par1,par2,par3) if(abs(tt1)>0d0) then write(*,"(F14.6,' ')",advance='no') tt/tt1 else write(*,"(F14.6,'/0 ')",advance='no') tt end if call TMDF_ResetCounters() end do write(*,*) contains !!! the exact value of test function 9999 at qt,mu,x1,x2 function Exact9999(qT_in,mu,x1,x2) real*8::Exact9999,qT_in,mu,x1,x2 real*8::X X=(qT_in/mu)**2 Exact9999=1d0/(2d0*(mu**2)*(1+X)**(3d0/2d0))*(1d0+x1/mu**2*(6d0-9d0*X)/(1+X)**2+15d0*x2/mu**4*(8d0-40d0*X+15d0*X**2)/(1+X)**4) end function Exact9999 !!! the exact value of test function 9998 at qt,mu,x1,x2 function Exact9998(qT_in,mu,x1,x2) real*8::Exact9998,qT_in,mu,x1,x2 real*8::Y Y=qT_in**2/4d0/mu Exact9998=Exp(-Y)/4d0/mu*(1d0+x1/mu*(1d0-Y)+x2/mu**2*(2d0-4d0*Y+Y**2)) end function Exact9998 end program example
3,110
23.304688
131
f90
artemide-public
artemide-public-master/Prog/UpdateCONST.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! Elementary program that read old-constants-file (possibly for older version of artemide) !! and create a new (for current version of artemide) !! !! A.Vladimirov (08.07.2019) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! program example use aTMDe_setup implicit none CHARACTER(*),parameter::path=' ..... ' CHARACTER(*),parameter::fileIN='const-test' CHARACTER(*),parameter::fileOUT='const-test+' call artemide_Setup_fromFile(fileIN,prefix=path) call CreateConstantsFile(fileOUT,prefix=path) end program example
660
37.882353
91
f90
artemide-public
artemide-public-master/Prog/test.f90
program example use aTMDe_control use TMDX_DY implicit none real*8,dimension(1:3)::xSec,pt,ptmin,ptmax real*8,dimension(1:4)::ptPLUS integer :: j real*8 :: time1, time2,xx real*8,dimension(1:2):: p1,p2,p3 real*8,dimension(1:4)::cc integer,dimension(1:3)::pp real*8,dimension(1:3,1:2)::qtList,Qlist,yList real*8,dimension(1:3,1:4)::cutList logical,dimension(1:3)::inCutList integer,dimension(1:3,1:3)::pList integer,dimension(1:3)::nnList real*8,dimension(1:3)::X,sList !$ real*8::OMP_get_wtime,t1,t2 call cpu_time(time1) !$ t1=OMP_get_wtime() write(*,*) "Initialize artemide at LO. It is fast ~1 sek. NNLO could be much longer ~5 min." call artemide_Initialize('const-test') ! call TMDX_DY_Initialize('LO') ! call TMDX_DY_setProcess(1,1,6) ! call SetCuts(.true.,20d0,-2.4d0,2.4d0) ! call TMDX_DY_XSetup(8000d0**2,91d0,0.01d0) ! call TMDX_DY_SetNPParameters(0) !call artemide_SetReplica_uTMDPDF(0) !call artemide_SetReplica_TMDR(0) do j=1,3 pt(j)=2*REAL(j) ptmin(j)=pt(j)-1d0 ptPLUS(j)=ptmin(j) ptmax(j)=pt(j)+1d0 end do ptPLUS(4)=ptMax(3) ! call CalcXsec_DY_PTint_Qint_Yint(xSec,ptmin,ptmax,66d0,126d0,-0.5d0,3.5d0) ! do j=1,3 ! write(*,*) ptmin(j),'--',ptmax(j),xSec(j) ! end do ! write(*,*) "Calculating some values for cross-section one-by-one (DY around Z-boson peak, ATLAS 8TeV kinematics)" write(*,*) "ptMin -- ptMax xSec" do j=1,3 ! write(*,*) ptmin(j),'--',ptmax(j),xSec_DY(process=(/1,1,6/),s=8000d0**2,& ! qT=(/ptMin(j),ptmax(j)/),Q=(/66d0,126d0/),y=(/-0.5d0,3.5d0/),& ! includeCuts=.true.,CutParameters=(/20d0,20d0,-2.4d0,2.4d0/),Num=4) p1=(/ptMin(j),ptmax(j)/) p2=(/66d0,116d0/) p3=(/-2.4d0,2.4d0/) cc=(/20d0,20d0,-2.4d0,2.4d0/) pp=(/1,1,5/) call xSec_DY(xx,pp,(8000d0)**2,p1,p2,p3,.true.,CutParameters=cc) write(*,*) ptmin(j),'--',ptmax(j),xx end do write(*,*) " " write(*,*) "Now the same by list" !$ write(*,*) "It must be faster since you use OPENMP" do j=1,3 qtList(j,:)=(/ptMin(j),ptmax(j)/) Qlist(j,:)=(/66d0,116d0/) yList(j,:)=(/-2.4d0,2.4d0/) inCutList(j)=.true. cutList(j,:)=(/20d0,20d0,-2.4d0,2.4d0/) pList(j,:)=(/1,1,5/) nnList(j)=4 sList(j)=(8000d0)**2 end do call xSec_Dy_List(X,pList,sList,qtList,Qlist,yList,inCutList,cutList,nnList) write(*,*) "result:", X write(*,*) '-----------------------------------------------------------------------------------------------' call cpu_time(time2) !$ t2=OMP_get_wtime() write(*,*) 'The programm evaluation took', time2-time1, 'sec. (CPU time)' !$ write(*,*) 'The programm evaluation took', t2-t1, 'sec. (wallclock time)' write(*,*) ' ' write(*,*) 'If you do not like so many terminal messages check the parameter outputlevel in constants file.' write(*,*) 'Not forget to cite artemide [1706.01473]' write(*,*) '-----------------------------------------------------------------------------------------------' end program example
3,025
31.537634
115
f90
artemide-public
artemide-public-master/Prog/update-constants-file.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! The program that check the constants-file and update it if nessecary !! requares an argument (full path to constants file) !! !! A.Vladimirov (05.11.2019) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! program example use aTMDe_setup use IO_functions implicit none real*8::Q CHARACTER(len=516)::path,path_backup CHARACTER(100)::line logical::file_exists,save_backup,to_update,backup_replace CHARACTER(len=1)::ask integer::iostatus write(*,*) "--------------------------------------------------------------------------------" write(*,*) "-------------------- artemide.UpdateConstantsFile ------------------------------" to_update=.false. save_backup=.true. backup_replace=.false. !!! receive the argument call get_command_argument(1,path) if(len_trim(path)==0) then write(*,*) color(" artemide.UpdateConstantsFile-routine: pass the path to constants-file.",c_red) call exit(0) end if !!chech the presence of the file INQUIRE(FILE=trim(path), EXIST=file_exists) if(.not.file_exists) then write(*,*) color(" artemide.UpdateConstantsFile-routine: constants-file is not found.",c_red) write(*,*) color(" check path: "//trim(path),c_red) call exit(0) end if !! output with the path write(*,*) " FILE: ",color(trim(path),c_green_bold) !! check for nessecity to update if(CheckConstantsFile(trim(path))) then write(*,*) color(" ... update is not required",c_green) call exit(0) else write(*,*) color(" ... update is required",c_green) end if !!ask user write(*,*) color(" Do you want to update this file? (y/n)",c_green_bold) read(*,*) ask if(ask=='y') to_update=.true. if (.not.to_update) call exit(0) write(*,*) color(" Do you want to save backup copy of this file? (y/n)",c_green_bold) read(*,*) ask if(ask=='n') save_backup=.false. !!! check for possibility to backup if(save_backup) then path_backup=trim(path)//"_backup" write(*,*) ' backup copy will be saved to :',color(trim(path_backup),c_green_bold) INQUIRE(FILE=trim(path_backup), EXIST=file_exists) if(file_exists) then write(*,*) color(' backup file with such name already exists. Replace? (y/n)',c_red_bold) read(*,*) ask if(ask=='y') backup_replace=.true. if(.not.backup_replace) then write(*,*) ' program terminated' call exit(0) end if if(backup_replace) write(*,*) ' ... backup will be replaced' end if end if !!! save backup if(save_backup) then OPEN(UNIT=51, FILE=path, ACTION="read", STATUS="old") OPEN(UNIT=52, FILE=path_backup, ACTION="write", STATUS="replace") do read(51,'(A)',IOSTAT=iostatus) line if(iostatus>0) then write(*,*) color(' ... some problem in reading file...',c_red_bold) stop else if(iostatus<0) then exit else write(52,'(A)') trim(line) end if end do CLOSE (51, STATUS='KEEP') CLOSE (52, STATUS='KEEP') write(*,*) color(' ... backup file saved normally',c_green) end if call artemide_Setup_fromFile(trim(path)) call CreateConstantsFile(trim(path)) write(*,*) color(' DONE!',c_green) end program example
3,272
30.471154
99
f90
artemide-public
artemide-public-master/Prog/SV19_programs/DY_smooth-plot-withPDF.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !Program makes a smooth plot at givem s,Q,y, in qT (no bin-integrations) ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! program example use aTMDe_control use uTMDPDF use TMDX_DY implicit none integer::numR=100 integer,dimension(1:3)::proc real*8::y,Q,s real*8::stepqT,maxqT integer::i,j,maxI,k real*8,allocatable::X(:),qT(:),mean(:),deviation(:) real*8 :: a1,a2,a3,a4,a5,a6,a7,a8,a9 call artemide_Initialize('const-DY_TEST',prefix='/home/vla18041/LinkData2/arTeMiDe_Repository/Constants-files/') call artemide_SetNPparameters_TMDR((/1.86041d0, 0.029551d0/)) call artemide_SetNPparameters_uTMDPDF((/0.253434d0, 9.04351d0, 346.999d0, 2.47992d0, -5.69988d0, 0.d0, 0.d0/)) proc=(/1,1,5/) !!!! pp DY ! s=25d0**2 ! Q=8d0 ! y=0.2d0 ! stepqT=0.1d0 s=8000d0**2 Q=91.d0 y=0d0 stepqT=0.25d0 maxqT=0.25d0*Q maxI=Int(maxqT/stepqT) call TMDX_DY_setProcess(proc) call TMDX_DY_XSetup(s,Q,y) call TMDX_DY_SetCuts(.false.,0d0,-10d0,10d0)!!! no cuts allocate(qT(1:maxI)) allocate(X(1:maxI)) allocate(deviation(1:maxI)) allocate(mean(1:maxI)) do i=1,maxI qT(i)=stepqT*i end do call CalcXsec_DY(X,qT) write(*,*) '-------------------------Central------------------------' do i=1,maxI write(*,'("{",F6.3,",",F12.8,"},")') qT(i),X(i) !write(*,*) qT(i),X(i) end do !goto 10 write(*,*) '-------------------------PDF distr------------------------' do i=1,maxI mean(i)=0d0 deviation(i)=0d0 end do OPEN(UNIT=51, FILE="/home/vla18041/LinkData2/WorkingFiles/TMD/Fit_Notes/FIGURES_DY+SIDIS_2019/PDF-replicas/NNPDF_dist.txt",& ACTION="read", STATUS="old") !! replicas do j=1,numR read(51,*) k,a1,a2,a3,a4,a5,a6,a7,a8,a9 call uTMDPDF_SetPDFReplica(k) call uTMDPDF_SetLambdaNP((/a3,a4,a5,a6,a7,a8,a9/),.false.,.false.) call CalcXsec_DY(X,qT) do i=1,maxI mean(i)=mean(i)+X(i) deviation(i)=deviation(i)+X(i)**2 end do end do CLOSE (51, STATUS='KEEP') do i=1,maxI mean(i)=mean(i)/numR deviation(i)=Sqrt(deviation(i)/numR-mean(i)**2) end do do i=1,maxI write(*,"('{',F10.7,',',F10.7,',',F10.7,',',F10.7,'},')") qT(i),mean(i),mean(i)-deviation(i),mean(i)+deviation(i) end do 10 write(*,*) '-------------------------PDF distr+------------------------' do i=1,maxI mean(i)=0d0 deviation(i)=0d0 end do OPEN(UNIT=51, FILE="/home/vla18041/LinkData2/WorkingFiles/TMD/Fit_Notes/FIGURES_DY+SIDIS_2019/PDF-replicas/NNPDF_dist+.txt",& ACTION="read", STATUS="old") !! replicas numR=46 do j=1,numR read(51,*) k,a1,a2,a3,a4,a5,a6,a7,a8,a9 call uTMDPDF_SetPDFReplica(k) call uTMDPDF_SetLambdaNP((/a3,a4,a5,a6,a7,a8,a9/),.false.,.false.) call CalcXsec_DY(X,qT) do i=1,maxI mean(i)=mean(i)+X(i) deviation(i)=deviation(i)+X(i)**2 end do end do CLOSE (51, STATUS='KEEP') do i=1,maxI mean(i)=mean(i)/numR deviation(i)=Sqrt(deviation(i)/numR-mean(i)**2) end do do i=1,maxI write(*,"('{',F10.7,',',F10.7,',',F10.7,',',F10.7,'},')") qT(i),mean(i),mean(i)-deviation(i),mean(i)+deviation(i) end do write(*,*) '-------------------------fNP distir------------------------' do i=1,maxI mean(i)=0d0 deviation(i)=0d0 end do OPEN(UNIT=51, FILE="/home/vla18041/LinkData2/WorkingFiles/TMD/Fit_Notes/FIGURES_DY+SIDIS_2019/PDF-replicas/NNPDF_stat.txt",& ACTION="read", STATUS="old") !! replicas numR=100 do j=1,numR read(51,*) k,a1,a2,a3,a4,a5,a6,a7,a8,a9 call uTMDPDF_SetPDFReplica(k) call uTMDPDF_SetLambdaNP((/a3,a4,a5,a6,a7,a8,a9/),.false.,.false.) call CalcXsec_DY(X,qT) do i=1,maxI mean(i)=mean(i)+X(i) deviation(i)=deviation(i)+X(i)**2 end do end do CLOSE (51, STATUS='KEEP') do i=1,maxI mean(i)=mean(i)/numR deviation(i)=Sqrt(deviation(i)/numR-mean(i)**2) end do do i=1,maxI write(*,"('{',F10.7,',',F10.7,',',F10.7,',',F10.7,'},')") qT(i),mean(i),mean(i)-deviation(i),mean(i)+deviation(i) end do end program example
4,020
23.369697
125
f90
artemide-public
artemide-public-master/Prog/SV19_programs/DY_smooth-plot.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !Program makes a smooth plot at givem s,Q,y, in qT (no bin-integrations) ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! program example use aTMDe_control use TMDX_DY implicit none integer,dimension(1:3)::proc real*8::y,Q,s real*8::stepqT,maxqT,r integer::i,maxI real*8,allocatable::X(:),qT(:),X1(:),X2(:),X3(:),X4(:) call artemide_Initialize('const-DY_LO',prefix='/home/vla18041/LinkData2/arTeMiDe_Repository/Constants-files/') ! call artemide_Initialize('const-DY_LO',prefix='/home/alexey/artemide_Repository/Constants-files/')! call artemide_SetNPparameters_TMDR((/1.86041d0, 0.029551d0/)) call artemide_SetNPparameters_uTMDPDF((/0.253434d0, 9.04351d0, 346.999d0, 2.47992d0, -5.69988d0, 0.d0, 0.d0/)) ! call artemide_SetNPparameters_TMDR((/2d0,0.001d0/)) ! call artemide_SetNPparameters_uTMDPDF((/0.01d0, 0.01d0, 0d0, 0d0, 0d0, 0.d0, 0.d0/)) proc=(/1,1,5/) !!!! pp DY s=8000d0**2 Q=40.d0 y=2d0 s=200d0**2 Q=6d0 y=1.5d0 call TMDX_DY_setProcess(proc) call TMDX_DY_XSetup(s,Q,y) call TMDX_DY_SetCuts(.false.,0d0,-10d0,10d0)!!! no cuts maxqT=0.3d0*Q stepqT=0.025d0 maxI=Int(maxqT/stepqT) allocate(qT(1:maxI)) allocate(X(1:maxI)) do i=1,maxI qT(i)=stepqT*i end do call CalcXsec_DY(X,qT) !!!!!!!!!!!!!!!!!!!!!!!!!!! to compute variation band do this !!! else ! goto 100 allocate(X1(1:maxI)) allocate(X2(1:maxI)) allocate(X3(1:maxI)) allocate(X4(1:maxI)) r=2d0 call artemide_SetScaleVariations(1d0,1d0/r,1d0,1d0) call CalcXsec_DY(X1,qT) call artemide_SetScaleVariations(1d0,1d0*r,1d0,1d0) call CalcXsec_DY(X2,qT) call artemide_SetScaleVariations(1d0,1d0,1d0,1d0/r) call CalcXsec_DY(X3,qT) call artemide_SetScaleVariations(1d0,1d0,1d0,1d0*r) call CalcXsec_DY(X4,qT) 100 do i=1,maxI if(allocated(X1)) then write(*,'("{",F6.3,",",F14.12,",",F14.12,",",F14.12,"},")') & qT(i),X(i),max(X(i),X1(i),X2(i),X3(i),X4(i)),min(X(i),X1(i),X2(i),X3(i),X4(i)) else write(*,'("{",F6.3,",",F14.12,"},")') qT(i),X(i) end if !write(*,*) qT(i),X(i) end do end program example
2,114
25.111111
110
f90
artemide-public
artemide-public-master/Prog/SV19_programs/DY_smooth-plot_err.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !Program makes a smooth plot at givem s,Q,y, in qT (no bin-integrations) ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! program example use aTMDe_control use TMDX_DY implicit none character(*),parameter::prefix='/home/vla18041/LinkData2/arTeMiDe_Repository/artemide/Models/SV19/' character(*),parameter::repFILE=prefix//'Replicas/DY+SIDIS/DY+SIDIS_NNPDF31+DSS_nnlo.rep' character(*),parameter::constFILE=prefix//'constants-files/DY+SIDIS_nnlo/const-DY+SIDIS_NNPDF31+DSS_nnlo' real*8,allocatable::NParray(:) integer::numR integer,dimension(1:3)::proc real*8::s,yMin,yMax,Qmin,Qmax real*8::stepqT,maxqT,r integer::i,maxI real*8,allocatable::X0(:),Xplus(:),Xminus(:),qTmin(:),qTmax(:) call artemide_Initialize(constFILE) numR=artemide_NumOfReplicasInFile(repFILE) call artemide_GetReplicaFromFile(repFILE,0,NParray) !call artemide_SetNPparameters_TMDR(NParray(1:2)) call artemide_SetNPparameters(NParray) proc=(/1,1,5/) !!!! pp DY s=7000d0**2 Qmin=20.d0 Qmax=40.d0 ymin=2.d0 ymax=4.5d0 call TMDX_DY_setProcess(proc) call TMDX_DY_XSetup(s,(Qmax+Qmin)/2d0,(ymax+ymin)/2d0) call TMDX_DY_SetCuts(.true.,15d0,2.d0,4.5d0)!!! no cuts maxqT=0.3d0*(Qmax+Qmin)/2d0 stepqT=0.25d0 maxI=Int(maxqT/stepqT) allocate(qTmin(1:maxI)) allocate(qTmax(1:maxI)) do i=1,maxI qTmin(i)=stepqT*(i-1) qTmax(i)=stepqT*i end do !call ComputeXsecWithStatErr(qTmin,qTmax,X0,Xminus,Xplus) call ComputeXsecWithScaleErr(qTmin,qTmax,X0,Xminus,Xplus) write(*,*) '---------------------------S=7TeV---------------------------------------' do i=1,maxI write(*,'("{",F6.3,",",F6.3,",",F14.12,",",F14.12,",",F14.12,"},")') qTmin(i),qTmax(i),X0(i),Xminus(i),Xplus(i) end do s=8000d0**2 call TMDX_DY_XSetup(s,(Qmax+Qmin)/2d0,(ymax+ymin)/2d0) !call ComputeXsecWithStatErr(qTmin,qTmax,X0,Xminus,Xplus) call ComputeXsecWithScaleErr(qTmin,qTmax,X0,Xminus,Xplus) write(*,*) '---------------------------S=8TeV---------------------------------------' do i=1,maxI write(*,'("{",F6.3,",",F6.3,",",F14.12,",",F14.12,",",F14.12,"},")') qTmin(i),qTmax(i),X0(i),Xminus(i),Xplus(i) end do contains !!! compute statistical error due to replica distribution subroutine ComputeXsecWithStatErr(qTmin_in,qTmax_in,Xout,XminusOut,XplusOut) real*8,intent(in)::qTmin_in(:),qTmax_in(:) real*8,allocatable,intent(out)::XOut(:),XminusOut(:),XplusOut(:) real*8,allocatable::mean(:),deviation(:),X(:),Err(:) integer::l,i,j l=size(qTmin_in) allocate(XOut(1:l)) allocate(XminusOut(1:l)) allocate(XplusOut(1:l)) allocate(mean(1:l)) allocate(deviation(1:l)) allocate(X(1:l)) allocate(Err(1:l)) do i=1,l mean(i)=0d0 deviation(i)=0d0 end do do j=1,numR call artemide_GetReplicaFromFile(repFILE,j,NParray) call artemide_SetNPparameters(NParray) call CalcXsec_DY_PTint_Qint_Yint(X,qTmin_in,qTmax_in,Qmin,Qmax,yMin,yMax) mean=mean+X deviation=deviation+X**2 end do do i=1,l Xout(i)=mean(i)/numR Err(i)=Sqrt(deviation(i)/numR - Xout(i)**2) XminusOut(i)=Xout(i)-Err(i) XplusOut(i)=Xout(i)+Err(i) end do end subroutine ComputeXsecWithStatErr !!! compute scle-variation error subroutine ComputeXsecWithScaleErr(qTmin_in,qTmax_in,XOut,XminusOut,XplusOut) real*8,intent(in)::qTmin_in(:),qTmax_in(:) real*8,allocatable,intent(out)::XOut(:),XminusOut(:),XplusOut(:) real*8,allocatable::X(:),X1(:),X2(:),X3(:),X4(:) integer::l,i,j l=size(qTmin_in) allocate(XOut(1:l)) allocate(XminusOut(1:l)) allocate(XplusOut(1:l)) allocate(X(1:l)) allocate(X1(1:l)) allocate(X2(1:l)) allocate(X3(1:l)) allocate(X4(1:l)) call artemide_SetScaleVariations(1d0,1d0,1d0,1d0) call CalcXsec_DY_PTint_Qint_Yint(X,qTmin_in,qTmax_in,Qmin,Qmax,yMin,yMax) r=2d0 call artemide_SetScaleVariations(1d0,1d0/r,1d0,1d0) call CalcXsec_DY_PTint_Qint_Yint(X1,qTmin_in,qTmax_in,Qmin,Qmax,yMin,yMax) call artemide_SetScaleVariations(1d0,1d0*r,1d0,1d0) call CalcXsec_DY_PTint_Qint_Yint(X2,qTmin_in,qTmax_in,Qmin,Qmax,yMin,yMax) call artemide_SetScaleVariations(1d0,1d0,1d0,1d0/r) call CalcXsec_DY_PTint_Qint_Yint(X3,qTmin_in,qTmax_in,Qmin,Qmax,yMin,yMax) call artemide_SetScaleVariations(1d0,1d0,1d0,1d0*r) call CalcXsec_DY_PTint_Qint_Yint(X4,qTmin_in,qTmax_in,Qmin,Qmax,yMin,yMax) do i=1,l Xout(i)=X(i) XminusOut(i)=min(X(i),X1(i),X2(i),X3(i),X4(i)) XplusOut(i)=max(X(i),X1(i),X2(i),X3(i),X4(i)) end do end subroutine ComputeXsecWithScaleErr end program example
4,577
27.259259
119
f90
artemide-public
artemide-public-master/Prog/SV19_programs/RAD_plot.f90
program example use aTMDe_control use TMDR implicit none character(*),parameter::prefix='/home/vla18041/LinkData2/arTeMiDe_Repository/artemide/Models/SV19/' character(*),parameter::repFILE=prefix//'Replicas/DY+SIDIS/DY+SIDIS_NNPDF31+DSS_nnlo.rep' character(*),parameter::constFILE=prefix//'constants-files/DY+SIDIS_nnlo/const-DY+SIDIS_NNPDF31+DSS_nnlo' real*8,allocatable::NParray(:) integer::numR,numB,i,j real*8,allocatable::central(:),mean(:),deviation(:),b(:) real*8::bMax,step,mu,dd call artemide_Initialize(constFILE) numR=artemide_NumOfReplicasInFile(repFILE) call artemide_GetReplicaFromFile(repFILE,0,NParray) call artemide_SetNPparameters_TMDR(NParray(1:2)) numB=40 bMax=5d0 !mu=91d0 mu=2.39d0 allocate(b(1:numB)) do i=1,20 b(i)=0.005d0+i/20d0 end do do i=21,numB b(i)=bMax+(bMax-1d0)*(i-numB)/(numB-20) end do allocate(central(1:numB)) allocate(mean(1:numB)) allocate(deviation(1:numB)) do i=1,numB central(i)=DNP(mu, b(i),1) mean(i)=0d0 deviation=0d0 end do do j=1,numR call artemide_GetReplicaFromFile(repFILE,j,NParray) call artemide_SetNPparameters_TMDR(NParray(1:2)) do i=1,numB dd=DNP(mu, b(i),1) mean(i)=mean(i)+dd deviation(i)=deviation(i)+dd**2 end do end do do i=1,numB mean(i)=mean(i)/numR deviation(i)=Sqrt(deviation(i)/numR-mean(i)**2) end do do i=1,numB write(*,"('{',F10.7,',',F10.7,',',F10.7,',',F10.7,'},')") b(i),central(i),mean(i)-deviation(i),mean(i)+deviation(i) end do ! end program example
1,486
19.943662
117
f90
artemide-public
artemide-public-master/Prog/SV19_programs/SIDIS_smooth-plot.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !Program makes a smooth plot at given s,Q,x,z, in qT (no bin-integrations) ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! program example use aTMDe_control use TMDX_SIDIS implicit none integer,dimension(1:3)::proc real*8::x,z,Q,s real*8::stepqT,maxqT integer::i,maxI real*8,allocatable::Xsec(:),qT(:) call artemide_Initialize('const-SIDIS_LO',prefix='/home/vla18041/LinkData2/arTeMiDe_Repository/Constants-files/') call artemide_SetNPparameters_TMDR((/1.86041d0, 0.029551d0/)) call artemide_SetNPparameters_uTMDPDF((/0.253434d0, 9.04351d0, 346.999d0, 2.47992d0, -5.69988d0, 0.d0, 0.d0/)) call artemide_SetNPparameters_uTMDFF((/0.264d0,0.479d0,0.459d0,0.539d0/)) proc=(/1,1,2001/) !!!! p->pi+ SIDIS s=300d0 Q=4d0 x=0.1d0 z=0.4d0 call TMDX_SIDIS_setProcess(proc) call TMDX_SIDIS_XSetup(s,z,x,Q,0.938d0,0.d0) call TMDX_SIDIS_SetCuts(.false.,0d0,-10d0,10d0,0d0)!!! no cuts maxqT=0.4d0*Q*z stepqT=maxqT/25d0 maxI=Int(maxqT/stepqT) allocate(qT(1:maxI)) allocate(Xsec(1:maxI)) do i=1,maxI qT(i)=stepqT*i end do call CalcXsec_SIDIS(Xsec,qT) do i=1,maxI write(*,'("{",F6.3,",",F12.8,"},")') qT(i),Xsec(i)/1000d0 !write(*,*) qT(i),X(i) end do end program example
1,272
24.46
113
f90
artemide-public
artemide-public-master/Prog/SV19_programs/uTMDFF_plot_3D.f90
program example use aTMDe_control use uTMDFF implicit none character(*),parameter::prefix='/home/vla18041/LinkData2/arTeMiDe_Repository/artemide/Models/SV19/' character(*),parameter::repFILE=prefix//'Replicas/DY+SIDIS/DY+SIDIS_NNPDF31+DSS_nnlo.rep' character(*),parameter::constFILE=prefix//'constants-files/DY+SIDIS_nnlo/const-DY+SIDIS_NNPDF31+DSS_nnlo' real*8,allocatable::NParray(:) integer::numR,numB,i,j real*8,allocatable::central(:),mean(:),deviation(:),b(:) real*8::bMax,step,mu,dd,x,TMD(-5:5) integer::f,k real*8,parameter::xValues(1:13)=(/& 0.8d0,0.75d0,0.7d0,0.65d0,& 0.6d0,0.55d0,0.5d0,0.45d0,0.4d0,0.35d0,0.3d0,0.25d0,0.2d0/) call artemide_Initialize(constFILE) numR=artemide_NumOfReplicasInFile(repFILE) call artemide_GetReplicaFromFile(repFILE,0,NParray) call uTMDFF_SetLambdaNP(NParray(10:13),.false.,.false.) f=2 numB=50 bMax=7d0 mu=4d0 allocate(b(1:numB)) do i=1,20 b(i)=0.005d0+i/20d0 end do do i=21,numB b(i)=bMax+(bMax-1d0)*(i-numB)/(numB-20) end do allocate(central(1:numB)) allocate(mean(1:numB)) allocate(deviation(1:numB)) do k=1,size(xValues) x=xValues(k) do i=1,numB TMD=uTMDFF_lowScale5(x,b(i),1) central(i)=TMD(f) mean(i)=0d0 deviation=0d0 end do do j=1,numR call artemide_GetReplicaFromFile(repFILE,j,NParray) call uTMDFF_SetLambdaNP(NParray(10:13),.false.,.false.) do i=1,numB TMD=uTMDFF_lowScale5(x,b(i),1) mean(i)=mean(i)+TMD(f) deviation(i)=deviation(i)+TMD(f)**2 end do end do do i=1,numB mean(i)=mean(i)/numR deviation(i)=Sqrt(deviation(i)/numR-mean(i)**2) end do do i=1,numB write(*,"('{'F10.7,',',F10.7,',',F10.7,',',F10.7,',',F10.7,'},')") x,b(i),x*x*x*mean(i),& x*x*x*(mean(i)-deviation(i)),x*x*x*(mean(i)+deviation(i)) end do end do end program example
1,803
21.835443
105
f90
artemide-public
artemide-public-master/Prog/SV19_programs/uTMDPDF_plot_3D.f90
program example use aTMDe_control use uTMDPDF implicit none character(*),parameter::prefix='/home/vla18041/LinkData2/arTeMiDe_Repository/artemide/Models/SV19/' character(*),parameter::repFILE=prefix//'Replicas/DY+SIDIS/DY+SIDIS_NNPDF31+DSS_nnlo.rep' character(*),parameter::constFILE=prefix//'constants-files/DY+SIDIS_nnlo/const-DY+SIDIS_NNPDF31+DSS_nnlo' real*8,allocatable::NParray(:) integer::numR,numB,i,j real*8,allocatable::central(:),mean(:),deviation(:),b(:) real*8::bMax,step,mu,dd,x,TMD(-5:5) integer::f,k !real*8,parameter::xValues(1:7)=(/.99d0,10d0**(-0.5d0),10d0**(-1d0),10d0**(-1.5d0),10d0**(-2d0),10d0**(-2.5d0),10d0**(-3d0)/) real*8,parameter::xValues(1:13)=(/& 0.99d0,10d0**(-0.25d0),10d0**(-0.5d0),10d0**(-0.75d0),& 10d0**(-1d0),10d0**(-1.25d0),10d0**(-1.5d0),10d0**(-1.75d0),& 10d0**(-2d0),10d0**(-2.25d0),10d0**(-2.5d0),10d0**(-2.75d0),10d0**(-3d0)/) call artemide_Initialize(constFILE) numR=artemide_NumOfReplicasInFile(repFILE) call artemide_GetReplicaFromFile(repFILE,0,NParray) call uTMDPDF_SetLambdaNP(NParray(3:9),.false.,.false.) f=3 numB=40 bMax=3d0 mu=4d0 allocate(b(1:numB)) do i=1,20 b(i)=0.005d0+i/20d0 end do do i=21,numB b(i)=bMax+(bMax-1d0)*(i-numB)/(numB-20) end do allocate(central(1:numB)) allocate(mean(1:numB)) allocate(deviation(1:numB)) do k=1,size(xValues) x=xValues(k) do i=1,numB TMD=uTMDPDF_lowScale5(x,b(i),1) central(i)=TMD(f) mean(i)=0d0 deviation=0d0 end do do j=1,numR call artemide_GetReplicaFromFile(repFILE,j,NParray) call uTMDPDF_SetLambdaNP(NParray(3:9),.false.,.false.) do i=1,numB TMD=uTMDPDF_lowScale5(x,b(i),1) mean(i)=mean(i)+TMD(f) deviation(i)=deviation(i)+TMD(f)**2 end do end do do i=1,numB mean(i)=mean(i)/numR deviation(i)=Sqrt(deviation(i)/numR-mean(i)**2) end do do i=1,numB write(*,"('{'F10.7,',',F10.7,',',F10.7,',',F10.7,',',F10.7,'},')") x,b(i),x*mean(i),& x*(mean(i)-deviation(i)),x*(mean(i)+deviation(i)) end do end do end program example
2,025
23.409639
125
f90
artemide-public
artemide-public-master/Prog/Tests/IntegrationRoutines_test.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !Program makes a smooth plot at givem s,Q,y, in qT (no bin-integrations) ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! program example use IntegrationRoutines implicit none real*8:: re, r1,r2,r3,r4,r5,r6,r7,r8 write(*,*) '-------------------------------------------------------------------' write(*,*) '--- Test of the IntegrationRoutines submodule ---' write(*,*) '-------------------------------------------------------------------' write(*,*) ' ' write(*,*) '| Exact | S5 | SN(n=10) | SN(n=100) |',& ' SA(eps=0.1) | SA(eps=0.001) | G7 | K15 | GK (eps=0.001) |' write(*,*) '| | | | |',& ' | |' write(*,*) '1) (0.5+x)^3 [-1,1] - - - - - - - - - - - - - - - -',& ' - - - - - - - - - - - - - - - - - - - - - - - - - - - -|' re=5d0/4d0 r1=Integrate_S5(f1,-1d0,1d0) r2=Integrate_SN(f1,-1d0,1d0,10) r3=Integrate_SN(f1,-1d0,1d0,100) r4=Integrate_SA(f1,-1d0,1d0,0.1d0) r5=Integrate_SA(f1,-1d0,1d0,0.001d0) r6=Integrate_G7(f1,-1d0,1d0) r7=Integrate_K15(f1,-1d0,1d0) r8=Integrate_GK(f1,-1d0,1d0,0.001d0) write(*,'(" | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | "& ,F14.10," | ")')& re,r1,r2,r3,r4,r5,r6,r7,r8 write(*,'(" | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | "& ,F14.10," | ")')& 1d0,r1/re,r2/re,r3/re,r4/re,r5/re,r6/re,r7/re,r8/re write(*,*) '| | | | |',& ' | | | |' write(*,*) '2) f= (0.5+x)^6 [-1,1] - - - - - - - - - - - - - - -',& ' - - - - - - - - - - - - - - - - - - - - - - - - - - - -|' re=547d0/224d0 r1=Integrate_S5(f2,-1d0,1d0) r2=Integrate_SN(f2,-1d0,1d0,10) r3=Integrate_SN(f2,-1d0,1d0,100) r4=Integrate_SA(f2,-1d0,1d0,0.1d0) r5=Integrate_SA(f2,-1d0,1d0,0.001d0) r6=Integrate_G7(f2,-1d0,1d0) r7=Integrate_K15(f2,-1d0,1d0) r8=Integrate_GK(f2,-1d0,1d0,0.001d0) write(*,'(" | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | "& ,F14.10," | ")')& re,r1,r2,r3,r4,r5,r6,r7,r8 write(*,'(" | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | "& ,F14.10," | ")')& 1d0,r1/re,r2/re,r3/re,r4/re,r5/re,r6/re,r7/re,r8/re write(*,*) '| | | | |',& ' | | | |' write(*,*) '3) f= sqrt(1+x^2) [-1,1] - - - - - - - - - - - - - -',& ' - - - - - - - - - - - - - - - - - - - - - - - - - - - -|' re=1.5707963267948966d0 r1=Integrate_S5(f3,-1d0,1d0) r2=Integrate_SN(f3,-1d0,1d0,10) r3=Integrate_SN(f3,-1d0,1d0,100) r4=Integrate_SA(f3,-1d0,1d0,0.1d0) r5=Integrate_SA(f3,-1d0,1d0,0.001d0) r6=Integrate_G7(f3,-1d0,1d0) r7=Integrate_K15(f3,-1d0,1d0) r8=Integrate_GK(f3,-1d0,1d0,0.001d0) write(*,'(" | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | "& ,F14.10," | ")')& re,r1,r2,r3,r4,r5,r6,r7,r8 write(*,'(" | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | "& ,F14.10," | ")')& 1d0,r1/re,r2/re,r3/re,r4/re,r5/re,r6/re,r7/re,r8/re write(*,*) '| | | | |',& ' | | | |' write(*,*) '4) f= Exp(-5 x^2) [-1,1] - - - - - - - - - - - - - -',& ' - - - - - - - - - - - - - - - - - - - - - - - - - - - -|' re=0.791424619221027d0 r1=Integrate_S5(f4,-1d0,1d0) r2=Integrate_SN(f4,-1d0,1d0,10) r3=Integrate_SN(f4,-1d0,1d0,100) r4=Integrate_SA(f4,-1d0,1d0,0.1d0) r5=Integrate_SA(f4,-1d0,1d0,0.001d0) r6=Integrate_G7(f4,-1d0,1d0) r7=Integrate_K15(f4,-1d0,1d0) r8=Integrate_GK(f4,-1d0,1d0,0.001d0) write(*,'(" | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | "& ,F14.10," | ")')& re,r1,r2,r3,r4,r5,r6,r7,r8 write(*,'(" | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | "& ,F14.10," | ")')& 1d0,r1/re,r2/re,r3/re,r4/re,r5/re,r6/re,r7/re,r8/re write(*,*) '| | | | |',& ' | | | |' write(*,*) '5) f= (0.5+x)^2 Exp(-5 x^2) [-1,1] - - - - - - - - - - -',& ' - - - - - - - - - - - - - - - - - - - - - - - - - - - -|' re=0.2756510273275424d0 r1=Integrate_S5(f5,-1d0,1d0) r2=Integrate_SN(f5,-1d0,1d0,10) r3=Integrate_SN(f5,-1d0,1d0,100) r4=Integrate_SA(f5,-1d0,1d0,0.1d0) r5=Integrate_SA(f5,-1d0,1d0,0.001d0) r6=Integrate_G7(f5,-1d0,1d0) r7=Integrate_K15(f5,-1d0,1d0) r8=Integrate_GK(f5,-1d0,1d0,0.001d0) write(*,'(" | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | "& ,F14.10," | ")')& re,r1,r2,r3,r4,r5,r6,r7,r8 write(*,'(" | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | "& ,F14.10," | ")')& 1d0,r1/re,r2/re,r3/re,r4/re,r5/re,r6/re,r7/re,r8/re write(*,*) '| | | | |',& ' | | | |' write(*,*) '6) f= sin(x)+0.5 Cos(4 x)+0.1 Cos(8x) [-3.5,3.5] - - - - - -',& ' - - - - - - - - - - - - - - - - - - - - - - - - - - - -|' re=0.2544244836314143d0 r1=Integrate_S5(f6,-3.5d0,3.5d0) r2=Integrate_SN(f6,-3.5d0,3.5d0,10) r3=Integrate_SN(f6,-3.5d0,3.5d0,100) r4=Integrate_SA(f6,-3.5d0,3.5d0,0.1d0) r5=Integrate_SA(f6,-3.5d0,3.5d0,0.001d0) r6=Integrate_G7(f6,-3.5d0,3.5d0) r7=Integrate_K15(f6,-3.5d0,3.5d0) r8=Integrate_GK(f6,-3.5d0,3.5d0,0.001d0) write(*,'(" | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | "& ,F14.10," | ")')& re,r1,r2,r3,r4,r5,r6,r7,r8 write(*,'(" | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | ",F14.10," | "& ,F14.10," | ")')& 1d0,r1/re,r2/re,r3/re,r4/re,r5/re,r6/re,r7/re,r8/re write(*,*) '-----------------------------------------------------------------------',& '-----------------------------------------------------------------------------------' contains !!! x^3 Polynomial function function f1(x) real*8::f1,x f1=(0.5d0+x)**3 end function f1 !!! x^6 Polynomial function function f2(x) real*8::f2,x f2=(0.5d0+x)**6 end function f2 !!! Squre root function f3(x) real*8::f3,x f3=Sqrt(1d0-x**2) end function f3 !!! Gauss function f4(x) real*8::f4,x f4=Exp(-5d0*x**2) end function f4 !!! Gauss function f5(x) real*8::f5,x f5=(0.5d0+x)**2*Exp(-5d0*x**2) end function f5 !!! Ugly function f6(x) real*8::f6,x f6=Sin(x)+0.5d0*Cos(4d0*x)+0.1d0*Cos(8d0*x) end function f6 end program example
7,378
36.647959
120
f90
artemide-public
artemide-public-master/Prog/Tests/TMDs-inKT_test.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !Program runs the test functions of TMDs_inKT and compare to exact values ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! program example use aTMDe_Numerics use aTMDe_control use TMDs_inKT implicit none integer::i,iMax real*8::qTMax,qTStep real*8::qT(1:45) real*8::TT(-5:5) real*8::ff(-5:5),x call artemide_Initialize('const-TMD-inKT',prefix='Prog/Tests/const-files/') ! call artemide_Initialize('const-DY_LO',prefix='/home/alexey/artemide_Repository/Constants-files/')! call artemide_SetNPparameters_TMDR((/1.86041d0, 0.029551d0/)) call artemide_SetNPparameters_uTMDPDF((/0.253434d0, 9.04351d0, 346.999d0, 2.47992d0, -5.69988d0, 0.d0, 0.d0/)) x=0.1d0 iMax=45 qt=(/0.001d0,0.005d0,0.01d0,0.025d0,0.05d0,0.1d0,0.25d0,0.5d0,0.75d0,1d0,& 1.5d0,2d0,3d0,4d0,5d0,6d0,7d0,8d0,9d0,10d0,& 12d0,14d0,16d0,18d0,20d0,23d0,26d0,29d0,32d0,35d0,38d0,41d0,45d0,49d0,& 53d0,57d0,61d0,65d0,70d0,75d0,80d0,85d0,90d0,95d0,100d0/) write(*,*) '-----------------------------------------------------------------------------------------' write(*,*) '--------------------Test program for TMDs_inKT-------------------------------------------' write(*,*) '--------------------Evaluates Fourier integrals and compare to exact values--------------' write(*,*) '--------------------Shows ratios of test/exact ------------------------------------------' write(*,*) '-----------------------------------------------------------------------------------------' write(*,*) '------------------ Exponential functions --(ratio)-----------------' do i=1,iMax TT=testTMD_kT(x,qT(i)) ff(-5)=3d0/pix2*(3d0*qt(i)**4-24d0*qt(i)**2*x**2+8d0*x**4)/(qT(i)**2d0+x**2)**(4.5d0) ff(-4)=3d0*x/pix2*(2d0*x**2-3d0*qt(i)**2)/(qT(i)**2d0+x**2)**(3.5d0) ff(-3)=1d0/pix2*(2d0*x**2-qt(i)**2)/(qT(i)**2d0+x**2)**(2.5d0) ff(-2)=x/pix2/(qT(i)**2d0+x**2)**(1.5d0) write(*,*) qT(i),TT(-5)/ff(-5),TT(-4)/ff(-4),TT(-3)/ff(-3),TT(-2)/ff(-2) call TMDs_inKT_ResetCounters() end do write(*,*) '------------------ Gaussian functions --(difference is show, since gauss decay too fast)----' do i=1,15 TT=testTMD_kT(x,qT(i)) ff(2)=(4d0*x-qt(i)**2)/(16d0*pi*x**3)*exp(-qt(i)**2/(4d0*x)) ff(3)=(1d0)/(4d0*pi*x)*exp(-qt(i)**2/(4d0*x)) write(*,*) qT(i),TT(2)-ff(2),TT(3)-ff(3) call TMDs_inKT_ResetCounters() end do write(*,*) '------------------ (oscilating+Weakly decaying) and (Weakly decaying) --(ratio)-------------' do i=1,iMax TT=testTMD_kT(x,qT(i)) ff(4)=Bessel_J0(2*sqrt(qt(i)*x))/(pix2*qt(i)) ff(5)=1/(pix2*qt(i)) write(*,*) qT(i),TT(4)/ff(4),TT(5)/ff(5) call TMDs_inKT_ResetCounters() end do ! x=0.01d0 ! do i=1,iMax ! ! TT=uTMDPDF_kT_5(x,qT(i),1) ! write(*,*) "{",qT(i),",", TT(1),"}," ! end do end program example
2,855
34.7
110
f90
artemide-public
artemide-public-master/Prog/Tests/uTMDPDF_test.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !Program makes a smooth plot at givem s,Q,y, in qT (no bin-integrations) ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! program example use aTMDe_control use uTMDPDF implicit none integer::i,iMax real*8::bMax,bStep,x real*8,allocatable::b(:) real*8::TT(-5:5) call artemide_Initialize('const-uTMDPDF',prefix='Prog/Tests/const-files/') ! call artemide_Initialize('const-DY_LO',prefix='/home/alexey/artemide_Repository/Constants-files/')! call artemide_SetNPparameters_uTMDPDF((/0.253434d0, 9.04351d0, 346.999d0, 2.47992d0, -5.69988d0, 0.d0, 0.d0/)) x=0.1 bMax=50d0 bStep=0.1d0 iMax=int(bMax/bStep) allocate(b(1:iMax)) do i=1,iMax b(i)=bStep*i end do do i=1,iMax TT=uTMDPDF_lowScale5(x,b(i),1) write(*,*) "{",b(i),",", TT(1),"}," end do end program example
877
21.512821
110
f90
artemide-public
artemide-public-master/harpy/__init__.py
0
0
0
py
artemide-public
artemide-public-master/harpy/harpy.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! harpy ! ! An interface for artemide ! ! A.Vladimirov (13.01.2019) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! module harpy use TMDs use TMDs_inKT use TMDX_DY use TMDX_SIDIS use aTMDe_control use uTMDPDF use uTMDFF use lpTMDPDF use wgtTMDPDF use TMDR_model use TMDR !!! this flag is requared to guaranty that artemide is not started twice (it lead to the crush) logical::started=.false. contains !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!GENERAL subroutine Initialize(file) character(len=*)::file if(started) then write(*,*) 'artemide already runs' else call artemide_Initialize(file) started=.true. end if end subroutine Initialize subroutine ShowStatistics() call artemide_ShowStatistics() end subroutine ShowStatistics !! call for parameters from the model subroutine SetReplica_TMDR(num) integer:: num call artemide_SetReplica_TMDR(num) end subroutine SetReplica_TMDR !! subroutine SetReplica_uTMDPDF(num) integer:: num call artemide_SetReplica_uTMDPDF(num) end subroutine SetReplica_uTMDPDF !! subroutine SetReplica_uTMDFF(num) integer:: num call artemide_SetReplica_uTMDFF(num) end subroutine SetReplica_uTMDFF !! subroutine SetReplica_lpTMDPDF(num) integer:: num call artemide_SetReplica_lpTMDPDF(num) end subroutine SetReplica_lpTMDPDF !! subroutine SetReplica_SiversTMDPDF(num) integer:: num call artemide_SetReplica_SiversTMDPDF(num) end subroutine SetReplica_SiversTMDPDF !! subroutine SetReplica_wgtTMDPDF(num) integer:: num call artemide_SetReplica_wgtTMDPDF(num) end subroutine SetReplica_wgtTMDPDF !!!Sets the non-pertrubative parameters lambda subroutine SetLambda_Main(lambdaIN) real*8,intent(in)::lambdaIN(:) call artemide_SetNPparameters(lambdaIN) end subroutine SetLambda_Main !!!Sets the non-pertrubative parameters lambda subroutine SetLambda_TMDR(lambdaIN) real*8,intent(in)::lambdaIN(:) call artemide_SetNPparameters_TMDR(lambdaIN) end subroutine SetLambda_TMDR !!!Sets the non-pertrubative parameters lambda subroutine SetLambda_uTMDPDF(lambdaIN) real*8,intent(in)::lambdaIN(:) call artemide_SetNPparameters_uTMDPDF(lambdaIN) end subroutine SetLambda_uTMDPDF !!!Sets the non-pertrubative parameters lambda subroutine SetLambda_uTMDFF(lambdaIN) real*8,intent(in)::lambdaIN(:) call artemide_SetNPparameters_uTMDFF(lambdaIN) end subroutine SetLambda_uTMDFF !!!Sets the non-pertrubative parameters lambda subroutine SetLambda_lpTMDPDF(lambdaIN) real*8,intent(in)::lambdaIN(:) call artemide_SetNPparameters_lpTMDPDF(lambdaIN) end subroutine SetLambda_lpTMDPDF !!!Sets the non-pertrubative parameters lambda subroutine SetLambda_SiversTMDPDF(lambdaIN) real*8,intent(in)::lambdaIN(:) call artemide_SetNPparameters_SiversTMDPDF(lambdaIN) end subroutine SetLambda_SiversTMDPDF !!!Sets the non-pertrubative parameters lambda subroutine SetLambda_wgtTMDPDF(lambdaIN) real*8,intent(in)::lambdaIN(:) call artemide_SetNPparameters_wgtTMDPDF(lambdaIN) end subroutine SetLambda_wgtTMDPDF !!!! this routine set the variations of scales !!!! it is used for the estimation of errors subroutine SetScaleVariation(c1_in,c2_in,c3_in,c4_in) real*8::c1_in,c2_in,c3_in,c4_in call artemide_SetScaleVariations(c1_in,c2_in,c3_in,c4_in) end subroutine SetScaleVariation !! reset the number for PDF replica for uTMDPDF subroutine SetPDFreplica(rep,hadron) integer::rep,hadron call uTMDPDF_SetPDFreplica(rep,hadron) end subroutine SetPDFreplica !! reset the number for PDF replica for uTMDFF subroutine SetFFreplica(rep,hadron) integer::rep,hadron call uTMDFF_SetFFreplica(rep,hadron) end subroutine SetFFreplica !! reset the number for PDF replica for lpTMDPDF subroutine SetlpPDFreplica(rep,hadron) integer::rep,hadron call lpTMDPDF_SetPDFreplica(rep,hadron) end subroutine SetlpPDFreplica !! reset the number for PDF replica for wgtTMDPDF subroutine SetwgtPDFreplica(rep,hadron) integer::rep,hadron call wgtTMDPDF_SetPDFreplica(rep,hadron) end subroutine SetwgtPDFreplica !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!! DNP function getDNP(b,mu,f) real*8::getDNP real*8::b,mu integer::f getDNP=DNP(mu,b,f) end function getDNP !!!!! optimal R function getR(b,mu,zeta,f) real*8::TMDR_Rzeta real*8::b,mu,zeta integer::f getR=TMDR_Rzeta_harpy(b,mu,zeta,f) end function getR !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!uTMDPDF !!!!!!!! upolarized TMDPDF ! vector (bbar,cbar,sbar,ubar,dbar,??,d,u,s,c,b) function uTMDPDF_5_Evolved(x,bt,muf,zetaf,hadron) real*8:: uTMDPDF_5_Evolved(-5:5) real*8:: x,bt,muf,zetaf integer::hadron uTMDPDF_5_Evolved=uTMDPDF_5(x,bt,muf,zetaf,hadron) end function uTMDPDF_5_Evolved ! vector (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function uTMDPDF_50_Evolved(x,bt,muf,zetaf,hadron) real*8:: uTMDPDF_50_Evolved(-5:5) real*8:: x,bt,muf,zetaf integer::hadron uTMDPDF_50_Evolved=uTMDPDF_50(x,bt,muf,zetaf,hadron) end function uTMDPDF_50_Evolved !!!!!!!! upolarized TMDPDF ! vector (bbar,cbar,sbar,ubar,dbar,??,d,u,s,c,b) function uTMDPDF_5_Optimal(x,bt,hadron) real*8:: uTMDPDF_5_Optimal(-5:5) real*8:: x,bt integer::hadron uTMDPDF_5_Optimal=uTMDPDF_5(x,bt,hadron) end function uTMDPDF_5_Optimal ! vector (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function uTMDPDF_50_Optimal(x,bt,hadron) real*8:: uTMDPDF_50_Optimal(-5:5) real*8:: x,bt integer::hadron uTMDPDF_50_Optimal=uTMDPDF_50(x,bt,hadron) end function uTMDPDF_50_Optimal !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!uTMDFF !!!!!!!! upolarized TMDFF ! vector (bbar,cbar,sbar,ubar,dbar,??,d,u,s,c,b) function uTMDFF_5_Evolved(x,bt,muf,zetaf,hadron) real*8:: uTMDFF_5_Evolved(-5:5) real*8:: x,bt,muf,zetaf integer::hadron uTMDFF_5_Evolved=uTMDFF_5(x,bt,muf,zetaf,hadron) end function uTMDFF_5_Evolved ! vector (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function uTMDFF_50_Evolved(x,bt,muf,zetaf,hadron) real*8:: uTMDFF_50_Evolved(-5:5) real*8:: x,bt,muf,zetaf integer::hadron uTMDFF_50_Evolved=uTMDFF_50(x,bt,muf,zetaf,hadron) end function uTMDFF_50_Evolved !!!!!!!! upolarized TMDFF ! vector (bbar,cbar,sbar,ubar,dbar,??,d,u,s,c,b) function uTMDFF_5_Optimal(x,bt,hadron) real*8:: uTMDFF_5_Optimal(-5:5) real*8:: x,bt integer::hadron uTMDFF_5_Optimal=uTMDFF_5(x,bt,hadron) end function uTMDFF_5_Optimal ! vector (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function uTMDFF_50_Optimal(x,bt,hadron) real*8:: uTMDFF_50_Optimal(-5:5) real*8:: x,bt integer::hadron uTMDFF_50_Optimal=uTMDFF_50(x,bt,hadron) end function uTMDFF_50_Optimal !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!SiversTMDPDF !!!!!!!! Sivers TMDFF ! vector (bbar,cbar,sbar,ubar,dbar,??,d,u,s,c,b) function SiversTMDPDF_5_Evolved(x,bt,muf,zetaf,hadron) real*8:: SiversTMDPDF_5_Evolved(-5:5) real*8:: x,bt,muf,zetaf integer::hadron SiversTMDPDF_5_Evolved=SiversTMDPDF_5(x,bt,muf,zetaf,hadron) end function SiversTMDPDF_5_Evolved ! vector (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function SiversTMDPDF_50_Evolved(x,bt,muf,zetaf,hadron) real*8:: SiversTMDPDF_50_Evolved(-5:5) real*8:: x,bt,muf,zetaf integer::hadron SiversTMDPDF_50_Evolved=SiversTMDPDF_50(x,bt,muf,zetaf,hadron) end function SiversTMDPDF_50_Evolved !!!!!!!! Sivers TMDPDF ! vector (bbar,cbar,sbar,ubar,dbar,??,d,u,s,c,b) function SiversTMDPDF_5_Optimal(x,bt,hadron) real*8:: SiversTMDPDF_5_Optimal(-5:5) real*8:: x,bt integer::hadron SiversTMDPDF_5_Optimal=SiversTMDPDF_5(x,bt,hadron) end function SiversTMDPDF_5_Optimal ! vector (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function SiversTMDPDF_50_Optimal(x,bt,hadron) real*8:: SiversTMDPDF_50_Optimal(-5:5) real*8:: x,bt integer::hadron SiversTMDPDF_50_Optimal=SiversTMDPDF_50(x,bt,hadron) end function SiversTMDPDF_50_Optimal !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!lpTMDPDF !!!!!!!! linearly polarized TMDFF ! vector (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function lpTMDPDF_50_Evolved(x,bt,muf,zetaf,hadron) real*8:: lpTMDPDF_50_Evolved(-5:5) real*8:: x,bt,muf,zetaf integer::hadron lpTMDPDF_50_Evolved=lpTMDPDF_50(x,bt,muf,zetaf,hadron) end function lpTMDPDF_50_Evolved ! vector (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function lpTMDPDF_50_Optimal(x,bt,hadron) real*8:: lpTMDPDF_50_Optimal(-5:5) real*8:: x,bt integer::hadron lpTMDPDF_50_Optimal=lpTMDPDF_50(x,bt,hadron) end function lpTMDPDF_50_Optimal !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!wgtTMDPDF !!!!!!!! wgt TMDFF ! vector (bbar,cbar,sbar,ubar,dbar,??,d,u,s,c,b) function wgtTMDPDF_5_Evolved(x,bt,muf,zetaf,hadron) real*8:: wgtTMDPDF_5_Evolved(-5:5) real*8:: x,bt,muf,zetaf integer::hadron wgtTMDPDF_5_Evolved=wgtTMDPDF_5(x,bt,muf,zetaf,hadron) end function wgtTMDPDF_5_Evolved ! vector (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function wgtTMDPDF_50_Evolved(x,bt,muf,zetaf,hadron) real*8:: wgtTMDPDF_50_Evolved(-5:5) real*8:: x,bt,muf,zetaf integer::hadron wgtTMDPDF_50_Evolved=wgtTMDPDF_50(x,bt,muf,zetaf,hadron) end function wgtTMDPDF_50_Evolved !!!!!!!! wgt TMDPDF ! vector (bbar,cbar,sbar,ubar,dbar,??,d,u,s,c,b) function wgtTMDPDF_5_Optimal(x,bt,hadron) real*8:: wgtTMDPDF_5_Optimal(-5:5) real*8:: x,bt integer::hadron wgtTMDPDF_5_Optimal=wgtTMDPDF_5(x,bt,hadron) end function wgtTMDPDF_5_Optimal ! vector (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function wgtTMDPDF_50_Optimal(x,bt,hadron) real*8:: wgtTMDPDF_50_Optimal(-5:5) real*8:: x,bt integer::hadron wgtTMDPDF_50_Optimal=wgtTMDPDF_50(x,bt,hadron) end function wgtTMDPDF_50_Optimal !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! TMDs IN KT !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!! upolarized TMDPDF ! vector (bbar,cbar,sbar,ubar,dbar,??,d,u,s,c,b) function uTMDPDF_kT_5_Evolved(x,bt,muf,zetaf,hadron) real*8:: uTMDPDF_kT_5_Evolved(-5:5) real*8:: x,bt,muf,zetaf integer::hadron uTMDPDF_kT_5_Evolved=uTMDPDF_kT_5(x,bt,muf,zetaf,hadron) end function uTMDPDF_kT_5_Evolved ! vector (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function uTMDPDF_kT_50_Evolved(x,bt,muf,zetaf,hadron) real*8:: uTMDPDF_kT_50_Evolved(-5:5) real*8:: x,bt,muf,zetaf integer::hadron uTMDPDF_kT_50_Evolved=uTMDPDF_kT_5(x,bt,muf,zetaf,hadron) end function uTMDPDF_kT_50_Evolved ! vector (bbar,cbar,sbar,ubar,dbar,??,d,u,s,c,b) function uTMDPDF_kT_5_Optimal(x,bt,hadron) real*8:: uTMDPDF_kT_5_Optimal(-5:5) real*8:: x,bt integer::hadron uTMDPDF_kT_5_Optimal=uTMDPDF_kT_5(x,bt,hadron) end function uTMDPDF_kT_5_Optimal ! vector (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function uTMDPDF_kT_50_Optimal(x,bt,hadron) real*8:: uTMDPDF_kT_50_Optimal(-5:5) real*8:: x,bt integer::hadron uTMDPDF_kT_50_Optimal=uTMDPDF_kT_5(x,bt,hadron) end function uTMDPDF_kT_50_Optimal !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!! upolarized TMDFF ! vector (bbar,cbar,sbar,ubar,dbar,??,d,u,s,c,b) function uTMDFF_kT_5_Evolved(x,bt,muf,zetaf,hadron) real*8:: uTMDFF_kT_5_Evolved(-5:5) real*8:: x,bt,muf,zetaf integer::hadron uTMDFF_kT_5_Evolved=uTMDFF_kT_5(x,bt,muf,zetaf,hadron) end function uTMDFF_kT_5_Evolved ! vector (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function uTMDFF_kT_50_Evolved(x,bt,muf,zetaf,hadron) real*8:: uTMDFF_kT_50_Evolved(-5:5) real*8:: x,bt,muf,zetaf integer::hadron uTMDFF_kT_50_Evolved=uTMDFF_kT_5(x,bt,muf,zetaf,hadron) end function uTMDFF_kT_50_Evolved ! vector (bbar,cbar,sbar,ubar,dbar,??,d,u,s,c,b) function uTMDFF_kT_5_Optimal(x,bt,hadron) real*8:: uTMDFF_kT_5_Optimal(-5:5) real*8:: x,bt integer::hadron uTMDFF_kT_5_Optimal=uTMDFF_kT_5(x,bt,hadron) end function uTMDFF_kT_5_Optimal ! vector (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function uTMDFF_kT_50_Optimal(x,bt,hadron) real*8:: uTMDFF_kT_50_Optimal(-5:5) real*8:: x,bt integer::hadron uTMDFF_kT_50_Optimal=uTMDFF_kT_5(x,bt,hadron) end function uTMDFF_kT_50_Optimal !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!! linearly polarized gluon TMDPDF ! vector (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function lpTMDPDF_kT_50_Evolved(x,bt,muf,zetaf,hadron) real*8:: lpTMDPDF_kT_50_Evolved(-5:5) real*8:: x,bt,muf,zetaf integer::hadron lpTMDPDF_kT_50_Evolved=lpTMDPDF_kT_50(x,bt,muf,zetaf,hadron) end function lpTMDPDF_kT_50_Evolved ! vector (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function lpTMDPDF_kT_50_Optimal(x,bt,hadron) real*8:: lpTMDPDF_kT_50_Optimal(-5:5) real*8:: x,bt integer::hadron lpTMDPDF_kT_50_Optimal=lpTMDPDF_kT_50(x,bt,hadron) end function lpTMDPDF_kT_50_Optimal !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!! Sivers TMDPDF ! vector (bbar,cbar,sbar,ubar,dbar,??,d,u,s,c,b) function SiversTMDPDF_kT_5_Evolved(x,bt,muf,zetaf,hadron) real*8:: SiversTMDPDF_kT_5_Evolved(-5:5) real*8:: x,bt,muf,zetaf integer::hadron SiversTMDPDF_kT_5_Evolved=SiversTMDPDF_kT_5(x,bt,muf,zetaf,hadron) end function SiversTMDPDF_kT_5_Evolved ! vector (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function SiversTMDPDF_kT_50_Evolved(x,bt,muf,zetaf,hadron) real*8:: SiversTMDPDF_kT_50_Evolved(-5:5) real*8:: x,bt,muf,zetaf integer::hadron SiversTMDPDF_kT_50_Evolved=SiversTMDPDF_kT_5(x,bt,muf,zetaf,hadron) end function SiversTMDPDF_kT_50_Evolved ! vector (bbar,cbar,sbar,ubar,dbar,??,d,u,s,c,b) function SiversTMDPDF_kT_5_Optimal(x,bt,hadron) real*8:: SiversTMDPDF_kT_5_Optimal(-5:5) real*8:: x,bt integer::hadron SiversTMDPDF_kT_5_Optimal=SiversTMDPDF_kT_5(x,bt,hadron) end function SiversTMDPDF_kT_5_Optimal ! vector (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function SiversTMDPDF_kT_50_Optimal(x,bt,hadron) real*8:: SiversTMDPDF_kT_50_Optimal(-5:5) real*8:: x,bt integer::hadron SiversTMDPDF_kT_50_Optimal=SiversTMDPDF_kT_5(x,bt,hadron) end function SiversTMDPDF_kT_50_Optimal !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!! wgt TMDPDF ! vector (bbar,cbar,sbar,ubar,dbar,??,d,u,s,c,b) function wgtTMDPDF_kT_5_Evolved(x,bt,muf,zetaf,hadron) real*8:: wgtTMDPDF_kT_5_Evolved(-5:5) real*8:: x,bt,muf,zetaf integer::hadron wgtTMDPDF_kT_5_Evolved=wgtTMDPDF_kT_5(x,bt,muf,zetaf,hadron) end function wgtTMDPDF_kT_5_Evolved ! vector (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function wgtTMDPDF_kT_50_Evolved(x,bt,muf,zetaf,hadron) real*8:: wgtTMDPDF_kT_50_Evolved(-5:5) real*8:: x,bt,muf,zetaf integer::hadron wgtTMDPDF_kT_50_Evolved=wgtTMDPDF_kT_5(x,bt,muf,zetaf,hadron) end function wgtTMDPDF_kT_50_Evolved ! vector (bbar,cbar,sbar,ubar,dbar,??,d,u,s,c,b) function wgtTMDPDF_kT_5_Optimal(x,bt,hadron) real*8:: wgtTMDPDF_kT_5_Optimal(-5:5) real*8:: x,bt integer::hadron wgtTMDPDF_kT_5_Optimal=wgtTMDPDF_kT_5(x,bt,hadron) end function wgtTMDPDF_kT_5_Optimal ! vector (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function wgtTMDPDF_kT_50_Optimal(x,bt,hadron) real*8:: wgtTMDPDF_kT_50_Optimal(-5:5) real*8:: x,bt integer::hadron wgtTMDPDF_kT_50_Optimal=wgtTMDPDF_kT_5(x,bt,hadron) end function wgtTMDPDF_kT_50_Optimal !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!DY CROSS-SECTION function DY_xSec_SingleN(process,s,qT,Q,y,includeCuts,CutParameters,Num) integer,intent(in),dimension(1:3)::process !the number of process real*8,intent(in)::s !Mandelshtam s real*8,intent(in),dimension(1:2)::qT !(qtMin,qtMax) real*8,intent(in),dimension(1:2)::Q !(Qmin,Qmax) real*8,intent(in),dimension(1:2)::y !(ymin,ymax) logical,intent(in)::includeCuts !include cuts real*8,intent(in),dimension(1:4)::CutParameters !(p1,p2,eta1,eta2) integer,intent(in)::Num !number of sections real*8::DY_xSec_Single real*8::X call xSec_DY(X,process,s,qT,Q,y,includeCuts,CutParameters,Num) DY_xSec_SingleN=X end function DY_xSec_SingleN function DY_xSec_Single(process,s,qT,Q,y,includeCuts,CutParameters) integer,intent(in),dimension(1:3)::process !the number of process real*8,intent(in)::s !Mandelshtam s real*8,intent(in),dimension(1:2)::qT !(qtMin,qtMax) real*8,intent(in),dimension(1:2)::Q !(Qmin,Qmax) real*8,intent(in),dimension(1:2)::y !(ymin,ymax) logical,intent(in)::includeCuts !include cuts real*8,intent(in),dimension(1:4)::CutParameters !(p1,p2,eta1,eta2) real*8::DY_xSec_Single real*8::X call xSec_DY(X,process,s,qT,Q,y,includeCuts,CutParameters) DY_xSec_Single=X end function DY_xSec_Single function DY_xSec_List(process,s,qT,Q,y,includeCuts,CutParameters,ListLength) integer,intent(in)::ListLength integer,intent(in),dimension(:,:)::process !the number of process real*8,intent(in),dimension(:)::s !Mandelshtam s real*8,intent(in),dimension(:,:)::qT !(qtMin,qtMax) real*8,intent(in),dimension(:,:)::Q !(Qmin,Qmax) real*8,intent(in),dimension(:,:)::y !(ymin,ymax) logical,intent(in),dimension(:)::includeCuts !include cuts real*8,intent(in),dimension(:,:)::CutParameters !(p1,p2,eta1,eta2) real*8,dimension(1:ListLength)::DY_xSec_List call xSec_DY_List(DY_xSec_List,process,s,qT,Q,y,includeCuts,CutParameters) end function DY_xSec_List function DY_xSec_BINLESS_List(process,s,qT,Q,y,includeCuts,CutParameters,ListLength) integer,intent(in)::ListLength integer,intent(in),dimension(:,:)::process !the number of process real*8,intent(in),dimension(:)::s !Mandelshtam s real*8,intent(in),dimension(:)::qT !(qtMin,qtMax) real*8,intent(in),dimension(:)::Q !(Qmin,Qmax) real*8,intent(in),dimension(:)::y !(ymin,ymax) logical,intent(in),dimension(:)::includeCuts !include cuts real*8,intent(in),dimension(:,:)::CutParameters !(p1,p2,eta1,eta2) real*8,dimension(1:ListLength)::DY_xSec_BINLESS_List call xSec_DY_List_BINLESS(DY_xSec_BINLESS_List,process,s,qT,Q,y,includeCuts,CutParameters) end function DY_xSec_BINLESS_List !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!SIDIS CROSS-SECTION function SIDIS_xSec_Single(process,s,pT,z,x,Q,doCut,Cuts) integer,intent(in),dimension(1:3)::process !the number of process real*8,intent(in)::s !Mandelshtam s real*8,intent(in),dimension(1:2)::pT !(qtMin,qtMax) real*8,intent(in),dimension(1:2)::z !(zmin,zmax) real*8,intent(in),dimension(1:2)::x !(xmin,xmax) real*8,intent(in),dimension(1:2)::Q !(Qmin,Qmax) logical,intent(in)::doCut !triger cuts real*8,intent(in),dimension(1:4)::Cuts !(ymin,yMax,W2min,W2max) real*8::SIDIS_xSec_Single call xSec_SIDIS(SIDIS_xSec_Single,process,s,pT,z,x,Q,doCut,Cuts) end function SIDIS_xSec_Single function SIDIS_xSec_Single_withMasses(process,s,pT,z,x,Q,doCut,Cuts,masses) integer,intent(in),dimension(1:3)::process !the number of process real*8,intent(in)::s !Mandelshtam s real*8,intent(in),dimension(1:2)::pT !(qtMin,qtMax) real*8,intent(in),dimension(1:2)::z !(zmin,zmax) real*8,intent(in),dimension(1:2)::x !(xmin,xmax) real*8,intent(in),dimension(1:2)::Q !(Qmin,Qmax) logical,intent(in)::doCut !triger cuts real*8,intent(in),dimension(1:4)::Cuts !(ymin,yMax,W2min,W2max) real*8,intent(in),dimension(1:2)::masses !(mTARGET,mPRODUCT) real*8::SIDIS_xSec_Single_withMasses call xSec_SIDIS(SIDIS_xSec_Single_withMasses,process,s,pT,z,x,Q,doCut,Cuts,masses) end function SIDIS_xSec_Single_withMasses function SIDIS_xSec_List(process,s,pT,z,x,Q,doCut,Cuts,masses,ListLength) integer,intent(in)::ListLength integer,intent(in),dimension(:,:)::process !the number of process real*8,intent(in),dimension(:)::s !Mandelshtam s real*8,intent(in),dimension(:,:)::pT !(qtMin,qtMax) real*8,intent(in),dimension(:,:)::z !(zmin,zmax) real*8,intent(in),dimension(:,:)::x !(xmin,xmax) real*8,intent(in),dimension(:,:)::Q !(Qmin,Qmax) logical,intent(in),dimension(:)::doCut !triger cuts real*8,intent(in),dimension(:,:)::Cuts !(ymin,yMax,W2min,W2max) real*8,intent(in),dimension(:,:)::masses !(mTARGET,mPRODUCT) real*8,dimension(1:ListLength)::SIDIS_xSec_List call xSec_SIDIS_List_forharpy(SIDIS_xSec_List,process,s,pT,z,x,Q,doCut,Cuts,masses) end function SIDIS_xSec_List function SIDIS_xSec_BINLESS_List(process,s,pT,z,x,Q,masses,ListLength) integer,intent(in)::ListLength integer,intent(in),dimension(:,:)::process !the number of process real*8,intent(in),dimension(:)::s !Mandelshtam s real*8,intent(in),dimension(:)::pT !(qt) real*8,intent(in),dimension(:)::z !(z) real*8,intent(in),dimension(:)::x !(x) real*8,intent(in),dimension(:)::Q !(Q) real*8,intent(in),dimension(:,:)::masses !(mTARGET,mPRODUCT) real*8,dimension(1:ListLength)::SIDIS_xSec_BINLESS_List call xSec_SIDIS_BINLESS_List_forharpy(SIDIS_xSec_BINLESS_List,process,s,pT,z,x,Q,masses) end function SIDIS_xSec_BINLESS_List end module harpy
23,628
32.374294
119
f90
artemide-public
artemide-public-master/harpy/harpy.py
###################################################################### # # artemide for python3 # A.Vladimirov (22.06.2020) # ###################################################################### import artemide import numpy def initialize(fileName): """ Initialization of artemide Parameters ---------- fileName : string The path to the constants-file Returns ------- None. """ import os.path if os.path.exists(fileName): artemide.harpy.initialize(fileName) if artemide.harpy.started: pass else: print("Welcome to harpy -- the python interface for artemide") else: raise FileNotFoundError('consts-file '+fileName+' NOT FOUND') def ShowStatistics(): """ Print the statistics Returns ------- None. """ artemide.harpy.showstatistics() def setNPparameters(l): """ Set NP parameters Parameters ---------- l : float array list of NP parameters Returns ------- None. """ if isinstance(l,list) or isinstance(l,numpy.ndarray): artemide.harpy.setlambda_main(numpy.asfortranarray(l)) else: raise TypeError() def setNPparameters_TMDR(l): """ Setting NP parameters for the model of TMDR Parameters ---------- l : float array or integer list of NP parameters, or the number of replica (if supported by model) Returns ------- None. """ if isinstance(l,list) or isinstance(l,numpy.ndarray): artemide.harpy.setlambda_tmdr(numpy.asfortranarray(l)) elif isinstance(l, int): artemide.harpy.setreplica_tmdr(l) else: raise TypeError() def setNPparameters_uTMDPDF(l): """ Setting NP parameters for the model of uTMDPDF Parameters ---------- l : float array or integer list of NP parameters, or the number of replica (if supported by model) Returns ------- None. """ if isinstance(l,list) or isinstance(l,numpy.ndarray): artemide.harpy.setlambda_utmdpdf(numpy.asfortranarray(l)) elif isinstance(l, int): artemide.harpy.setreplica_utmdpdf(l) else: raise TypeError() def setNPparameters_uTMDFF(l): """ Setting NP parameters for the model of uTMDFF Parameters ---------- l : float array or integer list of NP parameters, or the number of replica (if supported by model) Returns ------- None. """ if isinstance(l,list) or isinstance(l,numpy.ndarray): artemide.harpy.setlambda_utmdff(numpy.asfortranarray(l)) elif isinstance(l, int): artemide.harpy.setreplica_utmdff(l) else: raise TypeError() def setNPparameters_lpTMDPDF(l): """ Setting NP parameters for the model of lpTMDPDF Parameters ---------- l : float array or integer list of NP parameters, or the number of replica (if supported by model) Returns ------- None. """ if isinstance(l,list) or isinstance(l,numpy.ndarray): artemide.harpy.setlambda_lptmdpdf(numpy.asfortranarray(l)) elif isinstance(l, int): artemide.harpy.setreplica_lptmdpdf(l) else: raise TypeError() def setNPparameters_SiversTMDPDF(l): """ Setting NP parameters for the model of SiversTMDPDF Parameters ---------- l : float array or integer list of NP parameters, or the number of replica (if supported by model) Returns ------- None. """ if isinstance(l,list) or isinstance(l,numpy.ndarray): artemide.harpy.setlambda_siverstmdpdf(numpy.asfortranarray(l)) elif isinstance(l, int): artemide.harpy.setreplica_siverstmdpdf(l) else: raise TypeError() def setNPparameters_wgtTMDPDF(l): """ Setting NP parameters for the model of wgtTMDPDF Parameters ---------- l : float array or integer list of NP parameters, or the number of replica (if supported by model) Returns ------- None. """ if isinstance(l,list) or isinstance(l,numpy.ndarray): artemide.harpy.setlambda_wgttmdpdf(numpy.asfortranarray(l)) elif isinstance(l, int): artemide.harpy.setreplica_wgttmdpdf(l) else: raise TypeError() def varyScales(c1,c2,c3,c4): """ Set new scale variation parameters Parameters ---------- c1 : float Scale variation parameter c1 c2 : float Scale variation parameter c2 c3 : float Scale variation parameter c3 c4 : float Scale variation parameter c4 Returns ------- None. """ if not isinstance(c1,float): raise TypeError("c1 is not float") if not isinstance(c2,float): raise TypeError("c2 is not float") if not isinstance(c3,float): raise TypeError("c3 is not float") if not isinstance(c4,float): raise TypeError("c4 is not float") artemide.harpy.setscalevariation(c1,c2,c3,c4) def _IsKinematicProper(s,qT,Q,y): """ Checks the point for the proper kinematics Especially for the correct domain of X. """ gridX=0.00001 if qT[0]>qT[1]: print('Wrong order of qT') return False if Q[0]>Q[1]: print('Wrong order of Q') return False if y[0]>y[1]: print('Wrong order of y') return False if qT[1]>Q[0]: print('qT (',qT[1],') > Q(', Q[0],')') return False if Q[1]>s: print('Q (',Q[1],') > s(', s,')') return False x1x2=(Q[0]**2+qT[0]**2)/s ymax=-numpy.log(numpy.sqrt(x1x2)) ymin=-ymax if y[1]<ymin or y[0]>ymax: print('y ',y, 'is outside physical region ',[ymin,ymax]) return False if y[1]>ymax: if x1x2<gridX: print('x outside of the grid') return False else: if numpy.sqrt(x1x2)*numpy.exp(-y[1])<gridX: print('x outside of the grid') return False if y[0]<ymin: if x1x2<gridX: print('x outside of the grid') return False else: if numpy.sqrt(x1x2)*numpy.exp(y[0])<gridX: print('x outside of the grid') return False x1x2=(Q[0]**2+qT[0]**2)/s ymax=-numpy.log(numpy.sqrt(x1x2)) ymin=-ymax if y[1]<ymin or y[0]>ymax: print('y ',y, 'is outside physical region ',[ymin,ymax]) return False if y[1]>ymax: if x1x2<gridX: print('x outside of the grid') return False else: if numpy.sqrt(x1x2)*numpy.exp(-y[1])<gridX: print('x outside of the grid') return False if y[0]<ymin: if x1x2<gridX: print('x outside of the grid') return False else: if numpy.sqrt(x1x2)*numpy.exp(y[0])<gridX: print('x outside of the grid') return False return True def setPDFreplica(n,h=1): """ Changes the replica for PDF input. This is a temporary function will be changed in future versions Parameters ---------- n : Integer Number of PDF replica Returns ------- None. """ if not isinstance(n,int): raise TypeError() artemide.harpy.setpdfreplica(n,h) def sethPDFreplica(n,h=1): """ Changes the replica for PDF input. This is a temporary function will be changed in future versions Parameters ---------- n : Integer Number of PDF replica Returns ------- None. """ if not isinstance(n,int): raise TypeError() artemide.harpy.setwgtpdfreplica(n,h) def get_DNP(b,mu,f=1): if not isinstance(b,float): raise ValueError("parameter b must be float") elif (b<0.): b_internal=-b else: b_internal=b if not isinstance(mu,float): raise ValueError("parameter mu must be float") elif (mu<1.): raise ValueError("parameter mu must be > 1 GeV") if not isinstance(f, int): raise ValueError("parameter h must be integer") if(f==0): return artemide.harpy.getdnp(b_internal,mu,0) else: return artemide.harpy.getdnp(b_internal,mu,1) def get_R(b,mu,zeta,f=1): if not isinstance(b,float): raise ValueError("parameter b must be float") elif (b<0.): b_internal=-b else: b_internal=b if not isinstance(mu,float): raise ValueError("parameter mu must be float") elif (mu<1.): raise ValueError("parameter mu must be > 1 GeV") if not isinstance(zeta,float): raise ValueError("parameter zeta must be float") elif (zeta<1.): raise ValueError("parameter zeta must be > 1 GeV") if not isinstance(f, int): raise ValueError("parameter h must be integer") if(f==0): return artemide.harpy.getr(b_internal,mu,zeta,0) else: return artemide.harpy.getr(b_internal,mu,zeta,1) def get_uTMDPDF(x,b,h,mu=-1.,zeta=-1.,includeGluon=False): """ Return the string of unpolarized TMDPDF (bbar,cbar,sbar,ubar,dbar,gluon,d,u,s,c,b) If both mu and zeta are not specified (or negative) return optimal if mu is positive returns evolved to mu,mu^2 Parameters ---------- x : float in [0,1] Bjorken x b : float >0 spatial parameter h : integer 1,2,3,... Hadron number mu : float, optional Scale of TMD mu [GeV]. The default is -1. zeta : float, optional Scale of TMD zeta [GeV]. The default is -1. includeGluon : bool, optional Include gluons or not. The default is False. Returns ------- [list of float] (bbar,cbar,sbar,ubar,dbar,gluon,d,u,s,c,b) """ if not isinstance(x, float): raise ValueError("parameter x must be float") elif (x<0.) or (x>1.): raise ValueError("parameter x must be in [0,1]") if not isinstance(b, float): raise ValueError("parameter b must be float") elif (b<0.): b_internal=-b else: b_internal=b if not isinstance(h, int): raise ValueError("parameter h must be integer") elif h<1: raise ValueError("parameter h expected to be positive integer") if not isinstance(mu, float): raise ValueError("parameter mu must be float") if not isinstance(zeta, float): raise ValueError("parameter zeta must be float") if mu<0.: if includeGluon: return artemide.harpy.utmdpdf_50_optimal(x,b_internal,h) else: return artemide.harpy.utmdpdf_5_optimal(x,b_internal,h) elif zeta<0: if includeGluon: return artemide.harpy.utmdpdf_50_evolved(x,b_internal,mu,mu**2,h) else: return artemide.harpy.utmdpdf_5_evolved(x,b_internal,mu,mu**2,h) else: if includeGluon: return artemide.harpy.utmdpdf_50_evolved(x,b_internal,mu,zeta,h) else: return artemide.harpy.utmdpdf_5_evolved(x,b_internal,mu,zeta,h) def get_uTMDFF(x,b,h,mu=-1.,zeta=-1.,includeGluon=False): """ Return the string of unpolarized TMDFF (bbar,cbar,sbar,ubar,dbar,gluon,d,u,s,c,b) If both mu and zeta are not specified (or negative) return optimal if mu is positive returns evolved to mu,mu^2 Parameters ---------- x : float in [0,1] Bjorken x b : float >0 spatial parameter h : integer 1,2,3,... Hadron number mu : float, optional Scale of TMD mu [GeV]. The default is -1. zeta : float, optional Scale of TMD zeta [GeV]. The default is -1. includeGluon : bool, optional Include gluons or not. The default is False. Returns ------- [list of float] (bbar,cbar,sbar,ubar,dbar,gluon,d,u,s,c,b) """ if not isinstance(x, float): raise ValueError("parameter x must be float") elif (x<0.) or (x>1.): raise ValueError("parameter x must be in [0,1]") if not isinstance(b, float): raise ValueError("parameter b must be float") elif (b<0.): b_internal=-b else: b_internal=b if not isinstance(h, int): raise ValueError("parameter x must be float") elif h<1: raise ValueError("parameter h expected to be positive integer") if not isinstance(mu, float): raise ValueError("parameter mu must be float") if not isinstance(zeta, float): raise ValueError("parameter zeta must be float") if mu<0.: if includeGluon: return artemide.harpy.utmdff_50_optimal(x,b_internal,h) else: return artemide.harpy.utmdff_5_optimal(x,b_internal,h) elif zeta<0: if includeGluon: return artemide.harpy.utmdff_50_evolved(x,b_internal,mu,mu**2,h) else: return artemide.harpy.utmdff_5_evolved(x,b_internal,mu,mu**2,h) else: if includeGluon: return artemide.harpy.utmdff_50_evolved(x,b_internal,mu,zeta,h) else: return artemide.harpy.utmdff_5_evolved(x,b_internal,mu,zeta,h) def get_lpTMDPDF(x,b,h,mu=-1.,zeta=-1.,includeGluon=False): """ Return the string of linearly polarized gluon TMDFF (bbar,cbar,sbar,ubar,dbar,gluon,d,u,s,c,b) If both mu and zeta are not specified (or negative) return optimal if mu is positive returns evolved to mu,mu^2 Parameters ---------- x : float in [0,1] Bjorken x b : float >0 spatial parameter h : integer 1,2,3,... Hadron number mu : float, optional Scale of TMD mu [GeV]. The default is -1. zeta : float, optional Scale of TMD zeta [GeV]. The default is -1. includeGluon : bool, optional IGNORED Returns ------- [list of float] (bbar,cbar,sbar,ubar,dbar,gluon,d,u,s,c,b) """ if not isinstance(x, float): raise ValueError("parameter x must be float") elif (x<0.) or (x>1.): raise ValueError("parameter x must be in [0,1]") if not isinstance(b, float): raise ValueError("parameter b must be float") elif (b<0.): b_internal=-b else: b_internal=b if not isinstance(h, int): raise ValueError("parameter x must be float") elif h<1: raise ValueError("parameter h expected to be positive integer") if not isinstance(mu, float): raise ValueError("parameter mu must be float") if not isinstance(zeta, float): raise ValueError("parameter zeta must be float") if mu<0.: return artemide.harpy.lptmdpdf_50_optimal(x,b_internal,h) elif zeta<0: return artemide.harpy.lptmdpdf_50_evolved(x,b_internal,mu,mu**2,h) else: return artemide.harpy.lptmdpdf_50_evolved(x,b_internal,mu,zeta,h) def get_SiversTMDPDF(x,b,h,mu=-1.,zeta=-1.,includeGluon=False): """ Return the string of Sivers TMDPDF (bbar,cbar,sbar,ubar,dbar,gluon,d,u,s,c,b) If both mu and zeta are not specified (or negative) return optimal if only mu is positive returns evolved to mu,mu^2 if mu and zeta are positive returns evolved to mu,zeta Parameters ---------- x : float in [0,1] Bjorken x b : float >0 spatial parameter h : integer 1,2,3,... Hadron number mu : float, optional Scale of TMD mu [GeV]. The default is -1. zeta : float, optional Scale of TMD zeta [GeV]. The default is -1. includeGluon : bool, optional Include gluons or not. The default is False. Returns ------- [list of float] (bbar,cbar,sbar,ubar,dbar,gluon,d,u,s,c,b) """ if not isinstance(x, float): raise ValueError("parameter x must be float") elif (x<0.) or (x>1.): raise ValueError("parameter x must be in [0,1]") if not isinstance(b, float): raise ValueError("parameter b must be float") elif (b<0.): b_internal=-b else: b_internal=b if not isinstance(h, int): raise ValueError("parameter x must be float") elif h<1: raise ValueError("parameter h expected to be positive integer") if not isinstance(mu, float): raise ValueError("parameter mu must be float") if not isinstance(zeta, float): raise ValueError("parameter zeta must be float") if mu<0.: if includeGluon: return artemide.harpy.siverstmdpdf_50_optimal(x,b_internal,h) else: return artemide.harpy.siverstmdpdf_5_optimal(x,b_internal,h) elif zeta<0: if includeGluon: return artemide.harpy.siverstmdpdf_50_evolved(x,b_internal,mu,mu**2,h) else: return artemide.harpy.siverstmdpdf_5_evolved(x,b_internal,mu,mu**2,h) else: if includeGluon: return artemide.harpy.siverstmdpdf_50_evolved(x,b_internal,mu,zeta,h) else: return artemide.harpy.siverstmdpdf_5_evolved(x,b_internal,mu,zeta,h) def get_wgtTMDPDF(x,b,h,mu=-1.,zeta=-1.,includeGluon=False): """ Return the string of wgt TMDPDF (bbar,cbar,sbar,ubar,dbar,gluon,d,u,s,c,b) If both mu and zeta are not specified (or negative) return optimal if only mu is positive returns evolved to mu,mu^2 if mu and zeta are positive returns evolved to mu,zeta Parameters ---------- x : float in [0,1] Bjorken x b : float >0 spatial parameter h : integer 1,2,3,... Hadron number mu : float, optional Scale of TMD mu [GeV]. The default is -1. zeta : float, optional Scale of TMD zeta [GeV]. The default is -1. includeGluon : bool, optional Include gluons or not. The default is False. Returns ------- [list of float] (bbar,cbar,sbar,ubar,dbar,gluon,d,u,s,c,b) """ if not isinstance(x, float): raise ValueError("parameter x must be float") elif (x<0.) or (x>1.): raise ValueError("parameter x must be in [0,1]") if not isinstance(b, float): raise ValueError("parameter b must be float") elif (b<0.): b_internal=-b else: b_internal=b if not isinstance(h, int): raise ValueError("parameter x must be float") elif h<1: raise ValueError("parameter h expected to be positive integer") if not isinstance(mu, float): raise ValueError("parameter mu must be float") if not isinstance(zeta, float): raise ValueError("parameter zeta must be float") if mu<0.: if includeGluon: return artemide.harpy.wgttmdpdf_50_optimal(x,b_internal,h) else: return artemide.harpy.wgttmdpdf_5_optimal(x,b_internal,h) elif zeta<0: if includeGluon: return artemide.harpy.wgttmdpdf_50_evolved(x,b_internal,mu,mu**2,h) else: return artemide.harpy.wgttmdpdf_5_evolved(x,b_internal,mu,mu**2,h) else: if includeGluon: return artemide.harpy.wgttmdpdf_50_evolved(x,b_internal,mu,zeta,h) else: return artemide.harpy.wgttmdpdf_5_evolved(x,b_internal,mu,zeta,h) ############################################################################### def get_uTMDPDF_kT(x,kT,h,mu=-1.,zeta=-1.,includeGluon=False): """ Return the string of unpolarized TMDPDF in kT-space (bbar,cbar,sbar,ubar,dbar,gluon,d,u,s,c,b) If both mu and zeta are not specified (or negative) return optimal if mu is positive returns evolved to mu,mu^2 Parameters ---------- x : float in [0,1] Bjorken x kT : float >0 spatial parameter h : integer 1,2,3,... Hadron number mu : float, optional Scale of TMD mu [GeV]. The default is -1. zeta : float, optional Scale of TMD zeta [GeV]. The default is -1. includeGluon : bool, optional Include gluons or not. The default is False. Returns ------- [list of float] (bbar,cbar,sbar,ubar,dbar,gluon,d,u,s,c,b) """ if not isinstance(x, float): raise ValueError("parameter x must be float") elif (x<0.) or (x>1.): raise ValueError("parameter x must be in [0,1]") if not isinstance(kT, float): raise ValueError("parameter kT must be float") elif (kT<0.): kT_internal=-kT else: kT_internal=kT if not isinstance(h, int): raise ValueError("parameter h must be integer") elif h<1: raise ValueError("parameter h expected to be positive integer") if not isinstance(mu, float): raise ValueError("parameter mu must be float") if not isinstance(zeta, float): raise ValueError("parameter zeta must be float") if mu<0.: if includeGluon: return artemide.harpy.utmdpdf_kt_50_optimal(x,kT_internal,h) else: return artemide.harpy.utmdpdf_kt_5_optimal(x,kT_internal,h) elif zeta<0: if includeGluon: return artemide.harpy.utmdpdf_kt_50_evolved(x,kT_internal,mu,mu**2,h) else: return artemide.harpy.utmdpdf_kt_5_evolved(x,kT_internal,mu,mu**2,h) else: if includeGluon: return artemide.harpy.utmdpdf_kt_50_evolved(x,kT_internal,mu,zeta,h) else: return artemide.harpy.utmdpdf_kt_5_evolved(x,kT_internal,mu,zeta,h) def get_uTMDFF_kT(x,kT,h,mu=-1.,zeta=-1.,includeGluon=False): """ Return the string of unpolarized TMDFF in kT-space (bbar,cbar,sbar,ubar,dbar,gluon,d,u,s,c,b) If both mu and zeta are not specified (or negative) return optimal if mu is positive returns evolved to mu,mu^2 Parameters ---------- x : float in [0,1] Bjorken x kT : float >0 spatial parameter h : integer 1,2,3,... Hadron number mu : float, optional Scale of TMD mu [GeV]. The default is -1. zeta : float, optional Scale of TMD zeta [GeV]. The default is -1. includeGluon : bool, optional Include gluons or not. The default is False. Returns ------- [list of float] (bbar,cbar,sbar,ubar,dbar,gluon,d,u,s,c,b) """ if not isinstance(x, float): raise ValueError("parameter x must be float") elif (x<0.) or (x>1.): raise ValueError("parameter x must be in [0,1]") if not isinstance(kT, float): raise ValueError("parameter kT must be float") elif (kT<0.): kT_internal=-kT else: kT_internal=kT if not isinstance(h, int): raise ValueError("parameter x must be float") elif h<1: raise ValueError("parameter h expected to be positive integer") if not isinstance(mu, float): raise ValueError("parameter mu must be float") if not isinstance(zeta, float): raise ValueError("parameter zeta must be float") if mu<0.: if includeGluon: return artemide.harpy.utmdff_kt_50_optimal(x,kT_internal,h) else: return artemide.harpy.utmdff_kt_5_optimal(x,kT_internal,h) elif zeta<0: if includeGluon: return artemide.harpy.utmdff_kt_50_evolved(x,kT_internal,mu,mu**2,h) else: return artemide.harpy.utmdff_kt_5_evolved(x,kT_internal,mu,mu**2,h) else: if includeGluon: return artemide.harpy.utmdff_kt_50_evolved(x,kT_internal,mu,zeta,h) else: return artemide.harpy.utmdff_kt_5_evolved(x,kT_internal,mu,zeta,h) def get_lpTMDPDF_kT(x,kT,h,mu=-1.,zeta=-1.,includeGluon=False): """ Return the string of linearly polarized gluon TMDFF in kT-space (bbar,cbar,sbar,ubar,dbar,gluon,d,u,s,c,b) If both mu and zeta are not specified (or negative) return optimal if mu is positive returns evolved to mu,mu^2 Parameters ---------- x : float in [0,1] Bjorken x kT : float >0 spatial parameter h : integer 1,2,3,... Hadron number mu : float, optional Scale of TMD mu [GeV]. The default is -1. zeta : float, optional Scale of TMD zeta [GeV]. The default is -1. includeGluon : bool, optional IGNORED Returns ------- [list of float] (bbar,cbar,sbar,ubar,dbar,gluon,d,u,s,c,b) """ if not isinstance(x, float): raise ValueError("parameter x must be float") elif (x<0.) or (x>1.): raise ValueError("parameter x must be in [0,1]") if not isinstance(kT, float): raise ValueError("parameter kT must be float") elif (kT<0.): kT_internal=-kT else: kT_internal=kT if not isinstance(h, int): raise ValueError("parameter x must be float") elif h<1: raise ValueError("parameter h expected to be positive integer") if not isinstance(mu, float): raise ValueError("parameter mu must be float") if not isinstance(zeta, float): raise ValueError("parameter zeta must be float") if mu<0.: return artemide.harpy.lptmdpdf_kt_50_optimal(x,kT_internal,h) elif zeta<0: return artemide.harpy.lptmdpdf_kt_50_evolved(x,kT_internal,mu,mu**2,h) else: return artemide.harpy.lptmdpdf_kt_50_evolved(x,kT_internal,mu,zeta,h) def get_SiversTMDPDF_kT(x,kT,h,mu=-1.,zeta=-1.,includeGluon=False): """ Return the string of Sivers TMDPDF in kT-space (bbar,cbar,sbar,ubar,dbar,gluon,d,u,s,c,b) If both mu and zeta are not specified (or negative) return optimal if mu is positive returns evolved to mu,mu^2 Parameters ---------- x : float in [0,1] Bjorken x kT : float >0 spatial parameter h : integer 1,2,3,... Hadron number mu : float, optional Scale of TMD mu [GeV]. The default is -1. zeta : float, optional Scale of TMD zeta [GeV]. The default is -1. includeGluon : bool, optional Include gluons or not. The default is False. Returns ------- [list of float] (bbar,cbar,sbar,ubar,dbar,gluon,d,u,s,c,b) """ if not isinstance(x, float): raise ValueError("parameter x must be float") elif (x<0.) or (x>1.): raise ValueError("parameter x must be in [0,1]") if not isinstance(kT, float): raise ValueError("parameter kT must be float") elif (kT<0.): kT_internal=-kT else: kT_internal=kT if not isinstance(h, int): raise ValueError("parameter x must be float") elif h<1: raise ValueError("parameter h expected to be positive integer") if not isinstance(mu, float): raise ValueError("parameter mu must be float") if not isinstance(zeta, float): raise ValueError("parameter zeta must be float") if mu<0.: if includeGluon: return artemide.harpy.siverstmdpdf_kt_50_optimal(x,kT_internal,h) else: return artemide.harpy.siverstmdpdf_kt_5_optimal(x,kT_internal,h) elif zeta<0: if includeGluon: return artemide.harpy.siverstmdpdf_kt_50_evolved(x,kT_internal,mu,mu**2,h) else: return artemide.harpy.siverstmdpdf_kt_5_evolved(x,kT_internal,mu,mu**2,h) else: if includeGluon: return artemide.harpy.siverstmdpdf_kt_50_evolved(x,kT_internal,mu,zeta,h) else: return artemide.harpy.siverstmdpdf_kt_5_evolved(x,kT_internal,mu,zeta,h) def get_wgtTMDPDF_kT(x,kT,h,mu=-1.,zeta=-1.,includeGluon=False): """ Return the string of Worm-gear T TMDPDF in kT-space (bbar,cbar,sbar,ubar,dbar,gluon,d,u,s,c,b) If both mu and zeta are not specified (or negative) return optimal if mu is positive returns evolved to mu,mu^2 Parameters ---------- x : float in [0,1] Bjorken x kT : float >0 spatial parameter h : integer 1,2,3,... Hadron number mu : float, optional Scale of TMD mu [GeV]. The default is -1. zeta : float, optional Scale of TMD zeta [GeV]. The default is -1. includeGluon : bool, optional Include gluons or not. The default is False. Returns ------- [list of float] (bbar,cbar,sbar,ubar,dbar,gluon,d,u,s,c,b) """ if not isinstance(x, float): raise ValueError("parameter x must be float") elif (x<0.) or (x>1.): raise ValueError("parameter x must be in [0,1]") if not isinstance(kT, float): raise ValueError("parameter kT must be float") elif (kT<0.): kT_internal=-kT else: kT_internal=kT if not isinstance(h, int): raise ValueError("parameter x must be float") elif h<1: raise ValueError("parameter h expected to be positive integer") if not isinstance(mu, float): raise ValueError("parameter mu must be float") if not isinstance(zeta, float): raise ValueError("parameter zeta must be float") if mu<0.: if includeGluon: return artemide.harpy.wgttmdpdf_kt_50_optimal(x,kT_internal,h) else: return artemide.harpy.wgttmdpdf_kt_5_optimal(x,kT_internal,h) elif zeta<0: if includeGluon: return artemide.harpy.wgttmdpdf_kt_50_evolved(x,kT_internal,mu,mu**2,h) else: return artemide.harpy.wgttmdpdf_kt_5_evolved(x,kT_internal,mu,mu**2,h) else: if includeGluon: return artemide.harpy.wgttmdpdf_kt_50_evolved(x,kT_internal,mu,zeta,h) else: return artemide.harpy.wgttmdpdf_kt_5_evolved(x,kT_internal,mu,zeta,h) ############################################################################### class DY: """Static class for evaluation of DY cross-section """ @staticmethod def xSec(process,s,qT,Q,y,includeCuts,CutParameters=None,Num=None): """Cross-section for DY integrated over bin Arguments: (process,s,qT,Q,y,includeCuts,CutParameters=None,Num=4) process = (int, int, int) (see definition in artemide manual) s = Mandelshtam variable s qT = (qT-Min,qT-Max) boundaries of bin in qT Q = (Q-Min,Q-Max) boundaries of bin in Q y = (y-Min,y-Max) boundaries of bin in y includeCuts = True/False to include leptonic cuts CutParameters = (real,real,real,real) must be if includeCuts=True (see definition in artemide manual) Num = even integer, number of section of qt-integration (defaul=4) """ if not includeCuts: cc=[0,0,0,0] else: cc=CutParameters if Num==None: return artemide.harpy.dy_xsec_single(\ numpy.asfortranarray(process),\ s,\ numpy.asfortranarray(qT),\ numpy.asfortranarray(Q),\ numpy.asfortranarray(y),\ includeCuts,\ numpy.asfortranarray(cc)) else: return artemide.harpy.dy_xsec_single(\ numpy.asfortranarray(process),\ s,\ numpy.asfortranarray(qT),\ numpy.asfortranarray(Q),\ numpy.asfortranarray(y),\ includeCuts,\ numpy.asfortranarray(cc),\ Num) @staticmethod def xSecList(process,s,qT,Q,y,includeCuts,CutParameters): return artemide.harpy.dy_xsec_list(numpy.asfortranarray(process),\ numpy.asfortranarray(s),\ numpy.asfortranarray(qT),\ numpy.asfortranarray(Q),\ numpy.asfortranarray(y),\ numpy.asfortranarray(includeCuts),\ numpy.asfortranarray(CutParameters),\ len(s)) @staticmethod def xSecListBINLESS(process,s,qT,Q,y,includeCuts,CutParameters): """ The evaluation of cross-section at a single point. """ #print len(s) return artemide.harpy.dy_xsec_binless_list(numpy.asfortranarray(process),\ numpy.asfortranarray(s),\ numpy.asfortranarray(qT),\ numpy.asfortranarray(Q),\ numpy.asfortranarray(y),\ numpy.asfortranarray(includeCuts),\ numpy.asfortranarray(CutParameters),\ len(s)) ############################################################################### class SIDIS: """Static class for evaluation of SIDIS cross-section """ @staticmethod def xSec(process,s,pT,z,x,Q,includeCuts,CutParameters=None,masses=[0.938,0.130]): """Cross-section for DY integrated over bin Arguments: (process,s,qT,z,x,Q,includeCuts,CutParameters=None) process = (int, int, int) (see definition in artemide manual) s = Mandelshtan variable s pT = (pT-Min,pT-Max) boundaries of bin in pT z = (z-Min,z-Max) boundaries of bin in z x = (x-Min,x-Max) boundaries of bin in x Q = (Q-Min,Q-Max) boundaries of bin in Q includeCuts = True/False to include leptonic cuts CutParameters = (real,real,real,real) must be if includeCuts=True (see definition in artemide manual) """ if not includeCuts: cc=[0,0,0,100] else: cc=CutParameters return artemide.harpy.sidis_xsec_single_withmasses(\ numpy.asfortranarray(process),\ s,\ numpy.asfortranarray(pT),\ numpy.asfortranarray(z),\ numpy.asfortranarray(x),\ numpy.asfortranarray(Q),\ includeCuts,\ numpy.asfortranarray(cc), numpy.asfortranarray(masses)) @staticmethod def xSecList(process,s,pT,z,x,Q,includeCuts,CutParameters,masses): return artemide.harpy.sidis_xsec_list(numpy.asfortranarray(process),\ numpy.asfortranarray(s),\ numpy.asfortranarray(pT),\ numpy.asfortranarray(z),\ numpy.asfortranarray(x),\ numpy.asfortranarray(Q),\ numpy.asfortranarray(includeCuts),\ numpy.asfortranarray(CutParameters),\ numpy.asfortranarray(masses),\ len(s)) @staticmethod def xSecListBINLESS(process,s,pT,z,x,Q,masses): """ The evaluation of cross-section at a single point. No binning effects. Consiquetly, no cuts. """ return artemide.harpy.sidis_xsec_binless_list(numpy.asfortranarray(process),\ numpy.asfortranarray(s),\ numpy.asfortranarray(pT),\ numpy.asfortranarray(z),\ numpy.asfortranarray(x),\ numpy.asfortranarray(Q),\ numpy.asfortranarray(masses),\ len(s))
37,155
30.355274
119
py
artemide-public
artemide-public-master/harpy/harpy2.py
###################################################################### # # artemide for python2 # A.Vladimirov (16.01.2019) # ###################################################################### import artemide import numpy def initialize(fileName): """Initialization of artemide Argument: order = LO, NLO, NNLO """ artemide.harpy.initialize(fileName) if artemide.harpy.started: pass else: print "Welcome to harpy -- the python interface for artemide" def ShowStatistics(): artemide.harpy.showstatistics() def setNPparameters(l): """Setting NP parameters for the model Arguments: (l) Argument overloading: (integer) = loads replica (array) = set array on NP parameters """ if isinstance(l,list) or isinstance(l,numpy.ndarray): artemide.harpy.setlambda_main(numpy.asfortranarray(l)) else: print 'ERROR: argument must be list' def setNPparameters_TMDR(l): """Setting NP parameters for the model of TMDR Arguments: (l) Argument overloading: (integer) = loads replica (array) = set array on NP parameters """ if isinstance(l,list) or isinstance(l,numpy.ndarray): artemide.harpy.setlambda_tmdr(numpy.asfortranarray(l)) else: artemide.harpy.setreplica_tmdr(int(l)) def setNPparameters_uTMDPDF(l): """Setting NP parameters for the model of uTMDPDF Arguments: (l) Argument overloading: (integer) = loads replica (array) = set array on NP parameters """ if isinstance(l,list) or isinstance(l,numpy.ndarray): artemide.harpy.setlambda_utmdpdf(numpy.asfortranarray(l)) else: artemide.harpy.setreplica_utmdpdf(int(l)) def setNPparameters_uTMDFF(l): """Setting NP parameters for the model of uTMDFF Arguments: (l) Argument overloading: (integer) = loads replica (array) = set array on NP parameters """ if isinstance(l,list) or isinstance(l,numpy.ndarray): artemide.harpy.setlambda_utmdff(numpy.asfortranarray(l)) else: artemide.harpy.setreplica_utmdff(int(l)) def setNPparameters_lpTMDPDF(l): """Setting NP parameters for the model of lpTMDPDF Arguments: (l) Argument overloading: (integer) = loads replica (array) = set array on NP parameters """ if isinstance(l,list) or isinstance(l,numpy.ndarray): artemide.harpy.setlambda_lptmdpdf(numpy.asfortranarray(l)) else: artemide.harpy.setreplica_lptmdpdf(int(l)) def setNPparameters_SiversTMDPDF(l): """Setting NP parameters for the model of SiversTMDPDF Arguments: (l) Argument overloading: (integer) = loads replica (array) = set array on NP parameters """ if isinstance(l,list) or isinstance(l,numpy.ndarray): artemide.harpy.setlambda_siverstmdpdf(numpy.asfortranarray(l)) else: artemide.harpy.setreplica_siverstmdpdf(int(l)) def setNPparameters_wgtTMDPDF(l): """Setting NP parameters for the model of wgtTMDPDF Arguments: (l) Argument overloading: (integer) = loads replica (array) = set array on NP parameters """ if isinstance(l,list) or isinstance(l,numpy.ndarray): artemide.harpy.setlambda_wgttmdpdf(numpy.asfortranarray(l)) else: artemide.harpy.setreplica_wgttmdpdf(int(l)) def varyScales(c1,c2,c3,c4): """Set new scale variation parameters Arguments: (c1,c2,c3,c4) """ artemide.harpy.setscalevariation(c1,c2,c3,c4) def _IsKinematicProper(s,qT,Q,y): """ Checks the point for the proper kinematics Especially for the correct domain of X. """ gridX=0.00001 if qT[0]>qT[1]: print 'Wrong order of qT' return False if Q[0]>Q[1]: print 'Wrong order of Q' return False if y[0]>y[1]: print 'Wrong order of y' return False if qT[1]>Q[0]: print 'qT (',qT[1],') > Q(', Q[0],')' return False if Q[1]>s: print 'Q (',Q[1],') > s(', s,')' return False x1x2=(Q[0]**2+qT[0]**2)/s ymax=-numpy.log(numpy.sqrt(x1x2)) ymin=-ymax if y[1]<ymin or y[0]>ymax: print 'y ',y, 'is outside physical region ',[ymin,ymax] return False if y[1]>ymax: if x1x2<gridX: print 'x outside of the grid' return False else: if numpy.sqrt(x1x2)*numpy.exp(-y[1])<gridX: print 'x outside of the grid' return False if y[0]<ymin: if x1x2<gridX: print 'x outside of the grid' return False else: if numpy.sqrt(x1x2)*numpy.exp(y[0])<gridX: print 'x outside of the grid' return False x1x2=(Q[0]**2+qT[0]**2)/s ymax=-numpy.log(numpy.sqrt(x1x2)) ymin=-ymax if y[1]<ymin or y[0]>ymax: print 'y ',y, 'is outside physical region ',[ymin,ymax] return False if y[1]>ymax: if x1x2<gridX: print 'x outside of the grid' return False else: if numpy.sqrt(x1x2)*numpy.exp(-y[1])<gridX: print 'x outside of the grid' return False if y[0]<ymin: if x1x2<gridX: print 'x outside of the grid' return False else: if numpy.sqrt(x1x2)*numpy.exp(y[0])<gridX: print 'x outside of the grid' return False return True def setPDFreplica(n): """Changes the replica for PDF input. This is a temporary function will be changed in future versions """ artemide.harpy.setpdfreplica(n) ############################################################################### class TMD5: """Static class for TMDPDFs TMDs without gluon component """ @staticmethod def unpolarizedPDF(x,bt,a=None,b=None,c=None): """Unpolarized TMD PDF f_1 Arguments: (x,b) Argument overloading: (x,b) = optimal TMD for hadron=1 (x,b,h) = optimal TMD for hadron=h (integer) (x,b,mu,zeta) = TMD at scale (mu,zeta) for hadron=1 (x,b,mu,zeta,h) = TMD at scale (mu,zeta) for hadron=h(integer) """ if a==None: #(-,?,?) if b==None and c==None: #(-,-,-) return artemide.harpy.utmdpdf_5_optimal(x,bt,1) else: #(-,?,?) ?! print "I am not sure how python works. 1" return 0 elif b==None: #(a,-,?) if c==None: #(a,-,-) => a=h return artemide.harpy.utmdpdf_5_optimal(x,bt,int(a)) else: #(a,-,?) ?! print "I am not sure how python works. 2" return 0 elif c==None: #(a,b,-) => (a,b)=(mu,zeta) return artemide.harpy.utmdpdf_5_evolved(x,bt,a,b,1) else: return artemide.harpy.utmdpdf_5_evolved(x,bt,a,b,int(c)) ############################################################################### class TMD50: """Static class for TMDPDFs TMDs with gluon component """ @staticmethod def unpolarizedPDF(x,bt,a=None,b=None,c=None): """Unpolarized TMD PDF f_1 Arguments: (x,b) Argument overloading: (x,b) = optimal TMD for hadron=1 (x,b,h) = optimal TMD for hadron=h (integer) (x,b,mu,zeta) = TMD at scale (mu,zeta) for hadron=1 (x,b,mu,zeta,h) = TMD at scale (mu,zeta) for hadron=h(integer) """ if a==None: #(-,?,?) if b==None and c==None: #(-,-,-) return artemide.harpy.utmdpdf_50_optimal(x,bt,1) else: #(-,?,?) ?! print "I am not sure how python works. 1" return 0 elif b==None: #(a,-,?) if c==None: #(a,-,-) => a=h return artemide.harpy.utmdpdf_50_optimal(x,bt,int(a)) else: #(a,-,?) ?! print "I am not sure how python works. 2" return 0 elif c==None: #(a,b,-) => (a,b)=(mu,zeta) return artemide.harpy.utmdpdf_50_evolved(x,bt,a,b,1) else: return artemide.harpy.utmdpdf_50_evolved(x,bt,a,b,int(c)) ############################################################################### class TMD5_inKT: """Static class for TMDPDFs TMDs without gluon component """ @staticmethod def unpolarizedPDF(x,kt,a=None,b=None,c=None): """Unpolarized TMD PDF f_1 Arguments: (x,kt) Argument overloading: (x,kt) = optimal TMD for hadron=1 (x,kt,h) = optimal TMD for hadron=h (integer) (x,kt,mu,zeta) = TMD at scale (mu,zeta) for hadron=1 (x,kt,mu,zeta,h) = TMD at scale (mu,zeta) for hadron=h(integer) """ if a==None: #(-,?,?) if b==None and c==None: #(-,-,-) return artemide.harpy.utmdpdf_kt_5_optimal(x,kt,1) else: #(-,?,?) ?! print "I am not sure how python works. 1" return 0 elif b==None: #(a,-,?) if c==None: #(a,-,-) => a=h return artemide.harpy.utmdpdf_kt_5_optimal(x,kt,int(a)) else: #(a,-,?) ?! print "I am not sure how python works. 2" return 0 elif c==None: #(a,b,-) => (a,b)=(mu,zeta) return artemide.harpy.utmdpdf_kt_5_evolved(x,kt,a,b,1) else: return artemide.harpy.utmdpdf_kt_5_evolved(x,kt,a,b,int(c)) ############################################################################### class TMD50_inKT: """Static class for TMDPDFs TMDs with gluon component """ @staticmethod def unpolarizedPDF(x,kt,a=None,b=None,c=None): """Unpolarized TMD PDF f_1 Arguments: (x,kt) Argument overloading: (x,kt) = optimal TMD for hadron=1 (x,kt,h) = optimal TMD for hadron=h (integer) (x,kt,mu,zeta) = TMD at scale (mu,zeta) for hadron=1 (x,kt,mu,zeta,h) = TMD at scale (mu,zeta) for hadron=h(integer) """ if a==None: #(-,?,?) if b==None and c==None: #(-,-,-) return artemide.harpy.utmdpdf_kt_50_optimal(x,kt,1) else: #(-,?,?) ?! print "I am not sure how python works. 1" return 0 elif b==None: #(a,-,?) if c==None: #(a,-,-) => a=h return artemide.harpy.utmdpdf_kt_50_optimal(x,kt,int(a)) else: #(a,-,?) ?! print "I am not sure how python works. 2" return 0 elif c==None: #(a,b,-) => (a,b)=(mu,zeta) return artemide.harpy.utmdpdf_kt_50_evolved(x,kt,a,b,1) else: return artemide.harpy.utmdpdf_kt_50_evolved(x,kt,a,b,int(c)) ############################################################################### class DY: """Static class for evaluation of DY cross-section """ @staticmethod def xSec(process,s,qT,Q,y,includeCuts,CutParameters=None,Num=None): """Cross-section for DY integrated over bin Arguments: (process,s,qT,Q,y,includeCuts,CutParameters=None,Num=4) process = (int, int, int) (see definition in artemide manual) s = Mandelshtan variable s qT = (qT-Min,qT-Max) boundaries of bin in qT Q = (Q-Min,Q-Max) boundaries of bin in Q y = (y-Min,y-Max) boundaries of bin in y includeCuts = True/False to include leptonic cuts CutParameters = (real,real,real,real) must be if includeCuts=True (see definition in artemide manual) Num = even integer, number of section of qt-integration (defaul=4) """ # if includeCuts and CutParameters==None: # print "ERROR 1: specify the cut parameters" # return 0 # # if includeCuts and (len(CutParameters) != 4): # print "ERROR 2: legnth of CutParameters must 4" # return 0 # # if len(process) != 3: # print "ERROR 3: legnth of process must 3" # return 0 # # if len(qT) != 2: # print "ERROR 4: legnth of qT must 2" # return 0 # # if len(Q) != 2: # print "ERROR 5: legnth of Q must 2" # return 0 # # if len(y) != 2: # print "ERROR 6: legnth of y must 2" # return 0 if not includeCuts: cc=[0,0,0,0] else: cc=CutParameters if Num==None: return artemide.harpy.dy_xsec_single(\ numpy.asfortranarray(process),\ s,\ numpy.asfortranarray(qT),\ numpy.asfortranarray(Q),\ numpy.asfortranarray(y),\ includeCuts,\ numpy.asfortranarray(cc)) else: return artemide.harpy.dy_xsec_single(\ numpy.asfortranarray(process),\ s,\ numpy.asfortranarray(qT),\ numpy.asfortranarray(Q),\ numpy.asfortranarray(y),\ includeCuts,\ numpy.asfortranarray(cc),\ Num) @staticmethod def xSecList(process,s,qT,Q,y,includeCuts,CutParameters): return artemide.harpy.dy_xsec_list(numpy.asfortranarray(process),\ numpy.asfortranarray(s),\ numpy.asfortranarray(qT),\ numpy.asfortranarray(Q),\ numpy.asfortranarray(y),\ numpy.asfortranarray(includeCuts),\ numpy.asfortranarray(CutParameters),\ len(s)) @staticmethod def xSecListBINLESS(process,s,qT,Q,y,includeCuts,CutParameters): """ The evaluation of cross-section at a single point. """ #print len(s) return artemide.harpy.dy_xsec_binless_list(numpy.asfortranarray(process),\ numpy.asfortranarray(s),\ numpy.asfortranarray(qT),\ numpy.asfortranarray(Q),\ numpy.asfortranarray(y),\ numpy.asfortranarray(includeCuts),\ numpy.asfortranarray(CutParameters),\ len(s)) ############################################################################### class SIDIS: """Static class for evaluation of SIDIS cross-section """ @staticmethod def xSec(process,s,pT,z,x,Q,includeCuts,CutParameters=None,masses=[0.938,0.130]): """Cross-section for DY integrated over bin Arguments: (process,s,qT,z,x,Q,includeCuts,CutParameters=None) process = (int, int, int) (see definition in artemide manual) s = Mandelshtan variable s pT = (pT-Min,pT-Max) boundaries of bin in pT z = (z-Min,z-Max) boundaries of bin in z x = (x-Min,x-Max) boundaries of bin in x Q = (Q-Min,Q-Max) boundaries of bin in Q includeCuts = True/False to include leptonic cuts CutParameters = (real,real,real,real) must be if includeCuts=True (see definition in artemide manual) """ if not includeCuts: cc=[0,0,0,100] else: cc=CutParameters return artemide.harpy.sidis_xsec_single_withmasses(\ numpy.asfortranarray(process),\ s,\ numpy.asfortranarray(pT),\ numpy.asfortranarray(z),\ numpy.asfortranarray(x),\ numpy.asfortranarray(Q),\ includeCuts,\ numpy.asfortranarray(cc), numpy.asfortranarray(masses)) @staticmethod def xSecList(process,s,pT,z,x,Q,includeCuts,CutParameters,masses): return artemide.harpy.sidis_xsec_list(numpy.asfortranarray(process),\ numpy.asfortranarray(s),\ numpy.asfortranarray(pT),\ numpy.asfortranarray(z),\ numpy.asfortranarray(x),\ numpy.asfortranarray(Q),\ numpy.asfortranarray(includeCuts),\ numpy.asfortranarray(CutParameters),\ numpy.asfortranarray(masses),\ len(s)) @staticmethod def xSecListBINLESS(process,s,pT,z,x,Q,masses): """ The evaluation of cross-section at a single point. No binning effects. Consiquetly, no cuts. """ return artemide.harpy.sidis_xsec_binless_list(numpy.asfortranarray(process),\ numpy.asfortranarray(s),\ numpy.asfortranarray(pT),\ numpy.asfortranarray(z),\ numpy.asfortranarray(x),\ numpy.asfortranarray(Q),\ numpy.asfortranarray(masses),\ len(s))
20,691
40.466934
119
py
artemide-public
artemide-public-master/src/DYcoeff-func.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! Part of code that contains hard coefficient functions for Drell-Yan-like x-Sections !! is a part of artemide.TMDX_DY !! !! 16.06.2019 created A.Vladimirov !! !! A.Vladimirov !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !----------------------------------------------------------------------------------------------------- !------------------------------------------Drell-Yan ------------------------------------------------- !!! hard coefficeint taken from 1004.3653 up to 3-loop !!! it is evaluated at mu=Q function HardCoefficientDY(mu) real(dp)::HardCoefficientDY,mu,LQ!=Log[Q^2/mu^2]=-2Log[c1] real(dp)::alpha If(usePiresum) then !!! this expression is get by expanding pi-resummedexponent and CV^2 to fixed order HardCoefficientDY=1.d0 if(orderH_global>=1) then LQ=-2d0*LOG(c2_global) alpha=As(mu*c2_global) HardCoefficientDY=HardCoefficientDY+alpha*& (-16.946842488404727d0 + 8d0*LQ-2.6666666666666665d0*LQ**2) if(orderH_global>=2) then HardCoefficientDY=HardCoefficientDY+alpha**2*& (-25.413248632430818d0 -208.56946563098907d0*LQ +28.103117631243492d0*LQ**2& - 14.518518518518519d0*LQ**3 + 3.5555555555555554d0*LQ**4) if(orderH_global>=3) then HardCoefficientDY=HardCoefficientDY+alpha**3*& (7884.91043450197d0 -3916.5246445256016d0*LQ +58.76188412075794d0*LQ**2& +418.58823871161303d0*LQ**3 +13.708854670518122d0*LQ**4 + 10.271604938271604d0*LQ**5& -3.1604938271604937d0*LQ**6) end if end if end if HardCoefficientDY=HardCoefficientDY*PiResumFactor_q(alpha) else HardCoefficientDY=1.d0 if(orderH_global>=1) then LQ=-2d0*LOG(c2_global) alpha=As(mu*c2_global) HardCoefficientDY=HardCoefficientDY+alpha*& (9.372102581166892d0 + 8d0*LQ-2.6666666666666665d0*LQ**2) if(orderH_global>=2) then HardCoefficientDY=HardCoefficientDY+alpha**2*& (359.39087353234015d0 + 1.9820949255839224d0*LQ - 42.08073588761418d0*LQ**2& - 14.518518518518519d0*LQ**3 + 3.5555555555555554d0*LQ**4) if(orderH_global>=3) then HardCoefficientDY=HardCoefficientDY+alpha**3*& (8935.66841729192d0 - 2759.2358438992906d0*LQ - 1417.132743244908d0*LQ**2& + 36.47614733116575d0*LQ**3 + 107.28732602899498d0*LQ**4 + 10.271604938271604d0*LQ**5& -3.1604938271604937d0*LQ**6) if(orderH_global>=4) then HardCoefficientDY=HardCoefficientDY+alpha**4*& (135087.2036735284d0 - 150489.22799257038d0*LQ + 64333.03564525264d0*LQ**2 & - 8614.870827808947d0*LQ**3 - 1644.002266122397d0*LQ**4 + 403.72511575802685d0*LQ**5 & - 57.47461249405413d0*LQ**6 - 3.950617283950617d0*LQ**7 + 1.8436213991769548d0*LQ**8) end if end if end if end if end if end function HardCoefficientDY !!! factor for resummed pi^2 contributions for DY-process !!! see [0808.3008] function PiResumFactor_q(alpha) real(dp)::PiResumFactor_q real(dp)::alpha,aa,ArcT,LogA,UU ! Nf=5 everywhere aa=24.08554367752175d0*alpha ! beta0*pi*alpha ArcT=2d0*atan(aa) LogA=Log(1+aa**2) UU=24d0/529d0/alpha*(aa*ArcT-LogA) if(orderH_global>=2) then UU=UU+0.05720391222158297d0*(ArcT**2-LogA**2)+0.6063377746307231d0*LogA if(orderH_global>=3) then UU=UU+alpha/(1+aa**2)*(-3.4962177171202846d0*aa**2 + 3.3966025898820527d0*aa*ArcT & + 0.36427776d0*ArcT**2 + 2.9812442965487187d0*LogA & - 0.41535829333333335d0*aa**2+LogA - 0.72855552d0*aa*ArcT*LogA - 0.36427776d0*LogA**2) end if end if PiResumFactor_q=Exp(UU) end function PiResumFactor_q !----------------------------------------------------------------------------------------------------- !------------------------------------------Higgs production------------------------------------------- !!! effective coupling for vertex HFF through the top-quark trinagle !!! defined to start from 1 (see e.g.[0809.4283] (11)-(12) !!! mu is scale of coupling !!! coeff-function is taken at mu=mT (and Nf=5 or 6) and evolved to the scale mu function EffCouplingHFF(mu) real(dp)::mu,EffCouplingHFF real(dp)::alphaT,alphaMU,betaT,betaMU alphaT=As(mTOP) alphaMU=As(c2_global*mu) !!! we consider only two situations mu<mTOP (Nf=5) and mu >mTOP (Nf=6) !!! for mu<mBOTTOM we do nothing (this situation posible never appears) if(mu<=mTOP) then if(mu<mBOTTOM) call Warning_Raise('no threashold matching for Higgs-DY for mu<mBOTTOM',& messageCounter,messageTrigger,modulename) !!betaT is beta-function at mT it is normalized to be 1 at LO !!betaMU is beta-function at MU it is normalized to be 1 at LO betaT=1d0+alphaT*5.0434782608695645d0 betaMU=1d0+alphaMU*5.0434782608695645d0 EffCouplingHFF=1d0 if(orderH_global>=1) then betaT=betaT+alphaT**2*23.596618357487923d0 betaMU=betaMU+alphaMU**2*23.596618357487923d0 EffCouplingHFF=EffCouplingHFF+alphaT*11d0 if(orderH_global>=2) then betaT=betaT+alphaT**3*629.4986515814214d0 betaMU=betaMU+alphaMU**3*629.4986515814214d0 EffCouplingHFF=EffCouplingHFF+alphaT**2*98.44444444444444d0 if(orderH_global>=3) then call Warning_Raise(& 'no NNNLO implementation of Higgs coefficient function (so far). Continue NNLO',& messageCounter,messageTrigger,modulename) end if end if end if else !Nf=6 !!betaT is beta-function at mT it is normalized to be 1 at LO !!betaMU is beta-function at MU it is normalized to be 1 at LO betaT=1d0+alphaT*3.714285714285714d0 betaMU=1d0+alphaMU*3.714285714285714d0 EffCouplingHFF=1d0 if(orderH_global>=1) then betaT=betaT+alphaT**2*(-4.642857142857142d0) betaMU=betaMU+alphaMU**2*(-4.642857142857142d0) EffCouplingHFF=EffCouplingHFF+alphaT*11d0 if(orderH_global>=2) then betaT=betaT+alphaT**3*353.1833917971027d0 betaMU=betaMU+alphaMU**3*353.1833917971027d0 EffCouplingHFF=EffCouplingHFF+alphaT**2*87.27777777777777d0 if(orderH_global>=3) then call Warning_Raise(& 'no NNNLO implementation of Higgs coefficient function (so far). Continue NNLO',& messageCounter,messageTrigger,modulename) end if end if end if end if !evolved coupling is EffCouplingHFF=betaMU/betaT*EffCouplingHFF end function EffCouplingHFF !!! hard coefficeint taken from 1004.3653 up to 3-loop !!! it is evaluated at mu=Q function HardCoefficientHIGGS(mu) real(dp)::HardCoefficientHIGGS,mu,LQ!=Log[Q^2/mu^2]=-2Log[c1] real(dp)::alpha !Nf=5 here! If(usePiresum) then HardCoefficientHIGGS=1.d0 if(orderH_global>=1) then LQ=-2d0*LOG(c2_global) alpha=As(mu*c2_global) HardCoefficientHIGGS=HardCoefficientHIGGS+alpha*& (9.869604401089358d0 -6d0*LQ**2) if(orderH_global>=2) then HardCoefficientHIGGS=HardCoefficientHIGGS+alpha**2*& (-23.720599432600856d0 -56.83020488600443d0*LQ -100.66666666666666d0*LQ**2& + 15.333333333333334d0*LQ**3 + 18d0*LQ**4) if(orderH_global>=3) then call Warning_Raise(& 'no NNNLO implementation of Higgs coefficient function (so far). Continue NNLO',& messageCounter,messageTrigger,modulename) end if end if end if HardCoefficientHIGGS=HardCoefficientHIGGS*PiResumFactor_g(alpha) else HardCoefficientHIGGS=1.d0 if(orderH_global>=1) then LQ=-2d0*LOG(c2_global) alpha=As(mu*c2_global) HardCoefficientHIGGS=HardCoefficientHIGGS+alpha*& (69.0872308076255d0 -6d0*LQ**2) if(orderH_global>=2) then HardCoefficientHIGGS=HardCoefficientHIGGS+alpha**2*& (2723.1832155557718d0 -510.83200733611494d0*LQ - 455.9724251058836d0*LQ**2& + 15.333333333333334d0*LQ**3 + 18d0*LQ**4) if(orderH_global>=3) then call Warning_Raise(& 'no NNNLO implementation of Higgs coefficient function (so far). Continue NNLO',& messageCounter,messageTrigger,modulename) end if end if end if end if end function HardCoefficientHIGGS !!! factor for resummed pi^2 contributions for HIGGS-process !!! see [0808.3008] function PiResumFactor_g(alpha) real(dp)::PiResumFactor_g real(dp)::alpha,aa,ArcT,LogA,UU ! Nf=5 everywhere aa=24.08554367752175d0*alpha ! beta0*pi*alpha ArcT=2d0*atan(aa) LogA=Log(1+aa**2) UU=54d0/529d0/alpha*(aa*ArcT-LogA) if(orderH_global>=2) then UU=UU+0.12870880249856168d0*(ArcT**2-LogA**2)+0.19034694944086603d0*LogA if(orderH_global>=3) then UU=UU+alpha/(1+aa**2)*(1.0895717932098101d0*aa**2 + 0.989555827234617d0*aa*ArcT & + 0.81962496d0*ArcT**2 + 0.05499966723461647d0*LogA - 0.93455616d0*aa**2*LogA & - 1.63924992d0*aa*ArcT*LogA - 0.81962496*LogA**2) end if end if PiResumFactor_g=Exp(UU) end function PiResumFactor_g
9,038
34.034884
102
f90
artemide-public
artemide-public-master/src/EWinput.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! arTeMiDe 1.4 ! ! The module defining various QED and electro weak parameters ! ! 14.02.2019 values of ckm matrix are added AV. ! ! AV. 10.06.2018 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! module EWinput use aTMDe_Numerics use IO_functions implicit none private logical:: started=.false. integer::outputLevel character (len=7),parameter :: moduleName="EWinput" character (len=5),parameter :: version="v2.03" !Last appropriate verion of constants-file integer,parameter::inputver=14 real(dp)::massZ,massW,massHIGGS,sW2,cW2 real(dp)::Vckm_UD,Vckm_US,Vckm_CD,Vckm_CS,Vckm_CB,Vckm_UB public::alphaEM,EWinput_Initialize,EWinput_IsInitialized !!-Z-gamma DY real(dp),public::paramU,paramD,paramS,paramC,paramB,paramL,paramL_A real(dp),public::paramMIXU,paramMIXD,paramMIXS,paramMIXC,paramMIXB,paramMIXL,paramMIXL_A !!-W DY real(dp),public::paramW_UD,paramW_US,paramW_UB,paramW_CD,paramW_CS,paramW_CB,paramW_L !!-EW-boson parameters real(dp),public::GammaZ2,MZ2 real(dp),public::GammaW2,MW2 !!-Higgs-boson parameters real(dp),public::MH2,GammaH2,VEVH !!-Lepton parameters real(dp),public::massELECTRON,massMUON,massTAU !!-quark masses parameters (used to compute threashold of running alpha) real(dp)::massCHARM,massBOTTOM,massTOP !!alphaQED parameters real(dp)::alphaZ,alphaZinv,alphaTAUinv !!! these are from constans-file real(dp)::alphaELECTRONinv,alphaMUONinv,alphaCHARMinv,alphaBOTTOMinv,alphaTOPinv!!! these are calculated in Set_betaQED() !! running parameters real(dp)::betaQED !!! this is corrected beta function of qed matched to mZ and mTau threasholds with 1-loop evolution contains function EWinput_IsInitialized() logical::EWinput_IsInitialized EWinput_IsInitialized=started end function EWinput_IsInitialized subroutine EWinput_Initialize(file,prefix) character(len=*)::file character(len=*),optional::prefix character(len=300)::path logical::initRequired real(dp)::dummy integer::FILEver if(started) return if(present(prefix)) then path=trim(adjustl(prefix))//trim(adjustr(file)) else path=trim(adjustr(file)) end if OPEN(UNIT=51, FILE=path, ACTION="read", STATUS="old") !!! Search for output level call MoveTO(51,'*0 ') call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) FILEver if(FILEver<inputver) then write(*,*) 'artemide.'//trim(moduleName)//': const-file version is too old.' write(*,*) ' Update the const-file with artemide.setup' write(*,*) ' ' stop end if call MoveTO(51,'*p2 ') read(51,*) outputLevel if(outputLevel>1) write(*,*) '--------------------------------------------- ' if(outputLevel>1) write(*,*) 'artemide.EWinput: initialization started ... ' !!! check do we need initialisation? call MoveTO(51,'*2 ') call MoveTO(51,'*p1 ') read(51,*) initRequired if(.not.initRequired) then if(outputLevel>1) write(*,*)'artemide.EWinput: initialization is not required. ' started=.false. return end if call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) alphaZinv alphaZ=1d0/alphaZinv call MoveTO(51,'*p2 ') read(51,*) sW2 !!!!!!!!!!sin^2 theta_W cw2=1d0-sw2 !!!!!!!!!!cos^2 theta_W call MoveTO(51,'*p3 ')!!!!CKM matrix read(51,*) Vckm_UD,Vckm_US,Vckm_UB read(51,*) Vckm_CD,Vckm_CS,Vckm_CB call MoveTO(51,'*p4 ') read(51,*) alphaTAUinv call MoveTO(51,'*B ') call MoveTO(51,'*p1 ') read(51,*) massZ !!!!!!!!!!Z mass MZ2=massZ**2 call MoveTO(51,'*p2 ') read(51,*) dummy GammaZ2=dummy**2 !!!!!!!!!!Z width call MoveTO(51,'*C ') call MoveTO(51,'*p1 ') read(51,*) massW !!!!!!!!!!W mass MW2=massW**2 call MoveTO(51,'*p2 ') read(51,*) dummy GammaW2=dummy**2 !!!!!!!!!!W width call MoveTO(51,'*D ') call MoveTO(51,'*p1 ') read(51,*) massHIGGS !!!!!!!!!!Higgs mass MH2=massHIGGS**2 call MoveTO(51,'*p2 ') read(51,*) dummy GammaH2=dummy**2 !!!!!!!!!!Higgs width call MoveTO(51,'*p3 ') read(51,*) VEVH !!!!!!!!!!Higgs VEV call MoveTO(51,'*E ') call MoveTO(51,'*p1 ') read(51,*) massELECTRON !!!!!!!!!!electron mass in GEV call MoveTO(51,'*p2 ') read(51,*) massMUON !!!!!!!!!!muon mass in GEV call MoveTO(51,'*p3 ') read(51,*) massTAU !!!!!!!!!!tau-lepton mass in GEV CLOSE (51, STATUS='KEEP') !!!!! read quark thresholds from the QCD section OPEN(UNIT=51, FILE=path, ACTION="read", STATUS="old") call MoveTO(51,'*1 ')!!! QCD section call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) massCHARM call MoveTO(51,'*p2 ') read(51,*) massBOTTOM call MoveTO(51,'*p3 ') read(51,*) massTOP CLOSE (51, STATUS='KEEP') call Set_EWconstants() call Set_betaQED() if(outputLevel>0) write(*,*) color('----- arTeMiDe.EWinput '//trim(version)//': .... initialized',c_green) if(outputLevel>1) write(*,*) ' ' started=.true. end subroutine EWinput_Initialize !!!!alpha EM (normalized at MZ as 127^{-1} !!!! with 1-loop run function alphaEM(mu) real(dp)::mu,alphaEM if(mu>massTOP) then alphaEM=1d0/(alphaTOPinv+16d0*betaQED*log(mu/massTOP)) else if(mu>massBOTTOM) then alphaEM=1d0/(alphaZinv+40d0/3d0*betaQED*log(mu/massZ)) else if(mu>massTAU) then alphaEM=1d0/(alphaTAUinv+38d0/3d0*betaQED*log(mu/massTAU)) else if(mu>massCHARM) then alphaEM=1d0/(alphaTAUinv+32d0/3d0*betaQED*log(mu/massTAU)) else if(mu>massMUON) then alphaEM=1d0/(alphaCHARMinv+8d0*betaQED*log(mu/massCHARM)) else if(mu>massELECTRON) then alphaEM=1d0/(alphaMUONinv+16d0/3d0*betaQED*log(mu/massMUON)) else alphaEM=1d0/alphaELECTRONinv end if end function alphaEM subroutine Set_EWconstants() real(dp)::ef,t3 !!!! param is given by !!!! ((1-2|eq|sw^2)^2+4eq^2sw^4)/(8sw^2cw^2) !!!! it is 2(gV^2+gA^2) for Z boson. !!!! paramMIX is given by !!!! eq(t2-2ef sW^2)/(2sw cW) !!!! eq*gV for Z boson !------------------------------------------------------- !--- Z-boson interaction !---------------U quark ef=2d0/3d0 t3=+0.5d0 paramU=((1d0-2d0*Abs(ef)*sW2)**2+4d0*ef**2*sW2**2)/(8d0*sW2*cW2) paramMIXU=ef*(t3-2d0*ef*sW2)/(2d0*Sqrt(sw2*cw2)) !---------------D-quark ef=-1d0/3d0 t3=-0.5d0 paramD=((1d0-2d0*Abs(ef)*sW2)**2+4d0*ef**2*sW2**2)/(8d0*sW2*cW2) paramMIXD=ef*(t3-2d0*ef*sW2)/(2d0*Sqrt(sw2*cw2)) !---------------S-quark ef=-1d0/3d0 t3=-0.5d0 paramS=((1d0-2d0*Abs(ef)*sW2)**2+4d0*ef**2*sW2**2)/(8d0*sW2*cW2) paramMIXS=ef*(t3-2d0*ef*sW2)/(2d0*Sqrt(sw2*cw2)) !---------------C-quark ef=2d0/3d0 t3=+0.5d0 paramC=((1d0-2d0*Abs(ef)*sW2)**2+4d0*ef**2*sW2**2)/(8d0*sW2*cW2) paramMIXC=ef*(t3-2d0*ef*sW2)/(2d0*Sqrt(sw2*cw2)) !---------------B-quark ef=-1d0/3d0 t3=-0.5d0 paramB=((1d0-2d0*Abs(ef)*sW2)**2+4d0*ef**2*sW2**2)/(8d0*sW2*cW2) paramMIXB=ef*(t3-2d0*ef*sW2)/(2d0*Sqrt(sw2*cw2)) !---------------Lepton ef=-1d0 t3=-0.5d0 paramL=((1d0-2d0*Abs(ef)*sW2)**2+4d0*ef**2*sW2**2)/(8d0*sW2*cW2) paramMIXL=ef*(t3-2d0*ef*sW2)/(2d0*Sqrt(sw2*cw2)) !!! asymetric combinations paramL_A=(4d0*Abs(ef)*sW2**2-1)/(8d0*sW2*cW2) paramMIXL_A=-t3*ef/(2d0*Sqrt(sw2*cw2)) !------------------------------------------------------- !--- W-boson interaction paramW_UD=abs(Vckm_UD)**2/(4d0*sW2) paramW_US=abs(Vckm_US)**2/(4d0*sW2) paramW_UB=abs(Vckm_UB)**2/(4d0*sW2) paramW_CD=abs(Vckm_CD)**2/(4d0*sW2) paramW_CS=abs(Vckm_CS)**2/(4d0*sW2) paramW_CB=abs(Vckm_CB)**2/(4d0*sW2) paramW_L=1d0/(4d0*sW2) end subroutine Set_EWconstants !!! compute the matched value of QED beta function !!! It uses alphaZ and alphaTau to determine the beta function of QED with threasholds !!! the threasholds used !!! e(+u+d); muon(+s); c; t; b; t; !!! betaEFF=Neff*beta !!! beta is almost -1/3pi !!! Neff=N_leptons+sum_q e_q^2 N_c !!! Neff= 8/3; 4; 16/3;, 19/3; 20/3; 8 !!! !!! So fixing at z and tau gives beta=(alpha^{-1}(tau)-alpha^{-1}(Z))/2/(Neff(top<->b) Log[b/MZ]+Neff(b<->tau) Log[tau/b]) !!! this number should be close to -1/3pi !!! !!! It also compute threashold values of alpha QED subroutine Set_betaQED() real(dp),parameter::betaQED_1loop=-0.1061032953945969d0 real(dp)::deltaB betaQED=(alphaTAUinv-alphaZinv)/2d0/(20d0/3d0*Log(massBOTTOM/massZ)+19d0/3d0*Log(massTAU/massBOTTOM)) deltaB=betaQED/betaQED_1loop if(outputLevel>2) write(*,*) " Effective QED beta fuction in fractions of LO:",deltaB if(abs(deltaB-1d0)>0.05) & write(*,*) WarningString(' Effective QED beta function 5% deviate from LO. Check boundary setup.',modulename) alphaTOPinv=alphaZinv+2d0*betaQED*20d0/3d0*log(massTOP/massZ) alphaBOTTOMinv=alphaZinv+2d0*betaQED*20d0/3d0*log(massBOTTOM/massZ) !alphaTAUinv !! exact alphaCHARMinv=alphaTAUinv+2d0*betaQED*16d0/3d0*log(massCHARM/massTAU) alphaMUONinv=alphaCHARMinv+2d0*betaQED*4d0*log(massMUON/massCHARM) alphaELECTRONinv=alphaMUONinv+2d0*betaQED*8d0/3d0*log(massELECTRON/massMUON) if(outputLevel>2) write(*,*) " Theashold values of alpha^(-1) QED (mE,mMU,mC,mTAU,mB,mT):" if(outputLevel>2) write(*,"(' ',F7.3,',',F7.3,',',F7.3,',',F7.3,',',F7.3,',',F7.3)") & alphaELECTRONinv,alphaMUONinv,alphaCHARMinv,alphaTAUinv,alphaBOTTOMinv,alphaTOPinv end subroutine Set_betaQED end module EWinput
9,603
29.980645
123
f90
artemide-public
artemide-public-master/src/LeptonCutsDY.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! arTeMiDe 1.4 ! ! Evaluation of the leptonic cuts for the DrellYan ! ! if you use this module please, quote 1706.01473 ! ! ver 1.0: release (AV, 10.05.2017) ! ver 1.32 update nessacary for parallelisation (AV,17.09.2018) ! ver 1.32 CutFactor4 added, asymetric cuts are introduced (AV,03.12.2018) ! ver.1.4 Deleted old routines. Incapsulated variables (AV. 18.01.2019( !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! module LeptonCutsDY use aTMDe_Numerics use IO_functions implicit none private ! public !!!Parameters of cut and cross-section !!!!! this is array =(/ pT1lim,pT2lim,etaMin,etaMax,Exp(2etaMin),exp(2etaMax) /) real(dp)::cutParam_global(1:6) !!! number of divisions in Simpsons integer,parameter::num=64! !! Tolerance (absolute) real(dp),parameter::tolerance=0.000001d0 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! the kinematic variables are passed via an aray !!! (q_T,Q,y, Q^2 , qt^2/Q^2+qt^2 , Sqrt[Q^2+qT^2] ) public:: SetCutParameters public:: CutFactor4,CutFactorA interface SetCutParameters module procedure SetCutParameters_sym,SetCutParameters_asym end interface contains !SEt parameters of cut subroutine SetCutParameters_sym(pT_in,etaMin_in,etaMax_in) real(dp)::pT_in,etaMax_in,etaMin_in cutParam_global=(/ pT_in**2,& pT_in**2,& etaMin_in,& etaMax_in,& EXP(2*etaMin_in),& EXP(2*etaMax_in) /) end subroutine SetCutParameters_sym !SEt parameters of cut ! with asymetric cuts for pT subroutine SetCutParameters_asym(pT1_in,pT2_in,etaMin_in,etaMax_in) real(dp)::pT1_in,pT2_in,etaMax_in,etaMin_in !! for definetines we order pt1>pt2 if(pT1_in>=pT2_in) then cutParam_global=(/ pT1_in**2,& pT2_in**2,& etaMin_in,& etaMax_in,& EXP(2d0*etaMin_in),& EXP(2d0*etaMax_in) /) else cutParam_global=(/ pT2_in**2,& pT1_in**2,& etaMin_in-tolerance,& etaMax_in+tolerance,& EXP(2d0*etaMin_in),& EXP(2d0*etaMax_in) /) end if end subroutine SetCutParameters_asym !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! !! This function survives after many modification of module. For different version of integral evaluation see /history !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!! Integration is done by more accurate method. Secting the phi-plane, and define the boundaries of eta !!!! The integal over eta is done exactly !!!! Unfortunately works only for large enough Q. !!!! Gives very precise result 10^-5 accuracy !!!! !!!! CutParameters = (/ kT1, kT2, etaMin, etaMax /) function CutFactor4(qT,Q_in,y_in,CutParameters) real(dp):: qT,CutFactor4,Q_in,y_in real(dp):: dphi integer :: i real(dp),dimension(1:6)::var,varC real(dp),dimension(1:4),optional,intent(in)::CutParameters if(present(CutParameters)) then if(CutParameters(1)>CutParameters(2)) then varC(1)=CutParameters(1)**2 varC(2)=CutParameters(2)**2 else varC(1)=CutParameters(2)**2 varC(2)=CutParameters(1)**2 end if varC(3)=CutParameters(3) varC(4)=CutParameters(4) varC(5)=exp(2d0*CutParameters(3)) varC(6)=exp(2d0*CutParameters(4)) else varC=cutParam_global end if var=(/qT,Q_in,y_in,Q_in**2,qT**2/(Q_in**2+qT**2),SQRT(Q_in**2+qT**2)/) if(varC(3)<varC(4)) then if(y_in<varC(3) .or. y_in>varC(4)) then CutFactor4=0d0 else CutFactor4=0d0 dphi=pix2/num do i=0,num CutFactor4=CutFactor4+Simp(i,num)*IntegralOverEtaFixedPhiEXACT(var,varC,i*dphi) end do CutFactor4=CutFactor4*dphi/3d0/2d0 end if else CutFactor4=0d0 end if end function CutFactor4 !!!! integral for anti-symmetric part of lepton tensor function CutFactorA(qT,Q_in,y_in,CutParameters) real(dp):: qT,CutFactorA,Q_in,y_in real(dp):: dphi integer :: i real(dp),dimension(1:6)::var,varC real(dp),dimension(1:4),optional,intent(in)::CutParameters if(present(CutParameters)) then if(CutParameters(1)>CutParameters(2)) then varC(1)=CutParameters(1)**2 varC(2)=CutParameters(2)**2 else varC(1)=CutParameters(2)**2 varC(2)=CutParameters(1)**2 end if varC(3)=CutParameters(3) varC(4)=CutParameters(4) varC(5)=exp(2d0*CutParameters(3)) varC(6)=exp(2d0*CutParameters(4)) else varC=cutParam_global end if var=(/qT,Q_in,y_in,Q_in**2,qT**2/(Q_in**2+qT**2),SQRT(Q_in**2+qT**2)/) if(varC(3)<varC(4)) then if(y_in<varC(3) .or. y_in>varC(4)) then CutFactorA=0d0 else CutFactorA=0d0 dphi=pix2/num do i=0,num CutFactorA=CutFactorA+Simp(i,num)*IntegralOverEtaFixedPhiEXACT_A(var,varC,i*dphi) end do CutFactorA=CutFactorA*dphi/3d0/2d0 end if else CutFactorA=0d0 end if end function CutFactorA !it is the same function as IntegralOverEtaFixedPhi, but the integration is done exactly. ! the boundaries are defined as before ! 1 2 3 4 5 6 ! var =(/ qT, Q_in, y_in, Q_in**2, qT**2/(Q_in**2+qT**2), SQRT(Q_in**2+qT**2)/) ! varC=(/ pT1, pT2, etaMin, etaMax, EXP(2*etaMin), EXP(2*etaMax) /) function IntegralOverEtaFixedPhiEXACT(var,varC,phi) real(dp),dimension(1:6)::var,varC real(dp):: IntegralOverEtaFixedPhiEXACT,phi real(dp)::eta1,eta2 if(Integrand2THETA(var,varC,var(3),phi)==0) then !!!! Here is the point of assumption!! because if Q~qT the integration region is difficult and the boundaries may be inproper IntegralOverEtaFixedPhiEXACT=0d0 else !!lower boundary eta1=FindBoundary(var,varC,varC(3)-0.0001d0,var(3),phi) !!upper boundary eta2=FindBoundary(var,varC,var(3),varC(4)+0.0001d0,phi) !write(*,*) eta1,eta2 IntegralOverEtaFixedPhiEXACT=var(4)/(16d0*pi)*(& integralEtaExactUNDEFINED(var(1)*cos(phi),var(6),var(3)-eta2,var(4))& -integralEtaExactUNDEFINED(var(1)*cos(phi),var(6),var(3)-eta1,var(4))) end if end function IntegralOverEtaFixedPhiEXACT !it is the same function as IntegralOverEtaFixedPhi, but the integration is done exactly. ! the boundaries are defined as before ! 1 2 3 4 5 6 ! var =(/ qT, Q_in, y_in, Q_in**2, qT**2/(Q_in**2+qT**2), SQRT(Q_in**2+qT**2)/) ! varC=(/ pT1, pT2, etaMin, etaMax, EXP(2*etaMin), EXP(2*etaMax) /) !!! ANTI SYMMETRIC ONE! function IntegralOverEtaFixedPhiEXACT_A(var,varC,phi) real(dp),dimension(1:6)::var,varC real(dp):: IntegralOverEtaFixedPhiEXACT_A,phi real(dp)::eta1,eta2 if(Integrand2THETA(var,varC,var(3),phi)==0) then !!!! Here is the point of assumption!! because if Q~qT the integration region is difficult and the boundaries may be inproper IntegralOverEtaFixedPhiEXACT_A=0d0 else !!lower boundary eta1=FindBoundary(var,varC,varC(3)-0.0001d0,var(3),phi) !!upper boundary eta2=FindBoundary(var,varC,var(3),varC(4)+0.0001d0,phi) !write(*,*) eta1,eta2 IntegralOverEtaFixedPhiEXACT_A=var(4)/(16d0*pi)*(& integralEtaExactUNDEFINED_A(var(1)*cos(phi),var(6),var(3)-eta2,var(4))& -integralEtaExactUNDEFINED_A(var(1)*cos(phi),var(6),var(3)-eta1,var(4))) end if end function IntegralOverEtaFixedPhiEXACT_A !! this is integral over eta exactly evaluated by mathematica. Udefined. (without common factor Q^2/16/pi) !! it is used in IntegralOverEtaFixedPhiEXACT !! a = qT cos phi !! b = Sqrt{Q^2+qT^2} !! uu = y-eta function integralEtaExactUNDEFINED(a,b,uu,Q2) real(dp)::a,b,uu,integralEtaExactUNDEFINED,Q2 real(dp)::w,R,TT,bb bb=b*b w=bb-a**2 R=a-b*Cosh(uu) TT=-b*Sinh(uu)/w/R integralEtaExactUNDEFINED=2d0*Q2*TT/R**2+a*(6d0*w-5d0*Q2)*TT/w/R& +(6d0-(18d0*bb+11d0*Q2)/w+15d0*bb*Q2/w**2)*TT& -6d0*a*(2d0*(3d0*bb+Q2)*w-5d0*bb*Q2)*atan((a+b)/sqrt(w)*tanh(uu/2d0))/w**(3.5d0) end function integralEtaExactUNDEFINED !! this is integral over eta exactly evaluated by mathematica. Udefined. (without common factor Q^2/16/pi) !! it is used in IntegralOverEtaFixedPhiEXACT !! a = qT cos phi !! b = Sqrt{Q^2+qT^2} !! uu = y-eta !!! ANTI SYMMETRIC ONE! function integralEtaExactUNDEFINED_A(a,b,uu,Q2) real(dp)::a,b,uu,integralEtaExactUNDEFINED_A,Q2 integralEtaExactUNDEFINED_A=-6d0/(a-b*Cosh(uu))**2 end function integralEtaExactUNDEFINED_A !!!!the theta (0 or 1) funciton of the integrand in the coordinates rapidity-angle !! Search for the boundary of integration between t1 and t2 at fixed phi !! by devision on 2 ! 1 2 3 4 5 6 ! var =(/ qT, Q_in, y_in, Q_in**2, qT**2/(Q_in**2+qT**2), SQRT(Q_in**2+qT**2)/) ! varC=(/ pT1, pT2, etaMin, etaMax, EXP(2*etaMin), EXP(2*etaMax) /) function Integrand2THETA(var,varC,h1,p1) real(dp),dimension(1:6)::var,varC real(dp):: h1,p1 integer::Integrand2THETA real(dp)::cosp1,chhy,l1square,l2square,exp2h2,l1 cosp1=COS(p1) chhy=COSH(h1-var(3)) l1=var(4)/2d0/(var(6)*chhy-var(1)*cosp1) l1square=l1**2 l2square=var(1)**2+l1square-2d0*var(1)*l1*cosp1 exp2h2=(EXP(2d0*var(3)+h1)*var(6)-EXP(var(3)+2d0*h1)*l1)/(EXP(h1)*var(6)-EXP(var(3))*l1) If((l1square>varC(1)).and.(l2square>varC(2)).and.& (varC(4)>h1).and.(varC(6)>exp2h2).and.& (h1>varC(3)).and.(exp2h2>varC(5))) then Integrand2THETA=1 else Integrand2THETA=0 end if end function Integrand2THETA function Simp(i,n) integer::i,n real(dp)::Simp if((i==0).or.(i==n)) then Simp=1d0 else if(MOD(i,2)==1) then Simp=4d0 else Simp=2d0 end if end if end function Simp !! Search for the boundary of integration between t1 and t2 at fixed phi !! by devision on 2 ! 1 2 3 4 5 6 ! var =(/ qT, Q_in, y_in, Q_in**2, qT**2/(Q_in**2+qT**2), SQRT(Q_in**2+qT**2)/) ! varC=(/ pT1, pT2, etaMin, etaMax, EXP(2*etaMin), EXP(2*etaMax) /) function FindBoundary(var,varC,eta1_in,eta2_in,phi) real(dp),dimension(1:6)::var,varC real(dp)::FindBoundary,eta1,eta2,phi,eta3,eta1_in,eta2_in integer:: v1,v2,v3,i eta1=eta1_in eta2=eta2_in v1=Integrand2THETA(var,varC,eta1,phi) v2=Integrand2THETA(var,varC,eta2,phi) if(v1==v2) then write(*,*) 'ERROR LeptonCuts: problem with boundary evaluation. Probably Q is too close to qT. EVALUATION STOP' write(*,*) 'Problematic values:' write(*,*) 'Kinematic: Q=',var(2), 'qT=',var(1),'y=',var(3) write(*,*) 'Cut params: (pT1,pT2)=(',SQRT(varC(1)),SQRT(varC(2)),'), eta =(',varC(3),varC(4),')' stop FindBoundary=(eta1+eta2)/2d0 else do eta3=(eta1+eta2)/2d0 v3=Integrand2THETA(var,varC,eta3,phi) if(v3==v1) then eta1=eta3 else eta2=eta3 end if i=i+1 if (ABS(eta1-eta2)<tolerance) exit end do FindBoundary=(eta1+eta2)/2d0 end if end function FindBoundary end module LeptonCutsDY
11,002
29.907303
127
f90
artemide-public
artemide-public-master/src/QCDinput.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! arTeMiDe 2.01 ! ! Interface module to the user defined alpha-s, PDF, FF, etc. ! Could be interfaced to LHAPDF ! ! ver.2.0: 28.03.2019 AV ! ver.2.01: 14.06.2019 AV (+lpPDF) ! ver.2.07: 09.11.2021 AV (+g1T) ! A.Vladimirov !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! module QCDinput use aTMDe_Numerics use IO_functions implicit none private public::QCDinput_Initialize,QCDinput_IsInitialized public::As,activeNf public::xPDF,xFF,x_lp_PDF,x_hPDF public:: QCDinput_SetPDFreplica, QCDinput_SetFFreplica, QCDinput_SetlpPDFreplica,QCDinput_SethPDFreplica character (len=8),parameter :: moduleName="QCDinput" !Current version of module character (len=5),parameter :: version="v2.06" !Last appropriate verion of constants-file integer,parameter::inputver=18 !--- general logical:: started=.false. integer::outputLevel real(dp),public::mCHARM,mBOTTOM,mTOP !---uPDFs integer::num_of_uPDFs,startPDFindex integer,allocatable::enumeration_of_uPDFs(:) !---uFFs integer::num_of_uFFs,startFFindex integer,allocatable::enumeration_of_uFFs(:) !---lpPDFs integer::num_of_lpPDFs,startlpPDFindex integer,allocatable::enumeration_of_lpPDFs(:) !---hPDFs integer::num_of_hPDFs,start_hPDFindex integer,allocatable::enumeration_of_hPDFs(:) !---common integer,allocatable::current_replicas(:) contains function QCDinput_IsInitialized() logical::QCDinput_IsInitialized QCDinput_IsInitialized=started end function QCDinput_IsInitialized !------------------------------Functions below are to be changed by user (if needed) subroutine QCDinput_Initialize(file,prefix) character(len=*)::file character(len=*),optional::prefix character(len=300)::path character(len=64),allocatable::names(:) integer::i,FILEver integer,allocatable::replicas(:) if(started) return if(present(prefix)) then path=trim(adjustl(prefix))//trim(adjustr(file)) else path=trim(adjustr(file)) end if OPEN(UNIT=51, FILE=path, ACTION="read", STATUS="old") !!! Search for output level call MoveTO(51,'*0 ') call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) FILEver if(FILEver<inputver) then write(*,*) 'artemide.'//trim(moduleName)//': const-file version is too old.' write(*,*) ' Update the const-file with artemide.setup' write(*,*) ' ' stop end if call MoveTO(51,'*p2 ') read(51,*) outputLevel if(outputLevel>1) write(*,*) '--------------------------------------------- ' if(outputLevel>1) write(*,*) 'artemide.QCDinput: initialization started ... ' !!! Search for QCDinput initialization options call MoveTO(51,'*1 ') !!! Search for parameters call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) mCHARM call MoveTO(51,'*p2 ') read(51,*) mBOTTOM call MoveTO(51,'*p3 ') read(51,*) mTOP if(outputLevel>2) write(*,*) ' mass of charm : ',mCHARM if(outputLevel>2) write(*,*) ' mass of bottom: ',mBOTTOM if(outputLevel>2) write(*,*) ' mass of top : ',mTOP !!!---------------------------------------- Search for uPDF initialization options call MoveTO(51,'*B ') call MoveTO(51,'*p1 ') read(51,*) num_of_uPDFs if(num_of_uPDFs>0) then !! initialization of LHAPDF grids allocate(enumeration_of_uPDFs(1:num_of_uPDFs)) allocate(names(1:num_of_uPDFs)) allocate(replicas(1:num_of_uPDFs)) call MoveTO(51,'*p2 ') read(51,*) enumeration_of_uPDFs call MoveTO(51,'*p3 ') do i=1,num_of_uPDFs read(51,*) names(i) end do call MoveTO(51,'*p4 ') read(51,*) replicas !!! actually initialization startPDFindex=0 do i=1,num_of_uPDFs call InitPDFsetByNameM(i+startPDFindex,names(i)) call InitPDFM(i+startPDFindex,replicas(i)) if(outputLevel>2) write(*,"(' uPDF(hadron=',I3,') initialized by : ',A,' (replica= ',I5,')')") & enumeration_of_uPDFs(i),trim(names(i)),replicas(i) end do !!! save initial replicas to the list of replicas call append_list(current_replicas,replicas) deallocate(names,replicas) else !!! initialization is not needed if(outputLevel>2) write(*,*)' no uPDFs to initialize...' end if !!! -------------------------------------Search for uFF initialization options call MoveTO(51,'*C ') call MoveTO(51,'*p1 ') read(51,*) num_of_uFFs if(num_of_uFFs>0) then allocate(enumeration_of_uFFs(1:num_of_uFFs)) allocate(names(1:num_of_uFFs)) allocate(replicas(1:num_of_uFFs)) call MoveTO(51,'*p2 ') read(51,*) enumeration_of_uFFs call MoveTO(51,'*p3 ') do i=1,num_of_uFFs read(51,*) names(i) end do call MoveTO(51,'*p4 ') read(51,*) replicas !!! actually initialization startFFindex=num_of_uPDFs+startPDFindex do i=1,num_of_uFFs call InitPDFsetByNameM(startFFindex+i,names(i)) call InitPDFM(startFFindex+i,replicas(i)) if(outputLevel>2) write(*,"(' uFF(hadron=',I3,') initialized by : ',A,' (replica= ',I5,')')") & enumeration_of_uFFs(i),trim(names(i)),replicas(i) end do !!! save initial replicas to the list of replicas call append_list(current_replicas,replicas) deallocate(names,replicas) else !!! initialization is not needed if(outputLevel>2) write(*,*)' no uFFs to initialize...' end if !!!---------------------------------------- Search for lpPDF initialization options call MoveTO(51,'*D ') call MoveTO(51,'*p1 ') read(51,*) num_of_lpPDFs if(num_of_lpPDFs>0) then !! initialization of LHAPDF grids allocate(enumeration_of_lpPDFs(1:num_of_lpPDFs)) allocate(names(1:num_of_lpPDFs)) allocate(replicas(1:num_of_lpPDFs)) call MoveTO(51,'*p2 ') read(51,*) enumeration_of_lpPDFs call MoveTO(51,'*p3 ') do i=1,num_of_lpPDFs read(51,*) names(i) end do call MoveTO(51,'*p4 ') read(51,*) replicas !!! actually initialization startlpPDFindex=num_of_uFFs+num_of_uPDFs+startPDFindex do i=1,num_of_lpPDFs call InitPDFsetByNameM(i+startlpPDFindex,names(i)) call InitPDFM(i+startlpPDFindex,replicas(i)) if(outputLevel>2) write(*,"(' lpPDF(hadron=',I3,') initialized by : ',A,' (replica= ',I5,')')") & enumeration_of_lpPDFs(i),trim(names(i)),replicas(i) end do !!! save initial replicas to the list of replicas call append_list(current_replicas,replicas) deallocate(names,replicas) else !!! initialization is not needed if(outputLevel>2) write(*,*)' no lpPDFs to initialize...' end if !!!---------------------------------------- Search for hPDF initialization options call MoveTO(51,'*E ') call MoveTO(51,'*p1 ') read(51,*) num_of_hPDFs if(num_of_hPDFs>0) then !! initialization of LHAPDF grids allocate(enumeration_of_hPDFs(1:num_of_hPDFs)) allocate(names(1:num_of_hPDFs)) allocate(replicas(1:num_of_hPDFs)) call MoveTO(51,'*p2 ') read(51,*) enumeration_of_hPDFs call MoveTO(51,'*p3 ') do i=1,num_of_hPDFs read(51,*) names(i) end do call MoveTO(51,'*p4 ') read(51,*) replicas !!! actually initialization start_hPDFindex=num_of_lpPDFs+num_of_uFFs+num_of_uPDFs+startPDFindex do i=1,num_of_hPDFs call InitPDFsetByNameM(i+start_hPDFindex,names(i)) call InitPDFM(i+start_hPDFindex,replicas(i)) if(outputLevel>2) write(*,"(' hPDF(hadron=',I3,') initialized by : ',A,' (replica= ',I5,')')") & enumeration_of_hPDFs(i),trim(names(i)),replicas(i) end do !!! save initial replicas to the list of replicas call append_list(current_replicas,replicas) deallocate(names,replicas) else !!! initialization is not needed if(outputLevel>2) write(*,*)' no hPDFs to initialize...' end if CLOSE (51, STATUS='KEEP') if(outputLevel>2) write(*,*) "The list of initial PDF replica numbers is :", current_replicas if(outputLevel>0) write(*,*) color('----- arTeMiDe.QCDinput '//trim(version)//': .... initialized',c_green) if(outputLevel>1) write(*,*) ' ' started=.true. end subroutine QCDinput_Initialize !!!! Add values of listB, to the end of listA pure subroutine append_list(listA,listB) integer,allocatable, intent(inout)::listA(:) integer,intent(in)::listB(:) integer,allocatable::dummy_list(:) integer:: isize,i if(allocated(listA)) then isize=size(listA)+size(listB) allocate(dummy_list(1:isize)) do i=1, size(listA) dummy_list(i)=listA(i) end do do i=1, size(listB) dummy_list(i+size(listA))=listB(i) end do deallocate(listA) call move_alloc(dummy_list,listA) else allocate(listA(1:size(listB))) do i=1, size(listB) listA(i)=listB(i) end do end if end subroutine append_list !!! provide the index of grid associated with uPDF(hadron) function index_of_uPDF(hadron) integer,intent(in)::hadron integer::index_of_uPDF integer::i if(num_of_uPDFs==0) then write(*,*) ErrorString('no uPDFs are initialized',moduleName) stop else do i=1,num_of_uPDFs if(enumeration_of_uPDFs(i)==hadron) then index_of_uPDF=i+startPDFindex return end if end do !!! if we exit from the loop it means index is not found write(*,*) ErrorString('uPDF is not found',moduleName) write(*,"('no uPDF for hadron ',I3,' is initialized. Set PDF for hadron (',I3,')')") & hadron,enumeration_of_uPDFs(1) index_of_uPDF=1+startPDFindex end if end function index_of_uPDF !!! provide the index of grid associated with uFF(hadron) function index_of_uFF(hadron) integer,intent(in)::hadron integer::index_of_uFF integer::i if(num_of_uFFs==0) then write(*,*) ErrorString('no uFFs are initialized',moduleName) stop else do i=1,num_of_uFFs if(enumeration_of_uFFs(i)==hadron) then index_of_uFF=i+startFFindex return end if end do !!! if we exit from the loop it means index is not found write(*,*) ErrorString('uFF is not found',moduleName) write(*,"('no uFF for hadron ',I3,' is initialized. Set FF for hadron (',I3,')')") & hadron,enumeration_of_uPDFs(1) index_of_uFF=1+startFFindex end if end function index_of_uFF !!! provide the index of grid associated with lpPDF(hadron) function index_of_lpPDF(hadron) integer,intent(in)::hadron integer::index_of_lpPDF integer::i if(num_of_lpPDFs==0) then write(*,*) ErrorString('no lpPDFs are initialized',moduleName) stop else do i=1,num_of_lpPDFs if(enumeration_of_lpPDFs(i)==hadron) then index_of_lpPDF=i+startlpPDFindex return end if end do !!! if we exit from the loop it means index is not found write(*,*) ErrorString('lpPDF is not found',moduleName) write(*,"('no lpPDF for hadron ',I3,' is initialized. Set PDF for hadron (',I3,')')") & hadron,enumeration_of_lpPDFs(1) index_of_lpPDF=1+startlpPDFindex end if end function index_of_lpPDF !!! provide the index of grid associated with hPDF(hadron) function index_of_hPDF(hadron) integer,intent(in)::hadron integer::index_of_hPDF integer::i if(num_of_hPDFs==0) then write(*,*) ErrorString('no hPDFs are initialized',moduleName) stop else do i=1,num_of_hPDFs if(enumeration_of_hPDFs(i)==hadron) then index_of_hPDF=i+start_hPDFindex return end if end do !!! if we exit from the loop it means index is not found write(*,*) ErrorString('hPDF is not found',moduleName) write(*,"('no hPDF for hadron ',I3,' is initialized. Set PDF for hadron (',I3,')')") & hadron,enumeration_of_hPDFs(1) index_of_hPDF=1+start_hPDFindex end if end function index_of_hPDF !!! set a different replica of uPDF (pointing to hadron) !!! check whatever its the same or not. !!! in the case the replica is same as stored -- does not change PDF (newPDF=false) !!! in the case the replica is different -- does change PDF (newPDF=true) subroutine QCDinput_SetPDFreplica(rep,hadron,newPDF) integer,intent(in):: rep,hadron logical,intent(out)::newPDF integer:: num_h num_h=index_of_uPDF(hadron) !!! if the number of replica to change coincides with the already used. Do not change it if(current_replicas(num_h)==rep) then newPDF=.false. else call InitPDFM(num_h,rep) current_replicas(num_h)=rep newPDF=.true. end if end subroutine QCDinput_SetPDFreplica !!! set a different replica of uFF (pointing to hadron) !!! check whatever its the same or not. !!! in the case the replica is same as stored -- does not change PDF (newPDF=false) !!! in the case the replica is different -- does change PDF (newPDF=true) subroutine QCDinput_SetFFreplica(rep,hadron,newPDF) integer,intent(in):: rep,hadron logical,intent(out)::newPDF integer:: num_h num_h=index_of_uFF(hadron) !!! if the number of replica to change coincides with the already used. Do not change it if(current_replicas(num_h)==rep) then newPDF=.false. else call InitPDFM(num_h,rep) current_replicas(num_h)=rep newPDF=.true. end if end subroutine QCDinput_SetFFreplica !!! set a different replica of lp_PDF (pointing to hadron) !!! check whatever its the same or not. !!! in the case the replica is same as stored -- does not change PDF (newPDF=false) !!! in the case the replica is different -- does change PDF (newPDF=true) subroutine QCDinput_SetlpPDFreplica(rep,hadron,newPDF) integer,intent(in):: rep,hadron logical,intent(out)::newPDF integer:: num_h num_h=index_of_lpPDF(hadron) !!! if the number of replica to change coincides with the already used. Do not change it if(current_replicas(num_h)==rep) then newPDF=.false. else call InitPDFM(num_h,rep) current_replicas(num_h)=rep newPDF=.true. end if end subroutine QCDinput_SetlpPDFreplica !!! set a different replica of hPDF (pointing to hadron) !!! check whatever its the same or not. !!! in the case the replica is same as stored -- does not change PDF (newPDF=false) !!! in the case the replica is different -- does change PDF (newPDF=true) subroutine QCDinput_SethPDFreplica(rep,hadron,newPDF) integer,intent(in):: rep,hadron logical,intent(out)::newPDF integer:: num_h num_h=index_of_hPDF(hadron) !!! if the number of replica to change coincides with the already used. Do not change it if(current_replicas(num_h)==rep) then newPDF=.false. else call InitPDFM(num_h,rep) current_replicas(num_h)=rep newPDF=.true. end if end subroutine QCDinput_SethPDFreplica !!number of active flavor at given mu function activeNf(mu) integer::activeNf real(dp)::mu if(mu>mBOTTOM) then activeNf=5 else if(mu>mCHARM) then activeNf=4 else activeNf=3 end if end function activeNf !!!!alphas(Q)/4pi !!! NOT FORGET 4 PI !!! function As(Q) real(dp)::as,Q,alphasPDF As=alphasPDF(Q)/pix4 ! as=1d0/(2d0*23d0/3d0*Log(Q/0.08782708014552364d0)) !!! Nf=5 LO solution end function As !!!!array of x times PDF(x,Q) for hadron 'hadron' !!! unpolarized PDF used in uTMDPDF !!!! array is (-5:5) (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function xPDF(x,Q,hadron) real(dp),intent(in) :: x,Q integer,intent(in):: hadron real(dp), dimension(-5:5):: xPDF real(dp), dimension (-6:6)::inputPDF call evolvePDFM(index_of_uPDF(hadron),x,Q,inputPDF) xPDF=inputPDF(-5:5) end function xPDF !!!! return x*F(x,mu) !!!! enumeration of flavors !!!! f = -5,-4, -3, -2, -1,0,1,2,3,5,4 !!!! = bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b !!! unpolarized FF used in uTMDFF !!!! enumeration of hadrons function xFF(x,Q,hadron) integer,intent(in) :: hadron real(dp),intent(in) :: x,Q real(dp),dimension(-5:5):: xFF real(dp), dimension (-6:6)::inputFF call evolvePDFM(index_of_uFF(hadron),x,Q,inputFF) xFF=inputFF(-5:5) end function xFF !!!!array of x times PDF(x,Q) for hadron 'hadron' !!! unpolarized PDF used in lpTMDPDF !!!! array is (-5:5) (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function x_lp_PDF(x,Q,hadron) real(dp),intent(in) :: x,Q integer,intent(in):: hadron real(dp), dimension(-5:5):: x_lp_PDF real(dp), dimension (-6:6)::inputPDF call evolvePDFM(index_of_lpPDF(hadron),x,Q,inputPDF) x_lp_PDF=inputPDF(-5:5) end function x_lp_PDF !!!!array of x times PDF(x,Q) for hadron 'hadron' !!! helicity PDF !!!! array is (-5:5) (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function x_hPDF(x,Q,hadron) real(dp),intent(in) :: x,Q integer,intent(in):: hadron real(dp), dimension(-5:5):: x_hPDF real(dp), dimension (-6:6)::inputPDF call evolvePDFM(index_of_hPDF(hadron),x,Q,inputPDF) x_hPDF=inputPDF(-5:5) end function x_hPDF end module QCDinput
17,525
29.964664
110
f90
artemide-public
artemide-public-master/src/SiversTMDPDF.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! arTeMiDe 2.0 ! ! Evaluation of the Sivers TMD PDF f_{1T}^\perp at low normalization point in zeta-prescription. ! ! if you use this module please, quote 20??.???? ! ! ! A.Vladimirov (21.05.2020) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! module SiversTMDPDF use aTMDe_Numerics use IO_functions use QCDinput use SiversTMDPDF_model implicit none !------------------------LOCALs ----------------------------------------------- private !Current version of module character (len=5),parameter :: version="v2.05" character (len=12),parameter :: moduleName="SiversTMDPDF" !Last appropriate verion of constants-file integer,parameter::inputver=12 !--------------------------------Working variables----------------------------------------------- !--- general logical:: started=.false. !! Level of output !! 0=only critical !! 1=initialization details !! 2=WARNINGS integer::outputLevel=2 !! variable that count number of WRNING mesagges. In order not to spam too much integer::messageTrigger=6 !!! The global order which is used in programm ! it is set by SetOrderForC subroutine ! 0=LO, 1=NLO, 2=NNLO integer :: order_global integer::lambdaNPlength real(dp),dimension(:),allocatable::lambdaNP real(dp),dimension(:),allocatable::lambdaNP_grid !!! this is the value of lambda on which the grid is build real(dp)::c4_global!!!this is the variation constant for mu_OPE !!!Parameters of numerics real(dp) :: tolerance=0.0001d0!!! relative tolerance of the integration integer :: maxIteration=5000 integer :: counter,messageCounter INCLUDE 'Code/Twist3/Twist3Convolution-VAR.f90' INCLUDE 'Code/Grids/TMDGrid-B-VAR.f90' !!--------------------------------- variables for the griding the TMD.--------------------------------------------- logical :: gridReady!!!!indicator that grid is ready to use. If it is .true., the TMD calculated from the grid logical :: prepareGrid!!!idicator that grid must be prepared logical :: withGluon!!!indicator the gluon is needed in the grid logical :: IsFnpZdependent !!! indicator that the grid must be recalculated with the change of Lambda !!--------------------------------- variables for hadron composition--------------------------------------------- integer::numberOfHadrons !!!number of hadrons/components integer,dimension(:),allocatable::hadronsInGRID !!!list of hadron to be pre-grid logical::IsComposite=.false. !!!flag to use the composite TMD !!-----------------------------------------------Public interface--------------------------------------------------- public::SiversTMDPDF_Initialize,SiversTMDPDF_SetLambdaNP,SiversTMDPDF_SetScaleVariation,SiversTMDPDF_resetGrid,& SiversTMDPDF_SetPDFreplica public::SiversTMDPDF_IsInitialized,SiversTMDPDF_CurrentNPparameters public::SiversTMDPDF_lowScale5,SiversTMDPDF_lowScale50 ! public::CheckCoefficient ! public::mu_OPE interface SiversTMDPDF_SetLambdaNP module procedure SiversTMDPDF_SetLambdaNP_usual,SiversTMDPDF_SetReplica_optional end interface contains INCLUDE 'Code/Twist3/Twist3Convolution.f90' INCLUDE 'Code/Grids/TMDGrid-B-2.f90' !! Testing the model INCLUDE 'Code/SiversTMDPDF/modelTest.f90' !! The convolution interfaces INCLUDE 'Code/SiversTMDPDF/convolutions.f90' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Interface subroutines!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! function SiversTMDPDF_IsInitialized() logical::SiversTMDPDF_IsInitialized SiversTMDPDF_IsInitialized=started end function SiversTMDPDF_IsInitialized !! Initialization of the package subroutine SiversTMDPDF_Initialize(file,prefix) character(len=*)::file character(len=*),optional::prefix character(len=300)::path,line logical::initRequired character(len=8)::orderMain logical::bSTAR_lambdaDependent integer::i,FILEver if(started) return if(.not.QCDinput_IsInitialized()) then if(outputLevel>1) write(*,*) '.. initializing QCDinput (from ',moduleName,')' if(present(prefix)) then call QCDinput_Initialize(file,prefix) else call QCDinput_Initialize(file) end if end if if(present(prefix)) then path=trim(adjustl(prefix))//trim(adjustr(file)) else path=trim(adjustr(file)) end if OPEN(UNIT=51, FILE=path, ACTION="read", STATUS="old") !!! Search for output level call MoveTO(51,'*0 ') call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) FILEver if(FILEver<inputver) then write(*,*) 'artemide.'//trim(moduleName)//': const-file version is too old.' write(*,*) ' Update the const-file with artemide.setup' write(*,*) ' ' stop end if call MoveTO(51,'*p2 ') read(51,*) outputLevel if(outputLevel>1) write(*,*) '--------------------------------------------- ' if(outputLevel>1) write(*,*) 'artemide.',moduleName,version,': initialization started ... ' call MoveTO(51,'*p3 ') read(51,*) messageTrigger call MoveTO(51,'*12 ') call MoveTO(51,'*p1 ') read(51,*) initRequired if(.not.initRequired) then if(outputLevel>1) write(*,*)'artemide.',moduleName,': initialization is not required. ' started=.false. return end if !----- ORDER call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) orderMain SELECT CASE(trim(orderMain)) CASE ("NA") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: NA',color(" (TMD=fNP)",c_yellow) order_global=-50 CASE ("LO") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: LO' order_global=0 CASE ("LO+") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: LO+' order_global=0 CASE DEFAULT if(outputLevel>0) write(*,*) & WarningString('Initialize: unknown order for coefficient function. Switch to LO.',moduleName) if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: LO' order_global=0 END SELECT if(outputLevel>2 .and. order_global>-1) write(*,'(A,I1)') ' | Coef.func. =as^',order_global !------ Compositeness call MoveTO(51,'*p2 ') read(51,*) IsComposite if(outputLevel>2) then if(IsComposite) then write(*,'(A,I1)') ' | Use compsite =TRUE' else write(*,'(A,I1)') ' | Use compsite =FALSE' end if end if !-------------parameters of NP model call MoveTO(51,'*B ') call MoveTO(51,'*p1 ') read(51,*) lambdaNPlength if(outputLevel>2) write(*,'(A,I3)') ' Number of NP parameters =',lambdaNPlength if(lambdaNPlength<=0) then write(*,*) ErrorString('Initialize: number of non-pertrubative & parameters should be >=1. Check the constants-file. Evaluation STOP',moduleName) stop end if allocate(lambdaNP(1:lambdaNPlength)) call MoveTO(51,'*p2 ') do i=1,lambdaNPlength read(51,*) lambdaNP(i) end do !-------------Numeric parameters call MoveTO(51,'*C ') call MoveTO(51,'*p1 ') read(51,*) tolerance call MoveTO(51,'*p2 ') read(51,*) maxIteration if(outputLevel>2) then write(*,'(A,ES10.3)') ' | tolerance =',tolerance write(*,'(A,ES10.3)') ' | max iteration =',REAL(maxIteration) end if !-------------Make grid options call MoveTO(51,'*D ') call MoveTO(51,'*p1 ') read(51,*) prepareGrid call MoveTO(51,'*p2 ') read(51,*) withGluon call MoveTO(51,'*p3 ') read(51,*) numberOfHadrons allocate(hadronsInGRID(1:numberOfHadrons)) call MoveTO(51,'*p4 ') read(51,*) hadronsInGRID !-------------Parameters of grid call MoveTO(51,'*E ') call MoveTO(51,'*p1 ') read(51,*) xGrid_Min call MoveTO(51,'*p2 ') read(51,*) bGrid_Max call MoveTO(51,'*p3 ') read(51,*) GridSizeX call MoveTO(51,'*p4 ') read(51,*) GridSizeB call MoveTO(51,'*p5 ') read(51,*) slope if(outputLevel>2) then write(*,*) 'Grid options:' write(*,'(A,ES10.3)') ' | xGrid_Min =',xGrid_Min write(*,'(A,ES10.3)') ' | bGrid_Max =',bGrid_Max write(*,'(A,I6,A,I6,A)') ' | (GridSizeX,GridSizeB) =(',GridSizeX,',',GridSizeB,')' write(*,'(A,F6.3)') ' | slope =',slope write(*,'(A,I3)') ' | hadrons to grid =',numberOfHadrons write(*,*) ' | list of hadrons in grid =(',hadronsInGRID,')' end if CLOSE (51, STATUS='KEEP') allocate(gridMain(0:GridSizeX,0:GridSizeB,-5:5,1:numberOfHadrons)) allocate(boundaryValues(0:GridSizeX,-5:5,1:numberOfHadrons)) allocate(lambdaNP_grid(1:lambdaNPlength)) c4_global=1d0 call ModelInitialization(lambdaNP) !!!!!!!Checking the lambda-dependance of bSTAR bSTAR_lambdaDependent=testbSTAR() if(bSTAR_lambdaDependent) then if(outputLevel>2) write(*,*) 'arTeMiDe.SiversTMDPDF: bSTAR is dependent on lambda' else if(outputLevel>2) write(*,*) 'arTeMiDe.SiversTMDPDF: bSTAR is independent on lambda' end if !!! if fnp depende on z or bSTAR depeds on lambda !!! grid must be recalculate ech time. It canbe saved to single IsFnpZdependent if(bSTAR_lambdaDependent) then IsFnpZdependent=.true. if(outputLevel>2) write(*,*) 'arTeMiDe.SiversTMDPDF: ............. convolution is lambda sensitive.' end if started=.true. messageCounter=0 if(outputLevel>0) write(*,*) color('----- arTeMiDe.SiversTMDPDF '//trim(version)//': .... initialized',c_green) if(outputLevel>1) write(*,*) ' ' end subroutine SiversTMDPDF_Initialize !! call for parameters from the model subroutine SiversTMDPDF_SetReplica_optional(num,buildGrid, gluonRequired) integer,intent(in):: num logical,optional,intent(in):: buildGrid,gluonRequired real(dp),allocatable::NParray(:) call GetReplicaParameters(num,NParray) if(present(buildGrid)) then if(present(gluonRequired)) then call SiversTMDPDF_SetLambdaNP_usual(NParray,buildGrid=buildGrid,gluonRequired=gluonRequired) else call SiversTMDPDF_SetLambdaNP_usual(NParray,buildGrid=buildGrid) end if else if(present(gluonRequired)) then call SiversTMDPDF_SetLambdaNP_usual(NParray,gluonRequired=gluonRequired) else call SiversTMDPDF_SetLambdaNP_usual(NParray) end if end if end subroutine SiversTMDPDF_SetReplica_optional !! call QCDinput to change the PDF replica number !! unset the grid, since it should be recalculated fro different PDF replica. subroutine SiversTMDPDF_SetPDFreplica(rep,hadron) integer,intent(in):: rep,hadron if(outputLevel>0) write(*,*) & WarningString('Cannot change PDF replica. No PDFs for Sivers. NOTHING IS DONE!',moduleName) end subroutine SiversTMDPDF_SetPDFreplica !!!Sets the non-pertrubative parameters lambda !!! carries additionl option to build the grid !!! if need to build grid, specify the gluon required directive. subroutine SiversTMDPDF_SetLambdaNP_usual(lambdaIN,buildGrid, gluonRequired) real(dp),intent(in)::lambdaIN(:) logical,optional,intent(in) :: buildGrid,gluonRequired real(dp),dimension(1:lambdaNPlength)::lambdaOLD logical::IsNewValues integer::i,ll messageCounter=0 if(present(buildGrid)) prepareGrid=buildGrid if(present(gluonRequired)) withGluon=gluonRequired ll=size(lambdaIN) if(ll<lambdaNPlength) then if(outputLevel>0) write(*,"(A,I3,A,I3,')')")& WarningString('SetLambdaNP:length of lambdaNP(',moduleName),& ll,color(') is less then requred (',c_red),lambdaNPlength if(outputLevel>0) write(*,*)color(' Rest parameters are replaced by zeros!',c_red) lambdaNP=0d0*lambdaNP lambdaNP(1:ll)=lambdaIN(1:ll) else if (ll>lambdaNPlength) then if(outputLevel>0) write(*,"(A,I3,A,I3,')')")& WarningString('SetLambdaNP:length of lambdaNP(',moduleName),& ll,color(') is greater then requred (',c_red),lambdaNPlength if(outputLevel>0) write(*,*)color(' Array is truncated!',c_red) lambdaNP(1:lambdaNPlength)=lambdaIN(1:lambdaNPlength) else lambdaOLD=lambdaNP lambdaNP=lambdaIN end if lambdaOLD=lambdaNP lambdaNP=lambdaIN IsNewValues=.false. do i=1,lambdaNPlength if(ABS(lambdaNP(i)-lambdaOLD(i))>10d-10) then IsNewValues=.true. exit end if end do if(IsNewValues.and.(outputLevel>2)) write(*,*) 'arTeMiDe.',moduleName,': NPparameters reset = (',lambdaNP,')' call ModelUpdate(lambdaNP) !! further if's are only for griding if(prepareGrid) then !!!grid is requred if(IsNewValues) then !! values are new if(gridReady) then !!! grid is already build if(IsFnpZdependent) then !!! check the z-dependance of FNP !! if it is z- dependent, rebuild the grid gridReady=.false. call MakeGrid() gridReady=.true. else !!! if z-Independent just do nothing. if(outputLevel>2) write(*,*) 'arTeMiDe.',moduleName,': the values are to be restored from the initial grid' end if else !!! grid is not ready (how comes?) call MakeGrid() gridReady=.true. end if else !! values are old if(gridReady) then !!! grid is already build !!!nothing to do else!!rare option then parameters are not new but grit is not build if(outputLevel>2) write(*,*) 'arTeMiDe.',moduleName,': parameters are not reset. But grid is not ready.' call MakeGrid() gridReady=.true. end if end if else gridReady=.false. end if end subroutine SiversTMDPDF_SetLambdaNP_usual !!! returns current value of NP parameters subroutine SiversTMDPDF_CurrentNPparameters(var) real(dp),dimension(1:lambdaNPlength),intent(out)::var var=lambdaNP end subroutine SiversTMDPDF_CurrentNPparameters !!! This subroutine ask for the grid reconstruction (or destruction) subroutine SiversTMDPDF_resetGrid(buildGrid,gluonRequired) logical,optional,intent(in)::buildGrid,gluonRequired logical::previousState if(present(buildGrid)) prepareGrid=buildGrid if(present(gluonRequired)) withGluon=gluonRequired previousState=gridReady gridReady=.false. !! we recalculate grid only if it was already calculated! if(prepareGrid .and. previousState) then if(outputLevel>1) write(*,*) 'arTeMiDe ',moduleName,': Grid Reset. with c4=',c4_global call MakeGrid() gridReady=.true. end if end subroutine SiversTMDPDF_resetGrid !!!! this routine set the variations of scales !!!! it is used for the estimation of errors subroutine SiversTMDPDF_SetScaleVariation(c4_in) real(dp),intent(in)::c4_in if(c4_in<0.1d0 .or. c4_in>10.d0) then if(outputLevel>0) write(*,*) WarningString('variation in c4 is enourmous. c4 is set to 2',moduleName) c4_global=2d0 call SiversTMDPDF_resetGrid() else if(abs(c4_in-c4_global)<tolerance) then if(outputLevel>1) write(*,*) color('SiversTMDPDF: c4-variation is ignored. c4='//real8ToStr(c4_global),c_yellow) else c4_global=c4_in if(outputLevel>1) write(*,*) color('SiversTMDPDF: set scale variations constant c4 as:'//real8ToStr(c4_global),c_yellow) call SiversTMDPDF_resetGrid() end if end subroutine SiversTMDPDF_SetScaleVariation end module SiversTMDPDF
15,997
33.70282
128
f90
artemide-public
artemide-public-master/src/TMDF.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! arTeMiDe 1.41 ! ! Evaluation of the TMD structure function ! ! if you use this module please, quote 1706.01473 ! ! ver 1.31: release (AV, 30.05.2018) ! ver 1.41: fixed potential bug in the initialisation order (AV, 28.02.2019) ! ! A.Vladimirov (30.05.2018) ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! module TMDF use aTMDe_Numerics use IO_functions use TMDs use EWinput implicit none private ! public character (len=7),parameter :: moduleName="TMDF" character (len=5),parameter :: version="v2.05" !Last appropriate verion of constants-file integer,parameter::inputver=16 !------------------------------------------Tables----------------------------------------------------------------------- integer,parameter::Nmax=1000 INCLUDE 'Tables/BesselZero1000.f90' !------------------------------------------Working variables------------------------------------------------------------ integer::outputLevel=2 !! variable that count number of WRNING mesagges. In order not to spam too much integer::messageTrigger=6 logical::started=.false. logical:: convergenceLost=.false. !!!!! I split the qT over runs qT<qTSegmentationBoundary !!!!! In each segment I have the ogata quadrature with h=hOGATA*hSegmentationWeight !!!!! It helps to convergen integrals, since h(optimal) ~ qT integer,parameter::hSegmentationNumber=5 real(dp),dimension(1:hSegmentationNumber),parameter::hSegmentationWeight=(/0.001d0,0.01d0,0.1d0,1d0,5d0/) real(dp),dimension(1:hSegmentationNumber),parameter::qTSegmentationBoundary=(/0.001d0,0.01d0,0.1d0,1d0,50d0/) real(dp)::hOGATA,tolerance !!!weights of ogata quadrature real(dp),dimension(1:hSegmentationNumber,0:3,1:Nmax)::ww,ww0 !!!nodes of ogata quadrature real(dp),dimension(1:hSegmentationNumber,0:3,1:Nmax)::bb,bb0 real(dp):: global_mass_scale=0.938_dp integer::GlobalCounter integer::CallCounter integer::MaxCounter integer::messageCounter !-----------------------------------------Public interface-------------------------------------------------------------- public::TMDF_Initialize,TMDF_ShowStatistic,TMDF_ResetCounters public:: TMDF_F public::TMDF_convergenceISlost,TMDF_IsconvergenceLost,TMDF_IsInitialized public::Integrand contains INCLUDE 'Code/TMDF/Ogata.f90' function TMDF_IsInitialized() logical::TMDF_IsInitialized TMDF_IsInitialized=started end function TMDF_IsInitialized !! Initialization of the package subroutine TMDF_Initialize(file,prefix) character(len=*)::file character(len=*),optional::prefix character(len=300)::path,line logical::initRequired integer::FILEver if(started) return if(present(prefix)) then path=trim(adjustl(prefix))//trim(adjustr(file)) else path=trim(adjustr(file)) end if OPEN(UNIT=51, FILE=path, ACTION="read", STATUS="old") !!! Search for output level call MoveTO(51,'*0 ') call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) FILEver if(FILEver<inputver) then write(*,*) 'artemide.'//trim(moduleName)//': const-file version is too old.' write(*,*) ' Update the const-file with artemide.setup' write(*,*) ' ' stop end if call MoveTO(51,'*p2 ') read(51,*) outputLevel if(outputLevel>2) write(*,*) '--------------------------------------------- ' if(outputLevel>2) write(*,*) 'artemide.',moduleName,version,': initialization started ... ' call MoveTO(51,'*p3 ') read(51,*) messageTrigger call MoveTO(51,'*7 ') call MoveTO(51,'*p1 ') read(51,*) initRequired if(.not.initRequired) then if(outputLevel>2) write(*,*)'artemide.',moduleName,': initialization is not required. ' started=.false. return end if call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) tolerance call MoveTO(51,'*p2 ') read(51,*) hOGATA call MoveTO(51,'*B ') call MoveTO(51,'*p1 ') read(51,*) global_mass_scale if(outputLevel>2) write(*,'(A,ES8.2)') ' | h for Ogata quadrature : ',hOGATA if(outputLevel>2) write(*,'(A,ES8.2)') ' | tolerance : ',tolerance CLOSE (51, STATUS='KEEP') if(outputLevel>1) write(*,*) 'arTeMiDe.TMDF: preparing Ogata tables' call PrepareTables() if(outputLevel>2) write(*,'(A,I4)') ' | Maximum number of nodes :',Nmax if(outputLevel>1) write(*,*) 'arTeMiDe.TMDF: Ogata tables prepared' convergenceLost=.false. GlobalCounter=0 CallCounter=0 MaxCounter=0 messageCounter=0 if(.not.TMDs_IsInitialized()) then if(outputLevel>1) write(*,*) '.. initializing TMDs (from ',moduleName,')' if(present(prefix)) then call TMDs_Initialize(file,prefix) else call TMDs_Initialize(file) end if end if if(.not.EWinput_IsInitialized()) then if(outputLevel>1) write(*,*) '.. initializing EWinput (from ',moduleName,')' if(present(prefix)) then call EWinput_Initialize(file,prefix) else call EWinput_Initialize(file) end if end if started=.true. if(outputLevel>0) write(*,*) color('----- arTeMiDe.TMDF '//trim(version)//': .... initialized',c_green) if(outputLevel>1) write(*,*) ' ' end subroutine TMDF_Initialize !!!!!!!Functions which carry the trigger on convergences.... Its used in xSec, and probably in other places. function TMDF_IsconvergenceLost() logical::TMDF_IsconvergenceLost !!! checks TMDs trigger TMDF_IsconvergenceLost=convergenceLost end function TMDF_IsconvergenceLost subroutine TMDF_convergenceISlost() convergenceLost=.true. if(outputLevel>1) write(*,*) WarningString('convergenceLOST trigger ON',moduleName) end subroutine TMDF_convergenceISlost subroutine TMDF_ShowStatistic() if(convergenceLost) then write(*,*) ' TMDF statistics: convergence has been lost.' else write(*,'(A,ES12.3)') 'TMDF statistics total calls of TMDs : ',Real(2*GlobalCounter) write(*,'(A,ES12.3)') ' total calls of TMDF_F : ',Real(CallCounter) write(*,'(A,F12.3)') ' avarage M : ',Real(GlobalCounter)/Real(CallCounter) write(*,'(A,I12)') ' maximum calls : ',MaxCounter end if end subroutine TMDF_ShowStatistic !passes the NP parameters to TMDs subroutine TMDF_ResetCounters() if(outputLevel>2) call TMDF_ShowStatistic() convergenceLost=.false. GlobalCounter=0 CallCounter=0 MaxCounter=0 messageCounter=0 end subroutine TMDF_ResetCounters function Integrand(Q2,b,x1,x2,mu,zeta1,zeta2,process) real(dp)::Integrand real(dp)::b,x1,x2,mu,zeta1,zeta2,Q2 integer::process,h real(dp),dimension(-5:5)::FA,FB,FAB !increment counter GlobalCounter=GlobalCounter+1 if(b>1000d0) then Integrand=0d0 return end if SELECT CASE(process) !!!test case CASE(0,10000,20000,30000) Integrand=Exp(-0.2d0*b) CASE(9999,19999,29999,39999) Integrand=Exp(-mu*b)*(1d0+x1*b**2+x2*b**4) CASE(9998,19998,29998,39998) Integrand=Exp(-mu*b**2)*(1d0+x1*b**2+x2*b**4) !-------------------------------------------------------------------------------- CASE (1) !pp->gamma ! e_q^2 *F_q(A)*F_qbar(B) if(zeta1==zeta2) then FAB=uPDF_uPDF(x1,x2,b,mu,zeta1,1,1) else FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDPDF_5(x2,b,mu,zeta2,1) FAB=FA*(FB(5:-5:-1)) end if Integrand=FAB(1)/9.d0& +FAB(2)*4.d0/9.d0& +FAB(3)/9.d0& +FAB(4)*4d0/9.d0& +FAB(5)/9d0& +FAB(-1)/9.d0& +FAB(-2)*4.d0/9.d0& +FAB(-3)/9.d0& +FAB(-4)*4d0/9.d0& +FAB(-5)/9d0 !-------------------------------------------------------------------------------- CASE (2) !ppbar->gamma ! e_q^2 *F_q(A)*F_q(B) if(zeta1==zeta2) then FAB=uPDF_anti_uPDF(x1,x2,b,mu,zeta1,1,1) else FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDPDF_5(x2,b,mu,zeta2,1) FAB=FA*FB end if Integrand=FAB(1)/9.d0& +FAB(2)*4.d0/9.d0& +FAB(3)/9.d0& +FAB(4)*4d0/9.d0& +FAB(5)/9d0& +FAB(-1)/9.d0& +FAB(-2)*4.d0/9.d0& +FAB(-3)/9.d0& +FAB(-4)*4d0/9.d0& +FAB(-5)/9d0 !-------------------------------------------------------------------------------- CASE (3) !pp->Z !((1-2|eq|sw^2)^2+4eq^2sw^4)/(8sw^2cw^2) *F_q(A)*F_qbar(B) if(zeta1==zeta2) then FAB=uPDF_uPDF(x1,x2,b,mu,zeta1,1,1) else FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDPDF_5(x2,b,mu,zeta2,1) FAB=FA*(FB(5:-5:-1)) end if Integrand=& FAB(1)*paramD& +FAB(2)*paramU& +FAB(3)*paramS& +FAB(4)*paramC& +FAB(5)*paramB& +FAB(-1)*paramD& +FAB(-2)*paramU& +FAB(-3)*paramS& +FAB(-4)*paramC& +FAB(-5)*paramB !-------------------------------------------------------------------------------- CASE (4) !ppbar->Z !((1-2|eq|sw^2)^2+4eq^2sw^4)/(8sw^2cw^2) *F_q(A)*F_qbar(B) if(zeta1==zeta2) then FAB=uPDF_anti_uPDF(x1,x2,b,mu,zeta1,1,1) else FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDPDF_5(x2,b,mu,zeta2,1) FAB=FA*FB end if Integrand=& FAB(1)*paramD& +FAB(2)*paramU& +FAB(3)*paramS& +FAB(4)*paramC& +FAB(5)*paramB& +FAB(-1)*paramD& +FAB(-2)*paramU& +FAB(-3)*paramS& +FAB(-4)*paramC& +FAB(-5)*paramB !-------------------------------------------------------------------------------- CASE (5) !pp->Z+gamma if(zeta1==zeta2) then FAB=uPDF_uPDF(x1,x2,b,mu,zeta1,1,1) else FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDPDF_5(x2,b,mu,zeta2,1) FAB=FA*(FB(5:-5:-1)) end if Integrand=XIntegrandForDYwithZgamma(FAB,Q2) !-------------------------------------------------------------------------------- CASE (6) !ppbar->Z+gamma if(zeta1==zeta2) then FAB=uPDF_anti_uPDF(x1,x2,b,mu,zeta1,1,1) else FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDPDF_5(x2,b,mu,zeta2,1) FAB=FA*FB end if !! we invert the order of FB Integrand=XIntegrandForDYwithZgamma(FAB,Q2) !-------------------------------------------------------------------------------- CASE (7) !pp-> W+ FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDPDF_5(x2,b,mu,zeta2,1) Integrand=paramW_L*(& paramW_UD*(FA(2)*FB(-1)+FA(-1)*FB(2))& !u*dbar+dbar*u +paramW_US*(FA(2)*FB(-3)+FA(-3)*FB(2))& !u*sbar+sbar*u +paramW_UB*(FA(2)*FB(-5)+FA(-5)*FB(2))& !u*bbar+bbar*u +paramW_CD*(FA(4)*FB(-1)+FA(-1)*FB(4))& !c*dbar+dbar*c +paramW_CS*(FA(4)*FB(-3)+FA(-3)*FB(4))& !c*sbar+sbar*c +paramW_CB*(FA(4)*FB(-5)+FA(-5)*FB(4))& !c*bbar+bbar*c )*Q2*Q2/((Q2-MW2)**2+GammaW2*MW2) !-------------------------------------------------------------------------------- CASE (8) !pp-> W- FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDPDF_5(x2,b,mu,zeta2,1) Integrand=paramW_L*(& paramW_UD*(FA(1)*FB(-2)+FA(-2)*FB(1))& !d*ubar+ubar*d +paramW_US*(FA(3)*FB(-2)+FA(-2)*FB(3))& !s*ubar+ubar*s +paramW_UB*(FA(5)*FB(-2)+FA(-2)*FB(5))& !b*ubar+ubar*b +paramW_CD*(FA(1)*FB(-4)+FA(-4)*FB(1))& !d*cbar+cbar*d +paramW_CS*(FA(3)*FB(-4)+FA(-4)*FB(3))& !s*cbar+cbar*s +paramW_CB*(FA(5)*FB(-4)+FA(-4)*FB(5))& !b*cbar+cbar*b )*Q2*Q2/((Q2-MW2)**2+GammaW2*MW2) !-------------------------------------------------------------------------------- CASE (9) !pp-> W+ + W- FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDPDF_5(x2,b,mu,zeta2,1) Integrand=paramW_L*(& paramW_UD*(FA(2)*FB(-1)+FA(1)*FB(-2)+FA(-2)*FB(1)+FA(-1)*FB(2))& !u*dbar+d*ubar+ubar*d+dbar*u +paramW_US*(FA(2)*FB(-3)+FA(3)*FB(-2)+FA(-2)*FB(3)+FA(-3)*FB(2))& !u*sbar+s*ubar+ubar*s+sbar*u +paramW_UB*(FA(2)*FB(-5)+FA(5)*FB(-2)+FA(-2)*FB(5)+FA(-5)*FB(2))& !u*bbar+b*ubar+ubar*b+bbar*u +paramW_CD*(FA(4)*FB(-1)+FA(1)*FB(-4)+FA(-4)*FB(1)+FA(-1)*FB(4))& !c*dbar+d*cbar+cbar*d+dbar*c +paramW_CS*(FA(4)*FB(-3)+FA(3)*FB(-4)+FA(-4)*FB(3)+FA(-3)*FB(4))& !c*sbar+s*cbar+cbar*s+sbar*c +paramW_CB*(FA(4)*FB(-5)+FA(5)*FB(-4)+FA(-4)*FB(5)+FA(-5)*FB(4))& !c*bbar+b*cbar+cbar*b+bbar*c )*Q2*Q2/((Q2-MW2)**2+GammaW2*MW2) !-------------------------------------------------------------------------------- CASE (10) !ppbar-> W+ FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDPDF_5(x2,b,mu,zeta2,1) FB=FB(5:-5:-1) !! inverse the quark order Integrand=paramW_L*(& paramW_UD*(FA(2)*FB(-1)+FA(-1)*FB(2))& !u*dbar+dbar*u +paramW_US*(FA(2)*FB(-3)+FA(-3)*FB(2))& !u*sbar+sbar*u +paramW_UB*(FA(2)*FB(-5)+FA(-5)*FB(2))& !u*bbar+bbar*u +paramW_CD*(FA(4)*FB(-1)+FA(-1)*FB(4))& !c*dbar+dbar*c +paramW_CS*(FA(4)*FB(-3)+FA(-3)*FB(4))& !c*sbar+sbar*c +paramW_CB*(FA(4)*FB(-5)+FA(-5)*FB(4))& !c*bbar+bbar*c )*Q2*Q2/((Q2-MW2)**2+GammaW2*MW2) !-------------------------------------------------------------------------------- CASE (11) !ppbar-> W- FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDPDF_5(x2,b,mu,zeta2,1) FB=FB(5:-5:-1) !! inverse the quark order Integrand=paramW_L*(& paramW_UD*(FA(1)*FB(-2)+FA(-2)*FB(1))& !d*ubar+ubar*d +paramW_US*(FA(3)*FB(-2)+FA(-2)*FB(3))& !s*ubar+ubar*s +paramW_UB*(FA(5)*FB(-2)+FA(-2)*FB(5))& !b*ubar+ubar*b +paramW_CD*(FA(1)*FB(-4)+FA(-4)*FB(1))& !d*cbar+cbar*d +paramW_CS*(FA(3)*FB(-4)+FA(-4)*FB(3))& !s*cbar+cbar*s +paramW_CB*(FA(5)*FB(-4)+FA(-4)*FB(5))& !b*cbar+cbar*b )*Q2*Q2/((Q2-MW2)**2+GammaW2*MW2) !-------------------------------------------------------------------------------- CASE (12) !ppbar-> W+ + W- FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDPDF_5(x2,b,mu,zeta2,1) FB=FB(5:-5:-1) !! inverse the quark order Integrand=paramW_L*(& paramW_UD*(FA(2)*FB(-1)+FA(1)*FB(-2)+FA(-2)*FB(1)+FA(-1)*FB(2))& !u*dbar+d*ubar+ubar*d+dbar*u +paramW_US*(FA(2)*FB(-3)+FA(3)*FB(-2)+FA(-2)*FB(3)+FA(-3)*FB(2))& !u*sbar+s*ubar+ubar*s+sbar*u +paramW_UB*(FA(2)*FB(-5)+FA(5)*FB(-2)+FA(-2)*FB(5)+FA(-5)*FB(2))& !u*bbar+b*ubar+ubar*b+bbar*u +paramW_CD*(FA(4)*FB(-1)+FA(1)*FB(-4)+FA(-4)*FB(1)+FA(-1)*FB(4))& !c*dbar+d*cbar+cbar*d+dbar*c +paramW_CS*(FA(4)*FB(-3)+FA(3)*FB(-4)+FA(-4)*FB(3)+FA(-3)*FB(4))& !c*sbar+s*cbar+cbar*s+sbar*c +paramW_CB*(FA(4)*FB(-5)+FA(5)*FB(-4)+FA(-4)*FB(5)+FA(-5)*FB(4))& !c*bbar+b*cbar+cbar*b+bbar*c )*Q2*Q2/((Q2-MW2)**2+GammaW2*MW2) !-------------------------------------------------------------------------------- CASE (13) !pp-> W+ FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDPDF_5(x2,b,mu,zeta2,1) Integrand=& paramW_UD*(FA(2)*FB(-1)+FA(-1)*FB(2))& !u*dbar+dbar*u +paramW_US*(FA(2)*FB(-3)+FA(-3)*FB(2))& !u*sbar+sbar*u +paramW_UB*(FA(2)*FB(-5)+FA(-5)*FB(2))& !u*bbar+bbar*u +paramW_CD*(FA(4)*FB(-1)+FA(-1)*FB(4))& !c*dbar+dbar*c +paramW_CS*(FA(4)*FB(-3)+FA(-3)*FB(4))& !c*sbar+sbar*c +paramW_CB*(FA(4)*FB(-5)+FA(-5)*FB(4)) !c*bbar+bbar*c !-------------------------------------------------------------------------------- CASE (14) !pp-> W- FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDPDF_5(x2,b,mu,zeta2,1) Integrand=& paramW_UD*(FA(1)*FB(-2)+FA(-2)*FB(1))& !d*ubar+ubar*d +paramW_US*(FA(3)*FB(-2)+FA(-2)*FB(3))& !s*ubar+ubar*s +paramW_UB*(FA(5)*FB(-2)+FA(-2)*FB(5))& !b*ubar+ubar*b +paramW_CD*(FA(1)*FB(-4)+FA(-4)*FB(1))& !d*cbar+cbar*d +paramW_CS*(FA(3)*FB(-4)+FA(-4)*FB(3))& !s*cbar+cbar*s +paramW_CB*(FA(5)*FB(-4)+FA(-4)*FB(5)) !b*cbar+cbar*b !-------------------------------------------------------------------------------- CASE (15) !pp-> W+ + W- FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDPDF_5(x2,b,mu,zeta2,1) Integrand=& paramW_UD*(FA(2)*FB(-1)+FA(1)*FB(-2)+FA(-2)*FB(1)+FA(-1)*FB(2))& !u*dbar+d*ubar+ubar*d+dbar*u +paramW_US*(FA(2)*FB(-3)+FA(3)*FB(-2)+FA(-2)*FB(3)+FA(-3)*FB(2))& !u*sbar+s*ubar+ubar*s+sbar*u +paramW_UB*(FA(2)*FB(-5)+FA(5)*FB(-2)+FA(-2)*FB(5)+FA(-5)*FB(2))& !u*bbar+b*ubar+ubar*b+bbar*u +paramW_CD*(FA(4)*FB(-1)+FA(1)*FB(-4)+FA(-4)*FB(1)+FA(-1)*FB(4))& !c*dbar+d*cbar+cbar*d+dbar*c +paramW_CS*(FA(4)*FB(-3)+FA(3)*FB(-4)+FA(-4)*FB(3)+FA(-3)*FB(4))& !c*sbar+s*cbar+cbar*s+sbar*c +paramW_CB*(FA(4)*FB(-5)+FA(5)*FB(-4)+FA(-4)*FB(5)+FA(-5)*FB(4)) !c*bbar+b*cbar+cbar*b+bbar*c !-------------------------------------------------------------------------------- CASE (16) !ppbar-> W+ FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDPDF_5(x2,b,mu,zeta2,1) FB=FB(5:-5:-1) !! inverse the quark order Integrand=& paramW_UD*(FA(2)*FB(-1)+FA(-1)*FB(2))& !u*dbar+dbar*u +paramW_US*(FA(2)*FB(-3)+FA(-3)*FB(2))& !u*sbar+sbar*u +paramW_UB*(FA(2)*FB(-5)+FA(-5)*FB(2))& !u*bbar+bbar*u +paramW_CD*(FA(4)*FB(-1)+FA(-1)*FB(4))& !c*dbar+dbar*c +paramW_CS*(FA(4)*FB(-3)+FA(-3)*FB(4))& !c*sbar+sbar*c +paramW_CB*(FA(4)*FB(-5)+FA(-5)*FB(4)) !c*bbar+bbar*c !-------------------------------------------------------------------------------- CASE (17) !ppbar-> W- FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDPDF_5(x2,b,mu,zeta2,1) FB=FB(5:-5:-1) !! inverse the quark order Integrand=& paramW_UD*(FA(1)*FB(-2)+FA(-2)*FB(1))& !d*ubar+ubar*d +paramW_US*(FA(3)*FB(-2)+FA(-2)*FB(3))& !s*ubar+ubar*s +paramW_UB*(FA(5)*FB(-2)+FA(-2)*FB(5))& !b*ubar+ubar*b +paramW_CD*(FA(1)*FB(-4)+FA(-4)*FB(1))& !d*cbar+cbar*d +paramW_CS*(FA(3)*FB(-4)+FA(-4)*FB(3))& !s*cbar+cbar*s +paramW_CB*(FA(5)*FB(-4)+FA(-4)*FB(5)) !b*cbar+cbar*b !-------------------------------------------------------------------------------- CASE (18) !ppbar-> W+ + W- FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDPDF_5(x2,b,mu,zeta2,1) FB=FB(5:-5:-1) !! inverse the quark order Integrand=& paramW_UD*(FA(2)*FB(-1)+FA(1)*FB(-2)+FA(-2)*FB(1)+FA(-1)*FB(2))& !u*dbar+d*ubar+ubar*d+dbar*u +paramW_US*(FA(2)*FB(-3)+FA(3)*FB(-2)+FA(-2)*FB(3)+FA(-3)*FB(2))& !u*sbar+s*ubar+ubar*s+sbar*u +paramW_UB*(FA(2)*FB(-5)+FA(5)*FB(-2)+FA(-2)*FB(5)+FA(-5)*FB(2))& !u*bbar+b*ubar+ubar*b+bbar*u +paramW_CD*(FA(4)*FB(-1)+FA(1)*FB(-4)+FA(-4)*FB(1)+FA(-1)*FB(4))& !c*dbar+d*cbar+cbar*d+dbar*c +paramW_CS*(FA(4)*FB(-3)+FA(3)*FB(-4)+FA(-4)*FB(3)+FA(-3)*FB(4))& !c*sbar+s*cbar+cbar*s+sbar*c +paramW_CB*(FA(4)*FB(-5)+FA(5)*FB(-4)+FA(-4)*FB(5)+FA(-5)*FB(4)) !c*bbar+b*cbar+cbar*b+bbar*c !-------------------------------------------------------------------------------- CASE(20) !pp -> Higgs (unpol.part+lin.pol.part) FA=uTMDPDF_50(x1,b,mu,zeta1,1) FB=uTMDPDF_50(x2,b,mu,zeta2,1) Integrand=FA(0)*FB(0) !!!! unpolarized part FA=lpTMDPDF_50(x1,b,mu,zeta1,1) FB=lpTMDPDF_50(x2,b,mu,zeta2,1) Integrand=Integrand+FA(0)*FB(0) !!!! linearly polarized part !-------------------------------------------------------------------------------- CASE(21) !pp -> Higgs (unpol.part) FA=uTMDPDF_50(x1,b,mu,zeta1,1) FB=uTMDPDF_50(x2,b,mu,zeta2,1) Integrand=FA(0)*FB(0) !-------------------------------------------------------------------------------- CASE(22) !pp -> Higgs (lin.pol.part) FA=lpTMDPDF_50(x1,b,mu,zeta1,1) FB=lpTMDPDF_50(x2,b,mu,zeta2,1) Integrand=FA(0)*FB(0) !-------------------------------------------------------------------------------- CASE (101) !p h->gamma ! e_q^2 *F_q(A)*F_qbar(B) if(zeta1==zeta2) then FAB=uPDF_uPDF(x1,x2,b,mu,zeta1,2,1) else FA=uTMDPDF_5(x1,b,mu,zeta1,2) FB=uTMDPDF_5(x2,b,mu,zeta2,1) FAB=FA*(FB(5:-5:-1)) end if Integrand=FAB(1)/9.d0& +FAB(2)*4.d0/9.d0& +FAB(3)/9.d0& +FAB(4)*4d0/9.d0& +FAB(5)/9d0& +FAB(-1)/9.d0& +FAB(-2)*4.d0/9.d0& +FAB(-3)/9.d0& +FAB(-4)*4d0/9.d0& +FAB(-5)/9d0 !-------------------------------------------------------------------------------- CASE (102) !pbar h->gamma ! e_q^2 *F_q(A)*F_q(B) if(zeta1==zeta2) then FAB=uPDF_anti_uPDF(x1,x2,b,mu,zeta1,2,1) else FA=uTMDPDF_5(x1,b,mu,zeta1,2) FB=uTMDPDF_5(x2,b,mu,zeta2,1) FAB=FA*FB end if !! in fact, we must revert this array, but the coefficients are symmetric Integrand=FAB(1)/9.d0& +FAB(2)*4.d0/9.d0& +FAB(3)/9.d0& +FAB(4)*4d0/9.d0& +FAB(5)/9d0& +FAB(-1)/9.d0& +FAB(-2)*4.d0/9.d0& +FAB(-3)/9.d0& +FAB(-4)*4d0/9.d0& +FAB(-5)/9d0 !-------------------------------------------------------------------------------- CASE (103) !p hbar->gamma ! e_q^2 *F_q(A)*F_qbar(B) if(zeta1==zeta2) then FAB=uPDF_anti_uPDF(x1,x2,b,mu,zeta1,2,1) else FA=uTMDPDF_5(x1,b,mu,zeta1,2) FB=uTMDPDF_5(x2,b,mu,zeta2,1) FAB=FA*FB end if !! in fact, we must revert this array, but the coefficients are symmetric Integrand=FAB(1)/9.d0& +FAB(2)*4.d0/9.d0& +FAB(3)/9.d0& +FAB(4)*4d0/9.d0& +FAB(5)/9d0& +FAB(-1)/9.d0& +FAB(-2)*4.d0/9.d0& +FAB(-3)/9.d0& +FAB(-4)*4d0/9.d0& +FAB(-5)/9d0 !-------------------------------------------------------------------------------- CASE (104) !pbar hbar->gamma ! e_q^2 *F_q(A)*F_q(B) ! e_q^2 *F_q(A)*F_qbar(B) if(zeta1==zeta2) then FAB=uPDF_uPDF(x1,x2,b,mu,zeta1,2,1) else FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDPDF_5(x2,b,mu,zeta2,2) FAB=FA*(FB(5:-5:-1)) end if Integrand=FAB(1)/9.d0& +FAB(2)*4.d0/9.d0& +FAB(3)/9.d0& +FAB(4)*4d0/9.d0& +FAB(5)/9d0& +FAB(-1)/9.d0& +FAB(-2)*4.d0/9.d0& +FAB(-3)/9.d0& +FAB(-4)*4d0/9.d0& +FAB(-5)/9d0 !-------------------------------------------------------------------------------- CASE (1001) !p+Cu->gamma* !!this is for E288 FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDPDF_5(x2,b,mu,zeta2,1) Integrand=116d0/567d0*(FA(2)*FB(-2)+FA(-2)*FB(2))+136d0/567d0*(FA(-2)*FB(1)+FA(2)*FB(-1))& +34d0/567d0*(FA(-1)*FB(2)+FA(1)*FB(-2))+29d0/567d0*(FA(-1)*FB(1)+FA(1)*FB(-1))& +1d0/9d0*(FA(-3)*FB(3)+FA(3)*FB(-3)+4d0*FA(-4)*FB(4)+4d0*FA(4)*FB(-4)+FA(-5)*FB(5)+FA(5)*FB(-5)) !-------------------------------------------------------------------------------- CASE (1002) !p+2H->gamma* !!this is for E772 FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDPDF_5(x2,b,mu,zeta2,1) Integrand=2d0/9d0*(FA(2)*FB(-2)+FA(-2)*FB(2))+2d0/9d0*(FA(-2)*FB(1)+FA(2)*FB(-1))& +1d0/18d0*(FA(-1)*FB(2)+FA(1)*FB(-2))+1d0/18d0*(FA(-1)*FB(1)+FA(1)*FB(-1))& +1d0/9d0*(FA(-3)*FB(3)+FA(3)*FB(-3)+4d0*FA(-4)*FB(4)+4d0*FA(4)*FB(-4)+FA(-5)*FB(5)+FA(5)*FB(-5)) !-------------------------------------------------------------------------------- CASE (1003) !pbar+W->gamma* !!this is for E537 !Wolfram has A=183, Z=74, N=109 FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDPDF_5(x2,b,mu,zeta2,1) Integrand=296d0/1647d0*(FA(2)*FB(2)+FA(-2)*FB(-2))+436d0/1647d0*(FA(2)*FB(1)+FA(-2)*FB(-1))& +109d0/1647d0*(FA(1)*FB(2)+FA(-1)*FB(-2))+74d0/1647d0*(FA(1)*FB(1)+FA(-1)*FB(-1))& +1d0/9d0*(FA(3)*FB(3)+FA(-3)*FB(-3)+4d0*FA(4)*FB(4)+4d0*FA(-4)*FB(-4)+FA(5)*FB(5)+FA(-5)*FB(-5)) !-------------------------------------------------------------------------------- CASE (1004) !pminus+W->gamma* !!this is for E537 !Wolfram has A=183, Z=74, N=109 FA=uTMDPDF_5(x1,b,mu,zeta1,2) FB=uTMDPDF_5(x2,b,mu,zeta2,1) Integrand=296d0/1647d0*(FA(-2)*FB(2)+FA(2)*FB(-2))+436d0/1647d0*(FA(-2)*FB(1)+FA(2)*FB(-1))& +109d0/1647d0*(FA(-1)*FB(2)+FA(1)*FB(-2))+74d0/1647d0*(FA(-1)*FB(1)+FA(1)*FB(-1))& +1d0/9d0*(FA(-3)*FB(3)+FA(3)*FB(-3)+4d0*FA(-4)*FB(4)+4d0*FA(4)*FB(-4)+FA(-5)*FB(5)+FA(5)*FB(-5)) !---------------------------------------------------------------------------------- !-------------------------SIDIS---------------------------------------------------- !---------------------------------------------------------------------------------- CASE (2001:2009) !p->hN where n=last number ! e_q^2 *F_q(A)*F_q(B) h=process-2000 FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,h) Integrand=FA(1)*FB(1)/9.d0& +FA(2)*FB(2)*4.d0/9.d0& +FA(3)*FB(3)/9.d0& +FA(4)*FB(4)*4d0/9.d0& +FA(5)*FB(5)/9d0& +FA(-1)*FB(-1)/9.d0& +FA(-2)*FB(-2)*4.d0/9.d0& +FA(-3)*FB(-3)/9.d0& +FA(-4)*FB(-4)*4d0/9.d0& +FA(-5)*FB(-5)/9d0 !-------------------------------------------------------------------------------- CASE (2011:2019) !d->hN where n=last number (d=deutron=(p+n)/2) ! e_q^2 *F_q(A)*F_q(B) h=process-2010 FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,h) Integrand=(FA(1)+FA(2))*(FB(1)+4d0*FB(2))/18d0& +FA(3)*FB(3)/9.d0& +FA(4)*FB(4)*4d0/9.d0& +FA(5)*FB(5)/9d0& +(FA(-1)+FA(-2))*(FB(-1)+4d0*FB(-2))/18d0& +FA(-3)*FB(-3)/9.d0& +FA(-4)*FB(-4)*4d0/9.d0& +FA(-5)*FB(-5)/9d0 !-------------------------------------------------------------------------------- CASE (2021:2029) !p->bar-hN where n=last number ! e_q^2 *F_q(A)*F_bar-q(B) h=process-2020 FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,h) Integrand=FA(1)*FB(-1)/9.d0& +FA(2)*FB(-2)*4.d0/9.d0& +FA(3)*FB(-3)/9.d0& +FA(4)*FB(-4)*4d0/9.d0& +FA(5)*FB(-5)/9d0& +FA(-1)*FB(1)/9.d0& +FA(-2)*FB(2)*4.d0/9.d0& +FA(-3)*FB(3)/9.d0& +FA(-4)*FB(4)*4d0/9.d0& +FA(-5)*FB(5)/9d0 !-------------------------------------------------------------------------------- CASE (2031:2039) !d->bar-hN where n=last number (d=deutron=(p+n)/2) ! e_q^2 *F_q(A)*F_bar-q(B) h=process-2030 FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,h) Integrand=(FA(1)+FA(2))*(FB(-1)+4d0*FB(-2))/18d0& +FA(3)*FB(-3)/9.d0& +FA(4)*FB(-4)*4d0/9.d0& +FA(5)*FB(-5)/9d0& +(FA(-1)+FA(-2))*(FB(1)+4d0*FB(2))/18d0& +FA(-3)*FB(3)/9.d0& +FA(-4)*FB(4)*4d0/9.d0& +FA(-5)*FB(5)/9d0 !-------------------------------------------------------------------------------- CASE (2041:2049) !n->hN where n=last number (n=neutron=p(u<->d)) ! e_q^2 *F_q(A)*F_q(B) h=process-2040 FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,h) Integrand=FA(2)*FB(1)/9.d0& +FA(1)*FB(2)*4.d0/9.d0& +FA(3)*FB(3)/9.d0& +FA(4)*FB(4)*4d0/9.d0& +FA(5)*FB(5)/9d0& +FA(-2)*FB(-1)/9.d0& +FA(-1)*FB(-2)*4.d0/9.d0& +FA(-3)*FB(-3)/9.d0& +FA(-4)*FB(-4)*4d0/9.d0& +FA(-5)*FB(-5)/9d0 !-------------------------------------------------------------------------------- CASE (2051:2059) !n->bar-hN where n=last number (n=neutron=p(u<->d)) ! e_q^2 *F_q(A)*F_bar-q(B) h=process-2050 FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,h) Integrand=FA(2)*FB(-1)/9.d0& +FA(1)*FB(-2)*4.d0/9.d0& +FA(3)*FB(-3)/9.d0& +FA(4)*FB(-4)*4d0/9.d0& +FA(5)*FB(-5)/9d0& +FA(-2)*FB(1)/9.d0& +FA(-1)*FB(2)*4.d0/9.d0& +FA(-3)*FB(3)/9.d0& +FA(-4)*FB(4)*4d0/9.d0& +FA(-5)*FB(5)/9d0 !-------------------------------------------------------------------------------- !-------------------------------------------------------------------------------- CASE (2101) !p->h? where h?=h1+h2 ! e_q^2 *F_q(A)*F_q(B) FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2) Integrand=FA(1)*FB(1)/9.d0& +FA(2)*FB(2)*4.d0/9.d0& +FA(3)*FB(3)/9.d0& +FA(4)*FB(4)*4d0/9.d0& +FA(5)*FB(5)/9d0& +FA(-1)*FB(-1)/9.d0& +FA(-2)*FB(-2)*4.d0/9.d0& +FA(-3)*FB(-3)/9.d0& +FA(-4)*FB(-4)*4d0/9.d0& +FA(-5)*FB(-5)/9d0 !-------------------------------------------------------------------------------- CASE (2102) !p->h? where h?=h1+h2+h3 ! e_q^2 *F_q(A)*F_q(B) FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2)+uTMDFF_5(x2,b,mu,zeta2,3) Integrand=FA(1)*FB(1)/9.d0& +FA(2)*FB(2)*4.d0/9.d0& +FA(3)*FB(3)/9.d0& +FA(4)*FB(4)*4d0/9.d0& +FA(5)*FB(5)/9d0& +FA(-1)*FB(-1)/9.d0& +FA(-2)*FB(-2)*4.d0/9.d0& +FA(-3)*FB(-3)/9.d0& +FA(-4)*FB(-4)*4d0/9.d0& +FA(-5)*FB(-5)/9d0 !-------------------------------------------------------------------------------- CASE (2103) !d->h? where h?=h1+h2 (d=deutron=(p+n)/2) ! e_q^2 *F_q(A)*F_q(B) FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2) Integrand=(FA(1)+FA(2))*(FB(1)+4d0*FB(2))/18d0& +FA(3)*FB(3)/9.d0& +FA(4)*FB(4)*4d0/9.d0& +FA(5)*FB(5)/9d0& +(FA(-1)+FA(-2))*(FB(-1)+4d0*FB(-2))/18d0& +FA(-3)*FB(-3)/9.d0& +FA(-4)*FB(-4)*4d0/9.d0& +FA(-5)*FB(-5)/9d0 !-------------------------------------------------------------------------------- CASE (2104) !d->h? where h?=h1+h2+h3 (d=deutron=(p+n)/2) ! e_q^2 *F_q(A)*F_q(B) FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2)+uTMDFF_5(x2,b,mu,zeta2,3) Integrand=(FA(1)+FA(2))*(FB(1)+4d0*FB(2))/18d0& +FA(3)*FB(3)/9.d0& +FA(4)*FB(4)*4d0/9.d0& +FA(5)*FB(5)/9d0& +(FA(-1)+FA(-2))*(FB(-1)+4d0*FB(-2))/18d0& +FA(-3)*FB(-3)/9.d0& +FA(-4)*FB(-4)*4d0/9.d0& +FA(-5)*FB(-5)/9d0 !-------------------------------------------------------------------------------- CASE (2105) !n->h? where h?=h1+h2 (n=neutron=p(u<->d)) ! e_q^2 *F_q(A)*F_q(B) FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2) Integrand=FA(2)*FB(1)/9.d0& +FA(1)*FB(2)*4.d0/9.d0& +FA(3)*FB(3)/9.d0& +FA(4)*FB(4)*4d0/9.d0& +FA(5)*FB(5)/9d0& +FA(-2)*FB(-1)/9.d0& +FA(-1)*FB(-2)*4.d0/9.d0& +FA(-3)*FB(-3)/9.d0& +FA(-4)*FB(-4)*4d0/9.d0& +FA(-5)*FB(-5)/9d0 !-------------------------------------------------------------------------------- CASE (2106) !n->h? where h?=h1+h2+h3 (n=neutron=p(u<->d)) ! e_q^2 *F_q(A)*F_q(B) FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2)+uTMDFF_5(x2,b,mu,zeta2,3) Integrand=FA(2)*FB(1)/9.d0& +FA(1)*FB(2)*4.d0/9.d0& +FA(3)*FB(3)/9.d0& +FA(4)*FB(4)*4d0/9.d0& +FA(5)*FB(5)/9d0& +FA(-2)*FB(-1)/9.d0& +FA(-1)*FB(-2)*4.d0/9.d0& +FA(-3)*FB(-3)/9.d0& +FA(-4)*FB(-4)*4d0/9.d0& +FA(-5)*FB(-5)/9d0 !------------------------------------------------------------------------------------ CASE (2111) !p->bar h? where h?=h1+h2 ! e_q^2 *F_q(A)*F_bq(B) FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2) Integrand=FA(1)*FB(-1)/9.d0& +FA(2)*FB(-2)*4.d0/9.d0& +FA(3)*FB(-3)/9.d0& +FA(4)*FB(-4)*4d0/9.d0& +FA(5)*FB(-5)/9d0& +FA(-1)*FB(1)/9.d0& +FA(-2)*FB(2)*4.d0/9.d0& +FA(-3)*FB(3)/9.d0& +FA(-4)*FB(4)*4d0/9.d0& +FA(-5)*FB(5)/9d0 !-------------------------------------------------------------------------------- CASE (2112) !p->bar h? where h?=h1+h2+h3 ! e_q^2 *F_q(A)*F_bq(B) FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2)+uTMDFF_5(x2,b,mu,zeta2,3) Integrand=FA(1)*FB(-1)/9.d0& +FA(2)*FB(-2)*4.d0/9.d0& +FA(3)*FB(-3)/9.d0& +FA(4)*FB(-4)*4d0/9.d0& +FA(5)*FB(-5)/9d0& +FA(-1)*FB(1)/9.d0& +FA(-2)*FB(2)*4.d0/9.d0& +FA(-3)*FB(3)/9.d0& +FA(-4)*FB(4)*4d0/9.d0& +FA(-5)*FB(5)/9d0 !-------------------------------------------------------------------------------- CASE (2113) !d->bar h? where h?=h1+h2 (d=deutron=(p+n)/2) ! e_q^2 *F_q(A)*F_bq(B) FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2) Integrand=(FA(1)+FA(2))*(FB(-1)+4d0*FB(-2))/18d0& +FA(3)*FB(-3)/9.d0& +FA(4)*FB(-4)*4d0/9.d0& +FA(5)*FB(-5)/9d0& +(FA(-1)+FA(-2))*(FB(1)+4d0*FB(2))/18d0& +FA(-3)*FB(3)/9.d0& +FA(-4)*FB(4)*4d0/9.d0& +FA(-5)*FB(5)/9d0 !-------------------------------------------------------------------------------- CASE (2114) !d->bar h? where h?=h1+h2+h3 (d=deutron=(p+n)/2) ! e_q^2 *F_q(A)*F_bq(B) FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2)+uTMDFF_5(x2,b,mu,zeta2,3) Integrand=(FA(1)+FA(2))*(FB(-1)+4d0*FB(-2))/18d0& +FA(3)*FB(-3)/9.d0& +FA(4)*FB(-4)*4d0/9.d0& +FA(5)*FB(-5)/9d0& +(FA(-1)+FA(-2))*(FB(1)+4d0*FB(2))/18d0& +FA(-3)*FB(3)/9.d0& +FA(-4)*FB(4)*4d0/9.d0& +FA(-5)*FB(5)/9d0 !------------------------------------------------------------------------------------ CASE (2115) !n->bar h? where h?=h1+h2 (n=neutron=p(u<->d)) ! e_q^2 *F_q(A)*F_bq(B) FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2) Integrand=FA(2)*FB(-1)/9.d0& +FA(1)*FB(-2)*4.d0/9.d0& +FA(3)*FB(-3)/9.d0& +FA(4)*FB(-4)*4d0/9.d0& +FA(5)*FB(-5)/9d0& +FA(-2)*FB(1)/9.d0& +FA(-1)*FB(2)*4.d0/9.d0& +FA(-3)*FB(3)/9.d0& +FA(-4)*FB(4)*4d0/9.d0& +FA(-5)*FB(5)/9d0 !-------------------------------------------------------------------------------- CASE (2116) !n->bar h? where h?=h1+h2+h3 (n=neutron=p(u<->d)) ! e_q^2 *F_q(A)*F_bq(B) FA=uTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2)+uTMDFF_5(x2,b,mu,zeta2,3) Integrand=FA(2)*FB(-1)/9.d0& +FA(1)*FB(-2)*4.d0/9.d0& +FA(3)*FB(-3)/9.d0& +FA(4)*FB(-4)*4d0/9.d0& +FA(5)*FB(-5)/9d0& +FA(-2)*FB(1)/9.d0& +FA(-1)*FB(2)*4.d0/9.d0& +FA(-3)*FB(3)/9.d0& +FA(-4)*FB(4)*4d0/9.d0& +FA(-5)*FB(5)/9d0 !---------------------------------------------------------------------------------------------------------------------------------- !-----------------------------------------------------Sivers asymetries------------------------------------------------------------ !---------------------------------------------------------------------------------------------------------------------------------- !-------------------------------------------------------------------------------- CASE (10001) !pp->gamma ! e_q^2 *F_q(A)*F_qbar(B) FA=-SiversTMDPDF_5(x1,b,mu,zeta1,1) !!!! -1 is due to definition of Sivers function (+1) for SIDIS (-1) for DY FB=uTMDPDF_5(x2,b,mu,zeta2,1) FAB=FA*(FB(5:-5:-1)) Integrand=-global_mass_scale*(& FAB(1)/9.d0& +FAB(2)*4.d0/9.d0& +FAB(3)/9.d0& +FAB(4)*4d0/9.d0& +FAB(5)/9d0& +FAB(-1)/9.d0& +FAB(-2)*4.d0/9.d0& +FAB(-3)/9.d0& +FAB(-4)*4d0/9.d0& +FAB(-5)/9d0) !-------------------------------------------------------------------------------- CASE (10005) !pp->Z+gamma FA=-SiversTMDPDF_5(x1,b,mu,zeta1,1) !!!! -1 is due to definition of Sivers function (+1) for SIDIS (-1) for DY FB=uTMDPDF_5(x2,b,mu,zeta2,1) FAB=FA*(FB(5:-5:-1)) Integrand=-global_mass_scale*XIntegrandForDYwithZgamma(FAB,Q2) !-------------------------------------------------------------------------------- CASE (10007) !pp-> W+ FA=-SiversTMDPDF_5(x1,b,mu,zeta1,1) !!!! -1 is due to definition of Sivers function (+1) for SIDIS (-1) for DY FB=uTMDPDF_5(x2,b,mu,zeta2,1) Integrand=-global_mass_scale*paramW_L*(& paramW_UD*(FA(2)*FB(-1)+FA(-1)*FB(2))& !u*dbar+dbar*u +paramW_US*(FA(2)*FB(-3)+FA(-3)*FB(2))& !u*sbar+sbar*u +paramW_UB*(FA(2)*FB(-5)+FA(-5)*FB(2))& !u*bbar+bbar*u +paramW_CD*(FA(4)*FB(-1)+FA(-1)*FB(4))& !c*dbar+dbar*c +paramW_CS*(FA(4)*FB(-3)+FA(-3)*FB(4))& !c*sbar+sbar*c +paramW_CB*(FA(4)*FB(-5)+FA(-5)*FB(4))& !c*bbar+bbar*c )*Q2*Q2/((Q2-MW2)**2+GammaW2*MW2) !-------------------------------------------------------------------------------- CASE (10008) !pp-> W- FA=-SiversTMDPDF_5(x1,b,mu,zeta1,1) !!!! -1 is due to definition of Sivers function (+1) for SIDIS (-1) for DY FB=uTMDPDF_5(x2,b,mu,zeta2,1) Integrand=-global_mass_scale*paramW_L*(& paramW_UD*(FA(1)*FB(-2)+FA(-2)*FB(1))& !d*ubar+ubar*d +paramW_US*(FA(3)*FB(-2)+FA(-2)*FB(3))& !s*ubar+ubar*s +paramW_UB*(FA(5)*FB(-2)+FA(-2)*FB(5))& !b*ubar+ubar*b +paramW_CD*(FA(1)*FB(-4)+FA(-4)*FB(1))& !d*cbar+cbar*d +paramW_CS*(FA(3)*FB(-4)+FA(-4)*FB(3))& !s*cbar+cbar*s +paramW_CB*(FA(5)*FB(-4)+FA(-4)*FB(5))& !b*cbar+cbar*b )*Q2*Q2/((Q2-MW2)**2+GammaW2*MW2) !-------------------------------------------------------------------------------- CASE (10101) !h+p(s)->gamma ! e_q^2 *F_q(A)*F_qbar(B) FA=uTMDPDF_5(x1,b,mu,zeta2,2) FB=-SiversTMDPDF_5(x2,b,mu,zeta1,1) !!!! -1 is due to definition of Sivers function (+1) for SIDIS (-1) for DY FAB=FA*(FB(5:-5:-1)) !!!! extra factor -1 (total +1) is due to definition of Sivers, h1+h2(s)=-h1(s)+h2 Integrand=+global_mass_scale*(& FAB(1)/9.d0& +FAB(2)*4.d0/9.d0& +FAB(3)/9.d0& +FAB(4)*4d0/9.d0& +FAB(5)/9d0& +FAB(-1)/9.d0& +FAB(-2)*4.d0/9.d0& +FAB(-3)/9.d0& +FAB(-4)*4d0/9.d0& +FAB(-5)/9d0) !-------------------------------------------------------------------------------- CASE (10102) !h + pbar(s)-> gamma ! e_q^2 *F_q(A)*F_q(B) FA=uTMDPDF_5(x1,b,mu,zeta2,2) FB=-SiversTMDPDF_5(x2,b,mu,zeta1,1) !!!! -1 is due to definition of Sivers function (+1) for SIDIS (-1) for DY FAB=FA*FB !!!! extra factor -1 (total +1) is due to definition of Sivers, h1+h2(s)=-h1(s)+h2 Integrand=+global_mass_scale*(& FAB(1)/9.d0& +FAB(2)*4.d0/9.d0& +FAB(3)/9.d0& +FAB(4)*4d0/9.d0& +FAB(5)/9d0& +FAB(-1)/9.d0& +FAB(-2)*4.d0/9.d0& +FAB(-3)/9.d0& +FAB(-4)*4d0/9.d0& +FAB(-5)/9d0) !-------------------------------------------------------------------------------- CASE (10103) !hbar + p(s) -> gamma ! e_q^2 *F_qbar(A)*F_qbar(B) FA=uTMDPDF_5(x1,b,mu,zeta2,2) FB=-SiversTMDPDF_5(x2,b,mu,zeta1,1) !!!! -1 is due to definition of Sivers function (+1) for SIDIS (-1) for DY FAB=FA*FB !!!! extra factor -1 (total +1) is due to definition of Sivers, h1+h2(s)=-h1(s)+h2 Integrand=+global_mass_scale*(& FAB(1)/9.d0& +FAB(2)*4.d0/9.d0& +FAB(3)/9.d0& +FAB(4)*4d0/9.d0& +FAB(5)/9d0& +FAB(-1)/9.d0& +FAB(-2)*4.d0/9.d0& +FAB(-3)/9.d0& +FAB(-4)*4d0/9.d0& +FAB(-5)/9d0) !-------------------------------------------------------------------------------- CASE (10104) !hbar + pbar(s) ->gamma ! e_q^2 *F_qbar(A)*F_q(B) FA=uTMDPDF_5(x1,b,mu,zeta2,2) FA=-SiversTMDPDF_5(x2,b,mu,zeta1,1) !!!! -1 is due to definition of Sivers function (+1) for SIDIS (-1) for DY FAB=(FA(5:-5:-1))*FB !!!! extra factor -1 (total +1) is due to definition of Sivers, h1+h2(s)=-h1(s)+h2 Integrand=+global_mass_scale*(& FAB(1)/9.d0& +FAB(2)*4.d0/9.d0& +FAB(3)/9.d0& +FAB(4)*4d0/9.d0& +FAB(5)/9d0& +FAB(-1)/9.d0& +FAB(-2)*4.d0/9.d0& +FAB(-3)/9.d0& +FAB(-4)*4d0/9.d0& +FAB(-5)/9d0) !-------------------------------------------------------------------------------- CASE (12001:12009) !Sivers asymmetry p->hN where n=last number ! e_q^2 *F_q(A)*F_q(B) h=process-12000 FA=SiversTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,h) Integrand=-global_mass_scale*(& FA(1)*FB(1)/9.d0& +FA(2)*FB(2)*4.d0/9.d0& +FA(3)*FB(3)/9.d0& +FA(4)*FB(4)*4d0/9.d0& +FA(5)*FB(5)/9d0& +FA(-1)*FB(-1)/9.d0& +FA(-2)*FB(-2)*4.d0/9.d0& +FA(-3)*FB(-3)/9.d0& +FA(-4)*FB(-4)*4d0/9.d0& +FA(-5)*FB(-5)/9d0) !-------------------------------------------------------------------------------- CASE (12011:12019) !Sivers asymmetry d->hN where n=last number (d=deutron=(p+n)/2) ! e_q^2 *F_q(A)*F_q(B) h=process-12010 FA=SiversTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,h) Integrand=-global_mass_scale*(& (FA(1)+FA(2))*(FB(1)+4d0*FB(2))/18d0& +FA(3)*FB(3)/9.d0& +FA(4)*FB(4)*4d0/9.d0& +FA(5)*FB(5)/9d0& +(FA(-1)+FA(-2))*(FB(-1)+4d0*FB(-2))/18d0& +FA(-3)*FB(-3)/9.d0& +FA(-4)*FB(-4)*4d0/9.d0& +FA(-5)*FB(-5)/9d0) !-------------------------------------------------------------------------------- CASE (12021:12029) !Sivers asymmetry p->bar-hN where n=last number ! e_q^2 *F_q(A)*F_bar-q(B) h=process-12020 FA=SiversTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,h) Integrand=-global_mass_scale*(& FA(1)*FB(-1)/9.d0& +FA(2)*FB(-2)*4.d0/9.d0& +FA(3)*FB(-3)/9.d0& +FA(4)*FB(-4)*4d0/9.d0& +FA(5)*FB(-5)/9d0& +FA(-1)*FB(1)/9.d0& +FA(-2)*FB(2)*4.d0/9.d0& +FA(-3)*FB(3)/9.d0& +FA(-4)*FB(4)*4d0/9.d0& +FA(-5)*FB(5)/9d0) !-------------------------------------------------------------------------------- CASE (12031:12039) !Sivers asymmetry d->bar-hN where n=last number (d=deutron=(p+n)/2) ! e_q^2 *F_q(A)*F_bar-q(B) h=process-12030 FA=SiversTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,h) Integrand=-global_mass_scale*(& (FA(1)+FA(2))*(FB(-1)+4d0*FB(-2))/18d0& +FA(3)*FB(-3)/9.d0& +FA(4)*FB(-4)*4d0/9.d0& +FA(5)*FB(-5)/9d0& +(FA(-1)+FA(-2))*(FB(1)+4d0*FB(2))/18d0& +FA(-3)*FB(3)/9.d0& +FA(-4)*FB(4)*4d0/9.d0& +FA(-5)*FB(5)/9d0) !-------------------------------------------------------------------------------- CASE (12041:12049) !Sivers asymmetry p->hN where n=last number (n=neutron=p(u<->d)) ! e_q^2 *F_q(A)*F_q(B) h=process-12040 FA=SiversTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,h) Integrand=-global_mass_scale*(& FA(2)*FB(1)/9.d0& +FA(1)*FB(2)*4.d0/9.d0& +FA(3)*FB(3)/9.d0& +FA(4)*FB(4)*4d0/9.d0& +FA(5)*FB(5)/9d0& +FA(-2)*FB(-1)/9.d0& +FA(-1)*FB(-2)*4.d0/9.d0& +FA(-3)*FB(-3)/9.d0& +FA(-4)*FB(-4)*4d0/9.d0& +FA(-5)*FB(-5)/9d0) !-------------------------------------------------------------------------------- CASE (12051:12059) !Sivers asymmetry p->bar-hN where n=last number (n=neutron=p(u<->d)) ! e_q^2 *F_q(A)*F_bar-q(B) h=process-12050 FA=SiversTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,h) Integrand=-global_mass_scale*(& FA(2)*FB(-1)/9.d0& +FA(1)*FB(-2)*4.d0/9.d0& +FA(3)*FB(-3)/9.d0& +FA(4)*FB(-4)*4d0/9.d0& +FA(5)*FB(-5)/9d0& +FA(-2)*FB(1)/9.d0& +FA(-1)*FB(2)*4.d0/9.d0& +FA(-3)*FB(3)/9.d0& +FA(-4)*FB(4)*4d0/9.d0& +FA(-5)*FB(5)/9d0) !-------------------------------------------------------------------------------- !-------------------------------------------------------------------------------- CASE (12101) !p->h? where h?=h1+h2 ! e_q^2 *F_q(A)*F_q(B) FA=SiversTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2) Integrand=-global_mass_scale*(& FA(1)*FB(1)/9.d0& +FA(2)*FB(2)*4.d0/9.d0& +FA(3)*FB(3)/9.d0& +FA(4)*FB(4)*4d0/9.d0& +FA(5)*FB(5)/9d0& +FA(-1)*FB(-1)/9.d0& +FA(-2)*FB(-2)*4.d0/9.d0& +FA(-3)*FB(-3)/9.d0& +FA(-4)*FB(-4)*4d0/9.d0& +FA(-5)*FB(-5)/9d0) !-------------------------------------------------------------------------------- CASE (12102) !p->h? where h?=h1+h2+h3 ! e_q^2 *F_q(A)*F_q(B) FA=SiversTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2)+uTMDFF_5(x2,b,mu,zeta2,3) Integrand=-global_mass_scale*(& FA(1)*FB(1)/9.d0& +FA(2)*FB(2)*4.d0/9.d0& +FA(3)*FB(3)/9.d0& +FA(4)*FB(4)*4d0/9.d0& +FA(5)*FB(5)/9d0& +FA(-1)*FB(-1)/9.d0& +FA(-2)*FB(-2)*4.d0/9.d0& +FA(-3)*FB(-3)/9.d0& +FA(-4)*FB(-4)*4d0/9.d0& +FA(-5)*FB(-5)/9d0) !-------------------------------------------------------------------------------- CASE (12103) !d->h? where h?=h1+h2 (d=deutron=(p+n)/2) ! e_q^2 *F_q(A)*F_q(B) FA=SiversTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2) Integrand=-global_mass_scale*(& (FA(1)+FA(2))*(FB(1)+4d0*FB(2))/18d0& +FA(3)*FB(3)/9.d0& +FA(4)*FB(4)*4d0/9.d0& +FA(5)*FB(5)/9d0& +(FA(-1)+FA(-2))*(FB(-1)+4d0*FB(-2))/18d0& +FA(-3)*FB(-3)/9.d0& +FA(-4)*FB(-4)*4d0/9.d0& +FA(-5)*FB(-5)/9d0) !-------------------------------------------------------------------------------- CASE (12104) !d->h? where h?=h1+h2+h3 (d=deutron=(p+n)/2) ! e_q^2 *F_q(A)*F_q(B) FA=SiversTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2)+uTMDFF_5(x2,b,mu,zeta2,3) Integrand=-global_mass_scale*(& (FA(1)+FA(2))*(FB(1)+4d0*FB(2))/18d0& +FA(3)*FB(3)/9.d0& +FA(4)*FB(4)*4d0/9.d0& +FA(5)*FB(5)/9d0& +(FA(-1)+FA(-2))*(FB(-1)+4d0*FB(-2))/18d0& +FA(-3)*FB(-3)/9.d0& +FA(-4)*FB(-4)*4d0/9.d0& +FA(-5)*FB(-5)/9d0) !-------------------------------------------------------------------------------- CASE (12105) !n->h? where h?=h1+h2 (n=neutron=p(u<->d)) ! e_q^2 *F_q(A)*F_q(B) FA=SiversTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2) Integrand=-global_mass_scale*(& FA(2)*FB(1)/9.d0& +FA(1)*FB(2)*4.d0/9.d0& +FA(3)*FB(3)/9.d0& +FA(4)*FB(4)*4d0/9.d0& +FA(5)*FB(5)/9d0& +FA(-2)*FB(-1)/9.d0& +FA(-1)*FB(-2)*4.d0/9.d0& +FA(-3)*FB(-3)/9.d0& +FA(-4)*FB(-4)*4d0/9.d0& +FA(-5)*FB(-5)/9d0) !-------------------------------------------------------------------------------- CASE (12106) !n->h? where h?=h1+h2+h3 (n=neutron=p(u<->d)) ! e_q^2 *F_q(A)*F_q(B) FA=SiversTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2)+uTMDFF_5(x2,b,mu,zeta2,3) Integrand=-global_mass_scale*(& FA(2)*FB(1)/9.d0& +FA(1)*FB(2)*4.d0/9.d0& +FA(3)*FB(3)/9.d0& +FA(4)*FB(4)*4d0/9.d0& +FA(5)*FB(5)/9d0& +FA(-2)*FB(-1)/9.d0& +FA(-1)*FB(-2)*4.d0/9.d0& +FA(-3)*FB(-3)/9.d0& +FA(-4)*FB(-4)*4d0/9.d0& +FA(-5)*FB(-5)/9d0) !------------------------------------------------------------------------------------ CASE (12111) !p->bar h? where h?=h1+h2 ! e_q^2 *F_q(A)*F_bq(B) FA=SiversTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2) Integrand=-global_mass_scale*(& FA(1)*FB(-1)/9.d0& +FA(2)*FB(-2)*4.d0/9.d0& +FA(3)*FB(-3)/9.d0& +FA(4)*FB(-4)*4d0/9.d0& +FA(5)*FB(-5)/9d0& +FA(-1)*FB(1)/9.d0& +FA(-2)*FB(2)*4.d0/9.d0& +FA(-3)*FB(3)/9.d0& +FA(-4)*FB(4)*4d0/9.d0& +FA(-5)*FB(5)/9d0) !-------------------------------------------------------------------------------- CASE (12112) !p->bar h? where h?=h1+h2+h3 ! e_q^2 *F_q(A)*F_bq(B) FA=SiversTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2)+uTMDFF_5(x2,b,mu,zeta2,3) Integrand=-global_mass_scale*(& FA(1)*FB(-1)/9.d0& +FA(2)*FB(-2)*4.d0/9.d0& +FA(3)*FB(-3)/9.d0& +FA(4)*FB(-4)*4d0/9.d0& +FA(5)*FB(-5)/9d0& +FA(-1)*FB(1)/9.d0& +FA(-2)*FB(2)*4.d0/9.d0& +FA(-3)*FB(3)/9.d0& +FA(-4)*FB(4)*4d0/9.d0& +FA(-5)*FB(5)/9d0) !-------------------------------------------------------------------------------- CASE (12113) !d->bar h? where h?=h1+h2 (d=deutron=(p+n)/2) ! e_q^2 *F_q(A)*F_bq(B) FA=SiversTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2) Integrand=-global_mass_scale*(& (FA(1)+FA(2))*(FB(-1)+4d0*FB(-2))/18d0& +FA(3)*FB(-3)/9.d0& +FA(4)*FB(-4)*4d0/9.d0& +FA(5)*FB(-5)/9d0& +(FA(-1)+FA(-2))*(FB(1)+4d0*FB(2))/18d0& +FA(-3)*FB(3)/9.d0& +FA(-4)*FB(4)*4d0/9.d0& +FA(-5)*FB(5)/9d0) !-------------------------------------------------------------------------------- CASE (12114) !d->bar h? where h?=h1+h2+h3 (d=deutron=(p+n)/2) ! e_q^2 *F_q(A)*F_bq(B) FA=SiversTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2)+uTMDFF_5(x2,b,mu,zeta2,3) Integrand=-global_mass_scale*(& (FA(1)+FA(2))*(FB(-1)+4d0*FB(-2))/18d0& +FA(3)*FB(-3)/9.d0& +FA(4)*FB(-4)*4d0/9.d0& +FA(5)*FB(-5)/9d0& +(FA(-1)+FA(-2))*(FB(1)+4d0*FB(2))/18d0& +FA(-3)*FB(3)/9.d0& +FA(-4)*FB(4)*4d0/9.d0& +FA(-5)*FB(5)/9d0) !------------------------------------------------------------------------------------ CASE (12115) !n->bar h? where h?=h1+h2 (n=neutron=p(u<->d)) ! e_q^2 *F_q(A)*F_bq(B) FA=SiversTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2) Integrand=-global_mass_scale*(& FA(2)*FB(-1)/9.d0& +FA(1)*FB(-2)*4.d0/9.d0& +FA(3)*FB(-3)/9.d0& +FA(4)*FB(-4)*4d0/9.d0& +FA(5)*FB(-5)/9d0& +FA(-2)*FB(1)/9.d0& +FA(-1)*FB(2)*4.d0/9.d0& +FA(-3)*FB(3)/9.d0& +FA(-4)*FB(4)*4d0/9.d0& +FA(-5)*FB(5)/9d0) !-------------------------------------------------------------------------------- CASE (12116) !n->bar h? where h?=h1+h2+h3 (n=neutron=p(u<->d)) ! e_q^2 *F_q(A)*F_bq(B) FA=SiversTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2)+uTMDFF_5(x2,b,mu,zeta2,3) Integrand=-global_mass_scale*(& FA(2)*FB(-1)/9.d0& +FA(1)*FB(-2)*4.d0/9.d0& +FA(3)*FB(-3)/9.d0& +FA(4)*FB(-4)*4d0/9.d0& +FA(5)*FB(-5)/9d0& +FA(-2)*FB(1)/9.d0& +FA(-1)*FB(2)*4.d0/9.d0& +FA(-3)*FB(3)/9.d0& +FA(-4)*FB(4)*4d0/9.d0& +FA(-5)*FB(5)/9d0) !-------------------------------------------------------------------------------- !----------------------------------WGT-related asymetries------------------------ !------------------------------------------------------------------------------- !---------------------------------SIDIS----------------------------------------- CASE (13001:13009) !A_LT asymmetry p->hN where n=last number ! e_q^2 *F_q(A)*F_q(B) h=process-13000 FA=wgtTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,h) Integrand=+global_mass_scale*(& FA(1)*FB(1)/9.d0& +FA(2)*FB(2)*4.d0/9.d0& +FA(3)*FB(3)/9.d0& +FA(4)*FB(4)*4d0/9.d0& +FA(5)*FB(5)/9d0& +FA(-1)*FB(-1)/9.d0& +FA(-2)*FB(-2)*4.d0/9.d0& +FA(-3)*FB(-3)/9.d0& +FA(-4)*FB(-4)*4d0/9.d0& +FA(-5)*FB(-5)/9d0) !-------------------------------------------------------------------------------- CASE (13011:13019) !A_LT asymmetry d->hN where n=last number (d=deutron=(p+n)/2) ! e_q^2 *F_q(A)*F_q(B) h=process-13010 FA=wgtTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,h) Integrand=+global_mass_scale*(& (FA(1)+FA(2))*(FB(1)+4d0*FB(2))/18d0& +FA(3)*FB(3)/9.d0& +FA(4)*FB(4)*4d0/9.d0& +FA(5)*FB(5)/9d0& +(FA(-1)+FA(-2))*(FB(-1)+4d0*FB(-2))/18d0& +FA(-3)*FB(-3)/9.d0& +FA(-4)*FB(-4)*4d0/9.d0& +FA(-5)*FB(-5)/9d0) !-------------------------------------------------------------------------------- CASE (13021:13029) !A_LT asymmetry p->bar-hN where n=last number ! e_q^2 *F_q(A)*F_bar-q(B) h=process-13020 FA=wgtTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,h) Integrand=+global_mass_scale*(& FA(1)*FB(-1)/9.d0& +FA(2)*FB(-2)*4.d0/9.d0& +FA(3)*FB(-3)/9.d0& +FA(4)*FB(-4)*4d0/9.d0& +FA(5)*FB(-5)/9d0& +FA(-1)*FB(1)/9.d0& +FA(-2)*FB(2)*4.d0/9.d0& +FA(-3)*FB(3)/9.d0& +FA(-4)*FB(4)*4d0/9.d0& +FA(-5)*FB(5)/9d0) !-------------------------------------------------------------------------------- CASE (13031:13039) !A_LT asymmetry d->bar-hN where n=last number (d=deutron=(p+n)/2) ! e_q^2 *F_q(A)*F_bar-q(B) h=process-13030 FA=wgtTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,h) Integrand=+global_mass_scale*(& (FA(1)+FA(2))*(FB(-1)+4d0*FB(-2))/18d0& +FA(3)*FB(-3)/9.d0& +FA(4)*FB(-4)*4d0/9.d0& +FA(5)*FB(-5)/9d0& +(FA(-1)+FA(-2))*(FB(1)+4d0*FB(2))/18d0& +FA(-3)*FB(3)/9.d0& +FA(-4)*FB(4)*4d0/9.d0& +FA(-5)*FB(5)/9d0) !-------------------------------------------------------------------------------- CASE (13041:13049) !A_LT asymmetry p->hN where n=last number (n=neutron=p(u<->d)) ! e_q^2 *F_q(A)*F_q(B) h=process-13040 FA=wgtTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,h) Integrand=+global_mass_scale*(& FA(2)*FB(1)/9.d0& +FA(1)*FB(2)*4.d0/9.d0& +FA(3)*FB(3)/9.d0& +FA(4)*FB(4)*4d0/9.d0& +FA(5)*FB(5)/9d0& +FA(-2)*FB(-1)/9.d0& +FA(-1)*FB(-2)*4.d0/9.d0& +FA(-3)*FB(-3)/9.d0& +FA(-4)*FB(-4)*4d0/9.d0& +FA(-5)*FB(-5)/9d0) !-------------------------------------------------------------------------------- CASE (13051:13059) !A_LT asymmetry p->bar-hN where n=last number (n=neutron=p(u<->d)) ! e_q^2 *F_q(A)*F_bar-q(B) h=process-13050 FA=wgtTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,h) Integrand=+global_mass_scale*(& FA(2)*FB(-1)/9.d0& +FA(1)*FB(-2)*4.d0/9.d0& +FA(3)*FB(-3)/9.d0& +FA(4)*FB(-4)*4d0/9.d0& +FA(5)*FB(-5)/9d0& +FA(-2)*FB(1)/9.d0& +FA(-1)*FB(2)*4.d0/9.d0& +FA(-3)*FB(3)/9.d0& +FA(-4)*FB(4)*4d0/9.d0& +FA(-5)*FB(5)/9d0) !-------------------------------------------------------------------------------- !-------------------------------------------------------------------------------- CASE (13101) !p->h? where h?=h1+h2 ! e_q^2 *F_q(A)*F_q(B) FA=wgtTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2) Integrand=+global_mass_scale*(& FA(1)*FB(1)/9.d0& +FA(2)*FB(2)*4.d0/9.d0& +FA(3)*FB(3)/9.d0& +FA(4)*FB(4)*4d0/9.d0& +FA(5)*FB(5)/9d0& +FA(-1)*FB(-1)/9.d0& +FA(-2)*FB(-2)*4.d0/9.d0& +FA(-3)*FB(-3)/9.d0& +FA(-4)*FB(-4)*4d0/9.d0& +FA(-5)*FB(-5)/9d0) !-------------------------------------------------------------------------------- CASE (13102) !p->h? where h?=h1+h2+h3 ! e_q^2 *F_q(A)*F_q(B) FA=wgtTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2)+uTMDFF_5(x2,b,mu,zeta2,3) Integrand=+global_mass_scale*(& FA(1)*FB(1)/9.d0& +FA(2)*FB(2)*4.d0/9.d0& +FA(3)*FB(3)/9.d0& +FA(4)*FB(4)*4d0/9.d0& +FA(5)*FB(5)/9d0& +FA(-1)*FB(-1)/9.d0& +FA(-2)*FB(-2)*4.d0/9.d0& +FA(-3)*FB(-3)/9.d0& +FA(-4)*FB(-4)*4d0/9.d0& +FA(-5)*FB(-5)/9d0) !-------------------------------------------------------------------------------- CASE (13103) !d->h? where h?=h1+h2 (d=deutron=(p+n)/2) ! e_q^2 *F_q(A)*F_q(B) FA=wgtTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2) Integrand=+global_mass_scale*(& (FA(1)+FA(2))*(FB(1)+4d0*FB(2))/18d0& +FA(3)*FB(3)/9.d0& +FA(4)*FB(4)*4d0/9.d0& +FA(5)*FB(5)/9d0& +(FA(-1)+FA(-2))*(FB(-1)+4d0*FB(-2))/18d0& +FA(-3)*FB(-3)/9.d0& +FA(-4)*FB(-4)*4d0/9.d0& +FA(-5)*FB(-5)/9d0) !-------------------------------------------------------------------------------- CASE (13104) !d->h? where h?=h1+h2+h3 (d=deutron=(p+n)/2) ! e_q^2 *F_q(A)*F_q(B) FA=wgtTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2)+uTMDFF_5(x2,b,mu,zeta2,3) Integrand=+global_mass_scale*(& (FA(1)+FA(2))*(FB(1)+4d0*FB(2))/18d0& +FA(3)*FB(3)/9.d0& +FA(4)*FB(4)*4d0/9.d0& +FA(5)*FB(5)/9d0& +(FA(-1)+FA(-2))*(FB(-1)+4d0*FB(-2))/18d0& +FA(-3)*FB(-3)/9.d0& +FA(-4)*FB(-4)*4d0/9.d0& +FA(-5)*FB(-5)/9d0) !-------------------------------------------------------------------------------- CASE (13105) !n->h? where h?=h1+h2 (n=neutron=p(u<->d)) ! e_q^2 *F_q(A)*F_q(B) FA=wgtTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2) Integrand=+global_mass_scale*(& FA(2)*FB(1)/9.d0& +FA(1)*FB(2)*4.d0/9.d0& +FA(3)*FB(3)/9.d0& +FA(4)*FB(4)*4d0/9.d0& +FA(5)*FB(5)/9d0& +FA(-2)*FB(-1)/9.d0& +FA(-1)*FB(-2)*4.d0/9.d0& +FA(-3)*FB(-3)/9.d0& +FA(-4)*FB(-4)*4d0/9.d0& +FA(-5)*FB(-5)/9d0) !-------------------------------------------------------------------------------- CASE (13106) !n->h? where h?=h1+h2+h3 (n=neutron=p(u<->d)) ! e_q^2 *F_q(A)*F_q(B) FA=wgtTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2)+uTMDFF_5(x2,b,mu,zeta2,3) Integrand=+global_mass_scale*(& FA(2)*FB(1)/9.d0& +FA(1)*FB(2)*4.d0/9.d0& +FA(3)*FB(3)/9.d0& +FA(4)*FB(4)*4d0/9.d0& +FA(5)*FB(5)/9d0& +FA(-2)*FB(-1)/9.d0& +FA(-1)*FB(-2)*4.d0/9.d0& +FA(-3)*FB(-3)/9.d0& +FA(-4)*FB(-4)*4d0/9.d0& +FA(-5)*FB(-5)/9d0) !------------------------------------------------------------------------------------ CASE (13111) !p->bar h? where h?=h1+h2 ! e_q^2 *F_q(A)*F_bq(B) FA=wgtTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2) Integrand=+global_mass_scale*(& FA(1)*FB(-1)/9.d0& +FA(2)*FB(-2)*4.d0/9.d0& +FA(3)*FB(-3)/9.d0& +FA(4)*FB(-4)*4d0/9.d0& +FA(5)*FB(-5)/9d0& +FA(-1)*FB(1)/9.d0& +FA(-2)*FB(2)*4.d0/9.d0& +FA(-3)*FB(3)/9.d0& +FA(-4)*FB(4)*4d0/9.d0& +FA(-5)*FB(5)/9d0) !-------------------------------------------------------------------------------- CASE (13112) !p->bar h? where h?=h1+h2+h3 ! e_q^2 *F_q(A)*F_bq(B) FA=wgtTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2)+uTMDFF_5(x2,b,mu,zeta2,3) Integrand=+global_mass_scale*(& FA(1)*FB(-1)/9.d0& +FA(2)*FB(-2)*4.d0/9.d0& +FA(3)*FB(-3)/9.d0& +FA(4)*FB(-4)*4d0/9.d0& +FA(5)*FB(-5)/9d0& +FA(-1)*FB(1)/9.d0& +FA(-2)*FB(2)*4.d0/9.d0& +FA(-3)*FB(3)/9.d0& +FA(-4)*FB(4)*4d0/9.d0& +FA(-5)*FB(5)/9d0) !-------------------------------------------------------------------------------- CASE (13113) !d->bar h? where h?=h1+h2 (d=deutron=(p+n)/2) ! e_q^2 *F_q(A)*F_bq(B) FA=wgtTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2) Integrand=+global_mass_scale*(& (FA(1)+FA(2))*(FB(-1)+4d0*FB(-2))/18d0& +FA(3)*FB(-3)/9.d0& +FA(4)*FB(-4)*4d0/9.d0& +FA(5)*FB(-5)/9d0& +(FA(-1)+FA(-2))*(FB(1)+4d0*FB(2))/18d0& +FA(-3)*FB(3)/9.d0& +FA(-4)*FB(4)*4d0/9.d0& +FA(-5)*FB(5)/9d0) !-------------------------------------------------------------------------------- CASE (13114) !d->bar h? where h?=h1+h2+h3 (d=deutron=(p+n)/2) ! e_q^2 *F_q(A)*F_bq(B) FA=wgtTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2)+uTMDFF_5(x2,b,mu,zeta2,3) Integrand=+global_mass_scale*(& (FA(1)+FA(2))*(FB(-1)+4d0*FB(-2))/18d0& +FA(3)*FB(-3)/9.d0& +FA(4)*FB(-4)*4d0/9.d0& +FA(5)*FB(-5)/9d0& +(FA(-1)+FA(-2))*(FB(1)+4d0*FB(2))/18d0& +FA(-3)*FB(3)/9.d0& +FA(-4)*FB(4)*4d0/9.d0& +FA(-5)*FB(5)/9d0) !------------------------------------------------------------------------------------ CASE (13115) !n->bar h? where h?=h1+h2 (n=neutron=p(u<->d)) ! e_q^2 *F_q(A)*F_bq(B) FA=wgtTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2) Integrand=+global_mass_scale*(& FA(2)*FB(-1)/9.d0& +FA(1)*FB(-2)*4.d0/9.d0& +FA(3)*FB(-3)/9.d0& +FA(4)*FB(-4)*4d0/9.d0& +FA(5)*FB(-5)/9d0& +FA(-2)*FB(1)/9.d0& +FA(-1)*FB(2)*4.d0/9.d0& +FA(-3)*FB(3)/9.d0& +FA(-4)*FB(4)*4d0/9.d0& +FA(-5)*FB(5)/9d0) !-------------------------------------------------------------------------------- CASE (13116) !n->bar h? where h?=h1+h2+h3 (n=neutron=p(u<->d)) ! e_q^2 *F_q(A)*F_bq(B) FA=wgtTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDFF_5(x2,b,mu,zeta2,1)+uTMDFF_5(x2,b,mu,zeta2,2)+uTMDFF_5(x2,b,mu,zeta2,3) Integrand=+global_mass_scale*(& FA(2)*FB(-1)/9.d0& +FA(1)*FB(-2)*4.d0/9.d0& +FA(3)*FB(-3)/9.d0& +FA(4)*FB(-4)*4d0/9.d0& +FA(5)*FB(-5)/9d0& +FA(-2)*FB(1)/9.d0& +FA(-1)*FB(2)*4.d0/9.d0& +FA(-3)*FB(3)/9.d0& +FA(-4)*FB(4)*4d0/9.d0& +FA(-5)*FB(5)/9d0) !-------------------------------------------------------------------------------- !-------------------------SPECIAL DY CASES--------------------------------------- CASE (13200) !pp->Z+gamma FA=wgtTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDPDF_5(x2,b,mu,zeta2,1) FAB=FA*(FB(5:-5:-1)) Integrand=global_mass_scale*XIntegrandForDYwithZgamma_GTU(FAB,Q2) !-------------------------------------------------------------------------------- CASE (13201) !pp-> W+ FA=wgtTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDPDF_5(x2,b,mu,zeta2,1) Integrand=-global_mass_scale*paramW_L*(& !!! -1=is due to the -gL^2 in the coupling for lepton paramW_UD*(FA(2)*FB(-1)-FA(-1)*FB(2))& !u*dbar+dbar*u +paramW_US*(FA(2)*FB(-3)-FA(-3)*FB(2))& !u*sbar+sbar*u +paramW_UB*(FA(2)*FB(-5)-FA(-5)*FB(2))& !u*bbar+bbar*u +paramW_CD*(FA(4)*FB(-1)-FA(-1)*FB(4))& !c*dbar+dbar*c +paramW_CS*(FA(4)*FB(-3)-FA(-3)*FB(4))& !c*sbar+sbar*c +paramW_CB*(FA(4)*FB(-5)-FA(-5)*FB(4))& !c*bbar+bbar*c )*Q2*Q2/((Q2-MW2)**2+GammaW2*MW2) !-------------------------------------------------------------------------------- CASE (13202) !pp-> W- FA=wgtTMDPDF_5(x1,b,mu,zeta1,1) FB=uTMDPDF_5(x2,b,mu,zeta2,1) Integrand=-global_mass_scale*paramW_L*(& !!! -1=is due to the -gL^2 in the coupling for lepton paramW_UD*(FA(1)*FB(-2)-FA(-2)*FB(1))& !d*ubar+ubar*d +paramW_US*(FA(3)*FB(-2)-FA(-2)*FB(3))& !s*ubar+ubar*s +paramW_UB*(FA(5)*FB(-2)-FA(-2)*FB(5))& !b*ubar+ubar*b +paramW_CD*(FA(1)*FB(-4)-FA(-4)*FB(1))& !d*cbar+cbar*d +paramW_CS*(FA(3)*FB(-4)-FA(-4)*FB(3))& !s*cbar+cbar*s +paramW_CB*(FA(5)*FB(-4)-FA(-4)*FB(5))& !b*cbar+cbar*b )*Q2*Q2/((Q2-MW2)**2+GammaW2*MW2) CASE DEFAULT write(*,*) ErrorString('undefined process: ',moduleName),process write(*,*) color('Evaluation stop',c_red_bold) stop END SELECT if(ISNAN(Integrand)) then write(*,*) ErrorString('Integrand evaluated to NaN',moduleName) write(*,*) 'bT=',b, 'x1,x2=',x1,x2,' process=',process write(*,*) 'mu=',mu, 'Q2=',Q2 !write(*,*) 'Current set of NP parameters ------------' !write(*,*) currentNP call TMDF_convergenceISlost() Integrand=1d10 end if if(Integrand>1d32) then write(*,*) ErrorString('Integrand evaluated to >10^32',moduleName) write(*,*) 'bT=',b, 'x1,x2=',x1,x2,' process=',process write(*,*) 'mu=',mu, 'Q2=',Q2 !write(*,*) 'Current set of NP parameters ------------' !write(*,*) currentNP call TMDF_convergenceISlost() Integrand=1d10 end if end function Integrand !------------------------------------------------------------------------------------------------------------------------------------- !------------------------------------------------------------------------------------------------------------------------------------- !!! The hadron tensonr for the DY icludes Z + gamma, evaluated at FA and FB function XIntegrandForDYwithZgamma(FAB,Q2) real(dp)::XIntegrandForDYwithZgamma,Q2 !!cross-seciton parameters real(dp),dimension(-5:5):: FAB !!!parameters of Z boson coupling ! real(dp),parameter:: paramU=0.40329064872689d0 !! ((1-2|eq|sw^2)^2+4eq^2sw^4)/(8sw^2cw^2) for eq=2/3 ! real(dp),parameter:: paramD=0.51983027428079d0 !! ((1-2|eq|sw^2)^2+4eq^2sw^4)/(8sw^2cw^2) for eq=1/3 ! real(dp),parameter:: paramS=0.51983027428079d0 !! ((1-2|eq|sw^2)^2+4eq^2sw^4)/(8sw^2cw^2) for eq=1/3 ! real(dp),parameter:: paramC=0.40329064872689d0 !! ((1-2|eq|sw^2)^2+4eq^2sw^4)/(8sw^2cw^2) for eq=2/3 ! real(dp),parameter:: paramB=0.51983027428079d0 !! ((1-2|eq|sw^2)^2+4eq^2sw^4)/(8sw^2cw^2) for eq=1/3 ! real(dp),parameter:: paramL=0.35358707798999d0 !! ((1-2|eq|sw^2)^2+4eq^2sw^4)/(8sw^2cw^2) for eq=1 !!!parameters of Z-gamma boson coupling ! real(dp),parameter:: paramMIXU=0.1515661518957d0 !! e(T3-2e sW^2)/2sWcW for eq=+2/3,, T3=+1/2 ! real(dp),parameter:: paramMIXD=0.1367184036034d0 !! e(T3-2e sW^2)/2sWcW for eq=-1/3,T3=-1/2 ! real(dp),parameter:: paramMIXS=0.1367184036034d0 !! e(T3-2e sW^2)/2sWcW for eq=-1/3, T3=-1/2 ! real(dp),parameter:: paramMIXC=0.1515661518957d0 !! e(T3-2e sW^2)/2sWcW for eq=+2/3,, T3=+1/2 ! real(dp),parameter:: paramMIXB=0.1367184036034d0 !! e(T3-2e sW^2)/2sWcW for eq=-1/3, T3=-1/2 ! real(dp),parameter:: paramMIXL=0.0445432448766d0 !! e(T3-2e sW^2)/2sWcW for eq=-1, T3=-1/2 XIntegrandForDYwithZgamma=& (&!gamma-part 4d0/9d0*FAB(2)& +1d0/9d0*FAB(1)& +1d0/9d0*FAB(3)& +4d0/9d0*FAB(4)& +1d0/9d0*FAB(5)& +4d0/9d0*FAB(-2)& +1d0/9d0*FAB(-1)& +1d0/9d0*FAB(-3)& +4d0/9d0*FAB(-4)& +1d0/9d0*FAB(-5))& +&!gamma-Z interference paramMIXL*(& paramMIXU*FAB(2)& +paramMIXD*FAB(1)& +paramMIXS*FAB(3)& +paramMIXC*FAB(4)& +paramMIXB*FAB(5)& +paramMIXU*FAB(-2)& +paramMIXD*FAB(-1)& +paramMIXS*FAB(-3)& +paramMIXC*FAB(-4)& +paramMIXB*FAB(-5))*& 2d0*Q2*(Q2-MZ2)/((Q2-MZ2)**2+GammaZ2*MZ2)& +&!ZZ-contributions paramL*(& paramU*FAB(2)& +paramD*FAB(1)& +paramS*FAB(3)& +paramC*FAB(4)& +paramB*FAB(5)& +paramU*FAB(-2)& +paramD*FAB(-1)& +paramS*FAB(-3)& +paramC*FAB(-4)& +paramB*FAB(-5))*& Q2*Q2/((Q2-MZ2)**2+GammaZ2*MZ2) end function XIntegrandForDYwithZgamma !------------------------------------------------------------------------------------------------------------------------------------- !------------------------------------------------------------------------------------------------------------------------------------- !!! The hadron tensonr for the structure function GTU in DY icludes Z + gamma function XIntegrandForDYwithZgamma_GTU(FAB,Q2) real(dp)::XIntegrandForDYwithZgamma_GTU,Q2 !!cross-seciton parameters real(dp),dimension(-5:5):: FAB !gamma-part=0 XIntegrandForDYwithZgamma_GTU=&!gamma-Z interference paramMIXL_A*(& paramMIXU*FAB(2)& +paramMIXD*FAB(1)& +paramMIXS*FAB(3)& +paramMIXC*FAB(4)& +paramMIXB*FAB(5)& -paramMIXU*FAB(-2)& -paramMIXD*FAB(-1)& -paramMIXS*FAB(-3)& -paramMIXC*FAB(-4)& -paramMIXB*FAB(-5))*& 2d0*Q2*(Q2-MZ2)/((Q2-MZ2)**2+GammaZ2*MZ2)& +&!ZZ-contributions paramL_A*(& paramU*FAB(2)& +paramD*FAB(1)& +paramS*FAB(3)& +paramC*FAB(4)& +paramB*FAB(5)& -paramU*FAB(-2)& -paramD*FAB(-1)& -paramS*FAB(-3)& -paramC*FAB(-4)& -paramB*FAB(-5))*& Q2*Q2/((Q2-MZ2)**2+GammaZ2*MZ2) end function XIntegrandForDYwithZgamma_GTU end module TMDF
66,347
36.358108
134
f90
artemide-public
artemide-public-master/src/TMDR.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! arTeMiDe 2.00 ! ! Evaluation of the TMD evolution kernel ! Here we use the improved gamma-solution, and the universal TMD definition. ! ! if you use this module please, quote 1803.11089 ! ! A.Vladimirov (17.04.2018) ! v1.32 A.Vladimirov (30.08.2018) ! b-freeze at 1d-6 A.Vladimirov (16.09.2018) ! v1.41 transpose-issue fixed A.Vladimirov (11.03.2019) ! 29.03.2019 Update to version 2.00 (AV). ! v2.01 Added zeta-line with non-pertrubative D A.Vladimirov (06.06.2019) ! Added gluon evolution A.Vladimirov (12.06.2019) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! module TMDR use aTMDe_Numerics use IO_functions use QCDinput use TMDR_model use TMD_AD implicit none private !Current version of module character (len=5),parameter :: version="v2.06" character (len=7),parameter :: moduleName="TMDR" !Last appropriate verion of constants-file integer,parameter::inputver=10 character(256)::replicaFILE logical::usereplicaFILE=.false. character(50)::name !------------------------------------------Working variables------------------------------------------------------------ !!!! the orders of used perturbative expressions for AD !! Orders of anomalous dimensions as^n integer::orderCusp !for Cusp AD integer::orderV !for gammaV integer::orderD !for RAD integer::orderDresum !for resummed RAD integer::orderZETA !for zeta-line !! Level of output !! 0=only critical !! 1=initialization details !! 2=WARNINGS integer::outputLevel=2 integer::messageTrigger=5 logical::started=.false. !! Precision tolerance used in various routines real(dp)::tolerance=0.0001d0 !! Evolution type integer:: EvolutionType=3 integer::counter,messageCounter !!!!!!! !!model parameters real(dp),allocatable::Stable(:,:) !------------------------------------------Non-pertrubative parameters-------------------------------------------------- !!Number of non-pertrubative parameters integer::NPlength=0 !! array of non-pertrubative parameters real(dp),allocatable,dimension(:):: NPparam public::TMDR_R,TMDR_Rzeta,TMDR_Rzeta_harpy public:: TMDR_Initialize,TMDR_setNPparameters,LowestQ,TMDR_IsInitialized,TMDR_CurrentNPparameters !public::DNP!,GammaCusp,gammaV interface TMDR_setNPparameters module procedure TMDR_setNPparameters, TMDR_SetReplica end interface interface TMDR_R module procedure TMDR_R_typeZ0,TMDR_R_typeZ end interface interface TMDR_Rzeta module procedure TMDR_Rzeta_type1,TMDR_Rzeta_type2,TMDR_Rzeta_type3 end interface contains !!! Routines for evolution type1 INCLUDE 'Code/TMDR/type1.f90' !!! Routines for evolution type2 INCLUDE 'Code/TMDR/type2.f90' !!! Routines for evolution type3 INCLUDE 'Code/TMDR/type3.f90' function TMDR_IsInitialized() logical::TMDR_IsInitialized TMDR_IsInitialized=started end function TMDR_IsInitialized !!! Initializing routing !!! Filles the prebuiled arrays !!! orderAD, is order of anomalous dimension for evolution !!!! order zeta is the order of pertrubative zeta expression, used only in the "universal TMD" subroutine TMDR_Initialize(file,prefix) character(len=*)::file character(len=*),optional::prefix character(len=300)::path,line logical::initRequired character(len=8)::orderMain integer::i,FILEver if(started) return if(present(prefix)) then path=trim(adjustl(prefix))//trim(adjustr(file)) else path=trim(adjustr(file)) end if OPEN(UNIT=51, FILE=path, ACTION="read", STATUS="old") !!! Search for output level call MoveTO(51,'*0 ') call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) FILEver if(FILEver<inputver) then write(*,*) 'artemide.'//trim(moduleName)//': const-file version is too old.' write(*,*) ' Update the const-file with artemide.setup' write(*,*) ' ' stop end if call MoveTO(51,'*p2 ') read(51,*) outputLevel if(outputLevel>2) write(*,*) '--------------------------------------------- ' if(outputLevel>2) write(*,*) 'artemide.',moduleName,version,': initialization started ... ' call MoveTO(51,'*p3 ') read(51,*) messageTrigger call MoveTO(51,'*3 ') call MoveTO(51,'*p1 ') read(51,*) initRequired if(.not.initRequired) then if(outputLevel>2) write(*,*)'artemide.',moduleName,': initialization is not required. ' started=.false. return end if call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) orderMain !!!!! IMPORTANT !!!!! Gamma cusp start from Gamma0, i.e. orderCusp=0 = as^1 SELECT CASE(orderMain) CASE ("LO") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: LO' orderCusp=0 orderV=0 orderD=0 orderDresum=0 orderZETA=0 CASE ("LO+") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: LO+' orderCusp=0 orderV=1 orderD=1 orderDresum=0 orderZETA=0 CASE ("NLO") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: NLO' orderCusp=1 orderV=1 orderD=1 orderDresum=1 orderZETA=1 CASE ("NLO+") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: NLO+' orderCusp=1 orderV=2 orderD=2 orderDresum=1 orderZETA=1 CASE ("NNLO") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: NNLO' orderCusp=2 orderV=2 orderD=2 orderDresum=2 orderZETA=2 CASE ("N2LO") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: NNLO' orderCusp=2 orderV=2 orderD=2 orderDresum=2 orderZETA=2 CASE ("NNLO+") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: NNLO+' orderCusp=2 orderV=3 orderD=3 orderDresum=3!2 orderZETA=3!2 CASE ("NNNLO") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: NNNLO' orderCusp=3 orderV=3 orderD=3 orderDresum=3 orderZETA=3 CASE ("N3LO") !!! same as NNNLO if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: N3LO' orderCusp=3 orderV=3 orderD=3 orderDresum=3 orderZETA=3 CASE ("N3LO+") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: N3LO+' orderCusp=3 orderV=4 orderD=4 orderDresum=3 orderZETA=3 CASE ("N4LO") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: N4LO' orderCusp=4 orderV=4 orderD=4 orderDresum=4 orderZETA=4 CASE DEFAULT if(outputLevel>0) write(*,*) & WarningString(' Initialize:try to set unknown ADs orders. Switch to NLO.',modulename) if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: NLO' orderCusp=1 orderV=1 orderD=1 orderDresum=1 orderZETA=1 END SELECT if(outputLevel>2) then write(*,'(A,I1)') ' | GammaCusp =as^',orderCusp+1 write(*,'(A,I1)') ' | gammaV =as^',orderV write(*,'(A,I1)') ' | D =as^',orderD write(*,'(A,I1)') ' | Dresum =as^',orderDresum write(*,'(A,I1)') ' | zeta_mu =as^',orderZETA end if call MoveTO(51,'*p2 ') read(51,*) EvolutionType if(EvolutionType<1 .or. EvolutionType>3) then if(outputLevel>0) write(*,*) & WarningString(' Initialize: Inappropriate evolution type (not 1,2,3). Switch to 3',modulename) EvolutionType=3 end if if(outputLevel>2) write(*,'(A,I3)') ' Evolution type =',EvolutionType !------------------------- call MoveTO(51,'*B ') call MoveTO(51,'*p1 ') read(51,*) NPlength if(outputLevel>2) write(*,'(A,I3)') ' Number of NP parameters =',NPlength !!allocating number of NP input allocate(NPparam(1:NPlength)) call MoveTO(51,'*p2 ') do i=1,NPlength read(51,*) NPparam(i) end do !-------------------------- call MoveTO(51,'*C ') call MoveTO(51,'*p1 ') read(51,*) tolerance if(outputLevel>2) write(*,'(A,ES10.3)') ' | tolerance=',tolerance CLOSE (51, STATUS='KEEP') call TMD_AD_Initialize(orderCusp,orderV,orderD,orderDresum,orderZETA) if(.not.QCDinput_IsInitialized()) then if(outputLevel>1) write(*,*) '.. initializing QCDinput (from ',moduleName,')' if(present(prefix)) then call QCDinput_Initialize(file,prefix) else call QCDinput_Initialize(file) end if end if if(outputLevel>2) write(*,*) 'Model initialization..' call ModelInitialization(NPparam) !!! we also initialize the variables call TMDR_setNPparameters(NPparam) started=.true. counter=0 messageCounter=0 if(outputLevel>0) write(*,*) color('----- arTeMiDe.TMDR '//trim(version)//': .... initialized',c_green) if(outputLevel>1) write(*,*) ' ' end subroutine TMDR_Initialize !Reset the NP parameters subroutine TMDR_setNPparameters(lambdaIN) real(dp),intent(in)::lambdaIN(:) integer::ll ll=size(lambdaIN) if(ll<NPlength) then if(outputLevel>0) write(*,"(A,I3,A,I3,')')")& WarningString('length of lambdaNP(',moduleName),ll,& color(') is less then requred (',c_red),NPlength if(outputLevel>0) write(*,*)color(' Rest parameters are replaced by zeros!',c_red) NPparam=0d0*NPparam NPparam(1:ll)=lambdaIN(1:ll) else if (ll>NPlength) then if(outputLevel>0) write(*,"(A,I3,A,I3,')')")& WarningString('length of lambdaNP(',moduleName),ll,& color(') is greater then requred (',c_red),NPlength if(outputLevel>0) write(*,*)color(' Array is truncated!',c_red) NPparam(1:NPlength)=lambdaIN(1:NPlength) else NPparam=lambdaIN end if if(outputLevel>2) write(*,*) 'arTeMiDe.TMDR: NPparameters reset = (',NPparam,')' call ModelUpdate(NPparam) end subroutine TMDR_setNPparameters subroutine TMDR_SetReplica(rep) integer,intent(in)::rep real(dp),allocatable::NParray(:) call GetReplicaParameters(rep,NParray) call TMDR_setNPparameters(NParray) end subroutine TMDR_SetReplica subroutine TMDR_CurrentNPparameters(var) real(dp),dimension(1:NPlength)::var var=NPparam end subroutine TMDR_CurrentNPparameters !!!-------------------------------------------------------------------------- !!!--------------------------- interfaces ----------------------------------- !!! general interface for evolutions from (muf,zetaf)->(mui,zetai) !!! contains parameter mu0 which is used in type-1 evolution. !!! for other cases mu0 is ignored !!! these functions are the part of TMDR_R definition function TMDR_R_typeZ0(b,muf,zetaf,mui,zetai,mu0,f) real(dp)::TMDR_R_typeZ0 real(dp),intent(in)::b,muf,zetaf,mui,zetai,mu0 integer,intent(in)::f SELECT CASE(EvolutionType) CASE(1) TMDR_R_typeZ0=TMDR_R_type1(b,muf,zetaf,mui,zetai,mu0,f) CASE(2) TMDR_R_typeZ0=TMDR_R_type2(b,muf,zetaf,mui,zetai,f) CASE(3) TMDR_R_typeZ0=TMDR_Rzeta_type3(b,muf,zetaf,f)/TMDR_Rzeta_type3(b,mui,zetai,f) CASE DEFAULT TMDR_R_typeZ0=TMDR_Rzeta_type3(b,muf,zetaf,f)/TMDR_Rzeta_type3(b,mui,zetai,f) end SELECT end function TMDR_R_typeZ0 !!! general interface for evolutions from (muf,zetaf)->(mui,zetai) for types 2,3,4 !!! for the type 1 the parameter mu0 = mui !!! these functions are the part of TMDR_R definition function TMDR_R_typeZ(b,muf,zetaf,mui,zetai,f) real(dp)::TMDR_R_typeZ real(dp),intent(in)::b,muf,zetaf,mui,zetai integer,intent(in)::f SELECT CASE(EvolutionType) CASE(1) !!!!! parameter mu0 = mui !!! TMDR_R_typeZ=TMDR_R_type1(b,muf,zetaf,mui,zetai,mui,f) CASE(2) TMDR_R_typeZ=TMDR_R_type2(b,muf,zetaf,mui,zetai,f) CASE(3) TMDR_R_typeZ=TMDR_Rzeta_type3(b,muf,zetaf,f)/TMDR_Rzeta_type3(b,mui,zetai,f) CASE DEFAULT TMDR_R_typeZ=TMDR_Rzeta_type3(b,muf,zetaf,f)/TMDR_Rzeta_type3(b,mui,zetai,f) end SELECT end function TMDR_R_typeZ !! we search for the lowest avalible Q, under which the evolution is inverted (for quark) !! it is defined by Q^2<zeta_Q(b->infty) !! with variabtions it is Q^2<zeta_{c Q}(b->infty) !! the function return the values for c={0.5,1,2} at b=25 (let it be assimptotic value) !! The function returns 1 if Q<1 function LowestQ() real(dp),dimension(1:3)::LowestQ real(dp),parameter::b=25d0 integer,parameter::f=1 real(dp)::Qs1,Qs2,Qs3,V1,V2,V3 !c=1 Qs1=1d0 V1=Qs1**2-zetaNP(Qs1,b,f) Qs3=25d0 V3=Qs3**2-zetaNP(Qs3,b,f) if(V1<0d0 .and. V3>0d0) then do Qs2=(Qs3+Qs1)/2d0 V2=Qs2**2-zetaNP(Qs2,b,f) if(V2>0d0) then Qs3=Qs2 V3=V2 else Qs1=Qs2 V1=V2 end if if(Qs3-Qs1<tolerance) exit end do LowestQ(2)=(Qs3+Qs1)/2d0 else if(V1>0d0 .and. V3>0d0) then LowestQ(2)=1d0 else write(*,*) ErrorString('LowestQ: Negative value at large Q (c=1).',moduleName) stop end if !c=0.5 Qs1=1d0 V1=Qs1**2-zetaNP(0.5d0*Qs1,b,f) Qs3=25d0 V3=Qs3**2-zetaNP(0.5d0*Qs3,b,f) if(V1<0d0 .and. V3>0d0) then do Qs2=(Qs3+Qs1)/2d0 V2=Qs2**2-zetaNP(0.5d0*Qs2,b,f) if(V2>0d0) then Qs3=Qs2 V3=V2 else Qs1=Qs2 V1=V2 end if if(Qs3-Qs1<tolerance) exit end do LowestQ(1)=(Qs3+Qs1)/2d0 else if(V1>0d0 .and. V3>0d0) then LowestQ(1)=1d0 else write(*,*) ErrorString('LowestQ: Negative value at large Q (c=1).',moduleName) stop end if !c=2 Qs1=1d0 V1=Qs1**2-zetaNP(2d0*Qs1,b,f) Qs3=25d0 V3=Qs3**2-zetaNP(2d0*Qs3,b,f) if(V1<0d0 .and. V3>0d0) then do Qs2=(Qs3+Qs1)/2d0 V2=Qs2**2-zetaNP(2d0*Qs2,b,f) if(V2>0d0) then Qs3=Qs2 V3=V2 else Qs1=Qs2 V1=V2 end if if(Qs3-Qs1<tolerance) exit end do LowestQ(3)=(Qs3+Qs1)/2d0 else if(V1>0d0 .and. V3>0d0) then LowestQ(3)=1d0 else write(*,*) ErrorString('LowestQ: Negative value at large Q (c=1).',moduleName) stop end if end function LowestQ end module TMDR
13,993
26.278752
120
f90
artemide-public
artemide-public-master/src/TMDX_DY.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! arTeMiDe 2.01 ! ! Evaluation of the TMD cross-section for DY-like cross-sections ! ! if you use this module please, quote 1706.01473 ! ! ver 1.0: release (AV, 10.05.2017) ! ver 1.1: multiple updates (AV, 5.10.2017) ! ver 1.2: module is renamed, and multiple renaming of functions (AV, 15.10.2017) ! ver 1.31: part of functions migrated to TMDF, rest updated (AV, 1.06.2018) ! ver 1.4: encapsulation of cuts, and process,+ multiple updates (AV, 18.01.2019) ! ver 2.01: Added Higgs xSec, piresum option, and coefficient function moved to separate file (AV, 17.06.2019) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! module TMDX_DY use aTMDe_Numerics use IO_functions use TMDF use LeptonCutsDY use QCDinput use EWinput implicit none private !Current version of module character (len=7),parameter :: moduleName="TMDX-DY" character (len=5),parameter :: version="v2.06" !Last appropriate verion of constants-file integer,parameter::inputver=21 real(dp) :: tolerance=0.0005d0 integer::outputlevel integer::messageTrigger !!!! !!!! in the module the kinematic is stored in the varibles "kinematic" real(dp),dimension(1:6) !!!! which is (qT,s,Q,Q^2,x0,y,exp[y]) !!!! where x0=sqrt[(Q^2+q_T^2)/s] (if exactX1X2) or x0=Q^2/s (otherwise) !!!! !The variables for all parameters of the model! real(dp):: s_global,Q_global,y_global !! Set of process definition, for Prefactor 1, Prefactor 2, structure function, etc !! = (/p1,p2,p3/) integer,dimension(1:3)::process_global !!cut parameters !!!!! this variable = (pT1,pT2,etaMIN,etaMAX) real(dp),dimension(1:4)::CutParameters_global !!other global parameters see SetXParameters integer:: orderH_global logical:: includeCuts_global logical::usePIresum integer:: exactX1X2 !!!=1 if exact x's=true, =0 otherwise integer:: exactScales !!!=1 if exact hard scales = true, =0 otherwise !!! number of sections for PT-integral by default integer::NumPTdefault=4 !!! Maximum size of Q-bin. Larger bins are desected real::maxQbinSize=30. real(dp)::c2_global!,muHard_global integer::GlobalCounter integer::CallCounter integer::messageCounter real(dp)::hc2 logical::started=.false. public::TMDX_DY_XSetup,TMDX_DY_Initialize,TMDX_DY_SetCuts,TMDX_DY_SetScaleVariation,& TMDX_DY_setProcess,TMDX_DY_ShowStatistic,TMDX_DY_ResetCounters,TMDX_DY_IsInitialized public:: CalcXsec_DY,CalcXsec_DY_Yint,CalcXsec_DY_Qint_Yint,CalcXsec_DY_PTint_Qint_Yint,CalcXsec_DY_Qint,xSec_DY,xSec_DY_List,& xSec_DY_List_BINLESS interface TMDX_DY_SetCuts module procedure SetCuts_sym,SetCuts_asym end interface interface CalcXsec_DY module procedure xSecSingle,xSecList end interface interface TMDX_DY_setProcess module procedure TMDX_setProcess1,TMDX_setProcess3,TMDX_setProcess30 end interface interface CalcXsec_DY_Yint module procedure xSecSingle_Yint ,xSecList_Yint,xSecSingle_Ycomplete ,xSecList_Ycomplete end interface interface CalcXsec_DY_Qint module procedure xSecSingle_Qint ,xSecList_Qint end interface interface CalcXsec_DY_Qint_Yint module procedure xSecSingle_Qint_Yint, xSecList_Qint_Yint, xSecSingle_Qint_Ycomplete, xSecList_Qint_Ycomplete end interface interface CalcXsec_DY_PTint_Qint_Yint module procedure xSecSingle_PTint_Qint_Yint, xSecList_PTint_Qint_Yint, & xSecSingle_PTint_Qint_Ycomplete, xSecList_PTint_Qint_Ycomplete,& xSecSingle_PTintN_Qint_Yint, xSecList_PTintN_Qint_Yint,& xSecSingle_PTintN_Qint_Ycomplete, xSecList_PTintN_Qint_Ycomplete,& xSecListList_PTint_Qint_Yint,xSecListList_PTint_Qint_Ycomplete,& xSecListList_PTintN_Qint_Yint,xSecListList_PTintN_Qint_Ycomplete,& xSecListPY_PTint_Qint_Yint,xSecListPY_PTintN_Qint_Yint end interface interface xSec_DY module procedure MainInterface_AsAAAloo,MainInterface_isAAAloo end interface contains function TMDX_DY_IsInitialized() logical::TMDX_DY_IsInitialized TMDX_DY_IsInitialized=started end function TMDX_DY_IsInitialized !! Initialization of the package subroutine TMDX_DY_Initialize(file,prefix) character(len=*)::file character(len=*),optional::prefix character(len=300)::path,line logical::initRequired,dummyLogical,TMDPDFgrid character(len=8)::orderMain integer::i,FILEver !$ integer:: omp_get_thread_num if(started) return if(present(prefix)) then path=trim(adjustl(prefix))//trim(adjustr(file)) else path=trim(adjustr(file)) end if OPEN(UNIT=51, FILE=path, ACTION="read", STATUS="old") !!! Search for output level call MoveTO(51,'*0 ') call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) FILEver if(FILEver<inputver) then write(*,*) 'artemide.'//trim(moduleName)//': const-file version is too old.' write(*,*) ' Update the const-file with artemide.setup' write(*,*) ' ' stop end if call MoveTO(51,'*p2 ') read(51,*) outputLevel if(outputLevel>2) write(*,*) '--------------------------------------------- ' if(outputLevel>2) write(*,*) 'artemide.',moduleName,version,': initialization started ... ' call MoveTO(51,'*p3 ') read(51,*) messageTrigger call MoveTO(51,'*B ') call MoveTO(51,'*p1 ') read(51,*) hc2 !!! go to section TMD-DY call MoveTO(51,'*9 ') call MoveTO(51,'*p1 ') read(51,*) initRequired if(.not.initRequired) then if(outputLevel>2) write(*,*)'artemide.',moduleName,': initialization is not required. ' started=.false. return end if call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) orderMain SELECT CASE(orderMain) CASE ("LO") orderH_global=0 CASE ("LO+") orderH_global=0 CASE ("NLO") orderH_global=1 CASE ("NLO+") orderH_global=1 CASE ("NNLO") orderH_global=2 CASE ("N2LO") orderH_global=2 CASE ("NNLO+") orderH_global=2 CASE ("NNNLO") orderH_global=3 CASE ("N3LO") !!! same as NNNLO orderH_global=3 CASE ("N3LO+") orderH_global=3 CASE ("N4LO") orderH_global=4 CASE DEFAULT if(outputLevel>0) write(*,*) WarningString('try to set unknown order. Switch to NLO.',moduleName) orderH_global=1 END SELECT if(outputLevel>1) write(*,*) ' artemide.TMDX_DY: the used order is ',trim(orderMain) !!exact values of x1x2 call MoveTO(51,'*p2 ') read(51,*) dummyLogical if(dummyLogical) then exactX1X2=1 else exactX1X2=0 end if if(outputLevel>2 .and. dummyLogical) write(*,*) ' artemide.TMDX_DY: qT/Q corrections for x1 and x2 variables are included.' !! pi2 resummation call MoveTO(51,'*p3 ') read(51,*) usePIresum if(outputLevel>2 .and. usePIresum) write(*,*) ' artemide.TMDX_DY: pi-resummation in coef.function included.' !!exact values for scales call MoveTO(51,'*p4 ') read(51,*) dummyLogical if(dummyLogical) then exactScales=1 else exactScales=0 end if if(outputLevel>2 .and. dummyLogical) write(*,*) ' artemide.TMDX_DY: qT/Q correction for scales variables are included.' call MoveTO(51,'*B ') call MoveTO(51,'*p1 ') read(51,*) tolerance call MoveTO(51,'*p2 ') read(51,*) NumPTdefault call MoveTO(51,'*p3 ') read(51,*) maxQbinSize !$ if(outputLevel>1) write(*,*) ' artemide.TMDX_DY: parallel evaluation of cross-sections is to be used' !$ call MoveTO(51,'*C ') !$ call MoveTO(51,'*p1 ') !$ read(51,*) i !$ call OMP_set_num_threads(i) !$ if(outputLevel>1) write(*,*) ' artemide.TMDX_DY: number of threads for parallel evaluation is set to ', i !$ if(outputLevel>2) write(*,*) '------TEST OF PARALLEL PROCESSING ----------' !$OMP PARALLEL !$ if(outputLevel>2) write(*,*) ' artemide.TMDX_DY:thread num ', omp_get_thread_num(), ' ready.' !$OMP END PARALLEL CLOSE (51, STATUS='KEEP') if(.not.EWinput_IsInitialized()) then if(outputLevel>1) write(*,*) '.. initializing EWinput (from ',moduleName,')' if(present(prefix)) then call EWinput_Initialize(file,prefix) else call EWinput_Initialize(file) end if end if if(.not.TMDF_IsInitialized()) then if(outputLevel>1) write(*,*) '.. initializing TMDF (from ',moduleName,')' if(present(prefix)) then call TMDF_Initialize(file,prefix) else call TMDF_Initialize(file) end if end if includeCuts_global=.false. c2_global=1d0 GlobalCounter=0 CallCounter=0 messageCounter=0 started=.true. write(*,*) color('----- arTeMiDe.TMD_DY '//trim(version)//': .... initialized',c_green) end subroutine TMDX_DY_Initialize subroutine TMDX_DY_ResetCounters() if(outputlevel>2) call TMDX_DY_ShowStatistic GlobalCounter=0 CallCounter=0 messageCounter=0 end subroutine TMDX_DY_ResetCounters subroutine TMDX_DY_ShowStatistic() write(*,'(A,ES12.3)') 'TMDX DY statistics total calls of point xSec : ',Real(GlobalCounter) write(*,'(A,ES12.3)') ' total calls of xSecF : ',Real(CallCounter) write(*,'(A,F12.3)') ' avarage M : ',Real(GlobalCounter)/Real(CallCounter) end subroutine TMDX_DY_ShowStatistic !!!!Call this after TMD initializetion but before NP, and X parameters subroutine TMDX_DY_SetScaleVariation(c2_in) real(dp)::c1_in,c2_in,c3_in,c4_in if(outputLevel>1) write(*,*) 'TMDX_DY: c2 scale reset:',c2_in if(c2_in<0.1d0 .or. c2_in>10.d0) then if(outputLevel>0) write(*,*) WarningString('variation in c2 is enourmous. c2 is set to 2',moduleName) c2_global=2d0 else c2_global=c2_in end if end subroutine TMDX_DY_SetScaleVariation !!sets the cuts !! argument includeCuts_global_in=logical, if .true. will add to calculation the evaluation of cut leptonic tensor !! call BEFORE SetXParameters subroutine SetCuts_sym(include_arg,pT_arg,eta_min,eta_max) logical:: include_arg real(dp):: pT_arg,eta_max,eta_min includeCuts_global=include_arg CutParameters_global=(/pT_arg,pT_arg,eta_min,eta_max/) end subroutine SetCuts_sym !!sets the cuts (asymetric) !! argument includeCuts_global_in=logical, if .true. will add to calculation the evaluation of cut leptonic tensor !! call BEFORE SetXParameters subroutine SetCuts_asym(include_arg,pT1_arg,pT2_arg,eta_min,eta_max) logical:: include_arg real(dp):: pT1_arg,pT2_arg,eta_max,eta_min includeCuts_global=include_arg CutParameters_global=(/pT1_arg,pT2_arg,eta_min,eta_max/) end subroutine SetCuts_asym !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!! PROCESS DEFINITION function processArrayFromInteger(p) integer,intent(in)::p integer,dimension(1:3)::processArrayFromInteger SELECT CASE(p) case(1) processArrayFromInteger=(/1,1,5/) !!! p + p -> Z + gamma^* (e.g. ATLAS, CMS, LHCb) case(2) processArrayFromInteger=(/1,1,6/) !!! p + pbar -> Z + gamma^* (e.g. CDF,D0) case(4) processArrayFromInteger=(/1,2,1001/) case(5) processArrayFromInteger=(/1,1,5/) case(7) processArrayFromInteger=(/1,1,6/) case default write(*,*) 'ERROR: arTeMiDe_DY: unknown process is called. p=',p write(*,*) 'Evaluation stop' stop end SELECT end function processArrayFromInteger !!!set variables for process definition subroutine TMDX_setProcess30(p0) integer,dimension(1:3)::p0 process_global(1)=p0(1) process_global(2)=p0(2) process_global(3)=p0(3) end subroutine TMDX_setProcess30 !!!set variables for process definition subroutine TMDX_setProcess3(p1,p2,p3) integer::p1,p2,p3 process_global(1)=p1 process_global(2)=p2 process_global(3)=p3 end subroutine TMDX_setProcess3 !!!set variables for process definition subroutine TMDX_setProcess1(p) integer::p call TMDX_setProcess30(processArrayFromInteger(p)) end subroutine TMDX_setProcess1 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!FUNCTIONS FOR OPERATION WITH KINEMATICS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !sets the main parameters of cross-section (x,zeta,etc) !the variables process defines the type of process subroutine TMDX_DY_XSetup(s,Q,y) real(dp)::s,Q,y if(.not.started) then write(*,*) 'ERROR: arTeMiDe.TMDX_DY is not initialized. Evaluation terminated' stop end if s_global=s Q_global=Q y_global=y ! if(includeCuts_global) then ! call SetCutParameters(pT1_global,pT2_global,eta_min_global,eta_max_global) ! end if end subroutine TMDX_DY_XSetup !!! function makes kinematic array from the given set of qT,s,Q,y !!! array has 7 often appearing entries function kinematicArray(qT,s,Q,y) real(dp),dimension(1:7)::kinematicArray real(dp)::qT,s,Q,y kinematicArray=(/qT,s,Q,Q**2,sqrt((Q**2+exactX1X2*qT**2)/s),y,exp(y)/) end function kinematicArray !!!intrinsic change the value of Q within kinematic array var subroutine SetQ(Q,var) real(dp),dimension(1:7)::var real(dp)::Q var(3)=Q var(4)=Q**2 var(5)=sqrt((var(4)+exactX1X2*var(1)**2)/var(2)) end subroutine SetQ !!!intrinsic change the value of y within kinematic array var subroutine SetY(y,var) real(dp),dimension(1:7)::var real(dp)::y var(6)=y var(7)=exp(y) end subroutine SetY !!!intrinsic change the value of qT within kinematic array var subroutine SetQT(qT_in,var) real(dp),dimension(1:7)::var real(dp)::qT_in var(1)=qT_in var(5)=sqrt((var(4)+exactX1X2*var(1)**2)/var(2)) end subroutine SetQT !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!FUNCTIONS FOR PREFACTORS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!! for easier read coeff-functions are split into separate file INCLUDE 'DYcoeff-func.f90' !!!!! Prefactor 2 is (universal part) x (cuts) x H function PreFactor2(kin,process, includeCuts_in,CutParam) real(dp),dimension(1:7),intent(in)::kin logical,intent(in)::includeCuts_in real(dp)::PreFactor2,cutPrefactor,uniPart,scaleMu real(dp),dimension(1:4),intent(in)::CutParam integer,dimension(1:3),intent(in)::process !!!!! cut part if(includeCuts_in) then !!! here include cuts onf lepton tensor cutPrefactor=CutFactor4(qT=kin(1),Q_in=kin(3),y_in=kin(6),CutParameters=CutParam) else !!! this is uncut lepton tensor cutPrefactor=(1+0.5d0*(kin(1)/kin(3))**2) end if !!!! universal part scaleMu=sqrt(kin(4)+exactScales*kin(1)**2) SELECT CASE(process(2)) case(-10221191) uniPart=1d0 cutPrefactor=1d0 CASE(1) !4 pi aEm^2/3 /Nc/Q^2/s uniPart=pix4/9d0*(alphaEM(scaleMu)**2)/(kin(2)*kin(4))*& HardCoefficientDY(scaleMu)*& hc2*1d9!from GeV to pb !!! IsySymmetric=.true. !!! state is IsySymmetric-function CASE(2) !4 pi aEm^2/3 /Nc/Q^2/s uniPart=pix4/9d0*(alphaEM(scaleMu)**2)/(kin(2)*kin(4))*& HardCoefficientDY(scaleMu)*& hc2*1d9!from GeV to pb !!!IsySymmetric=.false. !!! state is IsySymmetric-function CASE (3) !Zboson in the narrow-width approximation !4 pi^2 aem/Nc/s Br(z->ee+mumu) uniPart=pi2x4/3d0*alphaEM(scaleMu)/kin(2)*& HardCoefficientDY(scaleMu)*& hc2*1d9*&!from GeV to pb 0.03645d0!Br from PDG, ee+mumu CASE (4) !Wboson in the narrow-width approximation !4 pi^2 aem/Nc/s Br(z->ee+mumu) uniPart=pi2x4/3d0**alphaEM(scaleMu)/kin(2)*& HardCoefficientDY(scaleMu)*& hc2*1d9*&!from GeV to pb 0.1086d0!Br from PDG, ee+mumu CASE (5) !exclusive HIGGSboson production ! (2\pi) *pi Mh^2 as(mu)/36/s/vev^2 * H*cT^2 ! (1.033)^2 is correction for mT mass in Ct at LO. uniPart=(1d0/18d0)*MH2*(As(c2_global*scaleMu)/VEVH)**2/kin(2)*& HardCoefficientHIGGS(scaleMu)*(EffCouplingHFF(scaleMu)**2)*1.0677023627519822d0*& hc2*1d9!from GeV to pb cutPrefactor=1d0 !!! cut-prefactor is different in this case! CASE DEFAULT write(*,*) 'ERROR: arTeMiDe.TMDX_DY: unknown process p2=',process(2),' .Evaluation stop.' stop END SELECT !!! this is case of xF integration the weight is 2sqrt[(Q^2+q_T^2)/s] Cosh[y] if(process(1)==2) then uniPart=2d0*kin(5)*cosh(kin(6))*uniPart end if PreFactor2=uniPart*cutPrefactor end function PreFactor2 !!!! Set Prefactor1 !!!! it multiplies the cross-section as a whole, does not participate in the integration function PreFactor1(p1) real(dp)::Prefactor1 integer::p1 SELECT CASE(p1) CASE(1) PreFactor1=1d0 CASE(2) PreFactor1=1d0 CASE DEFAULT write(*,*) 'ERROR: arTeMiDe.TMDX_DY: unknown process p1=',p1,' .Evaluation stop.' stop END SELECT end function PreFactor1 !!! check is the process y-symmetric function IsySymmetric(p2) logical::IsySymmetric integer::p2 if(p2==1 .or. p2==3 ) then IsySymmetric=.true. else IsySymmetric=.false. end if end function IsySymmetric !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!FUNCTIONS CALCULATING CROSS-SECTIONS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !---------------------------------UNINTEGRATED------------------------------------------------------------------ !!! this is help function which evaluate xSec at single qt (without lists) with only prefactor 2 !!!! this is extended (and default) version of xSec, which include all parameters function xSec(var,process,incCut,CutParam) real(dp):: xSec,FF real(dp)::x1,x2,scaleMu,scaleZeta real(dp),dimension(1:7),intent(in)::var logical,intent(in)::incCut real(dp),dimension(1:4),intent(in)::CutParam integer,dimension(1:3),intent(in)::process GlobalCounter=GlobalCounter+1 if(TMDF_IsconvergenceLost()) then xSec=1d9 return end if !!! setting values of X x1=var(5)*var(7) x2=var(5)/var(7) !!! setting values of scales scaleZeta=var(4)+exactScales*var(1)**2 !! zeta=Q2+qT^2 scaleMu=sqrt(scaleZeta) FF=TMDF_F(var(4),var(1),x1,x2,scaleMu*c2_global,scaleZeta,scaleZeta,process(3)) xSec=PreFactor2(var,process,incCut,CutParam)*FF !write(*,*) "{",var(4),",",x1,"},"!,z1 end function xSec !---------------------------------INTEGRATED over Y--------------------------------------------------------------- !!! function determines the best value of PT-sections from PT-bin size, and Q !!! it is determined by formula Q/PT< val/ (2 k) => def+2K function NumPT_auto(dPT,Q) real,parameter::val=40. real(dp)::dPT,Q,rat integer::i,NumPT_auto rat=Q/dPT if(rat>40.) then NumPT_auto=NumPTdefault return else do i=1,25 if(rat>(40d0/2d0/i)) then NumPT_auto=NumPTdefault+2*i return end if end do end if if(outputlevel>1) then write(*,*) WarningString('Fail to automatically determine number of Pt-section for a bin.',moduleName) write(*,*) ' ... Possibly Pt-bin is too large', dPT end if NumPT_auto=NumPTdefault+12 end function NumPT_auto function yFromXF(xF,var) real(dp),dimension(1:7)::var real(dp):: yFromXF,xF ! yFromXF=asinh(Sqrt(s_global/(Q2_global+qt**2))*xF/2d0) yFromXF=asinh(xF/2d0/var(5)) end function yFromXF !!! function Xsec_Yint(var,process,incCut,CutParam,ymin_in,ymax_in) real(dp),dimension(1:7) :: var logical,intent(in)::incCut real(dp),dimension(1:4),intent(in)::CutParam real(dp) :: Xsec_Yint real(dp) :: ymin, ymax,ymin_in,ymax_in real(dp) :: ymin_Check,ymax_Check integer,dimension(1:3),intent(in)::process if(TMDF_IsconvergenceLost()) then Xsec_Yint=1d9 return end if !!! evaluate correspnding y's !!! in the case process=2 the integral is over xF if(process(1)==2) then ymin=yFromXF(ymin_in,var) ymax=yFromXF(ymax_in,var) else ymin=ymin_in ymax=ymax_in end if ymin_Check=log(var(5))+0.000000001d0 ymax_Check=-log(var(5))-0.000000001d0 if(IsySymmetric(process(2)) .and. (ABS(ymax+ymin)<tolerance)) then!!! symetric integral if(ymax > ymax_check) then ymax=ymax_Check end if!!!!! else case: automatically taken into account Xsec_Yint=2d0*integralOverYpoint_S(var,process,incCut,CutParam,0d0,ymax)!!! 2 since symmetric else !!!non-symmetric integral!!!!!!!! if(ymax<ymin_check .or. ymin>ymax_check) then !!! the case then y is outside physicsl region Xsec_Yint=0d0 else if(ymax > ymax_check) then ymax=yMax_check end if!!!!! else case: automatically taken into account if(ymin < ymin_check) then ymin=ymin_check end if!!!!! else case: automatically taken into account Xsec_Yint=integralOverYpoint_S(var,process,incCut,CutParam,ymin,ymax) end if end if end function Xsec_Yint !--------------Simpsons-------------------- !!!! parameter valueMax remembers the approximate value of integral to weight the tolerance. !!!! evaluation is done by adaptive simpson !!!! First we evaluate over 5 points and estimate the integral, and then split it to 3+3 and send to adaptive !!!! Thus minimal number of points =9 function integralOverYpoint_S(var,process,incCut,CutParam,yMin_in,yMax_in) real(dp),dimension(1:7)::var logical,intent(in)::incCut real(dp),dimension(1:4),intent(in)::CutParam integer,dimension(1:3),intent(in)::process real(dp) ::integralOverYpoint_S real(dp) :: X1,X2,X3,X4,X5 real(dp) :: y2,y3,y4,deltay real(dp) :: yMin_in,yMax_in real(dp)::valueMax deltay=yMax_in-yMin_in y2=yMin_in+deltay/4d0 y3=yMin_in+deltay/2d0 y4=yMax_in-deltay/4d0 call SetY(yMin_in,var) X1= xSec(var,process,incCut,CutParam) call SetY(y2,var) X2= xSec(var,process,incCut,CutParam) call SetY(y3,var) X3= xSec(var,process,incCut,CutParam) call SetY(y4,var) X4= xSec(var,process,incCut,CutParam) call SetY(yMax_in,var) X5= xSec(var,process,incCut,CutParam) !!approximate integral value valueMax=deltay*(X1+4d0*X2+2d0*X3+4d0*X4+X5)/12d0 integralOverYpoint_S=IntegralOverYpoint_S_Rec(var,process,incCut,CutParam,yMin_in,y3,X1,X2,X3,valueMax)+& IntegralOverYpoint_S_Rec(var,process,incCut,CutParam,y3,yMax_in,X3,X4,X5,valueMax) end function integralOverYpoint_S !!!! X1,X3,X5 are cross-sections at end (X1,X5) and central (X3) points of integraitons recursive function integralOverYpoint_S_Rec(var,process,incCut,CutParam,yMin_in,yMax_in,X1,X3,X5,valueMax) result(interX) real(dp),dimension(1:7) ::var logical,intent(in)::incCut real(dp),dimension(1:4),intent(in)::CutParam integer,dimension(1:3),intent(in)::process real(dp) :: interX,X1,X2,X3,X4,X5 real(dp) :: valueAB,valueACB real(dp) :: yMin_in,yMax_in,y2,y3,y4,deltay real(dp),intent(in)::valueMax deltay=yMax_in-yMin_in y2=yMin_in+deltay/4d0 y3=yMin_in+deltay/2d0 y4=yMax_in-deltay/4d0 call SetY(y2,var) X2= xSec(var,process,incCut,CutParam) call SetY(y4,var) X4= xSec(var,process,incCut,CutParam) valueAB=deltay*(X1+4d0*X3+X5)/6d0 valueACB=deltay*(X1+4d0*X2+2d0*X3+4d0*X4+X5)/12d0 !write(*,*) yMin_in,yMax_in,(valueACB-valueAB)/valueMax,ABS((valueACB-valueAB)/valueMax)>tolerance !if(GlobalCounter>200) stop ! if(abs(valueMax)<1d-10) write(*,*) valueMax If(ABS((valueACB-valueAB)/valueMax)>tolerance) then interX=integralOverYpoint_S_Rec(var,process,incCut,CutParam,yMin_in,y3,X1,X2,X3,valueMax)& +integralOverYpoint_S_Rec(var,process,incCut,CutParam,y3,yMax_in,X3,X4,X5,valueMax) else interX=valueACB end if end function integralOverYpoint_S_Rec !---------------------------------INTEGRATED over Q--------------------------------------------------------------- function Xsec_Qint(var,process,incCut,CutParam,Qmin_in,Qmax_in) real(dp),dimension(1:7)::var logical,intent(in)::incCut real(dp),dimension(1:4),intent(in)::CutParam integer,dimension(1:3),intent(in)::process real(dp),intent(in):: Qmin_in,Qmax_in real(dp):: Xsec_Qint integer::numSec,i real(dp)::dQ if(TMDF_IsconvergenceLost()) then Xsec_Qint=1d9 return end if !!! check how many maxQbins is inside the integration range (+1) numSec=INT((Qmax_in-Qmin_in)/maxQbinSize)+1 if(numSec==1) then !!! if the bin is smaller than maxQbinSize, integrate as is Xsec_Qint=integralOverQpoint_S(var,process,incCut,CutParam,Qmin_in,Qmax_in) else !!! else divide to smaler bins and sum the integrals dQ=(Qmax_in-Qmin_in)/numSec !!! size of new bins Xsec_Qint=0d0 do i=0,numSec-1 Xsec_Qint=Xsec_Qint + & integralOverQpoint_S(var,process,incCut,CutParam,Qmin_in+i*dQ,Qmin_in+(i+1)*dQ) end do end if end function Xsec_Qint !--------------Simpsons-------------------- !!!! parameter valueMax remembers the initial value of integral to weight the tolerance. !!!! First we evaluate over 5 points and estimate the integral, and then split it to 3+3 and send to adaptive !!!! Thus minimal number of points =9 !!!! taking into account minimum calls of y-integral we have =81 points function integralOverQpoint_S(var,process,incCut,CutParam,QMin_in,QMax_in) real(dp),dimension(1:7)::var logical,intent(in)::incCut real(dp),dimension(1:4),intent(in)::CutParam integer,dimension(1:3),intent(in)::process real(dp) ::integralOverQpoint_S real(dp) :: X1,X2,X3,X4,X5 real(dp) :: QMin_in,QMax_in real(dp)::valueMax,Q2,Q3,Q4,deltaQ deltaQ=QMax_in-QMin_in Q2=QMin_in+deltaQ/4d0 Q3=QMin_in+deltaQ/2d0 Q4=QMax_in-deltaQ/4d0 call SetQ(QMin_in,var) X1=2*QMin_in*xSec(var,process,incCut,CutParam) call SetQ(Q2,var) X2=2*Q2*xSec(var,process,incCut,CutParam) call SetQ(Q3,var) X3=2*Q3*xSec(var,process,incCut,CutParam) call SetQ(Q4,var) X4=2*Q4*xSec(var,process,incCut,CutParam) call SetQ(QMax_in,var) X5=2*Qmax_in*xSec(var,process,incCut,CutParam) !!approximate integral value valueMax=deltaQ*(X1+4d0*X2+2d0*X3+4d0*X4+X5)/12d0 integralOverQpoint_S=IntegralOverQpoint_S_Rec(var,process,incCut,CutParam,QMin_in,Q3,X1,X2,X3,valueMax)+& IntegralOverQpoint_S_Rec(var,process,incCut,CutParam,Q3,QMax_in,X3,X4,X5,valueMax) end function integralOverQpoint_S !!!! X1,X3,X5 are cross-sections at end (X1,X5) and central (X3) points of integraitons recursive function integralOverQpoint_S_Rec(var,process,incCut,CutParam,QMin_in,QMax_in,X1,X3,X5,valueMax) result(interX) real(dp),dimension(1:7)::var logical,intent(in)::incCut real(dp),dimension(1:4),intent(in)::CutParam integer,dimension(1:3),intent(in)::process real(dp) :: interX,X1,X2,X3,X4,X5 real(dp) :: valueAB,valueACB real(dp) :: QMin_in,QMax_in,Q2,Q3,Q4,deltaQ real(dp),intent(in)::valueMax deltaQ=QMax_in-QMin_in Q2=QMin_in+deltaQ/4d0 Q3=QMin_in+deltaQ/2d0 Q4=QMax_in-deltaQ/4d0 call SetQ(Q2,var) X2=2*Q2*xSec(var,process,incCut,CutParam) call SetQ(Q4,var) X4=2*Q4*xSec(var,process,incCut,CutParam) valueAB=deltaQ*(X1+4d0*X3+X5)/6d0 valueACB=deltaQ*(X1+4d0*X2+2d0*X3+4d0*X4+X5)/12d0 If(ABS((valueACB-valueAB)/valueMax)>tolerance) then interX=integralOverQpoint_S_Rec(var,process,incCut,CutParam,QMin_in,Q3,X1,X2,X3,valueMax)& +integralOverQpoint_S_Rec(var,process,incCut,CutParam,Q3,Qmax_in,X3,X4,X5,valueMax) else interX=valueACB end if end function integralOverQpoint_S_Rec !---------------------------------INTEGRATED over Y over Q--------------------------------------------------------------- !!!! No need for check over Y they take a place within y-integration !!!! to integrate over Q I use adaptive Simpson. (defined below) !!!! before the integration over Q I check the size of Q-bin, !!!! if Q-bin is large I split desect the integration range to smaller function Xsec_Qint_Yint(var,process,incCut,CutParam,Qmin_in,Qmax_in,ymin_in,ymax_in) real(dp),dimension(1:7)::var logical,intent(in)::incCut real(dp),dimension(1:4),intent(in)::CutParam integer,dimension(1:3),intent(in)::process real(dp),intent(in) :: yMin_in,yMax_in,QMin_in,QMax_in real(dp):: Xsec_Qint_Yint integer::numSec,i real(dp)::dQ if(TMDF_IsconvergenceLost()) then Xsec_Qint_Yint=1d9 return end if !!! check how many maxQbins is inside the integration range (+1) numSec=INT((Qmax_in-Qmin_in)/maxQbinSize)+1 if(numSec==1) then !!! if the bin is smaller than maxQbinSize, integrate as is Xsec_Qint_Yint=Xsec_Qint_Yint_in(var,process,incCut,CutParam,Qmin_in,Qmax_in,ymin_in,ymax_in) else !!! else divide to smaler bins and sum the integrals dQ=(Qmax_in-Qmin_in)/numSec !!! size of new bins Xsec_Qint_Yint=0d0 do i=0,numSec-1 Xsec_Qint_Yint=Xsec_Qint_Yint + & Xsec_Qint_Yint_in(var,process,incCut,CutParam,Qmin_in+i*dQ,Qmin_in+(i+1)*dQ,ymin_in,ymax_in) end do end if end function Xsec_Qint_Yint !--------------Simpsons-------------------- !!!! parameter valueMax remembers the initial value of integral to weight the tolerance. !!!! First we evaluate over 5 points and estimate the integral, and then split it to 3+3 and send to adaptive !!!! Thus minimal number of points =9 !!!! taking into account minimum calls of y-integral we have =81 points function Xsec_Qint_Yint_in(var,process,incCut,CutParam,Qmin_in,Qmax_in,ymin_in,ymax_in) real(dp),dimension(1:7)::var logical,intent(in)::incCut real(dp),dimension(1:4),intent(in)::CutParam integer,dimension(1:3),intent(in)::process real(dp),intent(in) :: yMin_in,yMax_in,QMin_in,QMax_in real(dp):: Xsec_Qint_Yint_in real(dp) :: X1,X2,X3,X4,X5 real(dp)::valueMax,Q2,Q3,Q4,deltaQ deltaQ=QMax_in-QMin_in Q2=QMin_in+deltaQ/4d0 Q3=QMin_in+deltaQ/2d0 Q4=QMax_in-deltaQ/4d0 call SetQ(QMin_in,var) X1=2*QMin_in*Xsec_Yint(var,process,incCut,CutParam,yMin_in,yMax_in) call SetQ(Q2,var) X2=2*Q2*Xsec_Yint(var,process,incCut,CutParam,yMin_in,yMax_in) call SetQ(Q3,var) X3=2*Q3*Xsec_Yint(var,process,incCut,CutParam,yMin_in,yMax_in) call SetQ(Q4,var) X4=2*Q4*Xsec_Yint(var,process,incCut,CutParam,yMin_in,yMax_in) call SetQ(QMax_in,var) X5=2*QMax_in*Xsec_Yint(var,process,incCut,CutParam,yMin_in,yMax_in) !!approximate integral value valueMax=deltaQ*(X1+4d0*X2+2d0*X3+4d0*X4+X5)/12d0 Xsec_Qint_Yint_in=IntegralOverQYpoint_S_Rec(var,process,incCut,CutParam,QMin_in,Q3,yMin_in,yMax_in,X1,X2,X3,valueMax)+& IntegralOverQYpoint_S_Rec(var,process,incCut,CutParam,Q3,QMax_in,yMin_in,yMax_in,X3,X4,X5,valueMax) end function Xsec_Qint_Yint_in !!!! X1,X3,X5 are cross-sections at end (X1,X5) and central (X3) points of integraitons recursive function integralOverQYpoint_S_Rec(var,process,incCut,CutParam,& QMin_in,QMax_in,yMin_in,yMax_in,X1,X3,X5,valueMax) result(interX) real(dp),dimension(1:7)::var logical,intent(in)::incCut real(dp),dimension(1:4),intent(in)::CutParam integer,dimension(1:3),intent(in)::process real(dp) :: interX,X1,X2,X3,X4,X5 real(dp) :: valueAB,valueACB real(dp) :: yMin_in,yMax_in,QMin_in,QMax_in,Q2,Q3,Q4,deltaQ real(dp),intent(in)::valueMax deltaQ=QMax_in-QMin_in Q2=QMin_in+deltaQ/4d0 Q3=QMin_in+deltaQ/2d0 Q4=QMax_in-deltaQ/4d0 call SetQ(Q2,var) X2=2*Q2*Xsec_Yint(var,process,incCut,CutParam,yMin_in,yMax_in) call SetQ(Q4,var) X4=2*Q4*Xsec_Yint(var,process,incCut,CutParam,yMin_in,yMax_in) valueAB=deltaQ*(X1+4d0*X3+X5)/6d0 valueACB=deltaQ*(X1+4d0*X2+2d0*X3+4d0*X4+X5)/12d0 If(ABS((valueACB-valueAB)/valueMax)>tolerance) then interX=integralOverQYpoint_S_Rec(var,process,incCut,CutParam,QMin_in,Q3,yMin_in,yMax_in,X1,X2,X3,valueMax)& +integralOverQYpoint_S_Rec(var,process,incCut,CutParam,Q3,Qmax_in,yMin_in,yMax_in,X3,X4,X5,valueMax) else interX=valueACB end if end function integralOverQYpoint_S_Rec !---------------------------------INTEGRATED over Y over Q over pT------------------------------------------------------------- !!!integration over PT is made by Num-sections !!!N even function Xsec_PTint_Qint_Yint(process,incCut,CutParam,s_in,qt_min,qt_max,Q_min,Q_max,ymin_in,ymax_in,Num) real(dp),dimension(1:7)::var logical,intent(in)::incCut real(dp),dimension(1:4),intent(in)::CutParam integer,dimension(1:3),intent(in)::process real(dp):: Xsec_PTint_Qint_Yint,X0,Xfin real(dp):: ymin_in,ymax_in,Q_min,Q_max,qt_min,qt_max,s_in integer :: Num if(TMDF_IsconvergenceLost()) then Xsec_PTint_Qint_Yint=1d9 return end if if(qt_min<1d-3) then var=kinematicArray(1d-3,s_in,(Q_min+Q_max)/2d0,(ymin_in+ymax_in)/2d0) else var=kinematicArray(qt_min,s_in,(Q_min+Q_max)/2d0,(ymin_in+ymax_in)/2d0) end if X0=2d0*qt_min*Xsec_Qint_Yint(var,process,incCut,CutParam,Q_min,Q_max,ymin_in,ymax_in) call Xsec_PTint_Qint_Yint_0(process,incCut,CutParam,s_in,qt_min,qt_max,Q_min,Q_max,ymin_in,ymax_in,Num,Xfin,X0) Xsec_PTint_Qint_Yint=Xfin end function Xsec_PTint_Qint_Yint !!!integration over PT is made by Num-sections !!!N even !!! X0 is value of the function at qt_min input !!! X0 is value of the function at qt_max output !!! !!! Xfin is value of the cross-section subroutine Xsec_PTint_Qint_Yint_0(process,incCut,CutParam,s_in,qt_min,qt_max,Q_min,Q_max,ymin_in,ymax_in,Num,Xfin,X0) real(dp),dimension(1:7)::var logical,intent(in)::incCut real(dp),dimension(1:4),intent(in)::CutParam integer,dimension(1:3),intent(in)::process real(dp):: Xfin,X0 real(dp):: ymin_in,ymax_in,Q_min,Q_max,qt_min,qt_max,s_in integer :: i,Num real(dp)::deltaQT,qT_cur,inter if(mod(num,2)>0) then write(*,*) 'ERROR: arTeMiDe_DY: number of Simpson sections is odd. Evaluation stop.' stop end if deltaQT=(qt_max-qt_min)/Num inter=X0!!!first term is calculated eqarlier var=kinematicArray(qt_min,s_in,(Q_min+Q_max)/2d0,(ymin_in+ymax_in)/2d0) !!!! even terms do i=1,Num-1,2 qT_cur=qt_min+i*deltaQT call SetQT(qT_cur,var) inter=inter+8d0*qt_cur*Xsec_Qint_Yint(var,process,incCut,CutParam,Q_min,Q_max,ymin_in,ymax_in) end do if(Num>2) then !!!! odd terms do i=2,Num-2,2 qT_cur=qt_min+i*deltaQT call SetQT(qT_cur,var) inter=inter+4d0*qt_cur*Xsec_Qint_Yint(var,process,incCut,CutParam,Q_min,Q_max,ymin_in,ymax_in) end do end if call SetQT(qT_max,var) X0=2d0*qt_max*Xsec_Qint_Yint(var,process,incCut,CutParam,Q_min,Q_max,ymin_in,ymax_in)!!!! last term inter=inter+X0 Xfin=deltaQT/3d0*inter end subroutine Xsec_PTint_Qint_Yint_0 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!INTERFACES TO CALCULATING CROSS-SECTIONS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !---------------------------------UN-INTEGRATED------------------------------------------------------------------ !!qt_list is the list of requred qt -point, !! X_list is variable to store results (should be of the same dimension as qt_list) subroutine xSecList(X_list,qt_List) real(dp), intent(in) :: qt_list(:) real(dp), intent(out) :: X_list(:) integer :: i,length real(dp),dimension(1:7)::var length=size(qt_list) CallCounter=CallCounter+length do i=1,length var=kinematicArray(qt_List(i),s_global,Q_global,y_global) X_List(i)=PreFactor1(process_global(1))*xSec(var,process_global,includeCuts_global,CutParameters_global) end do end subroutine xSecList !!!!Evaluate differential xSec at single point subroutine xSecSingle(X,qT_in) real(dp),dimension(1:7)::var real(dp):: X,qT_in CallCounter=CallCounter+1 var=kinematicArray(qt_in,s_global,Q_global,y_global) X=PreFactor1(process_global(1))*xSec(var,process_global,includeCuts_global,CutParameters_global) end subroutine xSecSingle !---------------------------------INTEGRATED over Y--------------------------------------------------------------- !!qt_list is the list of requred qt -point, !! X_list is variable to store results (should be of the same dimension as qt_list) subroutine xSecList_Yint(X_list,qt_List,yMin_in,yMax_in) real(dp), intent(in) :: qt_list(:) real(dp), intent(out) :: X_list(:) real(dp)::yMin_in,yMax_in real(dp),dimension(1:7)::var integer :: i,length length=size(qt_list) CallCounter=CallCounter+length !$OMP PARALLEL DO DEFAULT(SHARED) PRIVATE(var) do i=1,length var=kinematicArray(qt_List(i),s_global,Q_global,y_global) X_List(i)=PreFactor1(process_global(1))*Xsec_Yint(var,process_global,includeCuts_global,CutParameters_global,yMin_in,yMax_in) end do !$OMP END PARALLEL DO end subroutine xSecList_Yint !! subroutine xSecSingle_Yint(X,qt,yMin_in,yMax_in) real(dp)::X,qT real(dp)::yMin_in,yMax_in real(dp),dimension(1:7)::var CallCounter=CallCounter+1 var=kinematicArray(qt,s_global,Q_global,y_global) X=PreFactor1(process_global(1))*Xsec_Yint(var,process_global,includeCuts_global,CutParameters_global,yMin_in,yMax_in) end subroutine xSecSingle_Yint !!qt_list is the list of requred qt -point, !! X_list is variable to store results (should be of the same dimension as qt_list) subroutine xSecList_Ycomplete(X_list,qt_List) real(dp), intent(in) :: qt_list(:) real(dp), intent(out) :: X_list(:) integer :: i,length real(dp),dimension(1:7)::var length=size(qt_list) CallCounter=CallCounter+length !$OMP PARALLEL DO DEFAULT(SHARED) PRIVATE(var) do i=1,length var=kinematicArray(qt_List(i),s_global,Q_global,y_global) X_List(i)=PreFactor1(process_global(1))*Xsec_Yint(var,process_global,includeCuts_global,CutParameters_global,& log(var(5)),-log(var(5))) end do !$OMP END PARALLEL DO end subroutine xSecList_Ycomplete subroutine xSecSingle_Ycomplete(X,qt) real(dp)::X,qT real(dp),dimension(1:7)::var CallCounter=CallCounter+1 var=kinematicArray(qt,s_global,Q_global,y_global) X=PreFactor1(process_global(1))*Xsec_Yint(var,process_global,includeCuts_global,CutParameters_global,log(var(5)),-log(var(5))) end subroutine xSecSingle_Ycomplete !---------------------------------INTEGRATED over Q--------------------------------------------------------------- !!qt_list is the list of requred qt -point, !! X_list is variable to store results (should be of the same dimension as qt_list) subroutine xSecList_Qint(X_list,qt_List,Q_min,Q_max) real(dp), intent(in) :: qt_list(:) real(dp), intent(out) :: X_list(:) real(dp)::Q_min,Q_max integer :: i,length real(dp),dimension(1:7)::var length=size(qt_list) CallCounter=CallCounter+length !$OMP PARALLEL DO DEFAULT(SHARED) PRIVATE(var) do i=1,length var=kinematicArray(qt_List(i),s_global,Q_global,y_global) X_List(i)=PreFactor1(process_global(1))*Xsec_Qint(var,process_global,includeCuts_global,CutParameters_global,Q_min,Q_max) end do !$OMP END PARALLEL DO end subroutine xSecList_Qint !! subroutine xSecSingle_Qint(X,qt,Q_min,Q_max) real(dp)::X,qT real(dp)::Q_min,Q_max real(dp),dimension(1:7)::var CallCounter=CallCounter+1 var=kinematicArray(qt,s_global,Q_global,y_global) X=PreFactor1(process_global(1))*Xsec_Qint(var,process_global,includeCuts_global,CutParameters_global,Q_min,Q_max) end subroutine xSecSingle_Qint !---------------------------------INTEGRATED over Y over Q--------------------------------------------------------------- !!qt_list is the list of requred qt -point, !! X_list is variable to store results (should be of the same dimension as qt_list) subroutine xSecList_Qint_Yint(X_list,qt_List,Q_min,Q_max,yMin_in,yMax_in) real(dp), intent(in) :: qt_list(:) real(dp), intent(out) :: X_list(:) real(dp)::yMin_in,yMax_in,Q_min,Q_max integer :: i,length real(dp),dimension(1:7)::var length=size(qt_list) CallCounter=CallCounter+length !$OMP PARALLEL DO DEFAULT(SHARED) PRIVATE(var) do i=1,length var=kinematicArray(qt_List(i),s_global,Q_global,y_global) X_List(i)=PreFactor1(process_global(1))*Xsec_Qint_Yint(var,process_global,includeCuts_global,CutParameters_global,& Q_min,Q_max,yMin_in,yMax_in) end do !$OMP END PARALLEL DO end subroutine xSecList_Qint_Yint !! subroutine xSecSingle_Qint_Yint(X,qt,Q_min,Q_max,yMin_in,yMax_in) real(dp)::X,qT real(dp)::yMin_in,yMax_in,Q_min,Q_max real(dp),dimension(1:7)::var CallCounter=CallCounter+1 var=kinematicArray(qt,s_global,Q_global,y_global) X=PreFactor1(process_global(1))*Xsec_Qint_Yint(var,process_global,includeCuts_global,CutParameters_global,& Q_min,Q_max,yMin_in,yMax_in) end subroutine xSecSingle_Qint_Yint !!qt_list is the list of requred qt -point, !! X_list is variable to store results (should be of the same dimension as qt_list) subroutine xSecList_Qint_Ycomplete(X_list,qt_List,Q_min,Q_max) real(dp), intent(in) :: qt_list(:) real(dp), intent(out) :: X_list(:) real(dp)::Q_min,Q_max integer :: i,length real(dp),dimension(1:7)::var length=size(qt_list) CallCounter=CallCounter+length !$OMP PARALLEL DO DEFAULT(SHARED) PRIVATE(var) do i=1,length var=kinematicArray(qt_List(i),s_global,Q_global,y_global) X_List(i)=PreFactor1(process_global(1))*Xsec_Qint_Yint(var,process_global,includeCuts_global,CutParameters_global,& Q_min,Q_max,log(var(5)),-log(var(5))) end do !$OMP END PARALLEL DO end subroutine xSecList_Qint_Ycomplete subroutine xSecSingle_Qint_Ycomplete(X,qt,Q_min,Q_max) real(dp)::X,qT real(dp)::Q_min,Q_max real(dp),dimension(1:7)::var CallCounter=CallCounter+1 var=kinematicArray(qt,s_global,Q_global,y_global) X=PreFactor1(process_global(1))*Xsec_Qint_Yint(var,process_global,includeCuts_global,CutParameters_global,& Q_min,Q_max,log(var(5)),-log(var(5))) end subroutine xSecSingle_Qint_Ycomplete !---------------------------------INTEGRATED over Y over Q over PT---------------------------------------------------------- !!qt_list is the list of requred qt -point, !! X_list is variable to store results (should be of the same dimension as qt_list) subroutine xSecList_PTintN_Qint_Yint(X_list,qtMIN_List,qtMAX_list,Q_min,Q_max,yMin_in,yMax_in,num) real(dp), intent(in) :: qtMIN_list(:),qtMAX_list(:) real(dp), intent(out) :: X_list(:) real(dp)::yMin_in,yMax_in,Q_min,Q_max integer :: i,length,num length=size(qtMIN_list) CallCounter=CallCounter+length !$OMP PARALLEL DO DEFAULT(SHARED) do i=1,length X_List(i)=PreFactor1(process_global(1))*Xsec_PTint_Qint_Yint(process_global,includeCuts_global,CutParameters_global,& s_global,qtMIN_List(i),qtMAX_list(i),Q_min,Q_max,yMin_in,yMax_in,num) end do !$OMP END PARALLEL DO end subroutine xSecList_PTintN_Qint_Yint subroutine xSecList_PTint_Qint_Yint(X_list,qtMIN_List,qtMAX_list,Q_min,Q_max,yMin_in,yMax_in) real(dp), intent(in) :: qtMIN_list(:),qtMAX_list(:) real(dp), intent(out) :: X_list(:) real(dp)::yMin_in,yMax_in,Q_min,Q_max call xSecList_PTintN_Qint_Yint(X_list,qtMIN_List,qtMAX_list,Q_min,Q_max,yMin_in,yMax_in,NumPTdefault) end subroutine xSecList_PTint_Qint_Yint subroutine xSecListList_PTintN_Qint_Yint(X_list,qt_List,Q_min,Q_max,yMin_in,yMax_in,num) real(dp), intent(in) :: qt_list(:) real(dp), intent(out) :: X_list(:) real(dp)::Q_min,Q_max,X0,Xfin,yMin_in,yMax_in integer :: i,length,length2,num real(dp),dimension(1:7)::var length2=size(qt_list) length=size(X_list) if( (length2-length) .ne. 1) then write(*,*) 'ERROR: arTeMiDe_DY: pt integration : sizes of lists (for cross-seciont and pt-bins) are inconsistent' write(*,*) 'Evaluation stop' stop end if !-----------------parallel version------------- !$ call xSecList_PTintN_Qint_Yint(X_list,qt_List(1:length2-1),qt_list(2:length2),Q_min,Q_max,yMin_in,yMax_in,num) !$ return !-----------------single-thread version------------- CallCounter=CallCounter+length var=kinematicArray(qt_list(1),s_global,Q_global,y_global) X0=2d0*qt_list(1)*Xsec_Qint_Yint(var,process_global,includeCuts_global,CutParameters_global,Q_min,Q_max,yMin_in,yMax_in) do i=1,length call Xsec_PTint_Qint_Yint_0(process_global,includeCuts_global,CutParameters_global,& s_global,qt_list(i),qt_list(i+1),Q_min,Q_max,yMin_in,yMax_in,Num,Xfin,X0) X_List(i)=PreFactor1(process_global(1))*Xfin end do end subroutine xSecListList_PTintN_Qint_Yint subroutine xSecListList_PTint_Qint_Yint(X_list,qt_List,Q_min,Q_max,yMin_in,yMax_in) real(dp), intent(in) :: qt_list(:) real(dp), intent(out) :: X_list(:) real(dp)::Q_min,Q_max,yMin_in,yMax_in call xSecListList_PTintN_Qint_Yint(X_list,qt_List,Q_min,Q_max,yMin_in,yMax_in,NumPTdefault) end subroutine xSecListList_PTint_Qint_Yint !! subroutine xSecSingle_PTintN_Qint_Yint(X,qt_Min,qt_Max,Q_min,Q_max,yMin_in,yMax_in,num) real(dp)::X,qt_Min,qt_Max real(dp)::yMin_in,yMax_in,Q_min,Q_max integer::num CallCounter=CallCounter+1 X=PreFactor1(process_global(1))*Xsec_PTint_Qint_Yint(process_global,includeCuts_global,CutParameters_global,& s_global,qt_Min,qt_Max,Q_min,Q_max,yMin_in,yMax_in,num) end subroutine xSecSingle_PTintN_Qint_Yint subroutine xSecSingle_PTint_Qint_Yint(X,qt_Min,qt_Max,Q_min,Q_max,yMin_in,yMax_in) real(dp)::X,qt_Min,qt_Max real(dp)::yMin_in,yMax_in,Q_min,Q_max X=PreFactor1(process_global(1))*Xsec_PTint_Qint_Yint(process_global,includeCuts_global,CutParameters_global,& s_global, qt_Min,qt_Max,Q_min,Q_max,yMin_in,yMax_in,NumPTdefault) end subroutine xSecSingle_PTint_Qint_Yint subroutine xSecListPY_PTint_Qint_Yint(X_list,qtMIN_List,qtMAX_list,Q_min,Q_max,yMin_List,yMax_List,num) real(dp), intent(in) :: qtMIN_list(:),qtMAX_list(:),yMin_List(:),yMax_List(:) real(dp), intent(out) :: X_list(:) real(dp)::Q_min,Q_max integer :: i,length,num length=size(qtMIN_list) if(size(qtMAX_list)/=length) then write(*,*) 'ERROR: arTeMiDe_DY: pt integration (2) : sizes of lists (pt min-max bins) are inconsistent' write(*,*) 'Evaluation stop' stop end if if(size(yMin_List)/=length) then write(*,*) 'ERROR: arTeMiDe_DY: pt integration (3) : sizes of lists (pt-bins vs yMin) are inconsistent' write(*,*) 'Evaluation stop' stop end if if(size(yMax_List)/=length) then write(*,*) 'ERROR: arTeMiDe_DY: pt integration (4) : sizes of lists (pt-bins vs yMax) are inconsistent' write(*,*) 'Evaluation stop' stop end if CallCounter=CallCounter+length !$OMP PARALLEL DO DEFAULT(SHARED) do i=1,length X_List(i)=PreFactor1(process_global(1))*Xsec_PTint_Qint_Yint(process_global,includeCuts_global,CutParameters_global,& s_global,qtMIN_List(i),qtMAX_list(i),Q_min,Q_max,yMin_List(i),yMax_List(i),num) end do !$OMP END PARALLEL DO end subroutine xSecListPY_PTint_Qint_Yint subroutine xSecListPY_PTintN_Qint_Yint(X_list,qtMIN_List,qtMAX_list,Q_min,Q_max,yMin_List,yMax_List) real(dp), intent(in) :: qtMIN_list(:),qtMAX_list(:),yMin_List(:),yMax_List(:) real(dp), intent(out) :: X_list(:) real(dp)::Q_min,Q_max call xSecListPY_PTint_Qint_Yint(X_list,qtMIN_List,qtMAX_list,Q_min,Q_max,yMin_List,yMax_List,NumPTdefault) end subroutine xSecListPY_PTintN_Qint_Yint !---------------------------------INTEGRATED over Y (complete) over Q over PT---------------------------------------------------! !!qt_list is the list of requred qt -point, !! X_list is variable to store results (should be of the same dimension as qt_list) !! I set y in (-1000,1000) since the check is made in the integration routine subroutine xSecList_PTintN_Qint_Ycomplete(X_list,qtMIN_List,qtMAX_list,Q_min,Q_max,num) real(dp), intent(in) :: qtMIN_list(:),qtMAX_list(:) real(dp), intent(out) :: X_list(:) real(dp)::Q_min,Q_max integer :: i,length,num length=size(qtMIN_list) CallCounter=CallCounter+length !$OMP PARALLEL DO DEFAULT(SHARED) do i=1,length X_List(i)=PreFactor1(process_global(1))*Xsec_PTint_Qint_Yint(process_global,includeCuts_global,CutParameters_global,& s_global,qtMIN_list(i),qtMAX_list(i),Q_min,Q_max,-1000d0,1000d0,num) end do !$OMP END PARALLEL DO end subroutine xSecList_PTintN_Qint_Ycomplete subroutine xSecSingle_PTintN_Qint_Ycomplete(X,qt_min,qt_max,Q_min,Q_max,num) real(dp)::X,qT_min,qT_max real(dp)::Q_min,Q_max integer::num CallCounter=CallCounter+1 X=PreFactor1(process_global(1))*Xsec_PTint_Qint_Yint(process_global,includeCuts_global,CutParameters_global,& s_global,qt_min,qt_max,Q_min,Q_max,-1000d0,1000d0,num) end subroutine xSecSingle_PTintN_Qint_Ycomplete subroutine xSecListList_PTintN_Qint_Ycomplete(X_list,qt_List,Q_min,Q_max,num) real(dp), intent(in) :: qt_list(:) real(dp), intent(out) :: X_list(:) real(dp)::Q_min,Q_max,X0,Xfin integer :: i,length,length2,num real(dp),dimension(1:7)::var length2=size(qt_list) length=size(X_list) if( (length2-length) .ne. 1) then write(*,*) 'ERROR: arTeMiDe_DY: pt integration : sizes of lists (for cross-seciont and pt-bins) are inconsistent' write(*,*) 'Evaluation stop' stop end if !-----------------parallel version------------- !$ call xSecList_PTintN_Qint_Ycomplete(X_list,qt_List(1:length2-1),qt_list(2:length2),Q_min,Q_max,num) !$ return !-----------------single-thread version------------- CallCounter=CallCounter+length var=kinematicArray(qt_list(1),s_global,Q_global,y_global) X0=2d0*qt_list(1)*Xsec_Qint_Yint(var,process_global,includeCuts_global,CutParameters_global,Q_min,Q_max,-1000d0,1000d0) do i=1,length call Xsec_PTint_Qint_Yint_0(process_global,includeCuts_global,CutParameters_global,& s_global, qt_list(i),qt_list(i+1),Q_min,Q_max,-1000d0,1000d0,Num,Xfin,X0) X_List(i)=PreFactor1(process_global(1))*Xfin end do end subroutine xSecListList_PTintN_Qint_Ycomplete subroutine xSecList_PTint_Qint_Ycomplete(X_list,qtMIN_List,qtMAX_list,Q_min,Q_max) real(dp), intent(in) :: qtMIN_list(:),qtMAX_list(:) real(dp), intent(out) :: X_list(:) real(dp)::Q_min,Q_max call xSecList_PTintN_Qint_Ycomplete(X_list,qtMIN_List,qtMAX_list,Q_min,Q_max,NumPTdefault) end subroutine xSecList_PTint_Qint_Ycomplete subroutine xSecSingle_PTint_Qint_Ycomplete(X,qt_min,qt_max,Q_min,Q_max) real(dp)::X,qT_min,qT_max real(dp)::Q_min,Q_max CallCounter=CallCounter+1 X=PreFactor1(process_global(1))*Xsec_PTint_Qint_Yint(process_global,includeCuts_global,CutParameters_global,& s_global,qt_min,qt_max,Q_min,Q_max,-1000d0,1000d0,NumPTdefault) end subroutine xSecSingle_PTint_Qint_Ycomplete subroutine xSecListList_PTint_Qint_Ycomplete(X_list,qt_List,Q_min,Q_max) real(dp), intent(in) :: qt_list(:) real(dp), intent(out) :: X_list(:) real(dp)::Q_min,Q_max call xSecListList_PTintN_Qint_Ycomplete(X_list,qt_List,Q_min,Q_max,NumPTdefault) end subroutine xSecListList_PTint_Qint_Ycomplete !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!THE MAIN INTERFACE TO CROSS-SECTION!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!! interface for integer,s,array,array,array,logical,optional, optional subroutine MainInterface_isAAAloo(X,process,s,qT,Q,y,includeCuts,CutParameters,Num) integer,intent(in)::process !the number of process real(dp),intent(in)::s !Mandelshtam s real(dp),intent(in),dimension(1:2)::qT !(qtMin,qtMax) real(dp),intent(in),dimension(1:2)::Q !(Qmin,Qmax) real(dp),intent(in),dimension(1:2)::y !(ymin,ymax) logical,intent(in)::includeCuts !include cuts real(dp),intent(in),dimension(1:4),optional::CutParameters !(p1,p2,eta1,eta2) integer,intent(in),optional::Num !number of sections real(dp)::X integer::nn real(dp),dimension(1:4)::CutParam integer,dimension(1:3)::ppp !!! determine number of sections if(present(Num)) then nn=Num else nn=NumPTdefault end if !!! determine cut parameters if(includeCuts) then if(present(CutParameters)) then CutParam=CutParameters else write(*,*) 'ERROR: arTeMiDe_DY: called includeCuts=true, while CutParameters are undefined' write(*,*) 'Evaluation stop' stop end if else CutParam=(/0d0,0d0,0d0,0d0/) end if ppp=processArrayFromInteger(process) !!!! evaluation CallCounter=CallCounter+1 X=PreFactor1(ppp(1))*Xsec_PTint_Qint_Yint(ppp,includeCuts,CutParameters,& s,qT(1),qT(2),Q(1),Q(2),y(1),y(2),nn) end subroutine MainInterface_isAAAloo !!!! interface for array,s,array,array,array,logical,optional, optional subroutine MainInterface_AsAAAloo(X,process,s,qT,Q,y,includeCuts,CutParameters,Num) ! function xSec_DY(process,s,qT,Q,y,includeCuts,CutParameters,Num) integer,intent(in),dimension(1:3)::process !the number of process real(dp),intent(in)::s !Mandelshtam s real(dp),intent(in),dimension(1:2)::qT !(qtMin,qtMax) real(dp),intent(in),dimension(1:2)::Q !(Qmin,Qmax) real(dp),intent(in),dimension(1:2)::y !(ymin,ymax) logical,intent(in)::includeCuts !include cuts real(dp),intent(in),dimension(1:4),optional::CutParameters !(p1,p2,eta1,eta2) integer,intent(in),optional::Num !number of sections real(dp)::X integer::nn real(dp),dimension(1:4)::CutParam !! determine number of sections if(present(Num)) then nn=Num else nn=NumPT_auto(qT(2)-qT(1),(Q(2)+Q(1))/2d0) end if !!! determine cut parameters if(includeCuts) then if(present(CutParameters)) then CutParam=CutParameters else write(*,*) 'ERROR: arTeMiDe_DY: called includeCuts=true, while CutParameters are undefined' write(*,*) 'Evaluation stop' stop end if else CutParam=(/0d0,0d0,0d0,0d0/) end if !!!! evaluation CallCounter=CallCounter+1 X=PreFactor1(process(1))*Xsec_PTint_Qint_Yint(process,includeCuts,CutParameters,& s,qT(1),qT(2),Q(1),Q(2),y(1),y(2),nn) end subroutine MainInterface_AsAAAloo subroutine xSec_DY_List(X,process,s,qT,Q,y,includeCuts,CutParameters,Num) integer,intent(in),dimension(:,:)::process !the number of process real(dp),intent(in),dimension(:)::s !Mandelshtam s real(dp),intent(in),dimension(:,:)::qT !(qtMin,qtMax) real(dp),intent(in),dimension(:,:)::Q !(Qmin,Qmax) real(dp),intent(in),dimension(:,:)::y !(ymin,ymax) logical,intent(in),dimension(:)::includeCuts !include cuts real(dp),intent(in),dimension(:,:)::CutParameters !(p1,p2,eta1,eta2) integer,intent(in),dimension(:),optional::Num !number of sections real(dp),dimension(:),intent(out)::X integer :: i,length integer,allocatable::nn(:) length=size(s) !!! cheking sizes if(size(X)/=length) then write(*,*) 'ERROR: arTeMiDe_DY: xSec_DY_List: sizes of xSec and s lists are not equal.' write(*,*) 'Evaluation stop' stop end if if(size(process,1)/=length) then write(*,*) 'ERROR: arTeMiDe_DY: xSec_DY_List: sizes of process and s lists are not equal.' write(*,*) 'Evaluation stop' stop end if if(size(qT,1)/=length) then write(*,*) 'ERROR: arTeMiDe_DY: xSec_DY_List: sizes of qT and s lists are not equal.' write(*,*) 'Evaluation stop' stop end if if(size(y,1)/=length) then write(*,*) 'ERROR: arTeMiDe_DY: xSec_DY_List: sizes of y and s lists are not equal.' write(*,*) 'Evaluation stop' stop end if if(size(Q,1)/=length) then write(*,*) 'ERROR: arTeMiDe_DY: xSec_DY_List: sizes of Q and s lists are not equal.' write(*,*) 'Evaluation stop' stop end if if(size(includeCuts)/=length) then write(*,*) 'ERROR: arTeMiDe_DY: xSec_DY_List: sizes of includeCuts and s lists are not equal.' write(*,*) 'Evaluation stop' stop end if if(size(CutParameters,1)/=length) then write(*,*) 'ERROR: arTeMiDe_DY: xSec_DY_List: sizes of CutParameters and s lists are not equal.' write(*,*) 'Evaluation stop' stop end if if(size(process,2)/=3) then write(*,*) 'ERROR: arTeMiDe_DY: xSec_DY_List: process list must be (:,1:3).' write(*,*) 'Evaluation stop' stop end if if(size(qT,2)/=2) then write(*,*) 'ERROR: arTeMiDe_DY: xSec_DY_List: qt list must be (:,1:3).' write(*,*) 'Evaluation stop' stop end if if(size(y,2)/=2) then write(*,*) 'ERROR: arTeMiDe_DY: xSec_DY_List: y list must be (:,1:3).' write(*,*) 'Evaluation stop' stop end if if(size(Q,2)/=2) then write(*,*) 'ERROR: arTeMiDe_DY: xSec_DY_List: Q list must be (:,1:3).' write(*,*) 'Evaluation stop' stop end if CallCounter=CallCounter+length allocate(nn(1:length)) if(present(Num)) then if(size(Num,1)/=length) then write(*,*) 'ERROR: arTeMiDe_DY: xSec_DY_List: sizes of Num and s lists are not equal.' write(*,*) 'Evaluation stop' stop end if nn=Num else do i=1,length nn=NumPT_auto(qT(i,2)-qT(i,1),(Q(i,2)+Q(i,1))/2d0) end do end if !$OMP PARALLEL DO DEFAULT(SHARED) do i=1,length X(i)=PreFactor1(process(i,1))*Xsec_PTint_Qint_Yint(process(i,1:3),includeCuts(i),CutParameters(i,1:4),& s(i),qT(i,1),qT(i,2),Q(i,1),Q(i,2),y(i,1),y(i,2),nn(i)) end do !$OMP END PARALLEL DO deallocate(nn) end subroutine xSec_DY_List subroutine xSec_DY_List_BINLESS(X,process,s,qT,Q,y,includeCuts,CutParameters) integer,intent(in),dimension(:,:)::process !the number of process real(dp),intent(in),dimension(:)::s !Mandelshtam s real(dp),intent(in),dimension(:)::qT !(qtMin,qtMax) real(dp),intent(in),dimension(:)::Q !(Qmin,Qmax) real(dp),intent(in),dimension(:)::y !(ymin,ymax) logical,intent(in),dimension(:)::includeCuts !include cuts real(dp),intent(in),dimension(:,:)::CutParameters !(p1,p2,eta1,eta2) real(dp),dimension(:),intent(out)::X real(dp),allocatable,dimension(:,:)::vv integer :: i,length length=size(s) !!! cheking sizes if(size(X)/=length) then write(*,*) 'ERROR: arTeMiDe_DY_BINLESS: xSec_DY_List: sizes of xSec and s lists are not equal.' write(*,*) 'Evaluation stop' stop end if if(size(process,1)/=length) then write(*,*) 'ERROR: arTeMiDe_DY_BINLESS: xSec_DY_List: sizes of process and s lists are not equal.' write(*,*) 'Evaluation stop' stop end if if(size(qT)/=length) then write(*,*) 'ERROR: arTeMiDe_DY_BINLESS: xSec_DY_List: sizes of qT and s lists are not equal.' write(*,*) 'Evaluation stop' stop end if if(size(y)/=length) then write(*,*) 'ERROR: arTeMiDe_DY_BINLESS: xSec_DY_List: sizes of y and s lists are not equal.' write(*,*) 'Evaluation stop' stop end if if(size(Q)/=length) then write(*,*) 'ERROR: arTeMiDe_DY_BINLESS: xSec_DY_List: sizes of Q and s lists are not equal.' write(*,*) 'Evaluation stop' stop end if if(size(includeCuts)/=length) then write(*,*) 'ERROR: arTeMiDe_DY_BINLESS: xSec_DY_List: sizes of includeCuts and s lists are not equal.' write(*,*) 'Evaluation stop' stop end if if(size(CutParameters,1)/=length) then write(*,*) 'ERROR: arTeMiDe_D_BINLESSY: xSec_DY_List: sizes of CutParameters and s lists are not equal.' write(*,*) 'Evaluation stop' stop end if if(size(process,2)/=3) then write(*,*) 'ERROR: arTeMiDe_DY_BINLESS: xSec_DY_List: process list must be (:,1:3).' write(*,*) 'Evaluation stop' stop end if CallCounter=CallCounter+length allocate(vv(1:length,1:7)) !$OMP PARALLEL DO DEFAULT(SHARED) do i=1,length vv(i,1:7)=kinematicArray(qt(i),s(i),Q(i),y(i)) X(i)=PreFactor1(process(i,1))*xSec(vv(i,1:7),process(i,1:3),includeCuts(i),CutParameters(i,1:4)) end do !$OMP END PARALLEL DO deallocate(vv) end subroutine xSec_DY_List_BINLESS end module TMDX_DY
62,675
35.145329
132
f90
artemide-public
artemide-public-master/src/TMDX_SIDIS.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! arTeMiDe 2.02 ! ! Evaluation of the TMD cross-section for SIDIS-like cross-sections ! ! if you use this module please, quote ????.???? ! ! ver 1.2: release (AV, 15.12.2017) ! ver 1.32: part of functions migrated to TMDF, rest updated (AV, 16.08.2018) ! ver 2.02: (AV,16.08.2019) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! module TMDX_SIDIS use aTMDe_Numerics use IO_functions use TMDF use QCDinput use EWinput implicit none private !Current version of module character (len=10),parameter :: moduleName="TMDX-SIDIS" character (len=5),parameter :: version="v2.02" !Last appropriate verion of constants-file integer,parameter::inputver=9 logical::started=.false. integer::outputlevel integer::messageTrigger real(dp)::hc2 !The variables for all parameters of the model! !it is used only as input if these parameters are not set by the user. real(dp):: Q_global,x_global,z_global,s_global !! Set of process definition, for Prefactor 1, Prefactor 2, structure function, etc !! = (/p1,p2,p3/) integer,dimension(1:3)::process_global !! cut prarameters logical::includeCuts_global !! (yMin,yMax,Wmin,Wmax) real(dp),dimension(1:4)::CutParameters_global !!! Target mass of target (squared) real(dp):: M2_target_global=0.939d0**2 !!! Produced mass (squared) real(dp):: M2_product_global=0.1d0**2 !!other global parameters, which are defined upon initialization integer:: orderH_global !!inclusion of power corrections to the definition !! corrQT ~ qT/Q in cross-section !! corrM1 ~ M1/Q !! corrM2 ~ M2/Q !! corrQTinX1Z1 ~ qT/Q in x1,z1 logical:: corrQT,corrM1,corrM2,corrQTinX1Z1 !!!if true include integer:: exactScales !!!=1 if exact hard scales = true, =0 otherwise real(dp) :: tolerance=0.0005d0 !!! number of sections for PT-integral by default integer::NumPTdefault=4 real(dp)::c2_global!,muHard_global integer::messageCounter integer::GlobalCounter integer::CallCounter !!!------------------------------Global Integration definitions------------------- !-integration over Z real(dp) :: toleranceZ=0.0005d0 !!! SA = adaptive simpson, S5 = Simpson with 5-points, I0 = center point x size character(len=4)::methodZ='SA' !-integration over X real(dp) :: toleranceX=0.0005d0 !!! SA = adaptive simpson, S5 = Simpson with 5-points, I0 = center point x size character(len=4)::methodX='SA' public::TMDX_SIDIS_setProcess,TMDX_SIDIS_ShowStatistic,TMDX_SIDIS_Initialize,& TMDX_SIDIS_XSetup,TMDX_SIDIS_SetCuts,TMDX_SIDIS_IsInitialized,TMDX_SIDIS_ResetCounters,TMDX_SIDIS_SetScaleVariation public::CalcXsec_SIDIS,CalcXsec_SIDIS_Zint_Xint_Qint,CalcXsec_SIDIS_PTint_Zint_Xint_Qint,xSec_SIDIS,xSec_SIDIS_List,& xSec_SIDIS_List_forharpy,xSec_SIDIS_BINLESS_List_forharpy interface TMDX_SIDIS_setProcess module procedure TMDX_setProcess1,TMDX_setProcess3,TMDX_setProcess30 end interface interface CalcXsec_SIDIS module procedure CalcXsecLIST_SIDIS,CalcXsecSINGLE_SIDIS end interface interface CalcXsec_SIDIS_Zint_Xint_Qint module procedure CalcXsecLIST_SIDIS_Zint_Xint_Qint,CalcXsecSINGLE_SIDIS_Zint_Xint_Qint end interface interface CalcXsec_SIDIS_PTint_Zint_Xint_Qint module procedure CalcXsecLISTLIST_SIDIS_PTint_Zint_Xint_Qint,& CalcXsecLIST_SIDIS_PTint_Zint_Xint_Qint,CalcXsecSINGLE_SIDIS_PTint_Zint_Xint_Qint end interface contains function TMDX_SIDIS_IsInitialized() logical::TMDX_SIDIS_IsInitialized TMDX_SIDIS_IsInitialized=started end function TMDX_SIDIS_IsInitialized !! Initialization of the package subroutine TMDX_SIDIS_Initialize(file,prefix) character(len=*)::file character(len=*),optional::prefix character(len=300)::path,line logical::initRequired,dummyLogical character(len=8)::orderMain integer::i,FILEver !$ integer:: omp_get_thread_num if(started) return if(present(prefix)) then path=trim(adjustl(prefix))//trim(adjustr(file)) else path=trim(adjustr(file)) end if OPEN(UNIT=51, FILE=path, ACTION="read", STATUS="old") !!! Search for output level call MoveTO(51,'*0 ') call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) FILEver if(FILEver<inputver) then write(*,*) 'artemide.'//trim(moduleName)//': const-file version is too old.' write(*,*) ' Update the const-file with artemide.setup' write(*,*) ' ' stop end if call MoveTO(51,'*p2 ') read(51,*) outputLevel if(outputLevel>2) write(*,*) '--------------------------------------------- ' if(outputLevel>2) write(*,*) 'artemide.',moduleName,version,': initialization started ... ' call MoveTO(51,'*p3 ') read(51,*) messageTrigger call MoveTO(51,'*B ') call MoveTO(51,'*p1 ') read(51,*) hc2 call MoveTO(51,'*10 ') call MoveTO(51,'*p1 ') read(51,*) initRequired if(.not.initRequired) then if(outputLevel>2) write(*,*)'artemide.',moduleName,': initialization is not required. ' started=.false. return end if call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) orderMain SELECT CASE(orderMain) CASE ("LO") orderH_global=0 CASE ("LO+") orderH_global=0 CASE ("NLO") orderH_global=1 CASE ("NLO+") orderH_global=1 CASE ("NNLO") orderH_global=2 CASE ("N2LO") orderH_global=2 CASE ("NNLO+") orderH_global=3 CASE ("NNNLO") orderH_global=3 CASE ("N3LO") !! same as NNNLO orderH_global=3 CASE ("N3LO+") orderH_global=3 CASE ("N4LO") orderH_global=4 CASE DEFAULT if(outputLevel>0) write(*,*) WarningString('try to set unknown order. Switch to NLO.',moduleName) orderH_global=1 END SELECT if(outputLevel>1) write(*,*) ' artemide.TMDX_SIDIS: the used order is ',trim(orderMain) !! qT correction in kinematics call MoveTO(51,'*p2 ') read(51,*) corrQT if(outputLevel>2 .and. corrQT) write(*,*) ' artemide.TMDX_SIDIS: qT/Q corrections in kinematics are included.' !! Target mass corrections call MoveTO(51,'*p3 ') read(51,*) corrM1 if(outputLevel>2 .and. corrM1) write(*,*) ' artemide.TMDX_SIDIS: target mass corrections in kinematics are included.' !! produced mass corrections call MoveTO(51,'*p4 ') read(51,*) corrM2 if(outputLevel>2 .and. corrM2) write(*,*) ' artemide.TMDX_SIDIS: product mass corrections in kinematics are included.' !! qT correction in x1 z1 call MoveTO(51,'*p5 ') read(51,*) corrQTinX1Z1 if(outputLevel>2 .and. corrQTinX1Z1) write(*,*) ' artemide.TMDX_SIDIS: qT/Q corrections in x1,z1 are included.' !!exact values for scales call MoveTO(51,'*p6 ') read(51,*) dummyLogical if(dummyLogical) then exactScales=1 else exactScales=0 end if if(outputLevel>2 .and. dummyLogical) write(*,*) ' artemide.TMDX_SIDIS: qT/Q correction for scales variables are included.' call MoveTO(51,'*B ') call MoveTO(51,'*p1 ') read(51,*) tolerance call MoveTO(51,'*p2 ') read(51,*) NumPTdefault call MoveTO(51,'*p3 ') read(51,*) toleranceZ call MoveTO(51,'*p4 ') read(51,*) methodZ if((.not.(methodZ=='SA'.or.methodZ=='S5'.or.methodZ=='I0')).and.outputLevel>0) then write(*,*) ErrorString(' method for z-bin-integration is unknow: '//methodZ,moduleName) write(*,*) color('switching to Adaptive-Simpson',c_red) methodZ='SA' end if call MoveTO(51,'*p5 ') read(51,*) toleranceX call MoveTO(51,'*p6 ') read(51,*) methodX if((.not.(methodX=='SA'.or.methodX=='S5'.or.methodX=='I0')).and.outputLevel>0) then write(*,*) ErrorString(' method for x-bin-integration is unknow: '//methodX,moduleName) write(*,*) color('switching to Adaptive-Simpson',c_red) methodX='SA' end if !$ if(outputLevel>1) write(*,*) ' artemide.TMDX_SIDIS: parallel evaluation of cross-sections is to be used' !$ call MoveTO(51,'*C ') !$ call MoveTO(51,'*p1 ') !$ read(51,*) i !$ call OMP_set_num_threads(i) !$ if(outputLevel>1) write(*,*) ' artemide.TMDX_SIDIS: number of threads for parallel evaluation is set to ', i !$ if(outputLevel>2) write(*,*) '------TEST OF PARALLEL PROCESSING ----------' !$OMP PARALLEL !$ if(outputLevel>2) write(*,*) ' artemide.TMDX_SIDIS:thread num ', omp_get_thread_num(), ' ready.' !$OMP END PARALLEL CLOSE (51, STATUS='KEEP') if(.not.EWinput_IsInitialized()) then if(outputLevel>1) write(*,*) '.. initializing EWinput (from ',moduleName,')' if(present(prefix)) then call EWinput_Initialize(file,prefix) else call EWinput_Initialize(file) end if end if if(.not.TMDF_IsInitialized()) then if(outputLevel>1) write(*,*) '.. initializing TMDF (from ',moduleName,')' if(present(prefix)) then call TMDF_Initialize(file,prefix) else call TMDF_Initialize(file) end if end if includeCuts_global=.false. c2_global=1d0 GlobalCounter=0 CallCounter=0 messageCounter=0 started=.true. write(*,*) color('----- arTeMiDe.TMD_SIDIS '//trim(version)//': .... initialized',c_green) end subroutine TMDX_SIDIS_Initialize subroutine TMDX_SIDIS_ResetCounters() if(outputlevel>2) call TMDX_SIDIS_ShowStatistic() GlobalCounter=0 CallCounter=0 messageCounter=0 end subroutine TMDX_SIDIS_ResetCounters subroutine TMDX_SIDIS_ShowStatistic() write(*,'(A,ES12.3)') 'TMDX SIDIS statistics total calls of point xSec : ',Real(GlobalCounter) write(*,'(A,ES12.3)') ' total calls of xSecF : ',Real(CallCounter) write(*,'(A,F12.3)') ' avarage M : ',Real(GlobalCounter)/Real(CallCounter) end subroutine TMDX_SIDIS_ShowStatistic !!!!Call this after TMD initializetion but before NP, and X parameters subroutine TMDX_SIDIS_SetScaleVariation(c2_in) real(dp)::c2_in if(outputLevel>1) write(*,*) 'TMDX_SIDIS: scale variation constant c2 reset:',c2_in if(c2_in<0.1d0 .or. c2_in>10.d0) then if(outputLevel>0) write(*,*) WarningString('variation in c2 is enourmous. c2 is set to 2',moduleName) c2_global=2d0 else c2_global=c2_in end if end subroutine TMDX_SIDIS_SetScaleVariation !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!! PROCESS DEFINITION !!!set variables for process definition subroutine TMDX_setProcess30(p0) integer,dimension(1:3)::p0 process_global=p0 end subroutine TMDX_setProcess30 !!!set variables for process definition subroutine TMDX_setProcess3(p1,p2,p3) integer::p1,p2,p3 process_global=(/p1,p2,p3/) end subroutine TMDX_setProcess3 !!!set variables for process definition subroutine TMDX_setProcess1(p) integer::p call TMDX_setProcess30(processArrayFromInteger(p)) end subroutine TMDX_setProcess1 function processArrayFromInteger(p) integer,intent(in)::p integer,dimension(1:3)::processArrayFromInteger SELECT CASE(p) case default write(*,*) color('ERROR: arTeMiDe_SIDIS: unknown process is called. p=',c_red_bold),p write(*,*) 'Evaluation stop' stop end SELECT end function processArrayFromInteger !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!FUNCTIONS FOR OPERATION WITH KINEMATICS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! subroutine TMDX_SIDIS_XSetup(s,z,x,Q,mTARGET,mPRODUCT) real(dp)::s,Q,x,z real(dp),optional::mTARGET,mPRODUCT if(.not.started) then write(*,*) ErrorString('module is not initialized. Evaluation terminated',moduleName) stop end if s_global=s Q_global=Q x_global=x z_global=z if(PRESENT(mTARGET)) then M2_target_global=mTARGET**2 ! write(*,*) 'mTarget reset ->',M2_target_global end if if(PRESENT(mPRODUCT)) then M2_product_global=mPRODUCT**2 ! write(*,*) 'mProduct reset ->',M2_product_global end if end subroutine TMDX_SIDIS_XSetup !!! function makes kinematic array from the given set of pT,s,Q,x,z !!! array has 13 often appearing entries ! 1 = pT ! 2 = Q ! 3 = Q^2 ! 4 = x ! 5 = z ! 6 = y =Q^2/x(s-M^2) ! 7 = epsilon = (1-y-gamma2 y^2/4)/(1-y+y^2/2+gamma2 y^2/4) ! 8 = gamma2 = (2 x M/Q)^2 ! 9=rho2*gamma2 = (m/z/Q)^2*gamma2 ! 10=rhoT2*gamma2 = (m^2+pt^2)/(z Q)^2*gamma2 ! 11=sM2 = s-M^2 ! 12=M2-target ! 13=M2-product pure function kinematicArray(pT,s,z,x,Q,M2target_in,M2product_in) real(dp),dimension(1:13)::kinematicArray real(dp),intent(in)::pT,s,z,x,Q,M2target_in,M2product_in real(dp)::Q2,y,varepsilon,gamma2,rho2,rhoPEPR2,sM2,M2target,M2product Q2=Q**2 if(corrM1) then M2target=M2target_in sM2=s-M2target gamma2=4d0*M2target*x**2/Q2 else M2target=0d0 gamma2=0d0 sM2=s end if y=Q2/x/sM2!YfromSXQ2(sM2,x,Q2) varepsilon=(1d0-y-y**2*gamma2*0.25d0)/(1d0-y+y**2*(0.5d0+0.25d0*gamma2)) if(corrM2) then M2product=M2product_in rho2=gamma2*M2product/Q2/z**2 else M2product=0d0 rho2=0d0 end if if(corrQT) then rhoPEPR2=rho2+gamma2*(pT/z/Q)**2 else rhoPEPR2=rho2 end if kinematicArray=(/pT,Q,Q2,x,z,y,varepsilon,gamma2,rho2,rhoPEPR2,sM2,M2target,M2product/) end function kinematicArray !!! xy(s-M^2)=Q^2 pure function YfromSXQ2(sM2,x,Q2) real(dp),intent(in)::sM2,x,Q2 real(dp)::YfromSXQ2 YfromSXQ2=Q2/x/sM2 end function YfromSXQ2 pure function XfromSYQ2(sM2,y,Q2) real(dp),intent(in)::sM2,y,Q2 real(dp)::XfromSYQ2 XfromSYQ2=Q2/y/sM2 end function XfromSYQ2 pure function QfromSXY(sM2,x,y) real(dp),intent(in)::sM2,x,y real(dp)::QfromSXY QfromSXY=Sqrt(sM2*x*y) end function QfromSXY !!!!!Evaluate the parameters of the TMD factorized Fourier-integral !!qT =pT/z sqrt( ( 1+gamma2) / (1-gamma2 rho2)) pure subroutine CalculateqT(qT,var) real(dp),intent(out)::qT real(dp),dimension(1:13),intent(inout)::var qT=var(1)/var(5)*Sqrt((1d0+var(8))/(1d0-var(9))) end subroutine CalculateqT !!!!!Evaluate the parameters of the TMD factorized Fourier-integral !!qT =pT/z sqrt( ( 1+gamma2) / (1-gamma2 rho2)) !!fac1 = -2/gamma2*(1-sqrt(1+gamma2*(1-qT^2/Q^2))) !!X1=x*fac1 !!Z1=z*fac1*(...) pure subroutine CalculateX1Z1qT(x1,z1,qT,var) real(dp),intent(out)::x1,z1,qT real(dp),dimension(1:13),intent(inout)::var real(dp)::fac1 qT=var(1)/var(5)*Sqrt((1d0+var(8))/(1d0-var(9))) !!fac1 appears in definition of x1, and z1 if(corrM1 .and. var(8)>0) then if(corrQTinX1Z1) then fac1=-2d0/var(8)*(1d0-sqrt(1d0+var(8)*(1d0-(qT/var(2))**2))) else fac1=-2d0/var(8)*(1d0-sqrt(1d0+var(8))) end if else if(corrQTinX1Z1) then fac1=(1d0-(qT/var(2))**2) else fac1=1d0 end if end if x1=var(4)*fac1 if (corrQTinX1Z1) then z1=var(5)*fac1*(1d0+sqrt(1d0-var(9)))/(2d0*(1d0-(qT/var(2))**2)) else z1=var(5)*fac1*(1d0+sqrt(1d0-var(9)))*0.5d0 end if !if(x1<0.0001d0) write(*,*) '>>>>>>>>>>>>>>>',x1,z1,qT,var end subroutine CalculateX1Z1qT !!!! update a given kinematic array with new value of x. pure subroutine SetX(x,var) real(dp) ,dimension(1:13),intent(inout)::var real(dp),intent(in)::x real(dp)::g2 ! var=kinematicArray(var(1),var(11)+var(12),var(5),x,var(2),var(12),var(13)) g2=var(8)!old gamma2 var(4)=x !!!Q2 same !!!sM2 same !!!gamma var(8)=4d0*var(12)*x**2/var(3) !!!y var(6)=YfromSXQ2(var(11),x,var(3)) !!epsilon var(7)=(1d0-var(6)-var(6)**2*var(8)*0.25d0)/(1d0-var(6)+var(6)**2*(0.5d0+0.25d0*var(8))) !! rescale rho'2 with new gamma if(g2>0) then var(9)=var(9)*var(8)/g2 var(10)=var(10)*var(8)/g2 else var(9)=0d0 var(10)=0d0 end if !!!masses same end subroutine SetX !!!! update a given kinematic array with new value of Q. pure subroutine setQ(Q,var) real(dp) ,dimension(1:13),intent(inout)::var real(dp),intent(in)::Q !!! in the case of Q, the array is updated completely !!! thus we just reconstruct it var=kinematicArray(var(1),var(11)+var(12),var(5),var(4),Q,var(12),var(13)) end subroutine setQ !!!! update a given kinematic array with new value of Q2. pure subroutine setQ2(Q2,var) real(dp) ,dimension(1:13),intent(inout)::var real(dp),intent(in)::Q2 !!! in the case of Q, the array is updated completely !!! thus we just reconstruct it var=kinematicArray(var(1),var(11)+var(12),var(5),var(4),sqrt(Q2),var(12),var(13)) end subroutine setQ2 !!!! update a given kinematic array with new value of Z. pure subroutine SetZ(z,var) real(dp) ,dimension(1:13),intent(inout)::var real(dp),intent(in)::z ! var=kinematicArray(var(1),var(11)+var(12),z,var(4),var(2),var(12),var(13)) var(5)=z !!Q2 same !!gamma2 same !!y same !!varepsilon same !!rho2 new var(9)=var(8)*var(13)/var(3)/z**2 !!rhoPerp new if(corrQT) then var(10)=var(9)+var(8)*(var(1)/z/var(2))**2 else var(10)=var(9) end if end subroutine SetZ !!!! update a given kinematic array with new value of pt. pure subroutine SetPT(pt,var) real(dp),dimension(1:13),intent(inout)::var real(dp),intent(in)::pt ! var=kinematicArray(pt,var(11)+var(12),var(5),var(4),var(2),var(12),var(13)) var(1)=pt !!! Q2 same !!! gamma2 same !!! y same !!! varepsilon same !!! rho2 same !!!rho perp new if(corrQT) then var(10)=var(9)+var(8)*(var(1)/var(5)/var(2))**2 else var(10)=var(9) end if end subroutine SetPT !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!FUNCTIONS FOR PREFACTORS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! hard coefficeint taken from 1004.3653 up to 2-loop !!! it takes global values of Q,order !!! NOTE it uses Nf=3(fixed) function HardCoefficientSIDIS(mu) real(dp)::HardCoefficientSIDIS,mu,alpha,LQ!=Log[Q^2/mu^2]=-2Log[c1] HardCoefficientSIDIS=1.d0 if(orderH_global>=1) then LQ=-2d0*LOG(c2_global) alpha=As(mu*c2_global) HardCoefficientSIDIS=HardCoefficientSIDIS+alpha*& (-16.946842488404727d0 + 8d0*LQ - 2.6666666666666665d0*LQ**2) if(orderH_global>=2) then HardCoefficientSIDIS=HardCoefficientSIDIS+alpha**2*& (-116.50054911601637d0 + 46.190372772820254d0*LQ + 16.843858371984233d0*LQ**2& -13.333333333333334d0*LQ**3 + 3.5555555555555554d0*LQ**4) if(orderH_global>=3) then HardCoefficientSIDIS=HardCoefficientSIDIS+alpha**3*& (-4820.715927678687 + 2492.274201933993*LQ + 44.19495641116441*LQ**2 & - 237.22228827339313*LQ**3 + 43.33848430014775*LQ**4 + 7.111111111111111*LQ**5 & -3.1604938271604937*LQ**6) if(orderH_global>=4) then HardCoefficientSIDIS=HardCoefficientSIDIS+alpha**4*& (26391.759725461765 - 31391.21814540276*LQ + 16136.794429475773*LQ**2 & - 3922.584672164565*LQ**3 - 98.8284343286739*LQ**4 + 250.360398809412*LQ**5 & - 47.07700456533447*LQ**6 - 3.950617283950617*LQ**7 + 1.8436213991769548*LQ**8) end if end if end if end if end function HardCoefficientSIDIS !!!! Set Prefactor1 !!!! it multiplies the cross-section as a whole, does not participate in the integration pure function PreFactor1(p1) real(dp)::Prefactor1 integer,intent(in)::p1 PreFactor1=1d0 end function PreFactor1 !!!!! Prefactor 2 is (universal part) x H function PreFactor2(var,process,x1,z1,qT) real(dp),dimension(1:13),intent(in)::var integer,dimension(1:3),intent(in)::process real(dp)::PreFactor2,uniPart,phasePart,x1,z1,qT,fac1,scaleMu !!!! universal part !!!! If exact scales, zeta*zeta=Q^2-qT^2. scaleMu=sqrt(var(3)-exactScales*qT**2) SELECT CASE(process(2)) case(-10221191) uniPart=1d0 CASE(1) !!!!!!!!!!!!!!!!!!!!! CHECK FACTOR 2???! !2 pi aEm^2/Q^4 y^2/(1-epsilon)*z1/z(1+varepsilon...) ! prefactor for unpolarized expression !!! this is 1+qT^2/Q^2(e-gamma^2/2)/(1+gamma^2) if(corrQT) then fac1=(1d0+(qT**2/var(3))*(var(7)-0.5d0*var(8))/(1+var(8)))/sqrt(1-var(10)) else fac1=1d0 end if uniPart=pix2*alphaEM(scaleMu)**2/(var(3)**2)*(var(6)**2/(1d0-var(7)))*(z1/var(5))*& fac1*& HardCoefficientSIDIS(scaleMu)*& hc2*1d9!from GeV to pbarn CASE(2) ! prefactor for FUU,T !!! this is 1+qT^2/Q^2(e-gamma^2/2)/(1+gamma^2) if(corrQT) then fac1=(1d0+(qT**2/var(3))*(var(7)-0.5d0*var(8))/(1+var(8)))/sqrt(1-var(10)) else fac1=1d0 end if uniPart=var(4)/pi/(1d0+0.5d0*var(8)/var(4))*& fac1*& HardCoefficientSIDIS(scaleMu) CASE DEFAULT write(*,*) ErrorString(' unknown process p2=',moduleName),& process(2),color(' .Evaluation stop.',c_red_bold) stop END SELECT SELECT CASE(process(1)) CASE(2) !!! case of dQ2 -> dy phasePart=var(3)/var(6) CASE(3) !!! case of dx -> dy phasePart=var(4)/var(6) CASE DEFAULT phasePart=1d0 END SELECT PreFactor2=phasePart*uniPart end function PreFactor2 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! CUTS RELATED FUNCTIONS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!The cuts are ymin<y<ymax,Wmin<W2<Wmax subroutine TMDX_SIDIS_SetCuts(inc,yMin,yMax,Wmin,Wmax) logical::inc real(dp)::yMin,yMax,Wmin,Wmax real(dp)::y0,y1,W0,W1 includeCuts_global=inc if(.not.inc) return if(yMin<0d0) then if(outputlevel>0) write(*,*) WarningString('SetCuts: yMin<0. Set to 0',moduleName) y0=0d0 else if(ymin>1d0) then if(outputlevel>0) write(*,*) WarningString('SetCuts: yMin>1. Set to 1',moduleName) y0=1d0 else y0=yMin end if if(yMax<0d0) then if(outputlevel>0) write(*,*) WarningString('SetCuts: yMax<0. Set to 0',moduleName) y1=0d0 else if(ymax>1d0) then if(outputlevel>0) write(*,*) WarningString('SetCuts: yMax>1. Set to 1',moduleName) y1=1d0 else y1=yMax end if if(Wmin>0) then W0=Wmin else if(outputlevel>0) write(*,*) WarningString('SetCuts: Wmin<0. Set to 0',moduleName) W0=0d0 end if if(Wmax>0) then W1=Wmax else if(outputlevel>0) write(*,*) WarningString('SetCuts: Wmax<0. Set to 0',moduleName) W1=0d0 end if if(y0<=y1) then if(W0<=W1) then CutParameters_global=(/y0,y1,W0,W1/) else if(outputlevel>0) write(*,*) WarningString('SetCuts: WMin>WMax. Values exchanged',moduleName) CutParameters_global=(/y0,y1,W1,W0/) end if else if(outputlevel>0) write(*,*) WarningString('SetCuts: yMin>yMax. Values exchanged',moduleName) if(W0<=W1) then CutParameters_global=(/y1,y0,W0,W1/) else if(outputlevel>0) write(*,*) WarningString('SetCuts: WMin>WMax. Values exchanged',moduleName) CutParameters_global=(/y1,y0,W1,W0/) end if end if end subroutine TMDX_SIDIS_SetCuts !!! checks the value of x against cut constaints from below and return the maximal allowed value !!! argument xmin is xmin vs. which we compare cuts. pure function xMinWithCuts(xmin,var,cutParam) real(dp),dimension(1:13),intent(in)::var real(dp),dimension(1:4),intent(in)::cutParam real(dp),intent(in)::xmin real(dp)::x1,x2,xMinWithCuts x1=var(3)/cutParam(2)/var(11) x2=var(3)/(var(3)+cutParam(4)-var(12)) xMinWithCuts=max(xmin,x1,x2) end function xMinWithCuts !!! checks the value of x against cut constaints from above and return the minimal allowed value !!! argument xmax is xmin vs. which we compare cuts. function xMaxWithCuts(xmax,var,cutParam) real(dp),dimension(1:13),intent(in)::var real(dp),dimension(1:4),intent(in)::cutParam real(dp),intent(in)::xmax real(dp)::x1,x2,xMaxWithCuts x1=var(3)/cutParam(1)/var(11) x2=var(3)/(var(3)+cutParam(3)-var(12)) xMaxWithCuts=min(xmax,x1,x2) end function xMaxWithCuts !!! checks the value of x against cut constaints from above and return the minimal allowed value !!! argument Qmin is Qmin vs. which we compare cuts. !!! argument xmin is xmin vs. which we compare cuts. pure function QMinWithCuts(xmin,Qmin,var,cutParam) real(dp),dimension(1:13),intent(in)::var real(dp),dimension(1:4),intent(in)::cutParam real(dp),intent(in)::xmin,Qmin real(dp)::Q1,Q2,QMinWithCuts Q1=sqrt(xmin*cutParam(1)*var(11)) Q2=sqrt(xmin*(cutParam(3)-var(12))/(1d0-xmin)) QMinWithCuts=max(Qmin,Q1,Q2) end function QMinWithCuts !!! checks the value of Q against cut constaints from below and return the maximal allowed value !!! argument Qmax is Qmax vs. which we compare cuts. !!! argument xmax is xmax vs. which we compare cuts. pure function QMaxWithCuts(xmax,Qmax,var,cutParam) real(dp),dimension(1:13),intent(in)::var real(dp),dimension(1:4),intent(in)::cutParam real(dp),intent(in)::xmax,Qmax real(dp)::Q1,Q2,QMaxWithCuts Q1=Sqrt(xmax*cutParam(2)*var(11)) Q2=sqrt(xmax*(cutParam(4)-var(12))/(1d0-xmax)) QMaxWithCuts=min(Qmax,Q1,Q2) end function QMaxWithCuts !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!FUNCTIONS CALCULATING CROSS-SECTIONS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !---------------------------------UNTIGRATED------------------------------------------------------------------ !!! this is help function which evaluate xSec at single qt (without lists) with only prefactor 2 !!!! this is extended (and default) version of xSec, which include all parameters !!! note that it is calculated with respect to qT function xSec(var,process) real(dp):: xSec,FF real(dp)::x1,z1,qT,scaleMu,scaleZeta real(dp),dimension(1:13)::var integer,dimension(1:3),intent(in)::process integer::OMP_get_thread_num GlobalCounter=GlobalCounter+1 call CalculateX1Z1qT(x1,z1,qT,var) !!! setting values of scales scaleZeta=var(3)-exactScales*qT**2 !! zeta=Q2+qT^2 scaleMu=sqrt(scaleZeta) FF=TMDF_F(var(3),qT,x1,z1,scaleMu*c2_global,scaleZeta,scaleZeta,process(3)) xSec=PreFactor2(var,process,x1,z1,qT)*FF !write(*,*) "{",var(3),",",x1,"},"!,z1 end function xSec !---------------------------------INTEGRATED over Z (and Q and X)-------------------------------------------------------------- !!! the variable doZ check should the integration over Z be performed !!! if doZ=true, the integration is done !!! if doZ=facle the single value (at xMin) is returned function Xsec_Zint(var,process,doZ,zMin,zMax) real(dp),dimension(1:13):: var logical::doZ real(dp) :: Xsec_Zint real(dp) :: zMin,zMax integer,dimension(1:3),intent(in)::process !! the integration over Z is required if(doZ) then if(zmax > 1d0) then if(outputlevel>1) write(*,*) WarningString('upper limit of z-integration is >1. It is set to 1.',moduleName) zmax=1d0 end if if(zmin < 0.000001d0) then write(*,*) ErrorString('lower limit of z-integration is < 10^{-6}. Evaluation stop.',moduleName) stop end if if(zMin<zMax) then if(methodZ=='I0') then !!!! central point estimation call SetZ((Zmin+zMax)/2d0,var) Xsec_Zint=Xsec(var,process)*(zMax-zMin) else !!!! so far only Simpsons Xsec_Zint=integralOverZpoint_S(var,process,zMin,zMax) end if else Xsec_Zint=0d0 end if else ! no integration over Z if(zmax > 1d0) then if(outputlevel>1) write(*,*) WarningString('upper limit of z-integration is >1. It is set to 1.',moduleName) zmin=1d0 end if if(zmin < 0.000001d0) then write(*,*) ErrorString('lower limit of z-integration is < 10^{-6}. Evaluation stop.',moduleName) stop end if call SetZ((Zmin+zMax)/2d0,var) Xsec_Zint=Xsec(var,process) end if end function Xsec_Zint !--------------Simpsons-------------------- !!!! parameter valueMax remembers the approximate value of integral to weight the tolerance. !!!! evaluation is done by adaptive simpson !!!! First we evaluate over 5 points and estimate the integral, and then split it to 3+3 and send to adaptive !!!! Thus minimal number of points =9 function integralOverZpoint_S(var,process,yMin_in,yMax_in) real(dp),dimension(1:13)::var integer,dimension(1:3),intent(in)::process real(dp) ::integralOverZpoint_S real(dp) :: X1,X2,X3,X4,X5 real(dp) :: y2,y3,y4,deltay real(dp) :: yMin_in,yMax_in real(dp)::valueMax deltay=yMax_in-yMin_in y2=yMin_in+deltay/4d0 y3=yMin_in+deltay/2d0 y4=yMax_in-deltay/4d0 call SetZ(yMin_in,var) X1=Xsec(var,process) call SetZ(y2,var) X2=Xsec(var,process) call SetZ(y3,var) X3=Xsec(var,process) call SetZ(y4,var) X4=Xsec(var,process) call SetZ(yMax_in,var) X5=Xsec(var,process) !!approximate integral value valueMax=deltay*(X1+4d0*X2+2d0*X3+4d0*X4+X5)/12d0 if(methodZ=='SA') then integralOverZpoint_S=IntegralOverZpoint_S_Rec(var,process,yMin_in,y3,X1,X2,X3,valueMax)+& IntegralOverZpoint_S_Rec(var,process,y3,yMax_in,X3,X4,X5,valueMax) else if(methodZ=='S5') then integralOverZpoint_S=valueMax !!!! 5-point integration else write(*,*) ErrorString(' integralOverZpoint_S incorrect method. Check methodZ variable and initialization',moduleName) end if end function integralOverZpoint_S !!!! X1,X3,X5 are cross-sections at end (X1,X5) and central (X3) points of integraitons recursive function integralOverZpoint_S_Rec(var,process,yMin_in,yMax_in,X1,X3,X5,valueMax) result(interX) real(dp),dimension(1:13) ::var integer,dimension(1:3),intent(in)::process real(dp) :: interX,X1,X2,X3,X4,X5 real(dp) :: value,valueAB,valueACB real(dp) :: yMin_in,yMax_in,y2,y3,y4,deltay real(dp)::valueMax,vv deltay=yMax_in-yMin_in y2=yMin_in+deltay/4d0 y3=yMin_in+deltay/2d0 y4=yMax_in-deltay/4d0 call SetZ(y2,var) X2=Xsec(var,process) call SetZ(y4,var) X4=Xsec(var,process) valueAB=deltay*(X1+4d0*X3+X5)/6d0 valueACB=deltay*(X1+4d0*X2+2d0*X3+4d0*X4+X5)/12d0 If(ABS((valueACB-valueAB)/valueMax)>toleranceZ) then interX=integralOverZpoint_S_Rec(var,process,yMin_in,y3,X1,X2,X3,valueMax)& +integralOverZpoint_S_Rec(var,process,y3,yMax_in,X3,X4,X5,valueMax) else interX=valueACB end if end function integralOverZpoint_S_Rec !---------------------------------INTEGRATED over X (and Z)--------------------------------------------------------------- !!! !!! the variable doX check should the integration over x be performed !!! if doX=true, the integration is done !!! if doX=false the single value (at xMin) is returned function Xsec_Zint_Xint(var,process,doZ,zMin,zMax,doX,Xmin_in,Xmax_in,doCut,Cuts) real(dp),dimension(1:13) :: var logical::doX,doZ,doCut real(dp),dimension(1:4),intent(in)::Cuts real(dp) :: Xsec_Zint_Xint real(dp) :: xmin, xmax,xmin_in,xmax_in,zMin,zMax integer,dimension(1:3),intent(in)::process if(doX) then !!!Integration is required !!! in the case process=3 the input is y, which is to be transformed to X !!! evaluate corresponding y's if(process(1)==3) then xmin=XfromSYQ2(var(11),xmin_in,var(3)) xmax=XfromSYQ2(var(11),xmax_in,var(3)) else xmin=xmin_in xmax=xmax_in end if if(xmax > 1d0) then if(outputlevel>1) write(*,*) WarningString('upper limit of x-integration is >1. It is set to 1.',moduleName) xmax=1d0 end if if(xmin < 0.000001d0) then write(*,*) ErrorString('lower limit of x-integration is < 10^{-6}. Evaluation stop.',moduleName) stop end if !! in case of cut we determine recut values if(doCut) then xmin=xMinWithCuts(xmin,var,Cuts) xmax=xMaxWithCuts(xmax,var,Cuts) end if if(xmin<xmax) then if(methodX=='I0') then !! central point estimaton call SetX((xMin+xMax)/2d0,var) Xsec_Zint_Xint=Xsec_Zint(var,process,doZ,zMin,zMax)*(xMax-xMin) else !!! so far only Simpsons Xsec_Zint_Xint=integralOverXpoint_S(var,process,doZ,zMin,zMax,xmin,xmax) end if else!!! it is possible that cuts cut out the integration range completely Xsec_Zint_Xint=0d0 end if else !! no integration !! just single point if(process(1)==3) then xmin=XfromSYQ2(var(11),(xmin_in+xmax_in)/2d0,var(3)) xmax=XfromSYQ2(var(11),(xmin_in+xmax_in)/2d0,var(3)) else xmin=xmin_in xmax=xmax_in end if if(xmin > 1d0) then if(outputlevel>1) write(*,*) WarningString('upper limit of x-integration is >1. It is set to 1.',moduleName) xmin=1d0 end if if(xmin < 0.000001d0) then write(*,*) ErrorString('lower limit of x-integration is < 10^{-6}. Evaluation stop.',moduleName) stop end if !! in case of cut we determine recut values if(doCut) then xmin=xMinWithCuts(xmin,var,Cuts) xmax=xMaxWithCuts(xmin,var,Cuts)+0.000001d0 end if if(xmin<=xmax) then call SetX((xMin+xMax)/2d0,var) Xsec_Zint_Xint=Xsec_Zint(var,process,doZ,zMin,zMax) else!!! it is possible that cuts cut out the integration range completely Xsec_Zint_Xint=0d0 end if end if end function Xsec_Zint_Xint !--------------Simpsons-------------------- !!!! parameter valueMax remembers the approximate value of integral to weight the tolerance. !!!! evaluation is done by adaptive simpson !!!! First we evaluate over 5 points and estimate the integral, and then split it to 3+3 and send to adaptive !!!! Thus minimal number of points =9 function integralOverXpoint_S(var,process,doZ,zMin,zMax,yMin_in,yMax_in) real(dp),dimension(1:13)::var integer,dimension(1:3),intent(in)::process real(dp) ::integralOverXpoint_S real(dp) :: X1,X2,X3,X4,X5 real(dp) :: y2,y3,y4,deltay real(dp) :: yMin_in,yMax_in real(dp)::valueMax logical::doZ real(dp)::zmin,zMax deltay=yMax_in-yMin_in y2=yMin_in+deltay/4d0 y3=yMin_in+deltay/2d0 y4=yMax_in-deltay/4d0 call SetX(yMin_in,var) X1= Xsec_Zint(var,process,doZ,zMin,zMax) call SetX(y2,var) X2= Xsec_Zint(var,process,doZ,zMin,zMax) call SetX(y3,var) X3= Xsec_Zint(var,process,doZ,zMin,zMax) call SetX(y4,var) X4= Xsec_Zint(var,process,doZ,zMin,zMax) call SetX(yMax_in,var) X5= Xsec_Zint(var,process,doZ,zMin,zMax) !!approximate integral value valueMax=deltay*(X1+4d0*X2+2d0*X3+4d0*X4+X5)/12d0 if(methodX=='SA') then integralOverXpoint_S=IntegralOverXpoint_S_Rec(var,process,doZ,zMin,zMax,yMin_in,y3,X1,X2,X3,valueMax)+& IntegralOverXpoint_S_Rec(var,process,doZ,zMin,zMax,y3,yMax_in,X3,X4,X5,valueMax) else if(methodX=='S5') then integralOverXpoint_S=valueMax !!!! 5-point integration else write(*,*) ErrorString(' integralOverXpoint_S incorrect method. Check methodX variable and initialization',moduleName) end if end function integralOverXpoint_S !!!! X1,X3,X5 are cross-sections at end (X1,X5) and central (X3) points of integraitons recursive function integralOverXpoint_S_Rec(var,process,doZ,zMin,zMax,yMin_in,yMax_in,X1,X3,X5,valueMax) result(interX) real(dp),dimension(1:13)::var integer,dimension(1:3),intent(in)::process real(dp) :: interX,X1,X2,X3,X4,X5 real(dp) :: value,valueAB,valueACB real(dp) :: yMin_in,yMax_in,y2,y3,y4,deltay real(dp)::valueMax,vv logical::doZ real(dp)::zmin,zMax deltay=yMax_in-yMin_in y2=yMin_in+deltay/4d0 y3=yMin_in+deltay/2d0 y4=yMax_in-deltay/4d0 call SetX(y2,var) X2= Xsec_Zint(var,process,doZ,zMin,zMax) call SetX(y4,var) X4= Xsec_Zint(var,process,doZ,zMin,zMax) valueAB=deltay*(X1+4d0*X3+X5)/6d0 valueACB=deltay*(X1+4d0*X2+2d0*X3+4d0*X4+X5)/12d0 If(ABS((valueACB-valueAB)/valueMax)>toleranceX) then interX=integralOverXpoint_S_Rec(var,process,doZ,zMin,zMax,yMin_in,y3,X1,X2,X3,valueMax)& +integralOverXpoint_S_Rec(var,process,doZ,zMin,zMax,y3,yMax_in,X3,X4,X5,valueMax) else interX=valueACB end if end function integralOverXpoint_S_Rec !---------------------------------INTEGRATED over Q (and X and Z)-------------------------------------------------------------- !!! the variable doQ check should the integration over x be performed !!! if doQ=true, the integration is done !!! if doQ=false the single value (at xMin) is returned function Xsec_Zint_Xint_Qint(var,process,doZ,zMin,zMax,doX,xMin,xMax,doQ,Qmin_in,Qmax_in,doCut,Cuts) real(dp),dimension(1:13):: var logical::doX,doQ,doCut,doZ real(dp),dimension(1:4),intent(in)::Cuts real(dp) :: Xsec_Zint_Xint_Qint real(dp) :: Qmin, Qmax,Qmin_in,Qmax_in,xMin,xMax,zMin,zMax integer,dimension(1:3),intent(in)::process !! the integration over Q is required if(doQ) then !!! evaluate correspnding y's !!! in the case process=2 the integral is over y if(process(1)==2) then Qmin=QfromSXY(var(11),var(4), Qmin_in) Qmax=QfromSXY(var(11),var(4), Qmax_in) else Qmin=Qmin_in Qmax=Qmax_in end if ! write(*,*) '>>>>>',Qmin,Qmax !! in case of cut we determine recut values if(doCut) then if(doX) then Qmin=QMinWithCuts(xmin,Qmin,var,Cuts) Qmax=QMaxWithCuts(xmax,Qmax,var,Cuts) else Qmin=QMinWithCuts(xmin,Qmin,var,Cuts) Qmax=QMaxWithCuts(xmin,Qmax,var,Cuts) end if end if ! write(*,*) '>>>>>',Qmin,Qmax if(Qmin<Qmax) then Xsec_Zint_Xint_Qint=integralOverQpoint_S(var,process,doZ,zMin,zMax,doX,xMin,xMax,Qmin,Qmax,doCut,Cuts) !Xsec_Zint_Xint_Qint=integralOverQ2point_S(var,process,doZ,zMin,zMax,doX,xMin,xMax,1d0/(Qmax**2),1d0/(Qmin**2),doCut,Cuts) else!!! it is possible that cuts cut out the integration range completely Xsec_Zint_Xint_Qint=0d0 end if else ! no integration over Q if(process(1)==2) then ! y depends on Q linearly, thus there is avarages of transformed is transfromed avarage Qmin=QfromSXY(var(11),var(4), Qmin_in) Qmax=QfromSXY(var(11),var(4), Qmax_in) else Qmin=Qmin_in Qmax=Qmax_in end if !! in case of cut we determine recut values if(doCut) then if(doX) then Qmin=QMinWithCuts(xmin,Qmin,var,Cuts) Qmax=QMaxWithCuts(xmax,Qmin,var,Cuts) else Qmin=QMinWithCuts((xmin+xmax)/2d0,Qmin,var,Cuts) Qmax=QMaxWithCuts((xmin+xmax)/2d0,Qmin,var,Cuts)+0.000001d0!!! this is needed to resolve 0 end if end if if(Qmin<=Qmax) then call SetQ((Qmin+Qmax)/2d0,var) Xsec_Zint_Xint_Qint=Xsec_Zint_Xint(var,process,doZ,zMin,zMax,doX,xmin,xmax,doCut,Cuts) else!!! it is possible that cuts cut out the integration range completely Xsec_Zint_Xint_Qint=0d0 end if end if end function Xsec_Zint_Xint_Qint !--------------Simpsons-------------------- !!!! parameter valueMax remembers the approximate value of integral to weight the tolerance. !!!! evaluation is done by adaptive simpson !!!! First we evaluate over 5 points and estimate the integral, and then split it to 3+3 and send to adaptive !!!! Thus minimal number of points =9 function integralOverQpoint_S(var,process,doZ,zMin,zMax,doX,xMin,xMax,yMin_in,yMax_in,doCut,Cuts) real(dp),dimension(1:13)::var integer,dimension(1:3),intent(in)::process real(dp) ::integralOverQpoint_S real(dp) :: X1,X2,X3,X4,X5 real(dp) :: y2,y3,y4,deltay real(dp) :: yMin_in,yMax_in real(dp)::valueMax logical::doX,doCut,doZ real(dp),dimension(1:4),intent(in)::Cuts real(dp)::xMin,xMax,zMin,zMax deltay=yMax_in-yMin_in y2=yMin_in+deltay/4d0 y3=yMin_in+deltay/2d0 y4=yMax_in-deltay/4d0 call SetQ(yMin_in,var) X1=2d0*yMin_in*Xsec_Zint_Xint(var,process,doZ,zMin,zMax,doX,xmin,xmax,doCut,Cuts) call SetQ(y2,var) X2=2d0*y2*Xsec_Zint_Xint(var,process,doZ,zMin,zMax,doX,xmin,xmax,doCut,Cuts) call SetQ(y3,var) X3=2d0*y3*Xsec_Zint_Xint(var,process,doZ,zMin,zMax,doX,xmin,xmax,doCut,Cuts) call SetQ(y4,var) X4=2d0*y4*Xsec_Zint_Xint(var,process,doZ,zMin,zMax,doX,xmin,xmax,doCut,Cuts) call SetQ(yMax_in,var) X5=2d0*yMax_in*Xsec_Zint_Xint(var,process,doZ,zMin,zMax,doX,xmin,xmax,doCut,Cuts) !!approximate integral value valueMax=deltay*(X1+4d0*X2+2d0*X3+4d0*X4+X5)/12d0 integralOverQpoint_S=IntegralOverQpoint_S_Rec(var,process,doZ,zMin,zMax,doX,xMin,xMax,doCut,Cuts,yMin_in,y3,X1,X2,X3,valueMax)+& IntegralOverQpoint_S_Rec(var,process,doZ,zMin,zMax,doX,xMin,xMax,doCut,Cuts,y3,yMax_in,X3,X4,X5,valueMax) end function integralOverQpoint_S !!!! X1,X3,X5 are cross-sections at end (X1,X5) and central (X3) points of integraitons recursive function integralOverQpoint_S_Rec(var,process,doZ,zMin,zMax,doX,xMin,xMax,doCut,Cuts,yMin_in,yMax_in,X1,X3,X5,valueMax)& result(interX) real(dp),dimension(1:13)::var integer,dimension(1:3),intent(in)::process real(dp) :: interX,X1,X2,X3,X4,X5 real(dp) :: value,valueAB,valueACB real(dp) :: yMin_in,yMax_in,y2,y3,y4,deltay real(dp)::valueMax,vv logical::doX,doCut,doZ real(dp),dimension(1:4),intent(in)::Cuts real(dp)::xMin,xMax,zMin,zMax deltay=yMax_in-yMin_in y2=yMin_in+deltay/4d0 y3=yMin_in+deltay/2d0 y4=yMax_in-deltay/4d0 call SetQ(y2,var) X2=2*y2*Xsec_Zint_Xint(var,process,doZ,zMin,zMax,doX,xmin,xmax,doCut,Cuts) call SetQ(y4,var) X4=2*y4*Xsec_Zint_Xint(var,process,doZ,zMin,zMax,doX,xmin,xmax,doCut,Cuts) valueAB=deltay*(X1+4d0*X3+X5)/6d0 valueACB=deltay*(X1+4d0*X2+2d0*X3+4d0*X4+X5)/12d0 If(ABS((valueACB-valueAB)/valueMax)>tolerance) then interX=integralOverQpoint_S_Rec(var,process,doZ,zMin,zMax,doX,xMin,xMax,doCut,Cuts,yMin_in,y3,X1,X2,X3,valueMax)& +integralOverQpoint_S_Rec(var,process,doZ,zMin,zMax,doX,xMin,xMax,doCut,Cuts,y3,yMax_in,X3,X4,X5,valueMax) else interX=valueACB end if end function integralOverQpoint_S_Rec !--------------Simpsons-------------------- !!! integration over y=1/Q2 (jacobian=1/2/y^{3/2}) !!! !!!! parameter valueMax remembers the approximate value of integral to weight the tolerance. !!!! evaluation is done by adaptive simpson !!!! First we evaluate over 5 points and estimate the integral, and then split it to 3+3 and send to adaptive !!!! Thus minimal number of points =9 function integralOverQ2point_S(var,process,doZ,zMin,zMax,doX,xMin,xMax,yMin_in,yMax_in,doCut,Cuts) real(dp),dimension(1:13)::var integer,dimension(1:3),intent(in)::process real(dp) ::integralOverQ2point_S real(dp) :: X1,X2,X3,X4,X5 real(dp) :: y2,y3,y4,deltay real(dp) :: yMin_in,yMax_in real(dp)::valueMax logical::doX,doCut,doZ real(dp),dimension(1:4),intent(in)::Cuts real(dp)::xMin,xMax,zMin,zMax deltay=yMax_in-yMin_in y2=yMin_in+deltay/4d0 y3=yMin_in+deltay/2d0 y4=yMax_in-deltay/4d0 call SetQ2(1d0/yMin_in,var) X1=Xsec_Zint_Xint(var,process,doZ,zMin,zMax,doX,xmin,xmax,doCut,Cuts)/yMin_in**2 call SetQ2(1d0/y2,var) X2=Xsec_Zint_Xint(var,process,doZ,zMin,zMax,doX,xmin,xmax,doCut,Cuts)/y2**2 call SetQ2(1d0/y3,var) X3=Xsec_Zint_Xint(var,process,doZ,zMin,zMax,doX,xmin,xmax,doCut,Cuts)/y3**2 call SetQ2(1d0/y4,var) X4=Xsec_Zint_Xint(var,process,doZ,zMin,zMax,doX,xmin,xmax,doCut,Cuts)/y4**2 call SetQ2(1d0/yMax_in,var) X5=Xsec_Zint_Xint(var,process,doZ,zMin,zMax,doX,xmin,xmax,doCut,Cuts)/yMax_in**2 !!approximate integral value valueMax=deltay*(X1+4d0*X2+2d0*X3+4d0*X4+X5)/12d0 integralOverQ2point_S=IntegralOverQ2point_S_Rec(var,process,doZ,zMin,zMax,doX,xMin,xMax,doCut,Cuts,yMin_in,y3,X1,X2,X3,valueMax)& +IntegralOverQ2point_S_Rec(var,process,doZ,zMin,zMax,doX,xMin,xMax,doCut,Cuts,y3,yMax_in,X3,X4,X5,valueMax) end function integralOverQ2point_S !!!! X1,X3,X5 are cross-sections at end (X1,X5) and central (X3) points of integraitons recursive function integralOverQ2point_S_Rec(var,process,doZ,zMin,zMax,doX,xMin,xMax,doCut,Cuts,yMin_in,yMax_in,& X1,X3,X5,valueMax) result(interX) real(dp),dimension(1:13) ::var integer,dimension(1:3),intent(in)::process real(dp) :: interX,X1,X2,X3,X4,X5 real(dp) :: value,valueAB,valueACB real(dp) :: yMin_in,yMax_in,y2,y3,y4,deltay real(dp)::valueMax,vv logical::doX,doCut,doZ real(dp),dimension(1:4),intent(in)::Cuts real(dp)::xMin,xMax,zMin,zMax deltay=yMax_in-yMin_in y2=yMin_in+deltay/4d0 y3=yMin_in+deltay/2d0 y4=yMax_in-deltay/4d0 call SetQ2(1d0/y2,var) X2=Xsec_Zint_Xint(var,process,doZ,zMin,zMax,doX,xmin,xmax,doCut,Cuts)/y2**2 call SetQ2(1d0/y4,var) X4=Xsec_Zint_Xint(var,process,doZ,zMin,zMax,doX,xmin,xmax,doCut,Cuts)/y4**2 valueAB=deltay*(X1+4d0*X3+X5)/6d0 valueACB=deltay*(X1+4d0*X2+2d0*X3+4d0*X4+X5)/12d0 If(ABS((valueACB-valueAB)/valueMax)>tolerance) then interX=integralOverQ2point_S_Rec(var,process,doZ,zMin,zMax,doX,xMin,xMax,doCut,Cuts,yMin_in,y3,X1,X2,X3,valueMax)& +integralOverQ2point_S_Rec(var,process,doZ,zMin,zMax,doX,xMin,xMax,doCut,Cuts,y3,yMax_in,X3,X4,X5,valueMax) else interX=valueACB end if end function integralOverQ2point_S_Rec !---------------------------------INTEGRATED over pT (and Z and Q and X)-------------------------------------------------------------- !!! function determines the best value of PT-sections from PT-bin size, and Q !!! it is determined by formula Q/PT< val/ (2 k) => def+2K function NumPT_auto(dPT,Q) real(dp),parameter::val=40d0 real(dp)::dPT,Q,rat integer::i,NumPT_auto rat=Q/dPT if(rat>40d0) then NumPT_auto=NumPTdefault return else do i=1,5 if(rat>(40d0/2d0/i)) then NumPT_auto=NumPTdefault+2*i return end if end do end if if(outputlevel>1) then write(*,*) WarningString('Fail to automatically determine number of Pt-section for a bin.',moduleName) write(*,*) '>> Possibly Pt-bin is too large', dPT end if NumPT_auto=NumPTdefault+12 end function NumPT_auto !!! the variable doPT check should the integration over pT be performed !!! if doZ=true, the integration is done !!! if doZ=false the single value (at xMin) is returned function Xsec_Zint_Xint_Qint_PTint(var,process,doZ,zMin,zMax,doX,xMin,xMax,doQ,Qmin,Qmax,doPT,ptMin_in,ptMax_in,doCut,Cuts,Num) real(dp),dimension(1:13) :: var real(dp),dimension(1:4),intent(in) :: Cuts logical::doX,doQ,doZ,doPT,doCut real(dp) :: Xsec_Zint_Xint_Qint_PTint real(dp) :: Qmin,Qmax,xMin,xMax,zMin,zMax,ptMin,ptMax,pT_cur,deltaPT,inter,ptMax_in,ptMin_in integer,dimension(1:3),intent(in)::process integer::Num,i if(ptMin_in<0.001d0) then pTmin=0.001d0 else pTmin=ptMin_in end if ptMax=ptMax_in !! the integration over PT is required if(doPT) then if(mod(num,2)>0) then write(*,*) ErrorString('number of Simpson sections is odd. Evaluation stop.',moduleName) stop end if !!!!!!!!!!!!!!!!!!!fixed number Simpsons deltaPT=(PTmax-PTmin)/Num call SetPT(PTmin,var) inter=2d0*PTmin*Xsec_Zint_Xint_Qint(var,process,doZ,zMin,zMax,doX,xMin,xMax,doQ,Qmin,Qmax,doCut,Cuts) !!!! even terms do i=1,Num-1,2 pT_cur=PTmin+i*deltaPT call SetPT(pT_cur,var) inter=inter+8d0*pt_cur*Xsec_Zint_Xint_Qint(var,process,doZ,zMin,zMax,doX,xMin,xMax,doQ,Qmin,Qmax,doCut,Cuts) end do if(Num>2) then !!!! odd terms do i=2,Num-2,2 pT_cur=PTmin+i*deltaPT call SetPT(pT_cur,var) inter=inter+4d0*pt_cur*Xsec_Zint_Xint_Qint(var,process,doZ,zMin,zMax,doX,xMin,xMax,doQ,Qmin,Qmax,doCut,Cuts) end do end if call SetPT(PTmax,var) inter=inter+2d0*PTmax*Xsec_Zint_Xint_Qint(var,process,doZ,zMin,zMax,doX,xMin,xMax,doQ,Qmin,Qmax,doCut,Cuts)!!!! last term Xsec_Zint_Xint_Qint_PTint=deltaPT/3d0*inter else ! no integration over PT call SetPT((PTmin+PTmax)/2d0,var) Xsec_Zint_Xint_Qint_PTint=Xsec_Zint_Xint_Qint(var,process,doZ,zMin,zMax,doX,xMin,xMax,doQ,Qmin,Qmax,doCut,Cuts) ! write(*,*) (PTmin+PTmax)/2d0," --> ",Xsec_Zint_Xint_Qint_PTint end if end function Xsec_Zint_Xint_Qint_PTint !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! UNIVERSAL INTERFACE TO THE CROSS-SECTION !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !----------------------------------------------- single pt point----------------------------------------- !!!! just a point cross-section subroutine CalcXsecSINGLE_SIDIS(X,pt) real(dp),dimension(1:13):: var real(dp)::X,pt CallCounter=CallCounter+1 var=kinematicArray(pt,s_global,z_global,x_global,Q_global,M2_target_global,M2_product_global) X=PreFactor1(process_global(1))*xSec(var,process_global) end subroutine CalcXsecSINGLE_SIDIS !!!! just a point cross-section subroutine CalcXsecLIST_SIDIS(X_list,pt_list) real(dp),dimension(1:13):: var real(dp),intent(in)::pt_list(:) real(dp),intent(out)::X_list(:) integer::length,length2,i length=size(pt_list) if(size(X_list)/=length) then write(*,*) ErrorString('CalcXsecLIST_SIDIS: sizes of X_list and pt_list are not equal.',moduleName) write(*,*) 'Evaluation stop' stop end if !$OMP PARALLEL DO DEFAULT(SHARED) do i=1,length call CalcXsecSINGLE_SIDIS(X_list(i),pt_list(i)) end do !$OMP END PARALLEL DO end subroutine CalcXsecLIST_SIDIS !----------------------------------------------- XQZ-integerations ----------------------------------------- !!! integrated over XQZ subroutine CalcXsecSINGLE_SIDIS_Zint_Xint_Qint(X,pt,zMin,zMax,xMin,xMax,Qmin,Qmax) real(dp)::X,pt,xMin,xMax,Qmin,Qmax,zMin,zMax real(dp),dimension(1:13):: var CallCounter=CallCounter+1 var=kinematicArray(pt,s_global,(zMin+zMax)/2d0,(xMin+xMax)/2d0,(Qmin+Qmax)/2d0,M2_target_global,M2_product_global) X=PreFactor1(process_global(1))*Xsec_Zint_Xint_Qint(var,process_global,.true.,zMin,zMax,.true.,xMin,xMax,.true.,Qmin,Qmax,& includeCuts_global,CutParameters_global) end subroutine CalcXsecSINGLE_SIDIS_Zint_Xint_Qint !!! integrated over XQZ subroutine CalcXsecLIST_SIDIS_Zint_Xint_Qint(X_list,pt_list,zMin,zMax,xMin,xMax,Qmin,Qmax) real(dp),intent(in)::pt_list(:) real(dp),intent(in)::xMin,xMax,Qmin,Qmax,zMin,zMax real(dp),intent(out)::X_list(:) integer::i,length length=size(pt_list) !!!!!!!!!!!!!!!!!!!!!!!!!!!!sizes checks if(size(X_list)/=length) then write(*,*) ErrorString('CalcXsecLIST_SIDIS_Zint_Qint_Xint: sizes of X_list and pt_list are not equal.',moduleName) write(*,*) 'Evaluation stop' stop end if !$OMP PARALLEL DO DEFAULT(SHARED) do i=1,length call CalcXsecSINGLE_SIDIS_Zint_Xint_Qint(X_list(i),pt_list(i),zMin,zMax,xMin,xMax,Qmin,Qmax) end do !$OMP END PARALLEL DO end subroutine CalcXsecLIST_SIDIS_Zint_Xint_Qint !----------------------------------------------- PT+XQZ-integerations ----------------------------------------- !!! this function just to help incapsulte the variables for parallel computation function CalcXsecHELP_PTint_Zint_Xint_Qint(ptMin,ptMax,zMin,zMax,xMin,xMax,Qmin,Qmax) real(dp)::pt,xMin,xMax,Qmin,Qmax,zMin,zMax,ptMin,ptMax,CalcXsecHELP_PTint_Zint_Xint_Qint real(dp),dimension(1:13):: var integer::Num var=kinematicArray((ptMin+ptMax)/2d0,s_global,(zMin+zMax)/2d0,(xMin+xMax)/2d0,(Qmin+Qmax)/2d0,& M2_target_global,M2_product_global) Num=NumPT_auto(ptMax-ptMin,var(2)) CalcXsecHELP_PTint_Zint_Xint_Qint=PreFactor1(process_global(1))*& Xsec_Zint_Xint_Qint_PTint(var,process_global,.true.,zMin,zMax,.true.,xMin,xMax,.true.,Qmin,Qmax,.true.,ptMin,ptMax,& includeCuts_global,CutParameters_global,Num) end function CalcXsecHELP_PTint_Zint_Xint_Qint !!! integrated over PT+XQZ subroutine CalcXsecSINGLE_SIDIS_PTint_Zint_Xint_Qint(X,ptMin,ptMax,zMin,zMax,xMin,xMax,Qmin,Qmax) real(dp)::X,pt,xMin,xMax,Qmin,Qmax,zMin,zMax,ptMin,ptMax CallCounter=CallCounter+1 X=CalcXsecHELP_PTint_Zint_Xint_Qint(ptMin,ptMax,zMin,zMax,xMin,xMax,Qmin,Qmax) end subroutine CalcXsecSINGLE_SIDIS_PTint_Zint_Xint_Qint subroutine CalcXsecLIST_SIDIS_PTint_Zint_Xint_Qint(X_list,ptMin_list,ptMax_list,zMin,zMax,xMin,xMax,Qmin,Qmax) real(dp)::xMin,xMax,Qmin,Qmax,zMin,zMax real(dp),intent(in)::ptMax_list(:),ptMin_list(:) real(dp)::X_list(:) integer::length,i length=size(ptMin_list) !!!!!!!!!!!!!!!!!!!!!!!!!!!!sizes checks if(size(X_list)/=length) then write(*,*) ErrorString('CalcXsecLIST_SIDIS_PTint_Zint_Qint_Xint: sizes of X_list and ptMin_list are not equal.',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(ptMax_list)/=length) then write(*,*) ErrorString('CalcXsecLIST_SIDIS_PTint_Zint_Qint_Xint: sizes of ptMax_list and ptMin_list are not equal.'& ,moduleName) write(*,*) 'Evaluation stop' stop end if CallCounter=CallCounter+length !$OMP PARALLEL DO DEFAULT(SHARED) do i=1,length X_list(i)=CalcXsecHELP_PTint_Zint_Xint_Qint(ptMin_list(i),ptMax_list(i),zMin,zMax,xMin,xMax,Qmin,Qmax) end do !$OMP END PARALLEL DO end subroutine CalcXsecLIST_SIDIS_PTint_Zint_Xint_Qint subroutine CalcXsecLISTLIST_SIDIS_PTint_Zint_Xint_Qint(X_list,pt_list,zMin,zMax,xMin,xMax,Qmin,Qmax) real(dp)::xMin,xMax,Qmin,Qmax,zMin,zMax,ptMin,ptMax real(dp),intent(in)::pt_list(:) real(dp)::X_list(:) integer::length,i length=size(pt_list)-1 !!!!!!!!!!!!!!!!!!!!!!!!!!!!sizes checks if(size(X_list)/=length) then write(*,*) ErrorString('CalcXsecLIST_SIDIS_PTint_Zint_Qint_Xint: sizes of X_list and ptMin_list are not equal.',moduleName) write(*,*) 'Evaluation stop' stop end if CallCounter=CallCounter+length !$OMP PARALLEL DO DEFAULT(SHARED) do i=1,length X_list(i)=CalcXsecHELP_PTint_Zint_Xint_Qint(pt_list(i),pt_list(i+1),zMin,zMax,xMin,xMax,Qmin,Qmax) end do !$OMP END PARALLEL DO end subroutine CalcXsecLISTLIST_SIDIS_PTint_Zint_Xint_Qint !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!! MAIN INTERFACE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! single value interface subroutine xSec_SIDIS(xx,process,s,pT,z,x,Q,doCut,Cuts,masses) integer,intent(in),dimension(1:3)::process !the number of process real(dp),intent(in)::s !Mandelshtam s real(dp),intent(in),dimension(1:2)::pT !(qtMin,qtMax) real(dp),intent(in),dimension(1:2)::z !(zmin,zmax) real(dp),intent(in),dimension(1:2)::x !(xmin,xmax) real(dp),intent(in),dimension(1:2)::Q !(Qmin,Qmax) logical,intent(in)::doCut !triger cuts real(dp),intent(in),dimension(1:4)::Cuts !(ymin,yMax,W2) real(dp),intent(in),dimension(1:2),optional::masses !(mass_target,mass-product)GeV real(dp),intent(out)::xx integer :: i,length real(dp),dimension(1:13):: var integer::Num CallCounter=CallCounter+1 if(PRESENT(masses)) then var=kinematicArray((pt(1)+pt(2))/2d0,s,(z(1)+z(2))/2d0,(x(1)+x(2))/2d0,(Q(1)+Q(2))/2d0,masses(1)**2,masses(2)**2) else var=kinematicArray((pt(1)+pt(2))/2d0,s,(z(1)+z(2))/2d0,(x(1)+x(2))/2d0,(Q(1)+Q(2))/2d0,M2_target_global,M2_product_global) end if Num=NumPT_auto(pt(2)-pt(1),var(2)) xx=PreFactor1(process(1))*& Xsec_Zint_Xint_Qint_PTint(var,process,.true.,z(1),z(2),.true.,x(1),x(2),.true.,Q(1),Q(2),.true.,pt(1),pt(2),& doCut,Cuts,Num) end subroutine xSec_SIDIS subroutine xSec_SIDIS_List(xx,process,s,pT,z,x,Q,doCut,Cuts,masses) integer,intent(in),dimension(:,:)::process !the number of process real(dp),intent(in),dimension(:)::s !Mandelshtam s real(dp),intent(in),dimension(:,:)::pT !(qtMin,qtMax) real(dp),intent(in),dimension(:,:)::z !(zmin,zmax) real(dp),intent(in),dimension(:,:)::x !(xmin,xmax) real(dp),intent(in),dimension(:,:)::Q !(Qmin,Qmax) logical,intent(in),dimension(:)::doCut !triger cuts real(dp),intent(in),dimension(:,:)::Cuts !(ymin,yMax,W2) real(dp),intent(in),dimension(:,:),optional::masses !(mass_target,mass-product)GeV real(dp),dimension(:),intent(out)::xx integer :: i,length length=size(s) CallCounter=CallCounter+length !!! cheking sizes if(size(xx)/=length) then write(*,*) ErrorString('xSec_SIDIS_List: sizes of xSec and s lists are not equal.',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(process,1)/=length) then write(*,*) ErrorString('xSec_SIDIS_List: sizes of process and s lists are not equal.',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(pT,1)/=length) then write(*,*) ErrorString('xSec_SIDIS_List: sizes of pT and s lists are not equal.',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(x,1)/=length) then write(*,*) ErrorString('xSec_SIDIS_List: sizes of x and s lists are not equal.',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(Q,1)/=length) then write(*,*) ErrorString('xSec_SIDIS_List: sizes of Q and s lists are not equal.',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(z,1)/=length) then write(*,*) ErrorString('xSec_SIDIS_List: sizes of z and s lists are not equal.',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(doCut)/=length) then write(*,*) ErrorString('xSec_SIDIS_List: sizes of doCut and s lists are not equal.',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(Cuts,1)/=length) then write(*,*) ErrorString('xSec_SIDIS_List: sizes of Cuts and s lists are not equal.',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(process,2)/=3) then write(*,*) ErrorString('xSec_SIDIS_List: process list must be (:,1:3).',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(pT,2)/=2) then write(*,*) ErrorString('xSec_SIDIS_List: pt list must be (:,1:2).',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(x,2)/=2) then write(*,*) ErrorString('xSec_SIDIS_List: x list must be (:,1:2).',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(Q,2)/=2) then write(*,*) ErrorString('xSec_SIDIS_List: Q list must be (:,1:2).',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(z,2)/=2) then write(*,*) ErrorString('xSec_SIDIS_List: z list must be (:,1:2).',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(Cuts,2)/=4) then write(*,*) ErrorString('xSec_SIDIS_List: cuts list must be (:,1:4).',moduleName) write(*,*) 'Evaluation stop' stop end if CallCounter=CallCounter+length if(PRESENT(masses)) then if(size(masses,1)/=length) then write(*,*) ErrorString('xSec_SIDIS_List: sizes of masses and s lists are not equal.',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(masses,2)/=2) then write(*,*) ErrorString('xSec_SIDIS_List: mass list must be (:,1:2).',moduleName) write(*,*) 'Evaluation stop' stop end if !$OMP PARALLEL DO DEFAULT(SHARED) do i=1,length xx(i)=xSecFULL(process(i,1:3),s(i),pt(i,1),pt(i,2),z(i,1),z(i,2),x(i,1),x(i,2),Q(i,1),Q(i,2),doCut(i),Cuts(i,1:4),& masses(i,1)**2,masses(i,2)**2) end do !$OMP END PARALLEL DO else !$OMP PARALLEL DO DEFAULT(SHARED) do i=1,length xx(i)=xSecFULL(process(i,1:3),s(i),pt(i,1),pt(i,2),z(i,1),z(i,2),x(i,1),x(i,2),Q(i,1),Q(i,2),doCut(i),Cuts(i,1:4),& M2_target_global,M2_product_global) end do !$OMP END PARALLEL DO end if end subroutine xSec_SIDIS_List !!!! problem is that f2py does not like optional arguments.. in any form subroutine xSec_SIDIS_List_forharpy(xx,process,s,pT,z,x,Q,doCut,Cuts,masses) integer,intent(in),dimension(:,:)::process !the number of process real(dp),intent(in),dimension(:)::s !Mandelshtam s real(dp),intent(in),dimension(:,:)::pT !(qtMin,qtMax) real(dp),intent(in),dimension(:,:)::z !(zmin,zmax) real(dp),intent(in),dimension(:,:)::x !(xmin,xmax) real(dp),intent(in),dimension(:,:)::Q !(Qmin,Qmax) logical,intent(in),dimension(:)::doCut !triger cuts real(dp),intent(in),dimension(:,:)::Cuts !(ymin,yMax,W2) real(dp),intent(in),dimension(:,:)::masses !(mass_target,mass-product)GeV real(dp),dimension(:),intent(out)::xx integer :: i,length length=size(s) CallCounter=CallCounter+length !!! cheking sizes if(size(xx)/=length) then write(*,*) ErrorString('xSec_SIDIS_List: sizes of xSec and s lists are not equal.',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(process,1)/=length) then write(*,*) ErrorString('xSec_SIDIS_List: sizes of process and s lists are not equal.',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(pT,1)/=length) then write(*,*) ErrorString('xSec_SIDIS_List: sizes of pT and s lists are not equal.',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(x,1)/=length) then write(*,*) ErrorString('xSec_SIDIS_List: sizes of x and s lists are not equal.',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(Q,1)/=length) then write(*,*) ErrorString('xSec_SIDIS_List: sizes of Q and s lists are not equal.',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(z,1)/=length) then write(*,*) ErrorString('xSec_SIDIS_List: sizes of z and s lists are not equal.',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(doCut)/=length) then write(*,*) ErrorString('xSec_SIDIS_List: sizes of doCut and s lists are not equal.',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(Cuts,1)/=length) then write(*,*) ErrorString('xSec_SIDIS_List: sizes of Cuts and s lists are not equal.',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(process,2)/=3) then write(*,*) ErrorString('xSec_SIDIS_List: process list must be (:,1:3).',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(pT,2)/=2) then write(*,*) ErrorString('xSec_SIDIS_List: pt list must be (:,1:2).',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(x,2)/=2) then write(*,*) ErrorString('xSec_SIDIS_List: x list must be (:,1:2).',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(Q,2)/=2) then write(*,*) ErrorString('xSec_SIDIS_List: Q list must be (:,1:2).',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(z,2)/=2) then write(*,*) ErrorString('xSec_SIDIS_List: z list must be (:,1:2).',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(Cuts,2)/=4) then write(*,*) ErrorString('xSec_SIDIS_List: cuts list must be (:,1:4).',moduleName) write(*,*) 'Evaluation stop' stop end if CallCounter=CallCounter+length if(size(masses,1)/=length) then write(*,*) ErrorString('xSec_SIDIS_List: sizes of masses and s lists are not equal.',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(masses,2)/=2) then write(*,*) ErrorString('xSec_SIDIS_List: mass list must be (:,1:2).',moduleName) write(*,*) 'Evaluation stop' stop end if !$OMP PARALLEL DO DEFAULT(SHARED) do i=1,length xx(i)=xSecFULL(process(i,1:3),s(i),pt(i,1),pt(i,2),z(i,1),z(i,2),x(i,1),x(i,2),Q(i,1),Q(i,2),doCut(i),Cuts(i,1:4),& masses(i,1)**2,masses(i,2)**2) end do !$OMP END PARALLEL DO end subroutine xSec_SIDIS_List_forharpy !!! helper to incapsulate PARALLEL variables function xSecFULL(proc,s,ptmin,ptmax,zmin,zmax,xmin,xmax,Qmin,Qmax,doCut,Cuts,m1,m2) real(dp)::s,ptmin,ptmax,zmin,zmax,xmin,xmax,Qmin,Qmax,Cuts(1:4),xSecFULL,var(1:13),m1,m2 integer::proc(1:3),Num logical::doCut var=kinematicArray((ptmin+ptmax)/2d0,s,(zmin+zmax)/2d0,(xmin+xmax)/2d0,(Qmin+Qmax)/2d0,m1,m2) Num=NumPT_auto(ptmax-ptmin,var(2)) ! write(*,*) 'aTMD:1 ',var ! write(*,*) 'aTMD:2 ',proc,m1,m2 ! write(*,*) 'aTMD:3 ',.true.,zmin,zmax,.true.,xmin,xmax,.true.,Qmin,Qmax,.true.,ptmin,ptmax xSecFULL=PreFactor1(proc(1))*Xsec_Zint_Xint_Qint_PTint(var,proc,& .true.,zmin,zmax,.true.,xmin,xmax,.true.,Qmin,Qmax,.true.,ptmin,ptmax,doCut,Cuts,Num) end function xSecFULL !!!! problem is that f2py does not like optional arguments.. in any form subroutine xSec_SIDIS_BINLESS_List_forharpy(xx,process,s,pT,z,x,Q,masses) integer,intent(in),dimension(:,:)::process !the number of process real(dp),intent(in),dimension(:)::s !Mandelshtam s real(dp),intent(in),dimension(:)::pT !(pt) real(dp),intent(in),dimension(:)::z !(z) real(dp),intent(in),dimension(:)::x !(x) real(dp),intent(in),dimension(:)::Q !(Q) real(dp),intent(in),dimension(:,:)::masses !(mass_target,mass-product)GeV real(dp),dimension(:),intent(out)::xx integer :: i,length length=size(s) CallCounter=CallCounter+length !!! cheking sizes if(size(xx)/=length) then write(*,*) ErrorString('xSec_SIDIS_BINLESS_List: sizes of xSec and s lists are not equal.',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(process,1)/=length) then write(*,*) ErrorString('xSec_SIDIS_BINLESS_List: sizes of process and s lists are not equal.',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(pT)/=length) then write(*,*) ErrorString('xSec_SIDIS_BINLESS_List: sizes of pT and s lists are not equal.',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(x)/=length) then write(*,*) ErrorString('xSec_SIDIS_BINLESS_List: sizes of x and s lists are not equal.',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(Q)/=length) then write(*,*) ErrorString('xSec_SIDIS_BINLESS_List: sizes of Q and s lists are not equal.',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(z)/=length) then write(*,*) ErrorString('xSec_SIDIS_BINLESS_List: sizes of z and s lists are not equal.',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(process,2)/=3) then write(*,*) ErrorString('xSec_SIDIS_BINLESS_List: process list must be (:,1:3).',moduleName) write(*,*) 'Evaluation stop' stop end if CallCounter=CallCounter+length if(size(masses,1)/=length) then write(*,*) ErrorString('xSec_SIDIS_BINLESS_List: sizes of masses and s lists are not equal.',moduleName) write(*,*) 'Evaluation stop' stop end if if(size(masses,2)/=2) then write(*,*) ErrorString('xSec_SIDIS_BINLESS_List: mass list must be (:,1:2).',moduleName) write(*,*) 'Evaluation stop' stop end if !$OMP PARALLEL DO DEFAULT(SHARED) do i=1,length xx(i)=xSecBINLESS(process(i,1:3),s(i),pt(i),z(i),x(i),Q(i),masses(i,1)**2,masses(i,2)**2) end do !$OMP END PARALLEL DO end subroutine xSec_SIDIS_BINLESS_List_forharpy !!! helper to incapsulate PARALLEL variables !!! evaluate cross-section without integrations over bins, and without cuts function xSecBINLESS(proc,s,pt,z,x,Q,m1,m2) real(dp)::s,pt,z,x,Q,xSecBINLESS,var(1:13),m1,m2 integer::proc(1:3) var=kinematicArray(pt,s,z,x,Q,m1,m2) ! write(*,*) 'aTMD:1 ',var ! write(*,*) 'aTMD:2 ',proc,m1,m2 ! write(*,*) 'aTMD:3 ',.false.,z,z,.false.,x,x,.false.,Q,Q,.false.,pt,pt xSecBINLESS=PreFactor1(proc(1))*Xsec_Zint_Xint_Qint_PTint(var,proc,& .false.,z,z,.false.,x,x,.false.,Q,Q,.false.,pt,pt,.false.,(/0d0,1d0,0d0,1d9/),4) end function xSecBINLESS end module TMDX_SIDIS
71,627
34.600398
159
f90
artemide-public
artemide-public-master/src/TMD_AD.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! arTeMiDe 2.03 ! ! Contains the expressions for coefficients of anomalous dimensions used by TMDR module. ! Main purpose is to make evaluation of ADs fast and transparent. ! ! if you use this module please, quote 1803.11089 ! ! A.Vladimirov (10.02.2020) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! module TMD_AD use aTMDe_Numerics use IO_functions use QCDinput implicit none private !Current version of module character (len=5),parameter :: version="v2.06" character (len=7),parameter :: moduleName="TMD_AD" logical::started=.false. !!! Minimum and maximum avalible values of Nf (number of quark flavors) integer,parameter::NfMIN=0 integer,parameter::NfMAX=6 !!! color factors for SU(N=3) real(dp),parameter::TF=1d0/2d0 real(dp),parameter::CF=4d0/3d0 real(dp),parameter::CA=3d0 real(dp),parameter::dAA=135d0/8d0 !d_A^{abcd}d_A^{abcd}/(N^2-1) real(dp),parameter::dFA=15d0/16d0 !d_F^{abcd}d_A^{abcd}/(N^2-1) real(dp),parameter::dFF=5d0/96d0 !d_F^{abcd}d_F^{abcd}/(N^2-1) !!-------------------------------------------------- !! I precompute values of AD on initialization stage !! and same them to matrices (internal to module). !! A pack of get-functions returns the values of matrices. !! !! There are two classes of anomalous dimensions primary and secondary. !! Primary: !! These are set up to the best known order !! Secondary: !! These are derived from primary ADs, up to requested number of loops !!! beta function (up to 5 loops) (numeration starts from 0) real(dp),dimension(0:4,NfMIN:NfMAX)::beta_internal !!! gamma cusp for quark/gluon (up to 5 loops) (numeration starts from 0) real(dp),dimension(0:4,NfMIN:NfMAX)::GammaCuspQ_internal real(dp),dimension(0:4,NfMIN:NfMAX)::GammaCuspG_internal !!! gammaV for quark/gluon (up to 4 loops) (numeration starts from 1) real(dp),dimension(1:4,NfMIN:NfMAX)::GammaVQ_internal real(dp),dimension(1:4,NfMIN:NfMAX)::GammaVG_internal !!!! Roots of beta-function betaRoots(n,k,Nf) \beta(a)=0 !!!! Depending on Nf and k, these can be complex or real. Each case special COMPLEX*16,dimension(1:4,1:4,NfMIN:NfMAX)::betaRoots_internal !!!! coefficients of integral Gamma/2 COMPLEX*16,dimension(1:4,0:4,NfMIN:NfMAX)::GammaIntegral_Q_internal COMPLEX*16,dimension(1:4,0:4,NfMIN:NfMAX)::GammaIntegral_G_internal !!! d^{(n,k)} for quark/gluon (up to 4 loops) (numeration starts from 1) real(dp),dimension(1:4,0:4,NfMIN:NfMAX)::d_nk_Q_internal real(dp),dimension(1:4,0:4,NfMIN:NfMAX)::d_nk_G_internal !!! d^{(n,k,l)} (resummed coefficients) for quark/Gluon (up to 4 loops/no tree)(numeration starts from 0/) real(dp),dimension(1:4,0:4,0:4,NfMIN:NfMAX)::d_nkl_Q_internal real(dp),dimension(1:4,0:4,0:4,NfMIN:NfMAX)::d_nkl_G_internal !!! v^{(n,k)} for quark/Gluon (up to 4 loops )(numeration starts from 0) real(dp),dimension(0:4,0:5,NfMIN:NfMAX)::v_nk_Q_internal real(dp),dimension(0:4,0:5,NfMIN:NfMAX)::v_nk_G_internal !!! OMEGA^{(n,k)} for quark/Gluon (up to 5 loops )(numeration starts from 0) !!! Each terms is multiplied by its own functional coefficeint. real(dp),dimension(0:4,1:5,NfMIN:NfMAX)::OMEGA_nk_Q_internal real(dp),dimension(0:4,1:5,NfMIN:NfMAX)::OMEGA_nk_G_internal !!! 2 beta0/Gamma0 real(dp),dimension(NfMIN:NfMAX)::pFACTOR_Q_internal real(dp),dimension(NfMIN:NfMAX)::pFACTOR_G_internal !!!! the orders of used perturbative expressions for AD !!!! the values of these constants are set thorugh initialization routine integer::orderCusp !for Cusp AD integer::orderV !for gammaV integer::orderD !for RAD integer::orderDresum !for resummed RAD integer::orderZETA !for zeta-line public:: TMD_AD_Initialize !public:: betaQCD,GammaCusp_q,GammaCusp_g,gammaV_q, gammaV_g,dnk_q,dnk_g,dnkl_q,dnkl_g !public:: vnk_q,vnk_g,OMEGA_q,OMEGA_g,pFACTOR_q,pFACTOR_g public:: zetaMUpert,gammaV,Dpert,Dresum,GammaCusp,zetaSL,RADEvolution,zFUNC contains !!! definitions of coefficients of primary ADs (Gamma, beta, gammaV, d) INCLUDE 'Code/TMD_AD/AD_primary.f90' !!! definitions of coefficients of secondary ADs (RAD, zeta-lines, resummed versions) INCLUDE 'Code/TMD_AD/AD_secondary.f90' !!! definitions of coefficients of secondary ADs at scale mu INCLUDE 'Code/TMD_AD/AD_atMu.f90' !!! Routines for the exact zeta-line INCLUDE 'Code/TMD_AD/exactZetaLine.f90' !!! Routines for the analytical evaluation of RGE-integrals INCLUDE 'Code/TMD_AD/AD_Integral.f90' subroutine TMD_AD_Initialize(oCusp,oV,oD,oDresum,oZETA) integer,intent(in)::oCusp,oV,oD,oDresum,oZETA real(dp)::aa if(started) return !setting orders orderCusp=oCusp orderV=oV orderD=oD orderDresum=oDresum orderZETA=oZETA !----------Primary coefficients call SetBetaFunction() call SetGammaCuspQuark() call SetGammaCuspGluon() call SetGammaVQuark() call SetGammaVGluon() call SetDn0Quark() call SetDn0Gluon() !---------Secondary coefficients call SetDnkQuark() call SetDnkGluon() call SetDnklQuark() call SetDnklGluon() call SetVnkQuark() call SetVnkGluon() call SetOMEGAnkQuark() call SetOMEGAnkGluon() !---------Set values for integrals call SetBetaRoots() call SetIntegralCoefficeintsGAMMA_Q() call SetIntegralCoefficeintsGAMMA_G() started=.true. end subroutine TMD_AD_Initialize !!!------------------------------------------------------------------------------------------------------- !!!--------------------------------------------GET INTERFACES--------------------------------------------- !!!------------------------------------------------------------------------------------------------------- !!Coefficients of QCD beta function pure function betaQCD(n,Nf) real(dp)::betaQCD integer,intent(in)::n,Nf betaQCD=beta_internal(n,Nf) end function betaQCD !!Light-like cusp coefficients QUARK pure function GammaCusp_q(n,Nf) real(dp)::GammaCusp_q integer,intent(in)::n,Nf GammaCusp_q=GammaCuspQ_internal(n,Nf) end function GammaCusp_q !!Light-like cusp coefficients GLUON pure function GammaCusp_g(n,Nf) real(dp)::GammaCusp_g integer,intent(in)::n,Nf GammaCusp_g=GammaCuspG_internal(n,Nf) end function GammaCusp_g !!gammaV coefficients QUARK pure function gammaV_q(n,Nf) real(dp)::gammaV_q integer,intent(in)::n,Nf gammaV_q=GammaVQ_internal(n,Nf) end function gammaV_q !!gammaV coefficients GLUON pure function gammaV_g(n,Nf) real(dp)::gammaV_g integer,intent(in)::n,Nf gammaV_g=GammaVG_internal(n,Nf) end function gammaV_g !! RAD coefficients QUARK pure function dnk_q(n,k,Nf) real(dp)::dnk_q integer,intent(in)::n,k,Nf dnk_q=d_nk_Q_internal(n,k,Nf) end function dnk_q !! RAD coefficients GLUON pure function dnk_g(n,k,Nf) real(dp)::dnk_g integer,intent(in)::n,k,Nf dnk_g=d_nk_G_internal(n,k,Nf) end function dnk_g !! RAD coefficients resummed QUARK pure function dnkl_q(n,k,l,Nf) real(dp)::dnkl_q integer,intent(in)::n,k,Nf,l dnkl_q=d_nkl_Q_internal(n,k,l,Nf) end function dnkl_q !! RAD coefficients resummed GLUON pure function dnkl_g(n,k,l,Nf) real(dp)::dnkl_g integer,intent(in)::n,k,Nf,l dnkl_g=d_nkl_G_internal(n,k,l,Nf) end function dnkl_g !! RAD coefficients QUARK pure function vnk_q(n,k,Nf) real(dp)::vnk_q integer,intent(in)::n,k,Nf vnk_q=v_nk_Q_internal(n,k,Nf) end function vnk_q !! RAD coefficients GLUON pure function vnk_g(n,k,Nf) real(dp)::vnk_g integer,intent(in)::n,k,Nf vnk_g=v_nk_G_internal(n,k,Nf) end function vnk_g !! RAD resummed coefficients QUARK pure function OMEGA_q(n,k,Nf) real(dp)::OMEGA_q integer,intent(in)::n,k,Nf OMEGA_q=OMEGA_nk_Q_internal(n,k,Nf) end function OMEGA_q !! RAD resummed coefficients GLUON pure function OMEGA_g(n,k,Nf) real(dp)::OMEGA_g integer,intent(in)::n,k,Nf OMEGA_g=OMEGA_nk_G_internal(n,k,Nf) end function OMEGA_g !! coefficeint for p QUARK pure function pFACTOR_q(Nf) real(dp)::pFACTOR_q integer,intent(in)::Nf pFACTOR_q=pFACTOR_Q_internal(Nf) end function pFACTOR_q !! coefficeint for p GLUON pure function pFACTOR_g(Nf) real(dp)::pFACTOR_g integer,intent(in)::Nf pFACTOR_g=pFACTOR_G_internal(Nf) end function pFACTOR_g end module TMD_AD
8,402
30.354478
106
f90
artemide-public
artemide-public-master/src/TMDs.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! arTeMiDe 2.0 ! ! Evaluation of the TMDs ! ! if you use this module please, quote 1706.01473 ! ! ver 1.0: release (AV, 10.05.2017) ! ver 1.4: release (AV, 23.12.2018) ! ver 1.41:release (AV, 23.12.2018) ! ver 2.00:release (AV, 29.03.2019) ! ver 2.01:release (AV, 08.06.2019) ! ver 2.05:release (AV, 22.05.2020) ! ! A.Vladimirov (23.12.2018) ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! module TMDs use aTMDe_Numerics use IO_functions use QCDinput use TMDR use uTMDPDF use uTMDFF use lpTMDPDF use SiversTMDPDF use wgtTMDPDF implicit none private ! public character (len=7),parameter :: moduleName="TMDs" character (len=5),parameter :: version="v2.06" !Last appropriate verion of constants-file integer,parameter::inputver=19 !------------------------------------------Physical and mathematical constants------------------------------------------ !------------------------------------------Working variables------------------------------------------------------------ logical::started=.false. integer::outputLevel=2 integer::messageTrigger=5 !!!! The TMD evolution can be tritted differently integer::EvolutionType logical::include_uTMDPDF logical::include_uTMDFF logical::include_lpTMDPDF logical::include_SiversTMDPDF logical::include_wgtTMDPDF !!!parameters for the uncertanty estimation real(dp)::c1_global,c3_global !-----------------------------------------Public interface-------------------------------------------------------------- public::TMDs_SetScaleVariations,TMDs_Initialize,TMDs_IsInitialized real(dp),dimension(-5:5),public:: uTMDPDF_5,uTMDPDF_50 real(dp),dimension(-5:5),public:: uTMDFF_5,uTMDFF_50 real(dp),dimension(-5:5),public:: lpTMDPDF_50 real(dp),dimension(-5:5),public:: SiversTMDPDF_5,SiversTMDPDF_50 real(dp),dimension(-5:5),public:: wgtTMDPDF_5,wgtTMDPDF_50 public::uPDF_uPDF,uPDF_anti_uPDF interface uTMDPDF_5 module procedure uTMDPDF_5_Ev,uTMDPDF_5_optimal end interface interface uTMDPDF_50 module procedure uTMDPDF_50_Ev,uTMDPDF_50_optimal end interface interface uTMDFF_5 module procedure uTMDFF_5_Ev,uTMDFF_5_optimal end interface interface uTMDFF_50 module procedure uTMDFF_50_Ev,uTMDFF_50_optimal end interface interface lpTMDPDF_50 module procedure lpTMDPDF_50_Ev,lpTMDPDF_50_optimal end interface interface SiversTMDPDF_5 module procedure SiversTMDPDF_5_Ev,SiversTMDPDF_5_optimal end interface interface SiversTMDPDF_50 module procedure SiversTMDPDF_50_Ev,SiversTMDPDF_50_optimal end interface interface wgtTMDPDF_5 module procedure wgtTMDPDF_5_Ev,wgtTMDPDF_5_optimal end interface interface wgtTMDPDF_50 module procedure wgtTMDPDF_50_Ev,wgtTMDPDF_50_optimal end interface contains INCLUDE 'Model/TMDs_model.f90' INCLUDE 'Code/TMDs/TMD-calls.f90' function TMDs_IsInitialized() logical::TMDs_IsInitialized TMDs_IsInitialized=started end function TMDs_IsInitialized !!! Initializing routing !!! Filles the prebuiled arrays !!! orderAD, is order of anomalous dimension for evolution !!!! order zeta is the order of pertrubative zeta expression, used only in the "universal TMD" subroutine TMDs_Initialize(file,prefix) character(len=*)::file character(len=*),optional::prefix character(len=300)::path,line logical::initRequired integer::FILEver if(started) return if(present(prefix)) then path=trim(adjustl(prefix))//trim(adjustr(file)) else path=trim(adjustr(file)) end if OPEN(UNIT=51, FILE=path, ACTION="read", STATUS="old") !!! Search for output level call MoveTO(51,'*0 ') call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) FILEver if(FILEver<inputver) then write(*,*) 'artemide.'//trim(moduleName)//': const-file version is too old.' write(*,*) ' Update the const-file with artemide.setup' write(*,*) ' ' stop end if call MoveTO(51,'*p2 ') read(51,*) outputLevel if(outputLevel>2) write(*,*) '--------------------------------------------- ' if(outputLevel>2) write(*,*) 'artemide.',moduleName,version,': initialization started ... ' call MoveTO(51,'*p3 ') read(51,*) messageTrigger call MoveTO(51,'*6 ') call MoveTO(51,'*p1 ') read(51,*) initRequired if(.not.initRequired) then if(outputLevel>2) write(*,*)'artemide.',moduleName,': initialization is not required. ' started=.false. return end if CLOSE (51, STATUS='KEEP') !!! then we read it again from the beginning to fill parameters of other modules OPEN(UNIT=51, FILE=path, ACTION="read", STATUS="old") !! TMDR call MoveTO(51,'*3 ') call MoveTO(51,'*A ') call MoveTO(51,'*p2 ') read(51,*) EvolutionType if(outputLevel>2) write(*,'(A,I3)') ' Evolution type =',EvolutionType !! uTMDPDF call MoveTO(51,'*4 ') call MoveTO(51,'*p1 ') read(51,*) include_uTMDPDF !! uTMDFF call MoveTO(51,'*5 ') call MoveTO(51,'*p1 ') read(51,*) include_uTMDFF !! lpTMDPDF call MoveTO(51,'*11 ') call MoveTO(51,'*p1 ') read(51,*) include_lpTMDPDF !! SiversTMDPDF call MoveTO(51,'*12 ') call MoveTO(51,'*p1 ') read(51,*) include_SiversTMDPDF !! wgtTMDPDF call MoveTO(51,'*13 ') call MoveTO(51,'*p1 ') read(51,*) include_wgtTMDPDF CLOSE (51, STATUS='KEEP') if(.not.QCDinput_IsInitialized()) then if(outputLevel>1) write(*,*) '.. initializing QCDinput (from ',moduleName,')' if(present(prefix)) then call QCDinput_Initialize(file,prefix) else call QCDinput_Initialize(file) end if end if if(.not.TMDR_IsInitialized()) then if(outputLevel>1) write(*,*) '.. initializing TMDR (from ',moduleName,')' if(present(prefix)) then call TMDR_Initialize(file,prefix) else call TMDR_Initialize(file) end if end if if(include_uTMDPDF .and. (.not.uTMDPDF_IsInitialized())) then if(outputLevel>1) write(*,*) '.. initializing uTMDPDF (from ',moduleName,')' if(present(prefix)) then call uTMDPDF_Initialize(file,prefix) else call uTMDPDF_Initialize(file) end if end if if(include_uTMDFF .and. (.not.uTMDFF_IsInitialized())) then if(outputLevel>1) write(*,*) '.. initializing uTMDFF (from ',moduleName,')' if(present(prefix)) then call uTMDFF_Initialize(file,prefix) else call uTMDFF_Initialize(file) end if end if if(include_lpTMDPDF .and. (.not.lpTMDPDF_IsInitialized())) then if(outputLevel>1) write(*,*) '.. initializing lpTMDPDF (from ',moduleName,')' if(present(prefix)) then call lpTMDPDF_Initialize(file,prefix) else call lpTMDPDF_Initialize(file) end if end if if(include_SiversTMDPDF .and. (.not.SiversTMDPDF_IsInitialized())) then if(outputLevel>1) write(*,*) '.. initializing SiversTMDPDF (from ',moduleName,')' if(present(prefix)) then call SiversTMDPDF_Initialize(file,prefix) else call SiversTMDPDF_Initialize(file) end if end if if(include_wgtTMDPDF .and. (.not.wgtTMDPDF_IsInitialized())) then if(outputLevel>1) write(*,*) '.. initializing wgtTMDPDF (from ',moduleName,')' if(present(prefix)) then call wgtTMDPDF_Initialize(file,prefix) else call wgtTMDPDF_Initialize(file) end if end if c1_global=1d0 c3_global=1d0 started=.true. if(outputLevel>0) write(*,*) color('----- arTeMiDe.TMDs '//trim(version)//': .... initialized',c_green) if(outputLevel>1) write(*,*) end subroutine TMDs_Initialize !!!! this routine set the variations of scales !!!! it is used for the estimation of errors subroutine TMDs_SetScaleVariations(c1_in,c3_in) real(dp),intent(in)::c1_in,c3_in If(EvolutionType==1) then if(c1_in<0.1d0 .or. c1_in>10.d0) then if(outputLevel>0) write(*,*) WarningString('variation in c1 is enourmous. c1 is set to 2',moduleName) c1_global=2d0 else c1_global=c1_in end if else if(ABS(c1_in-1d0)>0.00001d0) then if(outputLevel>0) write(*,*) WarningString('variation of c1 is sensless. & There is no such constant within current evolution scheme. Nothing is done',moduleName) end if end if if(EvolutionType==3) then if(ABS(c3_in-1d0)>0.00001d0) then if(outputLevel>0) write(*,*) WarningString("variation of c3 is sensless. & There is no such constant within current evolution scheme. Nothing is done",moduleName) end if else if(c3_in<0.1d0 .or. c3_in>10.d0) then if(outputLevel>0) write(*,*) WarningString('variation in c3 is enourmous. c3 is set to 2',moduleName) c3_global=2d0 else c3_global=c3_in end if end if if(outputLevel>1) write(*,*) 'TMDs: set scale variations constants (c1,c3) as:',c1_global,c3_global end subroutine TMDs_SetScaleVariations end module TMDs
9,341
29.331169
120
f90
artemide-public
artemide-public-master/src/TMDs_inKT.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! arTeMiDe 1.4 ! ! Evaluation of the TMDs in KT space ! ! if you use this module please, quote 1902.08474 ! ! ver 1.0: release (AV, 23.12.2018) ! ver 2.00: release (AV, 29.03.2019) ! ! A.Vladimirov (23.12.2018) ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! module TMDs_inKT use aTMDe_Numerics use IO_functions use TMDs implicit none private character (len=10),parameter :: moduleName="TMDs-inKT" character (len=5),parameter :: version="v2.06" !Last appropriate verion of constants-file integer,parameter::inputver=1 !------------------------------------------Tables----------------------------------------------------------------------- integer,parameter::Nmax=1000 INCLUDE 'Tables/BesselZero1000.f90' logical:: convergenceLost=.false. !!!!! I split the qT over runs qT<qTSegmentationBoundary !!!!! In each segment I have the ogata quadrature with h=hOGATA*hSegmentationWeight !!!!! It helps to convergen integrals, since h(optimal) ~ qT integer,parameter::hSegmentationNumber=7 real(dp),dimension(1:hSegmentationNumber),parameter::hSegmentationWeight=(/0.0001d0,0.001d0,0.01d0,1d0,2d0,5d0,10d0/) real(dp),dimension(1:hSegmentationNumber),parameter::qTSegmentationBoundary=(/0.001d0,0.01d0,0.1d0,10d0,50d0,100d0,200d0/) real(dp)::hOGATA,tolerance !!!weights of ogata quadrature real(dp),dimension(1:hSegmentationNumber,0:3,1:Nmax)::ww,ww0 !!!nodes of ogata quadrature real(dp),dimension(1:hSegmentationNumber,0:3,1:Nmax)::bb,bb0 integer::GlobalCounter integer::CallCounter integer::MaxCounter integer::messageCounter !------------------------------------------Physical and mathematical constants------------------------------------------ !------------------------------------------Working variables------------------------------------------------------------ logical::started=.false. integer::outputLevel=2 integer::messageTrigger=5 public::TMDs_inKT_Initialize,TMDs_inKT_ShowStatistic,TMDs_inKT_IsInitialized,TMDs_inKT_ResetCounters real(dp),dimension(-5:5),public::uTMDPDF_kT_50,uTMDPDF_kT_5,uTMDFF_kT_5,uTMDFF_kT_50,lpTMDPDF_kT_50,& SiversTMDPDF_kT_5,SiversTMDPDF_kT_50,wgtTMDPDF_kT_5,wgtTMDPDF_kT_50 public::testTMD_kT interface uTMDPDF_kT_5 module procedure uTMDPDF_kT_5_Ev,uTMDPDF_kT_5_optimal end interface interface uTMDPDF_kT_50 module procedure uTMDPDF_kT_50_Ev,uTMDPDF_kT_50_optimal end interface interface uTMDFF_kT_5 module procedure uTMDFF_kT_5_Ev,uTMDFF_kT_5_optimal end interface interface uTMDFF_kT_50 module procedure uTMDFF_kT_50_Ev,uTMDFF_kT_50_optimal end interface interface lpTMDPDF_kT_50 module procedure lpTMDPDF_kT_50_Ev,lpTMDPDF_kT_50_optimal end interface interface SiversTMDPDF_kT_5 module procedure SiversTMDPDF_kT_5_Ev,SiversTMDPDF_kT_5_optimal end interface interface SiversTMDPDF_kT_50 module procedure SiversTMDPDF_kT_50_Ev,SiversTMDPDF_kT_50_optimal end interface interface wgtTMDPDF_kT_5 module procedure wgtTMDPDF_kT_5_Ev,wgtTMDPDF_kT_5_optimal end interface interface wgtTMDPDF_kT_50 module procedure wgtTMDPDF_kT_50_Ev,wgtTMDPDF_kT_50_optimal end interface contains function TMDs_inKT_IsInitialized() logical::TMDs_inKT_IsInitialized TMDs_inKT_IsInitialized=started end function TMDs_inKT_IsInitialized !! Initialization of the package subroutine TMDs_inKT_Initialize(file,prefix) character(len=*)::file character(len=*),optional::prefix character(len=300)::path,line logical::initRequired integer::FILEver if(started) return if(present(prefix)) then path=trim(adjustl(prefix))//trim(adjustr(file)) else path=trim(adjustr(file)) end if OPEN(UNIT=51, FILE=path, ACTION="read", STATUS="old") !!! Search for output level call MoveTO(51,'*0 ') call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) FILEver if(FILEver<inputver) then write(*,*) 'artemide.'//trim(moduleName)//': const-file version is too old.' write(*,*) ' Update the const-file with artemide.setup' write(*,*) ' ' stop end if call MoveTO(51,'*p2 ') read(51,*) outputLevel if(outputLevel>2) write(*,*) '--------------------------------------------- ' if(outputLevel>2) write(*,*) 'artemide.',moduleName,version,': initialization started ... ' call MoveTO(51,'*p3 ') read(51,*) messageTrigger call MoveTO(51,'*8 ') call MoveTO(51,'*p1 ') read(51,*) initRequired if(.not.initRequired) then if(outputLevel>2) write(*,*)'artemide.',moduleName,': initialization is not required. ' started=.false. return end if call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) tolerance call MoveTO(51,'*p2 ') read(51,*) hOGATA if(outputLevel>2) write(*,'(A,ES8.2)') ' | h for Ogata quadrature : ',hOGATA if(outputLevel>2) write(*,'(A,ES8.2)') ' | tolerance : ',tolerance CLOSE (51, STATUS='KEEP') if(outputLevel>1) write(*,*) 'arTeMiDe.TMDs-inKT: preparing Ogata tables' call PrepareTables() if(outputLevel>2) write(*,'(A,I4)') ' | Maximum number of nodes :',Nmax if(outputLevel>1) write(*,*) 'arTeMiDe.TMDs-inKT: Ogata tables prepared' GlobalCounter=0 CallCounter=0 MaxCounter=0 convergenceLost=.false. if(.not.TMDs_IsInitialized()) then if(outputLevel>1) write(*,*) '.. initializing TMDs (from ',moduleName,')' if(present(prefix)) then call TMDs_Initialize(file,prefix) else call TMDs_Initialize(file) end if end if started=.true. if(outputLevel>0) write(*,*) color('----- arTeMiDe.TMDs-inKT '//trim(version)//': .... initialized',c_green) if(outputLevel>1) write(*,*) ' ' end subroutine TMDs_inKT_Initialize subroutine TMDs_inKT_ResetCounters() convergenceLost=.false. GlobalCounter=0 CallCounter=0 MaxCounter=0 end subroutine TMDs_inKT_ResetCounters !!!!!!!Functions which carry the trigger on convergences.... Its used in xSec, and probably in other places. function TMDs_inKT_IsconvergenceLost() logical::TMDs_inKT_IsconvergenceLost TMDs_inKT_IsconvergenceLost=convergenceLost end function TMDs_inKT_IsconvergenceLost subroutine TMDs_inKT_convergenceISlost() convergenceLost=.true. if(outputLevel>1) write(*,*) WarningString('convergence is lost. Counters reset.',moduleName) call TMDs_inKT_ResetCounters() end subroutine TMDs_inKT_convergenceISlost subroutine TMDs_inKT_ShowStatistic() if(convergenceLost) then write(*,*) ' TMDs-in-kT statistics: convergence has been lost.' else write(*,'(A,ES12.3)') 'TMDs-in-kT statistics total calls of TMDs : ',Real(2*GlobalCounter) write(*,'(A,ES12.3)') ' total calls of TMD_F : ',Real(CallCounter) write(*,'(A,F12.3)') ' avarage M : ',Real(GlobalCounter)/Real(CallCounter) write(*,'(A,I12)') ' maximum calls : ',MaxCounter end if end subroutine TMDs_inKT_ShowStatistic !!!Prepare tables for Ogata quadrature with given h !!! note that the factor 1/(2pi) is taken into ww !!! the difference between definition in TMDF and here is 1/pi subroutine PrepareTables() integer::i,k,j real(dp)::hS!=h*hSegmentationWeight real(dp)::xi,qqq do j=1,hSegmentationNumber do k=0,3 do i=1,Nmax hS=hOGATA*hSegmentationWeight(j) xi=JZero(k,i) ! ww(j,k,i)=BESSEL_JN(k,bb(j,k,i))/xi/(BESSEL_JN(k+1,xi)**2)& ! *(pi*xi*hS*Cosh(xi*hS)+Sinh(pi*Sinh(xi*hS)))/(1d0+Cosh(pi*Sinh(xi*hS))) !!! if we too far away in xI*hS, the double exponential grow rapidly. !!! and for >6, it generates term 10^{300} and exceed the presision if(xi*hS>6.d0) then bb(j,k,i)=xi*Tanh(piHalf*Sinh(xi*hS)) ww(j,k,i)=BESSEL_JN(k,bb(j,k,i))/xi/(BESSEL_JN(k+1,xi)**2)/pi else bb(j,k,i)=xi*Tanh(piHalf*Sinh(xi*hS)) ww(j,k,i)=BESSEL_JN(k,bb(j,k,i))/xi/(BESSEL_JN(k+1,xi)**2)& *(pi*xi*hS*Cosh(xi*hS)/(2d0*Cosh(piHalf*Sinh(xi*hS))**2)+Tanh(piHalf*Sinh(xi*hS)))/pi end if end do end do end do end subroutine PrepareTables !--------------------------------------INTERFACES TO TMD------------------------------------------------ function testTMD_kT(x,qT) real(dp)::testTMD_kT(-5:5) real(dp)::x,qT testTMD_kT=Fourier(x,qT,10d0,10d0,0,1) end function testTMD_kT !---------------------------------------------------uTMDPDF function uTMDPDF_kT_5_Ev(x,qT,mu,zeta,hadron) real(dp)::uTMDPDF_kT_5_Ev(-5:5) real(dp)::x,qT,mu,zeta integer::hadron uTMDPDF_kT_5_Ev=Fourier(x,qT,mu,zeta,1,hadron) end function uTMDPDF_kT_5_Ev function uTMDPDF_kT_50_Ev(x,qT,mu,zeta,hadron) real(dp)::uTMDPDF_kT_50_Ev(-5:5) real(dp)::x,qT,mu,zeta integer::hadron uTMDPDF_kT_50_Ev=Fourier(x,qT,mu,zeta,2,hadron) end function uTMDPDF_kT_50_Ev function uTMDPDF_kT_5_optimal(x,qT,hadron) real(dp)::uTMDPDF_kT_5_optimal(-5:5) real(dp)::x,qT integer::hadron uTMDPDF_kT_5_optimal=Fourier(x,qT,10d0,10d0,3,hadron) end function uTMDPDF_kT_5_optimal function uTMDPDF_kT_50_optimal(x,qT,hadron) real(dp)::uTMDPDF_kT_50_optimal(-5:5) real(dp)::x,qT integer::hadron uTMDPDF_kT_50_optimal=Fourier(x,qT,10d0,10d0,4,hadron) end function uTMDPDF_kT_50_optimal !---------------------------------------------------uTMDFF function uTMDFF_kT_5_Ev(x,qT,mu,zeta,hadron) real(dp)::uTMDFF_kT_5_Ev(-5:5) real(dp)::x,qT,mu,zeta integer::hadron uTMDFF_kT_5_Ev=Fourier(x,qT,mu,zeta,5,hadron) end function uTMDFF_kT_5_Ev function uTMDFF_kT_50_Ev(x,qT,mu,zeta,hadron) real(dp)::uTMDFF_kT_50_Ev(-5:5) real(dp)::x,qT,mu,zeta integer::hadron uTMDFF_kT_50_Ev=Fourier(x,qT,mu,zeta,6,hadron) end function uTMDFF_kT_50_Ev function uTMDFF_kT_5_optimal(x,qT,hadron) real(dp)::uTMDFF_kT_5_optimal(-5:5) real(dp)::x,qT integer::hadron uTMDFF_kT_5_optimal=Fourier(x,qT,10d0,10d0,7,hadron) end function uTMDFF_kT_5_optimal function uTMDFF_kT_50_optimal(x,qT,hadron) real(dp)::uTMDFF_kT_50_optimal(-5:5) real(dp)::x,qT integer::hadron uTMDFF_kT_50_optimal=Fourier(x,qT,10d0,10d0,8,hadron) end function uTMDFF_kT_50_optimal !---------------------------------------------------lpTMDPDF function lpTMDPDF_kT_50_Ev(x,qT,mu,zeta,hadron) real(dp)::lpTMDPDF_kT_50_Ev(-5:5) real(dp)::x,qT,mu,zeta integer::hadron lpTMDPDF_kT_50_Ev=Fourier(x,qT,mu,zeta,9,hadron) end function lpTMDPDF_kT_50_Ev function lpTMDPDF_kT_50_optimal(x,qT,hadron) real(dp)::lpTMDPDF_kT_50_optimal(-5:5) real(dp)::x,qT integer::hadron lpTMDPDF_kT_50_optimal=Fourier(x,qT,10d0,10d0,10,hadron) end function lpTMDPDF_kT_50_optimal !---------------------------------------------------SiversTMDPDF function SiversTMDPDF_kT_5_Ev(x,qT,mu,zeta,hadron) real(dp)::SiversTMDPDF_kT_5_Ev(-5:5) real(dp)::x,qT,mu,zeta integer::hadron SiversTMDPDF_kT_5_Ev=Fourier(x,qT,mu,zeta,11,hadron) end function SiversTMDPDF_kT_5_Ev function SiversTMDPDF_kT_50_Ev(x,qT,mu,zeta,hadron) real(dp)::SiversTMDPDF_kT_50_Ev(-5:5) real(dp)::x,qT,mu,zeta integer::hadron SiversTMDPDF_kT_50_Ev=Fourier(x,qT,mu,zeta,12,hadron) end function SiversTMDPDF_kT_50_Ev function SiversTMDPDF_kT_5_optimal(x,qT,hadron) real(dp)::SiversTMDPDF_kT_5_optimal(-5:5) real(dp)::x,qT integer::hadron SiversTMDPDF_kT_5_optimal=Fourier(x,qT,10d0,10d0,13,hadron) end function SiversTMDPDF_kT_5_optimal function SiversTMDPDF_kT_50_optimal(x,qT,hadron) real(dp)::SiversTMDPDF_kT_50_optimal(-5:5) real(dp)::x,qT integer::hadron SiversTMDPDF_kT_50_optimal=Fourier(x,qT,10d0,10d0,14,hadron) end function SiversTMDPDF_kT_50_optimal !---------------------------------------------------wgtTMDPDF function wgtTMDPDF_kT_5_Ev(x,qT,mu,zeta,hadron) real(dp)::wgtTMDPDF_kT_5_Ev(-5:5) real(dp)::x,qT,mu,zeta integer::hadron wgtTMDPDF_kT_5_Ev=Fourier(x,qT,mu,zeta,15,hadron) end function wgtTMDPDF_kT_5_Ev function wgtTMDPDF_kT_50_Ev(x,qT,mu,zeta,hadron) real(dp)::wgtTMDPDF_kT_50_Ev(-5:5) real(dp)::x,qT,mu,zeta integer::hadron wgtTMDPDF_kT_50_Ev=Fourier(x,qT,mu,zeta,16,hadron) end function wgtTMDPDF_kT_50_Ev function wgtTMDPDF_kT_5_optimal(x,qT,hadron) real(dp)::wgtTMDPDF_kT_5_optimal(-5:5) real(dp)::x,qT integer::hadron wgtTMDPDF_kT_5_optimal=Fourier(x,qT,10d0,10d0,17,hadron) end function wgtTMDPDF_kT_5_optimal function wgtTMDPDF_kT_50_optimal(x,qT,hadron) real(dp)::wgtTMDPDF_kT_50_optimal(-5:5) real(dp)::x,qT integer::hadron wgtTMDPDF_kT_50_optimal=Fourier(x,qT,10d0,10d0,18,hadron) end function wgtTMDPDF_kT_50_optimal !------------------------------------------FOURIER-------------------------------- !!!This is the defining module function !!! It evaluates the integral !!! int_0^infty b db/2pi J0(b qT) F1 !!! The function F1 is given via number.. num function Fourier(x,qT_in,mu,zeta,num,hadron) real(dp)::qT,x,mu,zeta,qT_in integer::num,hadron real(dp)::integral(-5:5),eps(-5:5) real(dp)::v1(-5:5),v2(-5:5),v3(-5:5),v4(-5:5),delta(-5:5) logical:: partDone(-5:5) integer::k,n,j,Nsegment real(dp)::Fourier(-5:5) CallCounter=CallCounter+1 integral=(/0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0/) if(qT_in<0.0001d0) then qT=0.0001d0 else qT=qT_in end if !!!in the case of lost convergence we return huge number (divergent xSec) if(TMDs_inKT_IsconvergenceLost()) then Fourier=integral+1d10 else v1=(/1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0/) v2=(/1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0/) v3=(/1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0/) v4=(/1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0/) partDone=(/.false.,.false.,.false.,.false.,.false.,.false.,.false.,.false.,.false.,.false.,.false./) !!! define segment of qT do j=1,hSegmentationNumber if(qT<qTSegmentationBoundary(j)) exit end do if(j>hSegmentationNumber) then Nsegment=hSegmentationNumber else Nsegment=j end if !!!! select the order of Bessel function for transform SELECT CASE(num) CASE(9,10) n=2 CASE(11,12,13,14,15,16,17,18) n=1 CASE DEFAULT n=0 END SELECT do k=1,Nmax!!! maximum of number of bessel roots preevaluated in the head eps=ww(Nsegment,n,k)*(bb(Nsegment,n,k)**(n+1))*Integrand(bb(Nsegment,n,k)/qT,x,mu,zeta,num,hadron) v4=v3 v3=v2 v2=v1 v1=abs(eps) delta=(v1+v2+v3+v4) integral=integral+eps !!! here we check that residual term is smaller than already collected integral !!! also checking the zerothness of the integral. If already collected integral is null it is null !!! Here is potential bug. If the first 10 points give zero (whereas some later points do not), the integral will be zero !!! I check for each separate flavor do j=-5,5 if((delta(j)<tolerance*ABS(integral(j)) .or. ABS(integral(j))<1d-32) .and. k>=10) partDone(j)=.true. end do if(partDone(-5).and.partDone(-4).and.partDone(-3).and.partDone(-2).and.partDone(-1)& .and.partDone(0).and.partDone(1).and.partDone(2).and.partDone(3).and.partDone(4).and.partDone(5)) exit end do if(k>=Nmax) then if(outputlevel>0) WRITE(*,*) WarningString('OGATA quadrature diverge. TMD decaing too slow?',moduleName) if(outputlevel>2) then write(*,*) 'Information over the last call ----------' write(*,*) partDone write(*,*) 'bt/qT= ',bb(Nsegment,n,Nmax)/qT, 'qT=',qT, '| segmentation zone=',Nsegment,& ' ogata h=',hOGATA*hSegmentationWeight(Nsegment) write(*,*) 'W=',Integrand(bb(Nsegment,n,Nmax)/qT,x,mu,zeta,num,hadron), 'eps/integral =', eps/integral write(*,*) 'v1+v2+v3+v4=',v1+v2+v3+v4, '>',tolerance*(ABS(integral(1))+ABS(integral(2))) write(*,*) 'x=',x,'type =',num,' it is ',CallCounter,'call.' write(*,*) '------------------------------------------' end if call TMDs_inKT_convergenceISlost() end if if(k>MaxCounter) MaxCounter=k-1 ! write(*,*) 'Integral=',integral Fourier=integral/(qT**(n+2)) end if !write(*,*) 'Last call: ',k end function Fourier function Integrand(b,x,mu,zeta,num,hadron) real(dp)::b,x,mu,zeta integer::num,hadron real(dp)::Integrand(-5:5) !increment counter GlobalCounter=GlobalCounter+1 SELECT CASE(num) CASE(0) !!! test case Integrand=(/(b**3d0)*Exp(-x*b),(b**2d0)*Exp(-x*b),b*Exp(-x*b),Exp(-x*b),& 1d0/(b**2+x**2d0)**4d0,1d0/(b**2+x**2d0)**2d0,1d0/(b**2+x**2d0),& (b**2d0)*Exp(-x*b*b),Exp(-x*b*b), BESSEL_J0(x/b)/b,1d0/b/) CASE(1) !!! uTMDPDF quarks Integrand=uTMDPDF_5(x,b,mu,zeta,hadron) Integrand(0)=0d0 CASE(2) !!! uTMDPDF quarks+gluon Integrand=uTMDPDF_50(x,b,mu,zeta,hadron) CASE(3) !!! uTMDPDF quarks OPTIMAL Integrand=uTMDPDF_5(x,b,hadron) Integrand(0)=0d0 CASE(4) !!! uTMDPDF quarks+gluon OPTIMAL Integrand=uTMDPDF_50(x,b,hadron) CASE(5) !!! uTMDFF quarks Integrand=uTMDFF_5(x,b,mu,zeta,hadron) Integrand(0)=0d0 CASE(6) !!! uTMDFF quarks+gluon Integrand=uTMDFF_50(x,b,mu,zeta,hadron) CASE(7) !!! uTMDFF quarks OPTIMAL Integrand=uTMDFF_5(x,b,hadron) Integrand(0)=0d0 CASE(8) !!! uTMDFF quarks+gluon OPTIMAL Integrand=uTMDFF_50(x,b,hadron) CASE(9) !!! lin.pol.gluon TMDPDF !!! minus is due to definition (see manual) Integrand=-lpTMDPDF_50(x,b,mu,zeta,hadron) CASE(10) !!! lim.pol.gluon TMDPDF OPTIMAL !!! minus is due to definition (see manual) Integrand=-lpTMDPDF_50(x,b,hadron) CASE(11) !!! SiversTMDPDF quarks Integrand=SiversTMDPDF_5(x,b,mu,zeta,hadron) Integrand(0)=0d0 CASE(12) !!! SiversuTMDPDF quarks+gluon Integrand=SiversTMDPDF_50(x,b,mu,zeta,hadron) CASE(13) !!! SiversTMDPDF quarks OPTIMAL Integrand=SiversTMDPDF_5(x,b,hadron) Integrand(0)=0d0 CASE(14) !!! SiversTMDPDF quarks+gluon OPTIMAL Integrand=SiversTMDPDF_50(x,b,hadron) CASE(15) !!! wgtTMDPDF quarks Integrand=wgtTMDPDF_5(x,b,mu,zeta,hadron) Integrand(0)=0d0 CASE(16) !!! SiversuTMDPDF quarks+gluon Integrand=wgtTMDPDF_50(x,b,mu,zeta,hadron) CASE(17) !!! wgtTMDPDF quarks OPTIMAL Integrand=wgtTMDPDF_5(x,b,hadron) Integrand(0)=0d0 CASE(18) !!! wgtTMDPDF quarks+gluon OPTIMAL Integrand=wgtTMDPDF_50(x,b,hadron) CASE DEFAULT write(*,*) ErrorString('undefined TMD: ',moduleName) write(*,*) color('Evaluation stop',c_red_bold) stop END SELECT end function Integrand !-------------------------------------------------functions for uTMDPDF--------------------------------------- end module TMDs_inKT
19,670
32.454082
129
f90
artemide-public
artemide-public-master/src/aTMDe_control.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! arTeMiDe-control 2.0 ! ! Module that control the flow of artemide package. ! Initialize and reset submodules ! ! if you use this module please, quote 1803.11089 ! ! A.Vladimirov (30.05.2019) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! module aTMDe_control use aTMDe_Numerics use IO_functions use QCDinput use EWinput use uTMDPDF use lpTMDPDF use SiversTMDPDF use wgtTMDPDF use uTMDFF use TMDR use TMDs use TMDF use TMDX_DY use TMDX_SIDIS use TMDs_inKT use aTMDe_Setup implicit none private character (len=14),parameter :: moduleName="aTMDe-control" character (len=5),parameter :: version="v2.06" !Last appropriate verion of constants-file integer,parameter::inputver=11 character (len=15),parameter :: constNAME="aTMDe-temporary" integer::outputLevel=2 integer::messageTrigger=5 !!!! indicator of the aTMDe_control intialization logical::isStarted=.false. !!!! indicators of modules usage logical::include_EWinput,include_uTMDPDF,include_uTMDFF,include_TMDR,include_TMDs,include_TMDF logical::include_lpTMDPDF,include_SiversTMDPDF,include_wgtTMDPDF logical::include_TMDX_DY,include_TMDX_SIDIS,include_TMDs_inKT !!!! legths of non-perturbative arrays integer::NPlength_total integer::NPlength_TMDR,NPlength_uTMDPDF,NPlength_uTMDFF,NPlength_lpTMDPDF,NPlength_SiversTMDPDF,NPlength_wgtTMDPDF !!!! non-pertrubative parameters for individual modules real(dp),allocatable::lambdaNP_TMDR(:),lambdaNP_uTMDPDF(:),lambdaNP_uTMDFF(:),lambdaNP_lpTMDPDF(:),& lambdaNP_SiversTMDPDF(:),lambdaNP_wgtTMDPDF(:) !!!! Saved values of scale-variation parameters real(dp)::c1_saved,c2_saved,c3_saved,c4_saved public::artemide_Initialize public::artemide_SetNPparameters,artemide_SetNPparameters_TMDR,artemide_SetNPparameters_uTMDFF,artemide_SetNPparameters_uTMDPDF public::artemide_SetNPparameters_lpTMDPDF,artemide_SetNPparameters_SiversTMDPDF,artemide_SetNPparameters_wgtTMDPDF public::artemide_SetReplica_TMDR,artemide_SetReplica_uTMDFF,artemide_SetReplica_uTMDPDF public::artemide_SetReplica_lpTMDPDF,artemide_SetReplica_SiversTMDPDF,artemide_SetReplica_wgtTMDPDF public::artemide_SetScaleVariations public::artemide_ShowStatistics public::artemide_GetReplicaFromFile,artemide_NumOfReplicasInFile contains !! Module that creates the constants-file, !! and the read it !! intialize it-self and artemide modules subroutine artemide_Initialize(file,prefix,order) character(len=*)::file character(len=*),optional::prefix character(len=*),optional::order character(len=300)::path integer::FILEver,i logical::initilize_NParrays !----------------------------------------------------------- if(present(prefix).and.present(order)) then call artemide_Setup_fromFile(file,prefix=prefix,order=order) else if(present(prefix)) then call artemide_Setup_fromFile(file,prefix=prefix) else if(present(order)) then call artemide_Setup_fromFile(file,order=order) else call artemide_Setup_fromFile(file) end if if(present(prefix)) then call CreateConstantsFile(constNAME,prefix) else call CreateConstantsFile(constNAME) end if !----------------------------------------------------------- if(present(prefix)) then path=trim(adjustl(prefix))//trim(adjustr(constNAME)) else path=trim(adjustr(constNAME)) end if OPEN(UNIT=51, FILE=path, ACTION="read", STATUS="old") !!! Search for output level call MoveTO(51,'*0 ') call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) FILEver if(FILEver<inputver) then write(*,*) color('artemide.'//trim(moduleName)//': const-file version is too old.',c_red_bold) write(*,*) color(' Update the const-file with artemide.setup',c_red_bold) write(*,*) ' ' stop end if call MoveTO(51,'*p2 ') read(51,*) outputLevel if(outputLevel>2) write(*,*) '--------------------------------------------- ' if(outputLevel>2) write(*,*) 'artemide.control: initialization started ... ' call MoveTO(51,'*p3 ') read(51,*) outputLevel call MoveTO(51,'*C ') call MoveTO(51,'*p1 ') read(51,*) initilize_NParrays call MoveTO(51,'*2 ') call MoveTO(51,'*p1 ') read(51,*) include_EWinput call MoveTO(51,'*3 ') call MoveTO(51,'*p1 ') read(51,*) include_TMDR call MoveTO(51,'*B ') call MoveTO(51,'*p1 ') read(51,*) NPlength_TMDR !allocate lambda's and read initialization NP-array if(include_TMDR) then allocate(lambdaNP_TMDR(1:NPlength_TMDR)) call MoveTO(51,'*p2 ') do i=1,NPlength_TMDR read(51,*) lambdaNP_TMDR(i) end do end if call MoveTO(51,'*4 ') call MoveTO(51,'*p1 ') read(51,*) include_uTMDPDF call MoveTO(51,'*B ') call MoveTO(51,'*p1 ') read(51,*) NPlength_uTMDPDF !allocate lambda's and read initialization NP-array if(include_uTMDPDF) then allocate(lambdaNP_uTMDPDF(1:NPlength_uTMDPDF)) call MoveTO(51,'*p2 ') do i=1,NPlength_uTMDPDF read(51,*) lambdaNP_uTMDPDF(i) end do end if call MoveTO(51,'*5 ') call MoveTO(51,'*p1 ') read(51,*) include_uTMDFF call MoveTO(51,'*B ') call MoveTO(51,'*p1 ') read(51,*) NPlength_uTMDFF !allocate lambda's and read initialization NP-array if(include_uTMDFF) then allocate(lambdaNP_uTMDFF(1:NPlength_uTMDFF)) call MoveTO(51,'*p2 ') do i=1,NPlength_uTMDFF read(51,*) lambdaNP_uTMDFF(i) end do end if call MoveTO(51,'*6 ') call MoveTO(51,'*p1 ') read(51,*) include_TMDs call MoveTO(51,'*7 ') call MoveTO(51,'*p1 ') read(51,*) include_TMDF call MoveTO(51,'*8 ') call MoveTO(51,'*p1 ') read(51,*) include_TMDs_inKT call MoveTO(51,'*9 ') call MoveTO(51,'*p1 ') read(51,*) include_TMDX_DY call MoveTO(51,'*10 ') call MoveTO(51,'*p1 ') read(51,*) include_TMDX_SIDIS call MoveTO(51,'*11 ') call MoveTO(51,'*p1 ') read(51,*) include_lpTMDPDF call MoveTO(51,'*B ') call MoveTO(51,'*p1 ') read(51,*) NPlength_lpTMDPDF !allocate lambda's and read initialization NP-array if(include_lpTMDPDF) then allocate(lambdaNP_lpTMDPDF(1:NPlength_lpTMDPDF)) call MoveTO(51,'*p2 ') do i=1,NPlength_lpTMDPDF read(51,*) lambdaNP_lpTMDPDF(i) end do end if call MoveTO(51,'*12 ') call MoveTO(51,'*p1 ') read(51,*) include_SiversTMDPDF call MoveTO(51,'*B ') call MoveTO(51,'*p1 ') read(51,*) NPlength_SiversTMDPDF !allocate lambda's and read initialization NP-array if(include_SiversTMDPDF) then allocate(lambdaNP_SiversTMDPDF(1:NPlength_SiversTMDPDF)) call MoveTO(51,'*p2 ') do i=1,NPlength_SiversTMDPDF read(51,*) lambdaNP_SiversTMDPDF(i) end do end if call MoveTO(51,'*13 ') call MoveTO(51,'*p1 ') read(51,*) include_wgtTMDPDF call MoveTO(51,'*B ') call MoveTO(51,'*p1 ') read(51,*) NPlength_wgtTMDPDF !allocate lambda's and read initialization NP-array if(include_wgtTMDPDF) then allocate(lambdaNP_wgtTMDPDF(1:NPlength_wgtTMDPDF)) call MoveTO(51,'*p2 ') do i=1,NPlength_wgtTMDPDF read(51,*) lambdaNP_wgtTMDPDF(i) end do end if CLOSE (51, STATUS='KEEP') !----------------------------------------------------------- if(outputLevel>2) write(*,*) 'artemide.control: initialization file is read. Initialization of modules ... ' if(present(prefix)) then call QCDinput_Initialize(constNAME,prefix) else call QCDinput_Initialize(constNAME) end if if(include_EWinput) then if(present(prefix)) then call EWinput_Initialize(constNAME,prefix) else call EWinput_Initialize(constNAME) end if end if if(include_uTMDPDF) then if(present(prefix)) then call uTMDPDF_Initialize(constNAME,prefix) else call uTMDPDF_Initialize(constNAME) end if end if if(include_uTMDFF) then if(present(prefix)) then call uTMDFF_Initialize(constNAME,prefix) else call uTMDFF_Initialize(constNAME) end if end if if(include_lpTMDPDF) then if(present(prefix)) then call lpTMDPDF_Initialize(constNAME,prefix) else call lpTMDPDF_Initialize(constNAME) end if end if if(include_SiversTMDPDF) then if(present(prefix)) then call SiversTMDPDF_Initialize(constNAME,prefix) else call SiversTMDPDF_Initialize(constNAME) end if end if if(include_wgtTMDPDF) then if(present(prefix)) then call wgtTMDPDF_Initialize(constNAME,prefix) else call wgtTMDPDF_Initialize(constNAME) end if end if if(include_TMDR) then if(present(prefix)) then call TMDR_Initialize(constNAME,prefix) else call TMDR_Initialize(constNAME) end if end if if(include_TMDs) then if(present(prefix)) then call TMDs_Initialize(constNAME,prefix) else call TMDs_Initialize(constNAME) end if end if if(include_TMDF) then if(present(prefix)) then call TMDF_Initialize(constNAME,prefix) else call TMDF_Initialize(constNAME) end if end if if(include_TMDs_inKT) then if(present(prefix)) then call TMDs_inKT_Initialize(constNAME,prefix) else call TMDs_inKT_Initialize(constNAME) end if end if if(include_TMDX_DY) then if(present(prefix)) then call TMDX_DY_Initialize(constNAME,prefix) else call TMDX_DY_Initialize(constNAME) end if end if if(include_TMDX_SIDIS) then if(present(prefix)) then call TMDX_SIDIS_Initialize(constNAME,prefix) else call TMDX_SIDIS_Initialize(constNAME) end if end if !------------------------------------------------------ !!! calculate total NP lendth NPlength_total=0 if(include_TMDR) NPlength_total=NPlength_total+NPlength_TMDR if(include_uTMDPDF) NPlength_total=NPlength_total+NPlength_uTMDPDF if(include_uTMDFF) NPlength_total=NPlength_total+NPlength_uTMDFF if(include_lpTMDPDF) NPlength_total=NPlength_total+NPlength_lpTMDPDF if(include_SiversTMDPDF) NPlength_total=NPlength_total+NPlength_SiversTMDPDF if(include_wgtTMDPDF) NPlength_total=NPlength_total+NPlength_wgtTMDPDF if(outputLevel>2) write(*,*) ' artemide.control: Total number of NP parameters:',NPlength_total c1_saved=1d0 c2_saved=1d0 c3_saved=1d0 c4_saved=1d0 call artemide_SetScaleVariations(c1_saved,c2_saved,c3_saved,c4_saved) isStarted=.true. if(outputLevel>1) write(*,*) color(' artemide.control: initialization done.',c_green_bold) if(initilize_NParrays) then if(outputLevel>1) write(*,*) 'artemide.control: setting initial NP arrays.' if(include_TMDR) call artemide_SetNPparameters_TMDR(lambdaNP_TMDR) if(include_uTMDPDF) call artemide_SetNPparameters_uTMDPDF(lambdaNP_uTMDPDF) if(include_uTMDFF) call artemide_SetNPparameters_uTMDFF(lambdaNP_uTMDFF) if(include_lpTMDPDF) call artemide_SetNPparameters_lpTMDPDF(lambdaNP_lpTMDPDF) if(include_SiversTMDPDF) call artemide_SetNPparameters_SiversTMDPDF(lambdaNP_SiversTMDPDF) if(include_wgtTMDPDF) call artemide_SetNPparameters_wgtTMDPDF(lambdaNP_wgtTMDPDF) if(outputLevel>1) write(*,*) color(' artemide.control: initial NP arrays set.',c_green_bold) end if end subroutine artemide_Initialize !-------------------------------------------------------------- NP parameters --------------------------- subroutine artemide_SetNPparameters(lambdaNP) real(dp),intent(in)::lambdaNP(:) real(dp),dimension(1:NPlength_total)::lambda_cur integer::ll,num ll=size(lambdaNP) if(ll<NPlength_total) then if(outputLevel>0) write(*,"(A,I4,A,I4,A)") & color('artemide.SetNPparameters: ERROR: the length of NP parameters array (',c_red),ll,& color(') is smaller then the total number of NP parameters (',c_red),NPlength_total,color(')',c_red) if(outputLevel>0) write(*,*) color('NOTHING IS DONE',c_red) return end if if(ll>NPlength_total) then if(outputLevel>0) write(*,"(A,I4,A,I4,A)")& color('artemide.SetNPparameters: ERROR: the length of NP parameters array (',c_red), ll,& color(') is larger then total the number of NP parameters (',c_red),NPlength_total,color(')',c_red) if(outputLevel>0) write(*,*) color('The array is trucated',c_red) end if lambda_cur=lambdaNP(1:NPlength_total) num=0 !!! split the incoming array if(include_TMDR) then lambdaNP_TMDR=lambda_cur(num+1:num+NPlength_TMDR) num=num+NPlength_TMDR end if if(include_uTMDPDF) then lambdaNP_uTMDPDF=lambda_cur(num+1:num+NPlength_uTMDPDF) num=num+NPlength_uTMDPDF end if if(include_uTMDFF) then lambdaNP_uTMDFF=lambda_cur(num+1:num+NPlength_uTMDFF) num=num+NPlength_uTMDFF end if if(include_lpTMDPDF) then lambdaNP_lpTMDPDF=lambda_cur(num+1:num+NPlength_lpTMDPDF) num=num+NPlength_uTMDPDF end if if(include_SiversTMDPDF) then lambdaNP_SiversTMDPDF=lambda_cur(num+1:num+NPlength_SiversTMDPDF) num=num+NPlength_SiversTMDPDF end if if(include_wgtTMDPDF) then lambdaNP_wgtTMDPDF=lambda_cur(num+1:num+NPlength_wgtTMDPDF) num=num+NPlength_wgtTMDPDF end if !!! sending NP arrays to packages if(include_TMDR) call TMDR_setNPparameters(lambdaNP_TMDR) if(include_uTMDPDF) call uTMDPDF_SetLambdaNP(lambdaNP_uTMDPDF) if(include_uTMDFF) call uTMDFF_SetLambdaNP(lambdaNP_uTMDFF) if(include_lpTMDPDF) call lpTMDPDF_SetLambdaNP(lambdaNP_lpTMDPDF) if(include_SiversTMDPDF) call SiversTMDPDF_SetLambdaNP(lambdaNP_SiversTMDPDF) if(include_wgtTMDPDF) call wgtTMDPDF_SetLambdaNP(lambdaNP_wgtTMDPDF) !!! reseting other packages if(include_TMDF) call TMDF_ResetCounters() if(include_TMDX_DY) call TMDX_DY_ResetCounters() if(include_TMDX_SIDIS) call TMDX_SIDIS_ResetCounters() end subroutine artemide_SetNPparameters subroutine artemide_SetNPparameters_TMDR(lambdaNP) real(dp),intent(in)::lambdaNP(:) integer::ll if(.not.include_TMDR) then if(outputLevel>0) & write(*,*) & ErrorString('attempt to set NP-parameters for TMDR, while TMDR module is not included in the current setup',moduleName) if(outputLevel>0) write(*,*) color('NOTHING IS DONE',c_red) return end if ll=size(lambdaNP) if(ll<NPlength_TMDR) then if(outputLevel>0) write(*,"(A,I4,A,I4,A)")& color('artemide.SetNPparameters-TMDR: ERROR: the length of NP parameters array (',c_red),ll,& color(') is smaller then the total number of NP parameters for TMDR (',c_red),NPlength_TMDR,& color(')',c_red) if(outputLevel>0) write(*,*) color('NOTHING IS DONE',c_red) return end if if(ll>NPlength_TMDR) then if(outputLevel>0) write(*,"(A,I4,A,I4,A)")& color('artemide.SetNPparameters: ERROR: the length of NP parameters array (',c_red),ll,& color(') is larger then total the number of NP parameters for TMDR (',c_red),NPlength_TMDR,& color(')',c_red) if(outputLevel>0) write(*,*) color('The array is trucated',c_red) end if lambdaNP_TMDR=lambdaNP(1:NPlength_TMDR) call TMDR_setNPparameters(lambdaNP_TMDR) !!! reseting other packages if(include_TMDF) call TMDF_ResetCounters() if(include_TMDX_DY) call TMDX_DY_ResetCounters() if(include_TMDX_SIDIS) call TMDX_SIDIS_ResetCounters() end subroutine artemide_SetNPparameters_TMDR subroutine artemide_SetNPparameters_uTMDPDF(lambdaNP) real(dp),intent(in)::lambdaNP(:) integer::ll if(.not.include_uTMDPDF) then if(outputLevel>0) & write(*,*) & ErrorString('attempt to set NP-parameters for uTMDPDF, while uTMDPDF module is not included in the current setup',& moduleName) if(outputLevel>0) write(*,*) color('NOTHING IS DONE',c_red) return end if ll=size(lambdaNP) if(ll<NPlength_uTMDPDF) then if(outputLevel>0) write(*,"(A,I4,A,I4,A)")& color('artemide.SetNPparameters-uTMDPDF: ERROR: the length of NP parameters array (',c_red),ll,& color(') is smaller then the total number of NP parameters for uTMDPDF (',c_red),NPlength_uTMDPDF,& color(')',c_red) if(outputLevel>0) write(*,*) color('NOTHING IS DONE',c_red) return end if if(ll>NPlength_uTMDPDF) then if(outputLevel>0) write(*,"(A,I4,A,I4,A)")& color('artemide.SetNPparameters: ERROR: the length of NP parameters array (',c_red),ll,& color(') is larger then total the number of NP parameters for uTMDPDF (',c_red),NPlength_uTMDPDF,& color(')',c_red) if(outputLevel>0) write(*,*) color('The array is trucated',c_red) end if lambdaNP_uTMDPDF=lambdaNP(1:NPlength_uTMDPDF) call uTMDPDF_SetLambdaNP(lambdaNP_uTMDPDF) !!! reseting other packages if(include_TMDF) call TMDF_ResetCounters() if(include_TMDX_DY) call TMDX_DY_ResetCounters() if(include_TMDX_SIDIS) call TMDX_SIDIS_ResetCounters() end subroutine artemide_SetNPparameters_uTMDPDF subroutine artemide_SetNPparameters_uTMDFF(lambdaNP) real(dp),intent(in)::lambdaNP(:) integer::ll if(.not.include_uTMDFF) then if(outputLevel>0) & write(*,*) ErrorString('attempt to set NP-parameters for uTMDFF, while uTMDFF module is not included in the current setup',& moduleName) if(outputLevel>0) write(*,*) color('NOTHING IS DONE',c_red) return end if ll=size(lambdaNP) if(ll<NPlength_uTMDFF) then if(outputLevel>0) write(*,"(A,I4,A,I4,A)")& color('artemide.SetNPparameters-uTMDFF: ERROR: the length of NP parameters array (',c_red),ll,& color(') is smaller then the total number of NP parameters for uTMDFF (',c_red),NPlength_uTMDFF,& color(')',c_red) if(outputLevel>0) write(*,*) color('NOTHING IS DONE',c_red) return end if if(ll>NPlength_uTMDFF) then if(outputLevel>0) write(*,"(A,I4,A,I4,A)")& color('artemide.SetNPparameters: ERROR: the length of NP parameters array (',c_red),ll,& color(') is larger then total the number of NP parameters for uTMDFF (',c_red),NPlength_uTMDFF,& color(')',c_red) if(outputLevel>0) write(*,*) color('The array is trucated',c_red) end if lambdaNP_uTMDFF=lambdaNP(1:NPlength_uTMDFF) call uTMDFF_SetLambdaNP(lambdaNP_uTMDFF) !!! reseting other packages if(include_TMDF) call TMDF_ResetCounters() if(include_TMDX_DY) call TMDX_DY_ResetCounters() if(include_TMDX_SIDIS) call TMDX_SIDIS_ResetCounters() end subroutine artemide_SetNPparameters_uTMDFF subroutine artemide_SetNPparameters_lpTMDPDF(lambdaNP) real(dp),intent(in)::lambdaNP(:) integer::ll if(.not.include_lpTMDPDF) then if(outputLevel>0) & write(*,*) ErrorString('attempt to set NP-parameters for lpTMDPDF, & while lpTMDPDF module is not included in the current setup',moduleName) if(outputLevel>0) write(*,*) color('NOTHING IS DONE',c_red) return end if ll=size(lambdaNP) if(ll<NPlength_lpTMDPDF) then if(outputLevel>0) write(*,"(A,I4,A,I4,A)")& color('artemide.SetNPparameters-lpTMDPDF: ERROR: the length of NP parameters array (',c_red),ll,& color(') is smaller then the total number of NP parameters for lpTMDPDF (',c_red),NPlength_lpTMDPDF,& color(')',c_red) if(outputLevel>0) write(*,*) color('NOTHING IS DONE',c_red) return end if if(ll>NPlength_lpTMDPDF) then if(outputLevel>0) write(*,"(A,I4,A,I4,A)")& color('artemide.SetNPparameters: ERROR: the length of NP parameters array (',c_red),ll,& color(') is larger then total the number of NP parameters for lpTMDPDF (',c_red),NPlength_lpTMDPDF,& color(')',c_red) if(outputLevel>0) write(*,*) color('The array is trucated',c_red) end if lambdaNP_lpTMDPDF=lambdaNP(1:NPlength_lpTMDPDF) call lpTMDPDF_SetLambdaNP(lambdaNP_lpTMDPDF) !!! reseting other packages if(include_TMDF) call TMDF_ResetCounters() if(include_TMDX_DY) call TMDX_DY_ResetCounters() if(include_TMDX_SIDIS) call TMDX_SIDIS_ResetCounters() end subroutine artemide_SetNPparameters_lpTMDPDF subroutine artemide_SetNPparameters_SiversTMDPDF(lambdaNP) real(dp),intent(in)::lambdaNP(:) integer::ll if(.not.include_SiversTMDPDF) then if(outputLevel>0) & write(*,*) ErrorString('attempt to set NP-parameters for SiversTMDPDF, & while SiversTMDPDF module is not included in the current setup',moduleName) if(outputLevel>0) write(*,*) color('NOTHING IS DONE',c_red) return end if ll=size(lambdaNP) if(ll<NPlength_SiversTMDPDF) then if(outputLevel>0) write(*,"(A,I4,A,I4,A)")& color('artemide.SetNPparameters-SiversTMDPDF: ERROR: the length of NP parameters array (',c_red),ll,& color(') is smaller then the total number of NP parameters for SiversTMDPDF (',c_red),NPlength_SiversTMDPDF,& color(')',c_red) if(outputLevel>0) write(*,*) color('NOTHING IS DONE',c_red) return end if if(ll>NPlength_SiversTMDPDF) then if(outputLevel>0) write(*,"(A,I4,A,I4,A)")& color('artemide.SetNPparameters: ERROR: the length of NP parameters array (',c_red),ll,& color(') is larger then total the number of NP parameters for SiversTMDPDF (',c_red),NPlength_SiversTMDPDF,& color(')',c_red) if(outputLevel>0) write(*,*) color('The array is trucated',c_red) end if lambdaNP_SiversTMDPDF=lambdaNP(1:NPlength_SiversTMDPDF) call SiversTMDPDF_SetLambdaNP(lambdaNP_SiversTMDPDF) !!! reseting other packages if(include_TMDF) call TMDF_ResetCounters() if(include_TMDX_DY) call TMDX_DY_ResetCounters() if(include_TMDX_SIDIS) call TMDX_SIDIS_ResetCounters() end subroutine artemide_SetNPparameters_SiversTMDPDF subroutine artemide_SetNPparameters_wgtTMDPDF(lambdaNP) real(dp),intent(in)::lambdaNP(:) integer::ll if(.not.include_wgtTMDPDF) then if(outputLevel>0) & write(*,*) ErrorString('attempt to set NP-parameters for wgtTMDPDF, & while wgtTMDPDF module is not included in the current setup',moduleName) if(outputLevel>0) write(*,*) color('NOTHING IS DONE',c_red) return end if ll=size(lambdaNP) if(ll<NPlength_wgtTMDPDF) then if(outputLevel>0) write(*,"(A,I4,A,I4,A)")& color('artemide.SetNPparameters-wgtTMDPDF: ERROR: the length of NP parameters array (',c_red),ll,& color(') is smaller then the total number of NP parameters for wgtTMDPDF (',c_red),NPlength_wgtTMDPDF,& color(')',c_red) if(outputLevel>0) write(*,*) color('NOTHING IS DONE',c_red) return end if if(ll>NPlength_wgtTMDPDF) then if(outputLevel>0) write(*,"(A,I4,A,I4,A)")& color('artemide.SetNPparameters: ERROR: the length of NP parameters array (',c_red),ll,& color(') is larger then total the number of NP parameters for wgtTMDPDF (',c_red),NPlength_wgtTMDPDF,& color(')',c_red) if(outputLevel>0) write(*,*) color('The array is trucated',c_red) end if lambdaNP_wgtTMDPDF=lambdaNP(1:NPlength_wgtTMDPDF) call wgtTMDPDF_SetLambdaNP(lambdaNP_wgtTMDPDF) !!! reseting other packages if(include_TMDF) call TMDF_ResetCounters() if(include_TMDX_DY) call TMDX_DY_ResetCounters() if(include_TMDX_SIDIS) call TMDX_SIDIS_ResetCounters() end subroutine artemide_SetNPparameters_wgtTMDPDF subroutine artemide_SetReplica_TMDR(num) integer,intent(in)::num if(.not.include_TMDR) then if(outputLevel>0) & write(*,*) ErrorString('attempt to set a replica for TMDR,& while TMDR module is not included in the current setup',moduleName) if(outputLevel>0) write(*,*) color('NOTHING IS DONE',c_red) return end if call TMDR_setNPparameters(num) call TMDR_CurrentNPparameters(lambdaNP_TMDR) !!! reseting other packages if(include_TMDF) call TMDF_ResetCounters() if(include_TMDX_DY) call TMDX_DY_ResetCounters() if(include_TMDX_SIDIS) call TMDX_SIDIS_ResetCounters() end subroutine artemide_SetReplica_TMDR subroutine artemide_SetReplica_uTMDPDF(num) integer,intent(in)::num if(.not.include_uTMDPDF) then if(outputLevel>0) & write(*,*) ErrorString('attempt to set a replica for uTMDPDF,& while uTMDPDF module is not included in the current setup',moduleName) if(outputLevel>0) write(*,*) color('NOTHING IS DONE',c_red) return end if call uTMDPDF_SetLambdaNP(num) call uTMDPDF_CurrentNPparameters(lambdaNP_uTMDPDF) !!! reseting other packages if(include_TMDF) call TMDF_ResetCounters() if(include_TMDX_DY) call TMDX_DY_ResetCounters() if(include_TMDX_SIDIS) call TMDX_SIDIS_ResetCounters() end subroutine artemide_SetReplica_uTMDPDF subroutine artemide_SetReplica_uTMDFF(num) integer,intent(in)::num if(.not.include_uTMDFF) then if(outputLevel>0) & write(*,*) ErrorString('attempt to set a replica for uTMDFF,& while uTMDFF module is not included in the current setup',moduleName) if(outputLevel>0) write(*,*) color('NOTHING IS DONE',c_red) return end if call uTMDFF_SetLambdaNP(num) call uTMDFF_CurrentNPparameters(lambdaNP_uTMDFF) !!! reseting other packages if(include_TMDF) call TMDF_ResetCounters() if(include_TMDX_DY) call TMDX_DY_ResetCounters() if(include_TMDX_SIDIS) call TMDX_SIDIS_ResetCounters() end subroutine artemide_SetReplica_uTMDFF subroutine artemide_SetReplica_lpTMDPDF(num) integer,intent(in)::num if(.not.include_lpTMDPDF) then if(outputLevel>0) & write(*,*) ErrorString('attempt to set a replica for lpTMDPDF,& while lpTMDPDF module is not included in the current setup',ModuleName) if(outputLevel>0) write(*,*) 'NOTHING IS DONE' return end if call lpTMDPDF_SetLambdaNP(num) call lpTMDPDF_CurrentNPparameters(lambdaNP_lpTMDPDF) !!! reseting other packages if(include_TMDF) call TMDF_ResetCounters() if(include_TMDX_DY) call TMDX_DY_ResetCounters() if(include_TMDX_SIDIS) call TMDX_SIDIS_ResetCounters() end subroutine artemide_SetReplica_lpTMDPDF subroutine artemide_SetReplica_SiversTMDPDF(num) integer,intent(in)::num if(.not.include_SiversTMDPDF) then if(outputLevel>0) & write(*,*) ErrorString('attempt to set a replica for SiversTMDPDF,& while SiversTMDPDF module is not included in the current setup',ModuleName) if(outputLevel>0) write(*,*) 'NOTHING IS DONE' return end if call SiversTMDPDF_SetLambdaNP(num) call SiversTMDPDF_CurrentNPparameters(lambdaNP_SiversTMDPDF) !!! reseting other packages if(include_TMDF) call TMDF_ResetCounters() if(include_TMDX_DY) call TMDX_DY_ResetCounters() if(include_TMDX_SIDIS) call TMDX_SIDIS_ResetCounters() end subroutine artemide_SetReplica_SiversTMDPDF subroutine artemide_SetReplica_wgtTMDPDF(num) integer,intent(in)::num if(.not.include_wgtTMDPDF) then if(outputLevel>0) & write(*,*) ErrorString('attempt to set a replica for wgtTMDPDF,& while wgtTMDPDF module is not included in the current setup',ModuleName) if(outputLevel>0) write(*,*) 'NOTHING IS DONE' return end if call wgtTMDPDF_SetLambdaNP(num) call wgtTMDPDF_CurrentNPparameters(lambdaNP_wgtTMDPDF) !!! reseting other packages if(include_TMDF) call TMDF_ResetCounters() if(include_TMDX_DY) call TMDX_DY_ResetCounters() if(include_TMDX_SIDIS) call TMDX_SIDIS_ResetCounters() end subroutine artemide_SetReplica_wgtTMDPDF !------------------------------------------------------- Other routines --------------------------------- subroutine artemide_ShowStatistics() integer::i write(*,*) '------------------------- artemide statistics -------------------------' write(*,*) 'Synopsis of NP input:' if(include_TMDR) then write(*,"('--- TMDR : ',I3,' parameters')") NPlength_TMDR do i=1,NPlength_TMDR write(*,"(F10.4,' ')",advance='no') lambdaNP_TMDR(i) end do write(*,*) ' ' end if if(include_uTMDPDF) then write(*,"('--- uTMDPDF : ',I3,' parameters')") NPlength_uTMDPDF do i=1,NPlength_uTMDPDF write(*,"(F10.4,' ')",advance='no') lambdaNP_uTMDPDF(i) end do write(*,*) ' ' end if if(include_uTMDFF) then write(*,"('--- uTMDFF : ',I3,' parameters')") NPlength_uTMDFF do i=1,NPlength_uTMDFF write(*,"(F10.4,' ')",advance='no') lambdaNP_uTMDFF(i) end do write(*,*) ' ' end if if(include_lpTMDPDF) then write(*,"('--- lpTMDPDF : ',I3,' parameters')") NPlength_lpTMDPDF do i=1,NPlength_lpTMDPDF write(*,"(F10.4,' ')",advance='no') lambdaNP_lpTMDPDF(i) end do write(*,*) ' ' end if if(include_SiversTMDPDF) then write(*,"('--- SiversTMDPDF : ',I3,' parameters')") NPlength_SiversTMDPDF do i=1,NPlength_SiversTMDPDF write(*,"(F10.4,' ')",advance='no') lambdaNP_SiversTMDPDF(i) end do write(*,*) ' ' end if if(include_wgtTMDPDF) then write(*,"('--- wgtTMDPDF : ',I3,' parameters')") NPlength_wgtTMDPDF do i=1,NPlength_wgtTMDPDF write(*,"(F10.4,' ')",advance='no') lambdaNP_wgtTMDPDF(i) end do write(*,*) ' ' end if if(include_TMDF) call TMDF_ShowStatistic() if(include_TMDX_DY) call TMDX_DY_ShowStatistic() if(include_TMDX_SIDIS) call TMDX_SIDIS_ShowStatistic() write(*,*) '-------------------------------------------------------------------------' end subroutine artemide_ShowStatistics !!! changes the scale variations subroutine artemide_SetScaleVariations(c1,c2,c3,c4) real(dp),intent(in)::c1,c2,c3,c4 if(outputLevel>2) write(*,"('artemide.control: set scale variations (c1,c2,c3,c4)= (',F5.2,F5.2,F5.2,F5.2,')')") c1,c2,c3,c4 if(include_uTMDPDF) call uTMDPDF_SetScaleVariation(c4) if(include_uTMDFF) call uTMDFF_SetScaleVariation(c4) if(include_lpTMDPDF) call lpTMDPDF_SetScaleVariation(c4) if(include_SiversTMDPDF) call SiversTMDPDF_SetScaleVariation(c4) if(include_wgtTMDPDF) call wgtTMDPDF_SetScaleVariation(c4) if(include_TMDs) call TMDs_SetScaleVariations(c1,c3) if(include_TMDX_DY) call TMDX_DY_SetScaleVariation(c2) if(include_TMDX_SIDIS) call TMDX_SIDIS_SetScaleVariation(c2) end subroutine artemide_SetScaleVariations !!!! generates some base(typical) array of NP parameters (2,0.02,0...,1,0...,etc) function BaseNPString() real(dp)::BaseNPString(1:NPlength_total) integer::i,j j=1 if(include_TMDR) then BaseNPString(j)=2d0 j=j+1 BaseNPString(j)=0.02d0 j=j+1 do i=3,NPlength_TMDR BaseNPString(j)=0d0 j=j+1 end do end if if(include_uTMDPDF) then BaseNPString(j)=1d0 j=j+1 do i=1,NPlength_uTMDPDF BaseNPString(j)=0d0 j=j+1 end do end if if(include_uTMDFF) then BaseNPString(j)=1d0 j=j+1 do i=1,NPlength_uTMDFF BaseNPString(j)=0d0 j=j+1 end do end if if(include_lpTMDPDF) then BaseNPString(j)=1d0 j=j+1 do i=1,NPlength_lpTMDPDF BaseNPString(j)=0d0 j=j+1 end do end if if(include_SiversTMDPDF) then BaseNPString(j)=1d0 j=j+1 do i=1,NPlength_SiversTMDPDF BaseNPString(j)=0d0 j=j+1 end do end if if(include_wgtTMDPDF) then BaseNPString(j)=1d0 j=j+1 do i=1,NPlength_wgtTMDPDF BaseNPString(j)=0d0 j=j+1 end do end if if(j-1/=NPlength_total) then write(*,*) ERRORstring("something went wrong on the creation of base NP parameters.",moduleName) stop end if end function BaseNPString !------------------------------------------------------- Working with .rep files ------------------------- !!!! this search for the string of NP parameters in the file "file" and returns rep=n subroutine artemide_GetReplicaFromFile(file,rep,repString) character(len=*)::file integer::rep,i,k1,k2,numR,lenArray,ver real(dp),allocatable,intent(out)::repString(:) real(dp),allocatable::ParametersTOread(:) logical::file_exists INQUIRE(FILE=trim(FILE), EXIST=file_exists) if(.not.file_exists) then write(*,*) ERRORstring('replica file is not found: '//trim(FILE),moduleName) stop end if if(.not.isStarted .and. outputLevel>1) & write(*,*) WarningString(' is not initialized. Continue to read replicas without checks.',moduleName) OPEN(UNIT=51, FILE=trim(FILE), ACTION="read", STATUS="old") !!! the version call MoveTO(51,'*V ') read(51,*) ver call MoveTO(51,'*B ') !!!! check total length call MoveTO(51,'*0 ') read(51,*) lenArray if(isStarted) then if(lenArray-1/=NPlength_total) then write(*,*) ERRORstring('number of NP parameters in replica-file does not match the model',moduleName) stop end if !!! --------------------check lengths by modules if(include_TMDR) then call MoveTO(51,'*3 ') read(51,*) k1,k2 if(k2-k1+1/=NPlength_TMDR) then write(*,*) ERRORstring('number of NP parameters in replica-file does not match the TMDR model',moduleName) stop end if end if if(include_uTMDPDF) then call MoveTO(51,'*4 ') read(51,*) k1,k2 if(k2-k1+1/=NPlength_uTMDPDF) then write(*,*) ERRORstring('number of NP parameters in replica-file does not match the uTMDPDF model',moduleName) stop end if end if if(include_uTMDFF) then call MoveTO(51,'*5 ') read(51,*) k1,k2 if(k2-k1+1/=NPlength_uTMDFF) then write(*,*) ERRORstring('number of NP parameters in replica-file does not match the uTMDFF model',moduleName) stop end if end if if(ver>=3 .and. include_lpTMDPDF) then call MoveTO(51,'*11 ') read(51,*) k1,k2 if(k2-k1+1/=NPlength_lpTMDPDF) then write(*,*) ERRORstring('number of NP parameters in replica-file does not match the lpTMDPDF model',moduleName) stop end if end if if(ver>=15 .and. include_SiversTMDPDF) then call MoveTO(51,'*12 ') read(51,*) k1,k2 if(k2-k1+1/=NPlength_SiversTMDPDF) then write(*,*) ERRORstring('number of NP parameters in replica-file does not match the SiversTMDPDF model',moduleName) stop end if end if if(ver>=19 .and. include_wgtTMDPDF) then call MoveTO(51,'*13 ') read(51,*) k1,k2 if(k2-k1+1/=NPlength_wgtTMDPDF) then write(*,*) ERRORstring('number of NP parameters in replica-file does not match the wgtTMDPDF model',moduleName) stop end if end if end if allocate(ParametersTOread(1:lenArray)) if(allocated(repString)) deallocate(repString) allocate(repString(1:lenArray-1)) !!---------------------Continue to reading the file !! indices related to the module call MoveTO(51,'*C ') read(51,*) numR!!! full number of replicas !! read the replicas if(rep<1) then ! case of technical replicas call MoveTO(51,'*D ') read(51,*) ParametersTOread if(rep==-1) then ! replica -1 if(Int(ParametersTOread(1))==-1) then repString=ParametersTOread(2:lenArray) else write(*,*) ERRORstring('error in the reading the replica (-1)',moduleName) repString=BaseNPString() end if else if(rep==0) then ! replica 0 read(51,*) ParametersTOread if(Int(ParametersTOread(1))==0) then repString=ParametersTOread(2:lenArray) else write(*,*) ERRORstring('error in the reading the replica (0)',moduleName) repString=BaseNPString() end if else ! ! replica unknown write(*,*) ERRORstring('there is no such replica',moduleName),rep repString=BaseNPString() end if else if(rep<=numR) then ! main pull of replicas call MoveTO(51,'*R ') do i=1,numR read(51,*) ParametersTOread repString=ParametersTOread(2:lenArray) if(Int(ParametersTOread(1))==rep) then repString=ParametersTOread(2:lenArray) goto 101 end if end do write(*,*) ERRORstring('there is no replica',moduleName),rep repString=BaseNPString() else write(*,*) ERRORstring('there is no such replica',moduleName),rep end if 101 CLOSE (51, STATUS='KEEP') deallocate(ParametersTOread) end subroutine artemide_GetReplicaFromFile !!!! this return the number of replicas stored in the file function artemide_NumOfReplicasInFile(file) character(len=*)::file integer::numR,artemide_NumOfReplicasInFile logical::file_exists INQUIRE(FILE=trim(FILE), EXIST=file_exists) if(.not.file_exists) then write(*,*) ERRORstring('replica file is not found: '//trim(FILE),moduleName) stop end if OPEN(UNIT=51, FILE=trim(FILE), ACTION="read", STATUS="old") !! indices related to the module call MoveTO(51,'*C ') read(51,*) numR!!! full number of replicas artemide_NumOfReplicasInFile=numR CLOSE (51, STATUS='KEEP') end function artemide_NumOfReplicasInFile end module aTMDe_control
39,295
33.652557
132
f90
artemide-public
artemide-public-master/src/aTMDe_setup.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! arTeMiDe-setup 2.0 ! ! Module that read, create and modify constants-files ! ! if you use this module please, quote 1803.11089 ! ! A.Vladimirov (27.05.2019) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! module aTMDe_Setup use aTMDe_Numerics use IO_functions implicit none private character (len=5),parameter :: version="v2.06" character (len=11),parameter :: moduleName="aTMDe-setup" !! actual version of input file integer,parameter::inputVer=21 !detalization of output: 0 = no output except critical, 1 = + WARNINGS, 2 = + states of initialization,sets,etc, 3 = + details integer::outputLevel integer::messageTrigger !! if .true. uses the given NP arrays to initialize from aTMDe_control logical::initialize_NParrays !-----------------------physic parameters logical::include_EWinput !mass, and width parameters real(dp)::mCHARM,mBOTTOM,mTOP,mZ,mW,GammaZ,GammaW,mH,GammaH,vevH real(dp)::mELECTRON,mMUON,mTAU !other physical parameters real(dp)::hc2,alphaQED_MZ,sW2,alphaQED_MTAU !CKM matrix real(dp)::Vckm_UD,Vckm_US,Vckm_CD,Vckm_CS,Vckm_CB,Vckm_UB !--------------------- uPDF parameters integer::number_of_uPDFs integer,allocatable::enumeration_of_uPDFs(:),replicas_of_uPDFs(:) character(len=100),allocatable::sets_of_uPDFs(:) !--------------------- uFF parameters integer::number_of_uFFs integer,allocatable::enumeration_of_uFFs(:),replicas_of_uFFs(:) character(len=100),allocatable::sets_of_uFFs(:) !--------------------- lpPDF parameters integer::number_of_lpPDFs integer,allocatable::enumeration_of_lpPDFs(:),replicas_of_lpPDFs(:) character(len=100),allocatable::sets_of_lpPDFs(:) !--------------------- hPDF parameters integer::number_of_hPDFs integer,allocatable::enumeration_of_hPDFs(:),replicas_of_hPDFs(:) character(len=100),allocatable::sets_of_hPDFs(:) !-------------------- TMDR options logical::include_TMDR character*8::TMDR_order integer::TMDR_evolutionType,TMDR_lambdaLength real(dp)::TMDR_tolerance real(dp),allocatable::TMDR_lambdaNP_init(:) !-------------------- uTMDPDF parameters logical::include_uTMDPDF integer::uTMDPDF_lambdaLength real(dp)::uTMDPDF_tolerance integer::uTMDPDF_maxIteration character*8::uTMDPDF_order logical::uTMDPDF_makeGrid,uTMDPDF_withGluon real(dp)::uTMDPDF_grid_bMax,uTMDPDF_grid_xMin,uTMDPDF_grid_slope integer::uTMDPDF_grid_SizeX,uTMDPDF_grid_SizeB real(dp),allocatable::uTMDPDF_lambdaNP_init(:) logical::uTMDPDF_IsComposite !-------------------- uTMDFF parameters logical::include_uTMDFF integer::uTMDFF_lambdaLength real(dp)::uTMDFF_tolerance integer::uTMDFF_maxIteration character*8::uTMDFF_order logical::uTMDFF_makeGrid,uTMDFF_withGluon real(dp)::uTMDFF_grid_bMax,uTMDFF_grid_xMin,uTMDFF_grid_slope integer::uTMDFF_grid_SizeX,uTMDFF_grid_SizeB real(dp),allocatable::uTMDFF_lambdaNP_init(:) logical::uTMDFF_IsComposite !-------------------- lpTMDPDF parameters logical::include_lpTMDPDF integer::lpTMDPDF_lambdaLength real(dp)::lpTMDPDF_tolerance integer::lpTMDPDF_maxIteration character*8::lpTMDPDF_order logical::lpTMDPDF_makeGrid,lpTMDPDF_withGluon real(dp)::lpTMDPDF_grid_bMax,lpTMDPDF_grid_xMin,lpTMDPDF_grid_slope integer::lpTMDPDF_grid_SizeX,lpTMDPDF_grid_SizeB real(dp),allocatable::lpTMDPDF_lambdaNP_init(:) logical::lpTMDPDF_IsComposite !-------------------- SiversTMDPDF parameters logical::include_SiversTMDPDF integer::SiversTMDPDF_lambdaLength real(dp)::SiversTMDPDF_tolerance integer::SiversTMDPDF_maxIteration character*8::SiversTMDPDF_order logical::SiversTMDPDF_makeGrid,SiversTMDPDF_withGluon real(dp)::SiversTMDPDF_grid_bMax,SiversTMDPDF_grid_xMin,SiversTMDPDF_grid_slope integer::SiversTMDPDF_grid_SizeX,SiversTMDPDF_grid_SizeB real(dp),allocatable::SiversTMDPDF_lambdaNP_init(:) logical::SiversTMDPDF_IsComposite integer::number_of_SiversTMDPDFs integer,allocatable::enumeration_of_SiversTMDPDFs(:) !-------------------- wgtTMDPDF parameters logical::include_wgtTMDPDF integer::wgtTMDPDF_lambdaLength real(dp)::wgtTMDPDF_tolerance integer::wgtTMDPDF_maxIteration character*8::wgtTMDPDF_order logical::wgtTMDPDF_makeGrid,wgtTMDPDF_withGluon real(dp)::wgtTMDPDF_grid_bMax,wgtTMDPDF_grid_xMin,wgtTMDPDF_grid_slope integer::wgtTMDPDF_grid_SizeX,wgtTMDPDF_grid_SizeB real(dp),allocatable::wgtTMDPDF_lambdaNP_init(:) logical::wgtTMDPDF_IsComposite integer::number_of_wgtTMDPDFs integer,allocatable::enumeration_of_wgtTMDPDFs(:) !-------------------- TMDs parameters logical::include_TMDs !-------------------- TMDF parameters logical::include_TMDF real(dp)::TMDF_OGATAh,TMDF_tolerance real(dp)::TMDF_mass !-------------------- TMDs-inKT parameters logical::include_TMDs_inKT real(dp)::TMDs_inKT_OGATAh,TMDs_inKT_tolerance !-------------------- TMDX-DY parameters logical::include_TMDX_DY character*8::TMDX_DY_order real(dp)::TMDX_DY_tolerance integer::TMDX_DY_ptSECTION logical::TMDX_DY_exactX1X2,TMDX_DY_piResum,TMDX_DY_exactScale integer::TMDX_DY_numProc real::TMDX_DY_maxQbinSize !-------------------- TMDX-SIDIS parameters logical::include_TMDX_SIDIS character*8::TMDX_SIDIS_order real(dp)::TMDX_SIDIS_tolerance integer::TMDX_SIDIS_ptSECTION logical::TMDX_SIDIS_qTcorr,TMDX_SIDIS_M1corr,TMDX_SIDIS_M2corr,TMDX_SIDIS_qTinX1Z1corr,TMDX_SIDIS_exactScale integer::TMDX_SIDIS_numProc real(dp)::TMDX_SIDIS_toleranceZ,TMDX_SIDIS_toleranceX character(len=4)::TMDX_SIDIS_methodZ,TMDX_SIDIS_methodX !--------------------------------------------------- public::artemide_Setup_Default,artemide_Setup_fromFile,artemide_include,CreateConstantsFile,ReadConstantsFile,CheckConstantsFile public::Set_uPDF,Set_uFF,Set_lpPDF,Set_quarkMasses,Set_EWparameters public::Set_TMDR_order,Set_TMDR_evolutionType,Set_TMDR_lengthNParray public::Set_uTMDPDF,Set_uTMDPDF_order,Set_uTMDPDF_gridEvaluation,Set_uTMDPDF_lengthNParray public::Set_uTMDFF,Set_uTMDFF_order,Set_uTMDFF_gridEvaluation,Set_uTMDFF_lengthNParray public::Set_lpTMDPDF,Set_lpTMDPDF_order,Set_lpTMDPDF_gridEvaluation,Set_lpTMDPDF_lengthNParray !public::Set_hTMDPDF,Set_hTMDPDF_order,Set_hTMDPDF_gridEvaluation,Set_hTMDPDF_lengthNParray contains INCLUDE 'Code/aTMDe_setup/const-modification.f90' !!! subroutine artemide_Setup_Default(order) character(len=*),intent(in)::order outputLevel=2 call SetupDefault(trim(order)) end subroutine artemide_Setup_Default subroutine artemide_Setup_fromFile(file,prefix,order) character(len=*)::file character(len=*),optional::prefix character(len=*),optional::order !! first we set up the default definitions for LO outputLevel=2 if(present(order)) then call SetupDefault(trim(order)) else call SetupDefault('LO') end if if(present(prefix)) then call ReadConstantsFile(file,prefix) else call ReadConstantsFile(file) end if end subroutine artemide_Setup_fromFile !!! This subroutine set all parameters to their defaul value according to given order !!! It is called in any case, in order to make sure that all parameters are defined subroutine SetupDefault(order) character(len=*),intent(in)::order !---------------------Global definitions outputLevel=2 messageTrigger=6 initialize_NParrays=.false. include_EWinput=.true. !-----------------------physic parameters mCHARM=1.2700d0 !threashold mass for charm quark mBOTTOM=4.180d0 !threashold mass for bottom quark mTOP=172.90d0 !threashold mass for top quark mZ=91.1876d0 !pole mass for Z-boson GammaZ=2.4952d0 !width of Z-boson mW=80.379d0 !pole mass for W-boson GammaW=2.085d0 !width of W-boson mH=125.1d0 !pole mass for Higgs-boson GammaH=0.0042d0 !width of Higgs-boson [GeV] vevH=246.d0 !Higgs Vev mELECTRON=0.0005109989461d0 !mass of electron[GeV] mMUON=0.1056583745d0 !mass of muon[GeV] mTAU=1.77686d0 !mass of tau hc2=0.389379338d0 !transformation constant (hc)^2 GeV->mbarn alphaQED_MZ=127.955d0 !inverse alpha_QED at Z-boson mass alphaQED_MTAU=133.476d0 !inverse alpha_QED at TAU-lepton mass sW2=0.23122d0 !sin^2 theta_Weinberg !CKM matrix Vckm_UD=0.97420d0 Vckm_US=0.2243d0 Vckm_CD=0.218d0 Vckm_CS=0.997d0 Vckm_CB=0.0422d0 Vckm_UB=0.0394d0 !-------------------Parameters for uPDFs evaluation number_of_uPDFs=1 if(allocated(enumeration_of_uPDFs)) deallocate(enumeration_of_uPDFs) if(allocated(replicas_of_uPDFs)) deallocate(replicas_of_uPDFs) if(allocated(sets_of_uPDFs)) deallocate(sets_of_uPDFs) allocate(enumeration_of_uPDFs(1:1)) allocate(replicas_of_uPDFs(1:1)) allocate(sets_of_uPDFs(1:1)) enumeration_of_uPDFs=(/1/) replicas_of_uPDFs=(/0/) select case(order) case('LO','LO+') sets_of_uPDFs=(/trim('MMHT2014lo68cl')/) case('NLO','NLO+') sets_of_uPDFs=(/trim('MMHT2014nlo68cl')/) case('NNLO','NNLO+') sets_of_uPDFs=(/trim('MMHT2014nnlo68cl')/) end select !-------------------Parameters for uFFs evaluation ! by definition we do not initiate any FFs number_of_uFFs=0 if(allocated(enumeration_of_uFFs)) deallocate(enumeration_of_uFFs) if(allocated(replicas_of_uFFs)) deallocate(replicas_of_uFFs) if(allocated(sets_of_uFFs)) deallocate(sets_of_uFFs) allocate(enumeration_of_uFFs(1:1)) allocate(replicas_of_uFFs(1:1)) allocate(sets_of_uFFs(1:1)) enumeration_of_uFFs=(/-1/) replicas_of_uFFs=(/0/) sets_of_uFFs=(/trim('ABSENT')/) !-------------------Parameters for lpPDFs evaluation ! by definition we do not initiate any lpPDF number_of_lpPDFs=0 if(allocated(enumeration_of_lpPDFs)) deallocate(enumeration_of_lpPDFs) if(allocated(replicas_of_lpPDFs)) deallocate(replicas_of_lpPDFs) if(allocated(sets_of_lpPDFs)) deallocate(sets_of_lpPDFs) allocate(enumeration_of_lpPDFs(1:1)) allocate(replicas_of_lpPDFs(1:1)) allocate(sets_of_lpPDFs(1:1)) enumeration_of_lpPDFs=(/-1/) replicas_of_lpPDFs=(/0/) sets_of_lpPDFs=(/trim('ABSENT')/) !-------------------Parameters for hPDFs evaluation ! by definition we do not initiate any hPDF number_of_hPDFs=0 if(allocated(enumeration_of_hPDFs)) deallocate(enumeration_of_hPDFs) if(allocated(replicas_of_hPDFs)) deallocate(replicas_of_hPDFs) if(allocated(sets_of_hPDFs)) deallocate(sets_of_hPDFs) allocate(enumeration_of_hPDFs(1:1)) allocate(replicas_of_hPDFs(1:1)) allocate(sets_of_hPDFs(1:1)) enumeration_of_hPDFs=(/-1/) replicas_of_hPDFs=(/0/) sets_of_hPDFs=(/trim('ABSENT')/) !-------------------- parameters for TMDR include_TMDR=.true. TMDR_order=trim(order) TMDR_evolutionType=3 !1 = improved D solution ,2 = improved gamma solution, 3 = fixed mu TMDR_lambdaLength=2 call ReNewInitializationArray(TMDR_lambdaNP_init,TMDR_lambdaLength)! initialization values of parameters TMDR_tolerance=0.0001d0 !tolerance of searching for saddle point, numerical integration etc. !-------------------- parameters for UTMDPDF include_uTMDPDF=.true. uTMDPDF_order=trim(order) uTMDPDF_IsComposite=.false. uTMDPDF_makeGrid=.true. uTMDPDF_withGluon=.false. uTMDPDF_lambdaLength=2 call ReNewInitializationArray(uTMDPDF_lambdaNP_init,uTMDPDF_lambdaLength)! initialization values of parameters uTMDPDF_tolerance=0.0001d0 !tolerance (i.e. relative integration tolerance -- in convolution integrals) uTMDPDF_maxIteration=10000 !maxIteration for adaptive integration uTMDPDF_grid_xMin=0.00001d0 uTMDPDF_grid_bMax=100d0 uTMDPDF_grid_SizeX=250 uTMDPDF_grid_SizeB=750 uTMDPDF_grid_slope=10d0 !-------------------- parameters for UTMDFF include_uTMDFF=.false.!!! we do not initialize TMDFF by definition uTMDFF_order=trim(order) uTMDFF_IsComposite=.false. uTMDFF_makeGrid=.true. uTMDFF_withGluon=.false. uTMDFF_lambdaLength=1 call ReNewInitializationArray(uTMDFF_lambdaNP_init,uTMDFF_lambdaLength)! initialization values of parameters uTMDFF_tolerance=0.0001d0 !tolerance (i.e. relative integration tolerance -- in convolution integrals) uTMDFF_maxIteration=10000 !maxIteration for adaptive integration uTMDFF_grid_xMin=0.05d0 uTMDFF_grid_bMax=50d0 uTMDFF_grid_SizeX=250 uTMDFF_grid_SizeB=400 uTMDFF_grid_slope=10d0 !-------------------- parameters for lpTMDPDF include_lpTMDPDF=.false. !!! we do not initialize lpTMDPDF by definition lpTMDPDF_order=trim(order) lpTMDPDF_IsComposite=.false. lpTMDPDF_makeGrid=.true. lpTMDPDF_withGluon=.true. lpTMDPDF_lambdaLength=1 call ReNewInitializationArray(lpTMDPDF_lambdaNP_init,lpTMDPDF_lambdaLength)! initialization values of parameters lpTMDPDF_tolerance=0.0001d0 !tolerance (i.e. relative integration tolerance -- in convolution integrals) lpTMDPDF_maxIteration=10000 !maxIteration for adaptive integration lpTMDPDF_grid_xMin=0.00001d0 lpTMDPDF_grid_bMax=100d0 lpTMDPDF_grid_SizeX=250 lpTMDPDF_grid_SizeB=750 lpTMDPDF_grid_slope=10d0 !-------------------- parameters for SiversTMDPDF include_SiversTMDPDF=.false. !!! we do not initialize SiversTMDPDF by definition SiversTMDPDF_order=trim('LO') !!! by definition Sivers is tree-order SiversTMDPDF_IsComposite=.false. SiversTMDPDF_makeGrid=.false. !!! no need to make grid SiversTMDPDF_withGluon=.false. SiversTMDPDF_lambdaLength=1 call ReNewInitializationArray(SiversTMDPDF_lambdaNP_init,SiversTMDPDF_lambdaLength)! initialization values of parameters SiversTMDPDF_tolerance=0.0001d0 !tolerance (i.e. relative integration tolerance -- in convolution integrals) SiversTMDPDF_maxIteration=10000 !maxIteration for adaptive integration SiversTMDPDF_grid_xMin=0.00001d0 SiversTMDPDF_grid_bMax=100d0 SiversTMDPDF_grid_SizeX=250 SiversTMDPDF_grid_SizeB=750 SiversTMDPDF_grid_slope=10d0 number_of_SiversTMDPDFs=0 if(allocated(enumeration_of_SiversTMDPDFs)) deallocate(enumeration_of_SiversTMDPDFs) allocate(enumeration_of_SiversTMDPDFs(1:1)) enumeration_of_SiversTMDPDFs=(/-1/) !-------------------- parameters for wgtTMDPDF include_wgtTMDPDF=.false. wgtTMDPDF_order=trim('LO') wgtTMDPDF_IsComposite=.false. wgtTMDPDF_makeGrid=.true. wgtTMDPDF_withGluon=.false. wgtTMDPDF_lambdaLength=1 call ReNewInitializationArray(wgtTMDPDF_lambdaNP_init,wgtTMDPDF_lambdaLength)! initialization values of parameters wgtTMDPDF_tolerance=0.0001d0 !tolerance (i.e. relative integration tolerance -- in convolution integrals) wgtTMDPDF_maxIteration=10000 !maxIteration for adaptive integration wgtTMDPDF_grid_xMin=0.001d0 wgtTMDPDF_grid_bMax=100d0 wgtTMDPDF_grid_SizeX=250 wgtTMDPDF_grid_SizeB=500 wgtTMDPDF_grid_slope=10d0 number_of_wgtTMDPDFs=0 if(allocated(enumeration_of_wgtTMDPDFs)) deallocate(enumeration_of_wgtTMDPDFs) allocate(enumeration_of_wgtTMDPDFs(1:1)) enumeration_of_wgtTMDPDFs=(/-1/) !------------------ parameters for TMDs include_TMDs=.true. !------------------ parameters for TMDF include_TMDF=.true. TMDF_tolerance=0.0001d0 !tolerance (i.e. relative integration tolerance) TMDF_OGATAh=0.001d0 !Ogata quadrature integration step TMDF_mass=0.938272 !mass parameter that is used as reference dimension !------------------ parameters for TMDs-inKT include_TMDs_inKT=.false. TMDs_inKT_tolerance=0.0001d0 !tolerance (i.e. relative integration tolerance) TMDs_inKT_OGATAh=0.001d0 !Ogata quadrature integration step !------------------ parameters for TMDX-DY include_TMDX_DY=.true. TMDX_DY_tolerance=0.001d0 !tolerance (i.e. relative integration tolerance -- in kinematic integrals;) TMDX_DY_ptSECTION=4 !default number of sections for pt-bin integration TMDX_DY_maxQbinSize=30. !default maximum size of the Q-bin integration TMDX_DY_order=trim(order) TMDX_DY_exactX1X2=.true. TMDX_DY_piResum=.false. TMDX_DY_exactScale=.false. TMDX_DY_numProc=8 !------------------ parameters for TMDX-SIDIS include_TMDX_SIDIS=.false. TMDX_SIDIS_tolerance=0.001d0 !tolerance (i.e. relative integration tolerance -- in kinematic integrals;) TMDX_SIDIS_ptSECTION=4 !default number of sections for pt-bin integration TMDX_SIDIS_order=trim(order) TMDX_SIDIS_qTcorr=.true. TMDX_SIDIS_M1corr=.true. TMDX_SIDIS_M2corr=.true. TMDX_SIDIS_qTinX1Z1corr=.true. TMDX_SIDIS_exactScale=.false. TMDX_SIDIS_numProc=8 TMDX_SIDIS_toleranceZ=TMDX_SIDIS_tolerance TMDX_SIDIS_methodZ='SA' !SA=Simpson adaptive, S5=Simpson 5-point TMDX_SIDIS_toleranceX=TMDX_SIDIS_tolerance TMDX_SIDIS_methodX='SA' !SA=Simpson adaptive, S5=Simpson 5-point end subroutine SetupDefault !!! theck the file for compatibility with the current version !!! true= ver.FILE>=current version !!! false= ver.FILE<current version function CheckConstantsFile(file,prefix) character(len=*)::file character(len=*),optional::prefix character(len=516)::path logical::CheckConstantsFile integer::FILEversion if(present(prefix)) then path=trim(adjustl(prefix))//trim(adjustr(file)) else path=trim(adjustr(file)) end if !!!read the version of the file OPEN(UNIT=51, FILE=path, ACTION="read", STATUS="old") call MoveTO(51,'*0 ') call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) FILEversion CLOSE (51, STATUS='KEEP') if(FILEversion<inputVer) then CheckConstantsFile=.false. else CheckConstantsFile=.true. end if end function CheckConstantsFile !-------------------------------------------------------READ AND WRITE CONSTANTS FILE--------------------------------------- subroutine CreateConstantsFile(file,prefix) character(len=*)::file character(len=*),optional::prefix character(len=516)::path integer::values(1:8),i if(outputLevel>2) write(*,*) '-----------------------------------' if(outputLevel>1) write(*,*) 'aTMDe_setup: Creating setup file ...' if(present(prefix)) then path=trim(adjustl(prefix))//trim(adjustr(file)) else path=trim(adjustr(file)) end if if(outputLevel>2) write(*,*) ' path for constants-file:',path call date_and_time(values=values) OPEN(UNIT=51, FILE=path, ACTION="write", STATUS="replace") write(51,"('# Setup file for artemide')") write(51,"('# File generated by aTMDe_setup ',A)") version write(51,"('# File created at ',I3,':',I2,' (',I3,'/',I2,'/',I4,')')")values(5),values(6),values(3),values(2),values(1) write(51,"('# ')") write(51,"('# FORMAT: Lines started from * determine input parameter (*????), following line determine parameter value')") write(51,"(' ')") write(51,"(' ')") write(51,"('# ---------------------------------------------------------------------------')") write(51,"('# ---- GLOBAL PARAMETERS -----')") write(51,"('# ---------------------------------------------------------------------------')") write(51,"('*0 :')") write(51,"(' ')") write(51,"('*A : ---- Global I/O ----')") write(51,"('*p1 : Input file Version (used to check version compatibility)')") write(51,*) inputVer write(51,"('*p2 : Output level (0 = no output except critical, 1 = + WARNINGS, 2 = + info, 3 = + details)')") write(51,*) outputLevel write(51,"('*p3 : Message trigger (the number of continious non-critical warning before stop showing them)')") write(51,*) messageTrigger write(51,"(' ')") write(51,"('*B : ---- Universal physic parameters ----')") write(51,"('*p1 : Unit transformation constant (hc)^2 [GeV->mbarn]')") write(51,*) hc2 write(51,"(' ')") write(51,"('*C : ---- aTMDe-control parameters ----')") write(51,"('*p1 : initialize the modules by NP arrays')") write(51,*) initialize_NParrays write(51,"(' ')") write(51,"(' ')") write(51,"(' ')") write(51,"('# ---------------------------------------------------------------------------')") write(51,"('# ---- PARAMETERS OF QCDinput -----')") write(51,"('# ---------------------------------------------------------------------------')") write(51,"('*1 :')") write(51,"(' ')") write(51,"('*A : ---- quarks threashold masses ----')") write(51,"('*p1 : mass of charm-quark')") write(51,*) mCHARM write(51,"('*p2 : mass of bottom-quark')") write(51,*) mBOTTOM write(51,"('*p3 : mass of top-quark')") write(51,*) mTOP write(51,"(' ')") write(51,"('*B : ---- uPDF sets----')") write(51,"('*p1 : total number of PDFs to initialize (0= initialization is skipped)')") write(51,*) number_of_uPDFs write(51,"('*p2 : reference number for hadrons')") call writeShortIntegerList(51,enumeration_of_uPDFs) write(51,"('*p3 : LHAPDF set names for hadrons (line-by-line corresponding to reference number')") do i=1,number_of_uPDFs write(51,*) trim(sets_of_uPDFs(i)) end do write(51,"('*p4 : list of initialization replicas')") call writeShortIntegerList(51,replicas_of_uPDFs) write(51,"(' ')") write(51,"('*C : ---- uFF sets----')") write(51,"('*p1 : total number of FFs to initialize (0= initialization is skipped)')") write(51,*) number_of_uFFs write(51,"('*p2 : reference number for hadrons')") call writeShortIntegerList(51,enumeration_of_uFFs) write(51,"('*p3 : LHAPDF set names for hadrons (line-by-line corresponding to reference number')") do i=1,number_of_uFFs write(51,*) trim(sets_of_uFFs(i)) end do write(51,"('*p4 : list of initialization replicas')") call writeShortIntegerList(51,replicas_of_uFFs) write(51,"(' ')") write(51,"('*D : ----lpPDF sets----')") write(51,"('*p1 : total number of PDFs to initialize (0= initialization is skipped)')") write(51,*) number_of_lpPDFs write(51,"('*p2 : reference number for hadrons')") call writeShortIntegerList(51,enumeration_of_lpPDFs) write(51,"('*p3 : LHAPDF set names for hadrons (line-by-line corresponding to reference number')") do i=1,number_of_lpPDFs write(51,*) trim(sets_of_lpPDFs(i)) end do write(51,"('*p4 : list of initialization replicas')") call writeShortIntegerList(51,replicas_of_lpPDFs) write(51,"(' ')") write(51,"('*E : ----hPDF sets----')") write(51,"('*p1 : total number of PDFs to initialize (0= initialization is skipped)')") write(51,*) number_of_hPDFs write(51,"('*p2 : reference number for hadrons')") call writeShortIntegerList(51,enumeration_of_hPDFs) write(51,"('*p3 : LHAPDF set names for hadrons (line-by-line corresponding to reference number')") do i=1,number_of_hPDFs write(51,*) trim(sets_of_hPDFs(i)) end do write(51,"('*p4 : list of initialization replicas')") call writeShortIntegerList(51,replicas_of_hPDFs) write(51,"(' ')") write(51,"(' ')") write(51,"('# ---------------------------------------------------------------------------')") write(51,"('# ---- PARAMETERS OF EWinput -----')") write(51,"('# ---------------------------------------------------------------------------')") write(51,"('*2 :')") write(51,"('*p1 : initialize EWinput module')") write(51,*) include_EWinput write(51,"(' ')") write(51,"('*A : ---- EW coupling parameters ----')") write(51,"('*p1 : value of (alphaQED)^{-1} at MZ')") write(51,*) alphaQED_MZ write(51,"('*p2 : value of sin^2(theta_W)')") write(51,*) sW2 write(51,"('*p3 : values of CKM matrix (1-line:UD, US, UB, 2-line: CD, CS, CB)')") write(51,*) Vckm_UD,Vckm_US,Vckm_UB write(51,*) Vckm_CD,Vckm_CS,Vckm_CB write(51,"('*p4 : value of (alphaQED)^{-1} at MTAU')") write(51,*) alphaQED_MTAU write(51,"('*B : ---- Z-boson ----')") write(51,"('*p1 : mass of Z-boson [GeV]')") write(51,*) mZ write(51,"('*p2 : width of Z-boson [GeV]')") write(51,*) GammaZ write(51,"('*C : ---- W-boson ----')") write(51,"('*p1 : mass of W-boson [GeV]')") write(51,*) mW write(51,"('*p2 : width of W-boson [GeV]')") write(51,*) GammaW write(51,"('*D : ---- Higgs-boson ----')") write(51,"('*p1 : mass of Higgs-boson [GeV]')") write(51,*) mH write(51,"('*p2 : width of H-boson [GeV]')") write(51,*) GammaH write(51,"('*p3 : Vacuum expectation value (VEV) for Higgs potential [GeV]')") write(51,*) vevH write(51,"('*E : ---- Leptons ----')") write(51,"('*p1 : mass of electron [GeV]')") write(51,*) mELECTRON write(51,"('*p2 : mass of muon [GeV]')") write(51,*) mMUON write(51,"('*p3 : mass of tau-lepton [GeV]')") write(51,*) mTAU write(51,"(' ')") write(51,"(' ')") write(51,"('# ---------------------------------------------------------------------------')") write(51,"('# ---- PARAMETERS OF TMDR -----')") write(51,"('# ---------------------------------------------------------------------------')") write(51,"('*3 :')") write(51,"('*p1 : initialize TMDR module')") write(51,*) include_TMDR write(51,"(' ')") write(51,"('*A : ---- Main definitions ----')") write(51,"('*p1 : Order of evolution')") write(51,*) trim(TMDR_order) write(51,"('*p2 : Type of evolution solution (1 = improved D solution ,2 = improved gamma solution, 3 = fixed mu)')") write(51,*) TMDR_evolutionType write(51,"('*B : ---- Parameters of NP model ----')") write(51,"('*p1 : Length of lambdaNP')") write(51,*) TMDR_lambdaLength write(51,"('*p2 : Initialization parameters (in column)')") do i=1,TMDR_lambdaLength write(51,*) TMDR_lambdaNP_init(i) end do write(51,*) write(51,"('*C : ---- Numerical evaluation parameters ----')") write(51,"('*p1 : Tolerance (relative tolerance of convolution integral)')") write(51,*) TMDR_tolerance write(51,"(' ')") write(51,"(' ')") write(51,"('# ---------------------------------------------------------------------------')") write(51,"('# ---- PARAMETERS OF uTMDPDF -----')") write(51,"('# ---------------------------------------------------------------------------')") write(51,"('*4 :')") write(51,"('*p1 : initialize uTMDPDF module')") write(51,*) include_uTMDPDF write(51,"(' ')") write(51,"('*A : ---- Main definitions ----')") write(51,"('*p1 : Order of coefficient function')") write(51,*) trim(uTMDPDF_order) write(51,"('*p2 : Use composite TMD-function definition')") write(51,*) uTMDPDF_IsComposite write(51,"('*B : ---- Parameters of NP model ----')") write(51,"('*p1 : Length of lambdaNP')") write(51,*) uTMDPDF_lambdaLength write(51,"('*p2 : Initialization parameters (in column)')") do i=1,uTMDPDF_lambdaLength write(51,*) uTMDPDF_lambdaNP_init(i) end do write(51,"('*C : ---- Numerical evaluation parameters ----')") write(51,"('*p1 : Tolerance (relative tolerance of convolution integral)')") write(51,*) uTMDPDF_tolerance write(51,"('*p2 : Maximum number of iterations (for adaptive integration)')") write(51,*) uTMDPDF_maxIteration write(51,"('*D : ---- Grid preparation options ----')") write(51,"('*p1 : Prepare grid')") write(51,*) uTMDPDF_makeGrid write(51,"('*p2 : Include gluon TMDs into the grid')") write(51,*) uTMDPDF_withGluon write(51,"('*p3 : total number of PDFs added to the grid (by default it coincides with number of initialized PDFs)')") write(51,*) number_of_uPDFs write(51,"('*p4 : reference numbers for hadrons (by default it coincides with references for PDFs)')") call writeShortIntegerList(51,enumeration_of_uPDFs) write(51,"('*E : ---- Parameters of grid ----')") write(51,"('*p1 : xGrid_Min the minimal value of x in grid (max=1), make sure that it is enough)')") write(51,*) uTMDPDF_grid_xMin write(51,"('*p2 : the maximum bT in grid (min=0), for larger approximate extrapolation is done')") write(51,*) uTMDPDF_grid_bMax write(51,"('*p3 : GridSizeX (250 is enough for 10^-8 presicion, for grid up to 10^-5)')") write(51,*) uTMDPDF_grid_SizeX write(51,"('*p4 : GridSizeB (750 is enough for ~10^-6 presicion, 500 for 10^-5 presicion)')") write(51,*) uTMDPDF_grid_SizeB write(51,"('*p5 : slope scale of griding at smaller b (better not to change it :) )')") write(51,*) uTMDPDF_grid_slope write(51,"(' ')") write(51,"(' ')") write(51,"('# ---------------------------------------------------------------------------')") write(51,"('# ---- PARAMETERS OF uTMDFF -----')") write(51,"('# ---------------------------------------------------------------------------')") write(51,"('*5 :')") write(51,"('*p1 : initialize uTMDFF module')") write(51,*) include_uTMDFF write(51,"(' ')") write(51,"('*A : ---- Main definitions ----')") write(51,"('*p1 : Order of coefficient function')") write(51,*) trim(uTMDFF_order) write(51,"('*p2 : Use composite TMD-function definition')") write(51,*) uTMDFF_IsComposite write(51,"('*B : ---- Parameters of NP model ----')") write(51,"('*p1 : Length of lambdaNP')") write(51,*) uTMDFF_lambdaLength write(51,"('*p2 : Initialization parameters (in column)')") do i=1,uTMDFF_lambdaLength write(51,*) uTMDFF_lambdaNP_init(i) end do write(51,"('*C : ---- Numerical evaluation parameters ----')") write(51,"('*p1 : Tolerance (relative tolerance of convolution integral)')") write(51,*) uTMDFF_tolerance write(51,"('*p2 : Maximum number of iterations (for adaptive integration)')") write(51,*) uTMDFF_maxIteration write(51,"('*D : ---- Grid preparation options ----')") write(51,"('*p1 : Prepare grid')") write(51,*) uTMDFF_makeGrid write(51,"('*p2 : Include gluon TMDs into the grid')") write(51,*) uTMDFF_withGluon write(51,"('*p3 : total number of FFs added to the grid (by default it coincides with number of initialized FFs)')") write(51,*) number_of_uFFs write(51,"('*p4 : reference numbers for hadrons (by default it coincides with references for FFs)')") call writeShortIntegerList(51,enumeration_of_uFFs) write(51,"('*E : ---- Parameters of grid ----')") write(51,"('*p1 : xGrid_Min the minimal value of x in grid (max=1), make sure that it is enough)')") write(51,*) uTMDFF_grid_xMin write(51,"('*p2 : the maximum bT in grid (min=0), for larger approximate extrapolation is done')") write(51,*) uTMDFF_grid_bMax write(51,"('*p3 : GridSizeX (250 is enough for 10^-8 presicion, for grid up to 10^-5)')") write(51,*) uTMDFF_grid_SizeX write(51,"('*p4 : GridSizeB (750 is enough for ~10^-6 presicion, 500 for 10^-5 presicion)')") write(51,*) uTMDFF_grid_SizeB write(51,"('*p5 : slope scale of griding at smaller b (better not to change it :) )')") write(51,*) uTMDFF_grid_slope write(51,"(' ')") write(51,"(' ')") write(51,"('# ---------------------------------------------------------------------------')") write(51,"('# ---- PARAMETERS OF TMDs -----')") write(51,"('# ---------------------------------------------------------------------------')") write(51,"('*6 :')") write(51,"('*p1 : initialize TMDs module')") write(51,*) include_TMDs write(51,"(' ')") write(51,"(' ')") write(51,"('# ---------------------------------------------------------------------------')") write(51,"('# ---- PARAMETERS OF TMDF -----')") write(51,"('# ---------------------------------------------------------------------------')") write(51,"('*7 :')") write(51,"('*p1 : initialize TMDF module')") write(51,*) include_TMDF write(51,"('*A : ---- Numerical evaluation parameters ----')") write(51,"('*p1 : Tolerance (relative tolerance of summation in OGATA quadrature)')") write(51,*) TMDF_tolerance write(51,"('*p2 : Ogata quadrature integration step')") write(51,*) TMDF_OGATAh write(51,"('*B : ---- Global garameters of structure functions----')") write(51,"('*p1 : Mass parameter used in the structure function (mass of hadron)')") write(51,*) TMDF_mass write(51,"(' ')") write(51,"(' ')") write(51,"('# ---------------------------------------------------------------------------')") write(51,"('# ---- PARAMETERS OF TMDs-inKT -----')") write(51,"('# ---------------------------------------------------------------------------')") write(51,"('*8 :')") write(51,"('*p1 : initialize TMDs-inKT module')") write(51,*) include_TMDs_inKT write(51,"('*A : ---- Numerical evaluation parameters ----')") write(51,"('*p1 : Tolerance (relative tolerance of summation in OGATA quadrature)')") write(51,*) TMDs_inKT_tolerance write(51,"('*p2 : Ogata quadrature integration step')") write(51,*) TMDs_inKT_OGATAh write(51,"(' ')") write(51,"(' ')") write(51,"('# ---------------------------------------------------------------------------')") write(51,"('# ---- PARAMETERS OF TMDX-DY -----')") write(51,"('# ---------------------------------------------------------------------------')") write(51,"('*9 :')") write(51,"('*p1 : initialize TMDX-DY module')") write(51,*) include_TMDX_DY write(51,"('*A : ---- Main definitions ----')") write(51,"('*p1 : Order of coefficient function')") write(51,*) trim(TMDX_DY_order) write(51,"('*p2 : Use the exact values of x1 and x2 (include qT/Q correction)')") write(51,*) TMDX_DY_exactX1X2 write(51,"('*p3 : Use resummation of pi^2-corrections in hard coefficient')") write(51,*) TMDX_DY_piResum write(51,"('*p4 : Use the exact values for factorization scales (include qT/Q correction)')") write(51,*) TMDX_DY_exactScale write(51,"('*B : ---- Numerical evaluation parameters ----')") write(51,"('*p1 : Tolerance (relative tolerance for bin-integration routines, except pt-integration)')") write(51,*) TMDX_DY_tolerance write(51,"('*p2 : Minimal number of sections for pt-integration')") write(51,*) TMDX_DY_ptSECTION write(51,"('*p3 : Maximum size of the Q-bin integration (larger bins are desected)')") write(51,*) TMDX_DY_maxQbinSize write(51,"('*C : ---- Parameters for parallel evaluation (used only if compiled with openMP) ----')") write(51,"('*p1 : Maximum number of processors to use')") write(51,*) TMDX_DY_numProc write(51,"(' ')") write(51,"(' ')") write(51,"('# ---------------------------------------------------------------------------')") write(51,"('# ---- PARAMETERS OF TMDX-SIDIS -----')") write(51,"('# ---------------------------------------------------------------------------')") write(51,"('*10 :')") write(51,"('*p1 : initialize TMDX-SIDIS module')") write(51,*) include_TMDX_SIDIS write(51,"('*A : ---- Main definitions ----')") write(51,"('*p1 : Order of coefficient function')") write(51,*) trim(TMDX_SIDIS_order) write(51,"('*p2 : Use transverse momentum corrections in kinematics')") write(51,*) TMDX_SIDIS_qTcorr write(51,"('*p3 : Use target mass corrections in kinematics')") write(51,*) TMDX_SIDIS_M1corr write(51,"('*p4 : Use product mass corrections in kinematics')") write(51,*) TMDX_SIDIS_M2corr write(51,"('*p5 : Use transverse momentum corrections in x1 and z1')") write(51,*) TMDX_SIDIS_qTinX1Z1corr write(51,"('*p6 : Use the exact values for factorization scales (include qT/Q correction)')") write(51,*) TMDX_SIDIS_exactScale write(51,"('*B : ---- Numerical evaluation parameters ----')") write(51,"('*p1 : Tolerance (relative tolerance for bin-integration routines, except pt-integration)')") write(51,*) TMDX_SIDIS_tolerance write(51,"('*p2 : Minimal number of sections for pt-integration')") write(51,*) TMDX_SIDIS_ptSECTION write(51,"('*p3 : Tolerance for Z-integration (relative tolerance for Z-bin-integration routines)')") write(51,*) TMDX_SIDIS_toleranceZ write(51,"('*p4 : Method for Z-bin integration (see manual)')") write(51,*) TMDX_SIDIS_methodZ write(51,"('*p5 : Tolerance for X-integration (relative tolerance for X-bin-integration routines)')") write(51,*) TMDX_SIDIS_toleranceX write(51,"('*p6 : Method for X-bin integration (see manual)')") write(51,*) TMDX_SIDIS_methodX write(51,"('*C : ---- Parameters for parallel evaluation (used only if compiled with openMP) ----')") write(51,"('*p1 : Maximum number of processors to use')") write(51,*) TMDX_SIDIS_numProc write(51,"(' ')") write(51,"(' ')") write(51,"('# ---------------------------------------------------------------------------')") write(51,"('# ---- PARAMETERS OF lpTMDPDF -----')") write(51,"('# ---------------------------------------------------------------------------')") write(51,"('*11 :')") write(51,"('*p1 : initialize lpTMDPDF module')") write(51,*) include_lpTMDPDF write(51,"(' ')") write(51,"('*A : ---- Main definitions ----')") write(51,"('*p1 : Order of coefficient function')") write(51,*) trim(lpTMDPDF_order) write(51,"('*p2 : Use composite TMD-function definition')") write(51,*) lpTMDPDF_IsComposite write(51,"('*B : ---- Parameters of NP model ----')") write(51,"('*p1 : Length of lambdaNP')") write(51,*) lpTMDPDF_lambdaLength write(51,"('*p2 : Initialization parameters (in column)')") do i=1,lpTMDPDF_lambdaLength write(51,*) lpTMDPDF_lambdaNP_init(i) end do write(51,"('*C : ---- Numerical evaluation parameters ----')") write(51,"('*p1 : Tolerance (relative tolerance of convolution integral)')") write(51,*) lpTMDPDF_tolerance write(51,"('*p2 : Maximum number of iterations (for adaptive integration)')") write(51,*) lpTMDPDF_maxIteration write(51,"('*D : ---- Grid preparation options ----')") write(51,"('*p1 : Prepare grid')") write(51,*) lpTMDPDF_makeGrid write(51,"('*p2 : Include gluon TMDs into the grid')") write(51,*) lpTMDPDF_withGluon write(51,"('*p3 : total number of PDFs added to the grid (by default it coincides with number of initialized PDFs)')") write(51,*) number_of_lpPDFs write(51,"('*p4 : reference numbers for hadrons (by default it coincides with references for PDFs)')") call writeShortIntegerList(51,enumeration_of_lpPDFs) write(51,"('*E : ---- Parameters of grid ----')") write(51,"('*p1 : xGrid_Min the minimal value of x in grid (max=1), make sure that it is enough)')") write(51,*) lpTMDPDF_grid_xMin write(51,"('*p2 : the maximum bT in grid (min=0), for larger approximate extrapolation is done')") write(51,*) lpTMDPDF_grid_bMax write(51,"('*p3 : GridSizeX (250 is enough for 10^-8 presicion, for grid up to 10^-5)')") write(51,*) lpTMDPDF_grid_SizeX write(51,"('*p4 : GridSizeB (750 is enough for ~10^-6 presicion, 500 for 10^-5 presicion)')") write(51,*) lpTMDPDF_grid_SizeB write(51,"('*p5 : slope scale of griding at smaller b (better not to change it :) )')") write(51,*) lpTMDPDF_grid_slope write(51,"(' ')") write(51,"(' ')") write(51,"('# ---------------------------------------------------------------------------')") write(51,"('# ---- PARAMETERS OF SiversTMDPDF -----')") write(51,"('# ---------------------------------------------------------------------------')") write(51,"('*12 :')") write(51,"('*p1 : initialize SiversTMDPDF module')") write(51,*) include_SiversTMDPDF write(51,"(' ')") write(51,"('*A : ---- Main definitions ----')") write(51,"('*p1 : Order of coefficient function')") write(51,*) trim(SiversTMDPDF_order) write(51,"('*p2 : Use composite TMD-function definition')") write(51,*) SiversTMDPDF_IsComposite write(51,"('*B : ---- Parameters of NP model ----')") write(51,"('*p1 : Length of lambdaNP')") write(51,*) SiversTMDPDF_lambdaLength write(51,"('*p2 : Initialization parameters (in column)')") do i=1,SiversTMDPDF_lambdaLength write(51,*) SiversTMDPDF_lambdaNP_init(i) end do write(51,"('*C : ---- Numerical evaluation parameters ----')") write(51,"('*p1 : Tolerance (relative tolerance of convolution integral)')") write(51,*) SiversTMDPDF_tolerance write(51,"('*p2 : Maximum number of iterations (for adaptive integration)')") write(51,*) SiversTMDPDF_maxIteration write(51,"('*D : ---- Grid preparation options ----')") write(51,"('*p1 : Prepare grid')") write(51,*) SiversTMDPDF_makeGrid write(51,"('*p2 : Include gluon TMDs into the grid')") write(51,*) SiversTMDPDF_withGluon write(51,"('*p3 : total number of PDFs added to the grid')") write(51,*) number_of_SiversTMDPDFs write(51,"('*p4 : reference numbers for hadrons')") call writeShortIntegerList(51,enumeration_of_SiversTMDPDFs) write(51,"('*E : ---- Parameters of grid ----')") write(51,"('*p1 : xGrid_Min the minimal value of x in grid (max=1), make sure that it is enough)')") write(51,*) SiversTMDPDF_grid_xMin write(51,"('*p2 : the maximum bT in grid (min=0), for larger approximate extrapolation is done')") write(51,*) SiversTMDPDF_grid_bMax write(51,"('*p3 : GridSizeX (250 is enough for 10^-8 presicion, for grid up to 10^-5)')") write(51,*) SiversTMDPDF_grid_SizeX write(51,"('*p4 : GridSizeB (750 is enough for ~10^-6 presicion, 500 for 10^-5 presicion)')") write(51,*) SiversTMDPDF_grid_SizeB write(51,"('*p5 : slope scale of griding at smaller b (better not to change it :) )')") write(51,*) SiversTMDPDF_grid_slope write(51,"(' ')") write(51,"(' ')") write(51,"('# ---------------------------------------------------------------------------')") write(51,"('# ---- PARAMETERS OF wgtTMDPDF -----')") write(51,"('# ---------------------------------------------------------------------------')") write(51,"('*13 :')") write(51,"('*p1 : initialize wgtTMDPDF module')") write(51,*) include_wgtTMDPDF write(51,"(' ')") write(51,"('*A : ---- Main definitions ----')") write(51,"('*p1 : Order of coefficient function (for tw-2 part only)')") write(51,*) trim(wgtTMDPDF_order) write(51,"('*p2 : Use composite TMD-function definition')") write(51,*) wgtTMDPDF_IsComposite write(51,"('*B : ---- Parameters of NP model ----')") write(51,"('*p1 : Length of lambdaNP (used in fNP and tw-3 part)')") write(51,*) wgtTMDPDF_lambdaLength write(51,"('*p2 : Initialization parameters (in column)')") do i=1,wgtTMDPDF_lambdaLength write(51,*) wgtTMDPDF_lambdaNP_init(i) end do write(51,"('*C : ---- Numerical evaluation parameters ----')") write(51,"('*p1 : Tolerance (relative tolerance of convolution integral)')") write(51,*) wgtTMDPDF_tolerance write(51,"('*p2 : Maximum number of iterations (for adaptive integration)')") write(51,*) wgtTMDPDF_maxIteration write(51,"('*D : ---- Grid preparation options ----')") write(51,"('*p1 : Prepare grid')") write(51,*) wgtTMDPDF_makeGrid write(51,"('*p2 : Include gluon TMDs into the grid')") write(51,*) wgtTMDPDF_withGluon write(51,"('*p3 : total number of PDFs added to the grid')") write(51,*) number_of_wgtTMDPDFs write(51,"('*p4 : reference numbers for hadrons')") call writeShortIntegerList(51,enumeration_of_wgtTMDPDFs) write(51,"('*E : ---- Parameters of grid ----')") write(51,"('*p1 : xGrid_Min the minimal value of x in grid (max=1), make sure that it is enough)')") write(51,*) wgtTMDPDF_grid_xMin write(51,"('*p2 : the maximum bT in grid (min=0), for larger approximate extrapolation is done')") write(51,*) wgtTMDPDF_grid_bMax write(51,"('*p3 : GridSizeX (250 is enough for 10^-8 presicion, for grid up to 10^-5)')") write(51,*) wgtTMDPDF_grid_SizeX write(51,"('*p4 : GridSizeB (750 is enough for ~10^-6 presicion, 500 for 10^-5 presicion)')") write(51,*) wgtTMDPDF_grid_SizeB write(51,"('*p5 : slope scale of griding at smaller b (better not to change it :) )')") write(51,*) wgtTMDPDF_grid_slope CLOSE (51, STATUS='KEEP') if(outputLevel>1) write(*,*) 'aTMDe_setup: Constans file is made.' end subroutine CreateConstantsFile subroutine ReadConstantsFile(file,prefix) character(len=*)::file character(len=*),optional::prefix character(len=516)::path !!!! this is version of input file. it is read first and then result is compared with the current ID !!!! It suppose to make compatibility betwen versions integer::FILEversion integer::i logical::file_exists if(outputLevel>2) write(*,*) '-----------------------------------' if(outputLevel>1) write(*,*) 'aTMDe_setup: Reading setup file ...' if(present(prefix)) then path=trim(adjustl(prefix))//trim(adjustr(file)) else path=trim(adjustr(file)) end if if(outputLevel>1) write(*,*)' path:', color(trim(path),c_yellow) INQUIRE(FILE=path, EXIST=file_exists) if(.not.file_exists) then write(*,*) color('Constans file is not found.',c_red_bold) return end if OPEN(UNIT=51, FILE=path, ACTION="read", STATUS="old") !# ---- GLOBAL PARAMETERS ----- call MoveTO(51,'*0 ') call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) FILEversion if(FILEversion>inputVer) then if(outputLevel>0) write(*,*) color('aTMDe_setup: Version of input file(',c_red_bold), & color(int4ToStr(FILEversion),c_red_bold),& color(') newer than the current version of code(',c_red_bold),& color(int4ToStr(inputVer),c_red_bold),& color(')',c_red_bold) if(outputLevel>0) write(*,*) color('aTMDe_setup: UPDATE ARTEMIDE!',c_red_bold) if(outputLevel>0) write(*,*) color('aTMDe_setup: UPDATE ARTEMIDE!',c_red_bold) if(outputLevel>0) write(*,*) 'aTMDe_setup: Attempt to load...' else if(FILEversion<inputVer) then if(outputLevel>0) write(*,*) color('aTMDe_setup: Version of input file(',c_red_bold), & color(int4ToStr(FILEversion),c_red_bold),& color(') older than the current version of code(',c_red_bold),& color(int4ToStr(inputVer),c_red_bold),& color(')',c_red_bold) if(outputLevel>0) write(*,*) 'aTMDe_setup: Attempt to load...' end if call MoveTO(51,'*p2 ') read(51,*) outputLevel call MoveTO(51,'*p3 ') read(51,*) messageTrigger call MoveTO(51,'*B ') call MoveTO(51,'*p1 ') read(51,*) hc2 if(FILEversion>=11) then call MoveTO(51,'*C ') call MoveTO(51,'*p1 ') read(51,*) initialize_NParrays end if !# ---- PARAMETERS OF QCDinput ----- call MoveTO(51,'*1 ') call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) mCHARM call MoveTO(51,'*p2 ') read(51,*) mBOTTOM if(FILEversion>3) then call MoveTO(51,'*p3 ') read(51,*) mTOP end if !-------PDF for uTMDPDF call MoveTO(51,'*B ') call MoveTO(51,'*p1 ') read(51,*) number_of_uPDFs if(allocated(enumeration_of_uPDFs)) deallocate(enumeration_of_uPDFs) if(allocated(replicas_of_uPDFs)) deallocate(replicas_of_uPDFs) if(allocated(sets_of_uPDFs)) deallocate(sets_of_uPDFs) allocate(enumeration_of_uPDFs(1:number_of_uPDFs)) allocate(sets_of_uPDFs(1:number_of_uPDFs)) allocate(replicas_of_uPDFs(1:number_of_uPDFs)) call MoveTO(51,'*p2 ') read(51,*) enumeration_of_uPDFs call MoveTO(51,'*p3 ') do i=1,number_of_uPDFs read(51,*) sets_of_uPDFs(i) end do call MoveTO(51,'*p4 ') read(51,*) replicas_of_uPDFs !-------FF for uTMDFF call MoveTO(51,'*C ') call MoveTO(51,'*p1 ') read(51,*) number_of_uFFs if(allocated(enumeration_of_uFFs)) deallocate(enumeration_of_uFFs) if(allocated(replicas_of_uFFs)) deallocate(replicas_of_uFFs) if(allocated(sets_of_uFFs)) deallocate(sets_of_uFFs) allocate(enumeration_of_uFFs(1:number_of_uFFs)) allocate(sets_of_uFFs(1:number_of_uFFs)) allocate(replicas_of_uFFs(1:number_of_uFFs)) call MoveTO(51,'*p2 ') read(51,*) enumeration_of_uFFs call MoveTO(51,'*p3 ') do i=1,number_of_uFFs read(51,*) sets_of_uFFs(i) end do call MoveTO(51,'*p4 ') read(51,*) replicas_of_uFFs if(FILEversion>=3) then !-------PDF for lpTMDPDF call MoveTO(51,'*D ') call MoveTO(51,'*p1 ') read(51,*) number_of_lpPDFs if(allocated(enumeration_of_lpPDFs)) deallocate(enumeration_of_lpPDFs) if(allocated(replicas_of_lpPDFs)) deallocate(replicas_of_lpPDFs) if(allocated(sets_of_lpPDFs)) deallocate(sets_of_lpPDFs) allocate(enumeration_of_lpPDFs(1:number_of_lpPDFs)) allocate(sets_of_lpPDFs(1:number_of_lpPDFs)) allocate(replicas_of_lpPDFs(1:number_of_lpPDFs)) call MoveTO(51,'*p2 ') read(51,*) enumeration_of_lpPDFs call MoveTO(51,'*p3 ') do i=1,number_of_lpPDFs read(51,*) sets_of_lpPDFs(i) end do call MoveTO(51,'*p4 ') read(51,*) replicas_of_lpPDFs end if if(FILEversion>=18) then !-------helicity PDF call MoveTO(51,'*E ') call MoveTO(51,'*p1 ') read(51,*) number_of_hPDFs if(allocated(enumeration_of_hPDFs)) deallocate(enumeration_of_hPDFs) if(allocated(replicas_of_hPDFs)) deallocate(replicas_of_hPDFs) if(allocated(sets_of_hPDFs)) deallocate(sets_of_hPDFs) allocate(enumeration_of_hPDFs(1:number_of_hPDFs)) allocate(sets_of_hPDFs(1:number_of_hPDFs)) allocate(replicas_of_hPDFs(1:number_of_hPDFs)) call MoveTO(51,'*p2 ') read(51,*) enumeration_of_hPDFs call MoveTO(51,'*p3 ') do i=1,number_of_hPDFs read(51,*) sets_of_hPDFs(i) end do call MoveTO(51,'*p4 ') read(51,*) replicas_of_hPDFs end if !# ---- PARAMETERS OF EWinput ----- call MoveTO(51,'*2 ') call MoveTO(51,'*p1 ') read(51,*) include_EWinput call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) alphaQED_MZ call MoveTO(51,'*p2 ') read(51,*) sW2 call MoveTO(51,'*p3 ') read(51,*) Vckm_UD,Vckm_US,Vckm_UB read(51,*) Vckm_CD,Vckm_CS,Vckm_CB if(FILEversion>=14) then call MoveTO(51,'*p4 ') read(51,*) alphaQED_MTAU end if call MoveTO(51,'*B ') call MoveTO(51,'*p1 ') read(51,*) mZ call MoveTO(51,'*p2 ') read(51,*) GammaZ call MoveTO(51,'*C ') call MoveTO(51,'*p1 ') read(51,*) mW call MoveTO(51,'*p2 ') read(51,*) GammaW if(FILEversion>=5) then call MoveTO(51,'*D ') call MoveTO(51,'*p1 ') read(51,*) mH call MoveTO(51,'*p2 ') read(51,*) GammaH call MoveTO(51,'*p3 ') read(51,*) vevH end if if(FILEversion>=13) then call MoveTO(51,'*E ') call MoveTO(51,'*p1 ') read(51,*) mELECTRON call MoveTO(51,'*p2 ') read(51,*) mMUON call MoveTO(51,'*p3 ') read(51,*) mTAU end if !# ---- PARAMETERS OF TMDR ----- call MoveTO(51,'*3 ') call MoveTO(51,'*p1 ') read(51,*) include_TMDR call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) TMDR_order call MoveTO(51,'*p2 ') read(51,*) TMDR_evolutionType if((inputVer<2 .and. TMDR_evolutionType>=4) .or. (inputVer>=14 .and. TMDR_evolutionType>=4)) then if(outputLevel>0) write(*,*) color('aTMDe_setup: mismatch in TMDR_evolutionType (3-A-p2). Set to 3',c_red) TMDR_evolutionType=3 end if call MoveTO(51,'*B ') call MoveTO(51,'*p1 ') read(51,*) TMDR_lambdaLength call ReNewInitializationArray(TMDR_lambdaNP_init,TMDR_lambdaLength)!!!!we need to redo (and reallocate) the initialization of the NP-array if(FILEversion>=10) then call MoveTO(51,'*p2 ') do i=1,TMDR_lambdaLength read(51,*) TMDR_lambdaNP_init(i) end do end if call MoveTO(51,'*C ') call MoveTO(51,'*p1 ') read(51,*) TMDR_tolerance !# ---- PARAMETERS OF uTMDPDF ----- call MoveTO(51,'*4 ') call MoveTO(51,'*p1 ') read(51,*) include_uTMDPDF call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) uTMDPDF_order if(FILEversion>=12) then call MoveTO(51,'*p2 ') read(51,*) uTMDPDF_IsComposite end if call MoveTO(51,'*B ') call MoveTO(51,'*p1 ') read(51,*) uTMDPDF_lambdaLength call ReNewInitializationArray(uTMDPDF_lambdaNP_init,uTMDPDF_lambdaLength)!!!!we need to redo (and reallocate) the initialization of the NP-array if(FILEversion>=10) then call MoveTO(51,'*p2 ') do i=1,uTMDPDF_lambdaLength read(51,*) uTMDPDF_lambdaNP_init(i) end do end if call MoveTO(51,'*C ') call MoveTO(51,'*p1 ') read(51,*) uTMDPDF_tolerance call MoveTO(51,'*p2 ') read(51,*) uTMDPDF_maxIteration call MoveTO(51,'*D ') call MoveTO(51,'*p1 ') read(51,*) uTMDPDF_makeGrid call MoveTO(51,'*p2 ') read(51,*) uTMDPDF_withGluon call MoveTO(51,'*p3 ') read(51,*) i if(i/=number_of_uPDFs) then if(outputLevel>0) write(*,*) ' ' if(outputLevel>0) write(*,*) color('ESSENTIAL INCONSITENCY: the number of uPDFs is unequal to the number of uTMDPDFs',c_red) if(outputLevel>0) write(*,*) color(' information on the number of uTMDPDFs is ignored',c_red) if(outputLevel>0) write(*,*) ' ' end if call MoveTO(51,'*E ') call MoveTO(51,'*p1 ') read(51,*) uTMDPDF_grid_xMin call MoveTO(51,'*p2 ') read(51,*) uTMDPDF_grid_bMax call MoveTO(51,'*p3 ') read(51,*) uTMDPDF_grid_SizeX call MoveTO(51,'*p4 ') read(51,*) uTMDPDF_grid_SizeB call MoveTO(51,'*p5 ') read(51,*) uTMDPDF_grid_slope !# ---- PARAMETERS OF uTMDFF ----- call MoveTO(51,'*5 ') call MoveTO(51,'*p1 ') read(51,*) include_uTMDFF call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) uTMDFF_order if(FILEversion>=12) then call MoveTO(51,'*p2 ') read(51,*) uTMDFF_IsComposite end if call MoveTO(51,'*B ') call MoveTO(51,'*p1 ') read(51,*) uTMDFF_lambdaLength call ReNewInitializationArray(uTMDFF_lambdaNP_init,uTMDFF_lambdaLength)!!!!we need to redo (and reallocate) the initialization of the NP-array if(FILEversion>=10) then call MoveTO(51,'*p2 ') do i=1,uTMDFF_lambdaLength read(51,*) uTMDFF_lambdaNP_init(i) end do end if call MoveTO(51,'*C ') call MoveTO(51,'*p1 ') read(51,*) uTMDFF_tolerance call MoveTO(51,'*p2 ') read(51,*) uTMDFF_maxIteration call MoveTO(51,'*D ') call MoveTO(51,'*p1 ') read(51,*) uTMDFF_makeGrid call MoveTO(51,'*p2 ') read(51,*) uTMDFF_withGluon call MoveTO(51,'*p3 ') read(51,*) i if(i/=number_of_uFFs) then if(outputLevel>0) write(*,*) ' ' if(outputLevel>0) write(*,*) color('ESSENTIAL INCONSITENCY: number of uFFs unequal uTMDFFs',c_red) if(outputLevel>0) write(*,*) color(' information on number of uTMDFFs ignored',c_red) if(outputLevel>0) write(*,*) ' ' end if call MoveTO(51,'*E ') call MoveTO(51,'*p1 ') read(51,*) uTMDFF_grid_xMin call MoveTO(51,'*p2 ') read(51,*) uTMDFF_grid_bMax call MoveTO(51,'*p3 ') read(51,*) uTMDFF_grid_SizeX call MoveTO(51,'*p4 ') read(51,*) uTMDFF_grid_SizeB call MoveTO(51,'*p5 ') read(51,*) uTMDFF_grid_slope !# ---- PARAMETERS OF TMDs ----- call MoveTO(51,'*6 ') call MoveTO(51,'*p1 ') read(51,*) include_TMDs !# ---- PARAMETERS OF TMDF ----- call MoveTO(51,'*7 ') call MoveTO(51,'*p1 ') read(51,*) include_TMDF call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) TMDF_tolerance call MoveTO(51,'*p2 ') read(51,*) TMDF_OGATAh if(FILEversion>=16) then call MoveTO(51,'*B ') call MoveTO(51,'*p1 ') read(51,*) TMDF_mass end if !# ---- PARAMETERS OF TMDs-inKT ----- call MoveTO(51,'*8 ') call MoveTO(51,'*p1 ') read(51,*) include_TMDs_inKT call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) TMDs_inKT_tolerance call MoveTO(51,'*p2 ') read(51,*) TMDs_inKT_OGATAh !# ---- PARAMETERS OF TMDX-DY ----- call MoveTO(51,'*9 ') call MoveTO(51,'*p1 ') read(51,*) include_TMDX_DY call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) TMDX_DY_order call MoveTO(51,'*p2 ') read(51,*) TMDX_DY_exactX1X2 if(FILEversion>=6) then call MoveTO(51,'*p3 ') read(51,*) TMDX_DY_piResum end if if(FILEversion>=17) then call MoveTO(51,'*p4 ') read(51,*) TMDX_DY_exactScale end if call MoveTO(51,'*B ') call MoveTO(51,'*p1 ') read(51,*) TMDX_DY_tolerance call MoveTO(51,'*p2 ') read(51,*) TMDX_DY_ptSECTION if(FILEversion>=21) then call MoveTO(51,'*p3 ') read(51,*) TMDX_DY_maxQbinSize end if call MoveTO(51,'*C ') call MoveTO(51,'*p1 ') read(51,*) TMDX_DY_numProc !# ---- PARAMETERS OF TMDX-SIDIS ----- call MoveTO(51,'*10 ') call MoveTO(51,'*p1 ') read(51,*) include_TMDX_SIDIS call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) TMDX_SIDIS_order call MoveTO(51,'*p2 ') read(51,*) TMDX_SIDIS_qTcorr call MoveTO(51,'*p3 ') read(51,*) TMDX_SIDIS_M1corr call MoveTO(51,'*p4 ') read(51,*) TMDX_SIDIS_M2corr if(FILEversion>=9) then call MoveTO(51,'*p5 ') read(51,*) TMDX_SIDIS_qTinX1Z1corr end if if(FILEversion>=20) then call MoveTO(51,'*p6 ') read(51,*) TMDX_SIDIS_exactScale end if call MoveTO(51,'*B ') call MoveTO(51,'*p1 ') read(51,*) TMDX_SIDIS_tolerance call MoveTO(51,'*p2 ') read(51,*) TMDX_SIDIS_ptSECTION if(FILEversion>=7) then call MoveTO(51,'*p3 ') read(51,*) TMDX_SIDIS_toleranceZ call MoveTO(51,'*p4 ') read(51,*) TMDX_SIDIS_methodZ end if if(FILEversion>=8) then call MoveTO(51,'*p5 ') read(51,*) TMDX_SIDIS_toleranceX call MoveTO(51,'*p6 ') read(51,*) TMDX_SIDIS_methodX end if call MoveTO(51,'*C ') call MoveTO(51,'*p1 ') read(51,*) TMDX_SIDIS_numProc if(FILEversion>=3) then !# ---- PARAMETERS OF lpTMDPDF ----- call MoveTO(51,'*11 ') call MoveTO(51,'*p1 ') read(51,*) include_lpTMDPDF call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) lpTMDPDF_order if(FILEversion>=12) then call MoveTO(51,'*p2 ') read(51,*) lpTMDPDF_IsComposite end if call MoveTO(51,'*B ') call MoveTO(51,'*p1 ') read(51,*) lpTMDPDF_lambdaLength call ReNewInitializationArray(lpTMDPDF_lambdaNP_init,lpTMDPDF_lambdaLength)!!!!we need to redo (and reallocate) the initialization of the NP-array if(FILEversion>=10) then call MoveTO(51,'*p2 ') do i=1,lpTMDPDF_lambdaLength read(51,*) lpTMDPDF_lambdaNP_init(i) end do end if call MoveTO(51,'*C ') call MoveTO(51,'*p1 ') read(51,*) lpTMDPDF_tolerance call MoveTO(51,'*p2 ') read(51,*) lpTMDPDF_maxIteration call MoveTO(51,'*D ') call MoveTO(51,'*p1 ') read(51,*) lpTMDPDF_makeGrid call MoveTO(51,'*p2 ') read(51,*) lpTMDPDF_withGluon call MoveTO(51,'*p3 ') read(51,*) i if(i/=number_of_lpPDFs) then if(outputLevel>0) write(*,*) ' ' if(outputLevel>0) write(*,*) color(& 'ESSENTIAL INCONSITENCY: the number of lpPDFs is unequal to the number of lpTMDPDFs',c_red) if(outputLevel>0) write(*,*) color(' information on the number of lpTMDPDFs is ignored',c_red) if(outputLevel>0) write(*,*) ' ' end if call MoveTO(51,'*E ') call MoveTO(51,'*p1 ') read(51,*) lpTMDPDF_grid_xMin call MoveTO(51,'*p2 ') read(51,*) lpTMDPDF_grid_bMax call MoveTO(51,'*p3 ') read(51,*) lpTMDPDF_grid_SizeX call MoveTO(51,'*p4 ') read(51,*) lpTMDPDF_grid_SizeB call MoveTO(51,'*p5 ') read(51,*) lpTMDPDF_grid_slope else write(*,*) 'aTMDe_setup: parameters of lin.pol.gluons set default. (const-ver. < 3)' end if if(FILEversion>=15) then !# ---- PARAMETERS OF SiversTMDPDF ----- call MoveTO(51,'*12 ') call MoveTO(51,'*p1 ') read(51,*) include_SiversTMDPDF call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) SiversTMDPDF_order call MoveTO(51,'*p2 ') read(51,*) SiversTMDPDF_IsComposite call MoveTO(51,'*B ') call MoveTO(51,'*p1 ') read(51,*) SiversTMDPDF_lambdaLength call ReNewInitializationArray(SiversTMDPDF_lambdaNP_init,SiversTMDPDF_lambdaLength)!!!!we need to redo (and reallocate) the initialization of the NP-array call MoveTO(51,'*p2 ') do i=1,SiversTMDPDF_lambdaLength read(51,*) SiversTMDPDF_lambdaNP_init(i) end do call MoveTO(51,'*C ') call MoveTO(51,'*p1 ') read(51,*) SiversTMDPDF_tolerance call MoveTO(51,'*p2 ') read(51,*) SiversTMDPDF_maxIteration call MoveTO(51,'*D ') call MoveTO(51,'*p1 ') read(51,*) SiversTMDPDF_makeGrid call MoveTO(51,'*p2 ') read(51,*) SiversTMDPDF_withGluon call MoveTO(51,'*p3 ') read(51,*) number_of_SiversTMDPDFs if(allocated(enumeration_of_SiversTMDPDFs)) deallocate(enumeration_of_SiversTMDPDFs) allocate(enumeration_of_SiversTMDPDFs(1:number_of_SiversTMDPDFs)) call MoveTO(51,'*p4 ') read(51,*) enumeration_of_SiversTMDPDFs call MoveTO(51,'*E ') call MoveTO(51,'*p1 ') read(51,*) SiversTMDPDF_grid_xMin call MoveTO(51,'*p2 ') read(51,*) SiversTMDPDF_grid_bMax call MoveTO(51,'*p3 ') read(51,*) SiversTMDPDF_grid_SizeX call MoveTO(51,'*p4 ') read(51,*) SiversTMDPDF_grid_SizeB call MoveTO(51,'*p5 ') read(51,*) SiversTMDPDF_grid_slope else write(*,*) 'aTMDe_setup: parameters of Sivers functions set default. (const-ver. < 15)' end if if(FILEversion>=19) then !# ---- PARAMETERS OF wgtTMDPDF ----- call MoveTO(51,'*13 ') call MoveTO(51,'*p1 ') read(51,*) include_wgtTMDPDF call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) wgtTMDPDF_order call MoveTO(51,'*p2 ') read(51,*) wgtTMDPDF_IsComposite call MoveTO(51,'*B ') call MoveTO(51,'*p1 ') read(51,*) wgtTMDPDF_lambdaLength call ReNewInitializationArray(wgtTMDPDF_lambdaNP_init,wgtTMDPDF_lambdaLength)!!!!we need to redo (and reallocate) the initialization of the NP-array call MoveTO(51,'*p2 ') do i=1,wgtTMDPDF_lambdaLength read(51,*) wgtTMDPDF_lambdaNP_init(i) end do call MoveTO(51,'*C ') call MoveTO(51,'*p1 ') read(51,*) wgtTMDPDF_tolerance call MoveTO(51,'*p2 ') read(51,*) wgtTMDPDF_maxIteration call MoveTO(51,'*D ') call MoveTO(51,'*p1 ') read(51,*) wgtTMDPDF_makeGrid call MoveTO(51,'*p2 ') read(51,*) wgtTMDPDF_withGluon call MoveTO(51,'*p3 ') read(51,*) number_of_wgtTMDPDFs if(allocated(enumeration_of_wgtTMDPDFs)) deallocate(enumeration_of_wgtTMDPDFs) allocate(enumeration_of_wgtTMDPDFs(1:number_of_wgtTMDPDFs)) call MoveTO(51,'*p4 ') read(51,*) enumeration_of_wgtTMDPDFs call MoveTO(51,'*E ') call MoveTO(51,'*p1 ') read(51,*) wgtTMDPDF_grid_xMin call MoveTO(51,'*p2 ') read(51,*) wgtTMDPDF_grid_bMax call MoveTO(51,'*p3 ') read(51,*) wgtTMDPDF_grid_SizeX call MoveTO(51,'*p4 ') read(51,*) wgtTMDPDF_grid_SizeB call MoveTO(51,'*p5 ') read(51,*) wgtTMDPDF_grid_slope else write(*,*) 'aTMDe_setup: parameters of worm-geat T functions set default. (const-ver. < 19)' end if CLOSE (51, STATUS='KEEP') if(outputLevel>1) write(*,*) color('aTMDe_setup: constants-file loaded sucessfully.',c_green_bold) end subroutine ReadConstantsFile !-------------------------------------------------------------- !!!! this subtroutine kill re allocate the array, and sets its values as (2,0,0,0,...) !!!! used for empty initialization arrays subroutine ReNewInitializationArray(arr,n) real(dp),allocatable,intent(out)::arr(:) integer::n,i if(allocated(arr)) deallocate(arr) allocate(arr(1:n)) arr(1)=2d0 do i=2,n arr(i)=0d0 end do end subroutine ReNewInitializationArray end module aTMDe_Setup
67,371
39.806784
170
f90
artemide-public
artemide-public-master/src/lpTMDPDF.f90
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! arTeMiDe 2.01 ! ! Evaluation of the linearly-polarized gluon TMD PDF at low normalization point in zeta-prescription. ! ! if you use this module please, quote ????.???? ! ! ! A.Vladimirov (13.06.2016) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! module lpTMDPDF use aTMDe_Numerics use IO_functions use QCDinput use lpTMDPDF_model implicit none !------------------------LOCALs ----------------------------------------------- private !Current version of module character (len=8),parameter :: moduleName="lpTMDPDF" character (len=5),parameter :: version="v2.05" !Last appropriate version of constants-file integer,parameter::inputver=12 INCLUDE 'Tables/G7K15.f90' !--------------------------------Working variables-----------------------------------------------!--- general logical:: started=.false. !! Level of output !! 0=only critical !! 1=initialization details !! 2=WARNINGS integer::outputLevel=2 !! variable that count number of WRNING mesagges. In order not to spam too much integer::messageTrigger=6 !!! The global order which is used in programm ! it is set by SetOrderForC subroutine ! 0=LO, 1=NLO, 2=NNLO integer :: order_global ! integer::lambdaNPlength real(dp),dimension(:),allocatable::lambdaNP real(dp),dimension(:),allocatable::lambdaNP_grid !!! this is the value of lambda on which the grid is build real(dp)::c4_global!!!this is the variation constant for mu_OPE !!!Parameteris of numerics real(dp) :: tolerance=0.0001d0!!! relative tolerance of the integration integer :: maxIteration=5000 !------------------------------Variables for coefficient function etc------------------------------- !!!!!Coefficient lists integer,parameter::parametrizationLength=14 !! { 1/x, log[x]/x !exact !! Log[x], log[x]^2 !exact !! 1 (exact), (1-x), x(1-x) !! (1-x)Log[1-x]/x, x Log[x], x^2 Log[x] !! (1-x) Log[1-x], (1-x)^2 Log[1-x] !! Log[x]^2Log[1-x],Log[x]Log[1-x]^2 !! The Lmu and Nf parts are exact the later parts are fitted real(dp),dimension(1:parametrizationLength) :: Coeff_q_q, Coeff_q_g, Coeff_g_q, Coeff_g_g, Coeff_q_qb, Coeff_q_qp !! This is list of coefficeints for the encoding the singular at x->1 !! { 1/(1-x), (Log[1-x]/(1-x))_+, (Log[1-x]^2/(1-x))_+,} !! they are zero!!! real(dp), dimension(1:3) :: CoeffSing1_q_q,CoeffSing1_g_g integer :: counter,messageCounter INCLUDE 'Code/Twist2/Twist2Convolution-VAR.f90' INCLUDE 'Code/Grids/TMDGrid-B-VAR.f90' !!--------------------------------- variables for the griding the TMD.--------------------------------------------- logical :: gridReady!!!!indicator that grid is ready to use. If it is .true., the TMD calculated from the grid logical :: prepareGrid!!!idicator that grid must be prepared logical,parameter :: withGluon=.true.!!!indicator the gluon is needed in the grid logical :: IsFnpZdependent !!! indicator that the grid must be recalculated with the change of Lambda !!--------------------------------- variables for hadron composition--------------------------------------------- integer::numberOfHadrons !!!number of hadrons/components integer,dimension(:),allocatable::hadronsInGRID !!!list of hadron to be pre-grid logical::IsComposite=.false. !!!flag to use the composite TMD !!-----------------------------------------------Public interface--------------------------------------------------- public::lpTMDPDF_Initialize,lpTMDPDF_SetLambdaNP,lpTMDPDF_SetScaleVariation,lpTMDPDF_resetGrid,lpTMDPDF_SetPDFreplica public::lpTMDPDF_IsInitialized,lpTMDPDF_CurrentNPparameters public::lpTMDPDF_lowScale50 ! public::CheckCoefficient ! public::mu_OPE interface lpTMDPDF_SetLambdaNP module procedure lpTMDPDF_SetLambdaNP_usual,lpTMDPDF_SetReplica_optional end interface contains INCLUDE 'Code/Twist2/Twist2Convolution.f90' INCLUDE 'Code/Grids/TMDGrid-B.f90' !! Coefficient function INCLUDE 'Code/lpTMDPDF/coeffFunc.f90' !! Computation of TMDs INCLUDE 'Code/lpTMDPDF/convolutions.f90' !! Testing the model INCLUDE 'Code/lpTMDPDF/modelTest.f90' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Interface subroutines!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! function lpTMDPDF_IsInitialized() logical::lpTMDPDF_IsInitialized lpTMDPDF_IsInitialized=started end function lpTMDPDF_IsInitialized !! Initialization of the package subroutine lpTMDPDF_Initialize(file,prefix) character(len=*)::file character(len=*),optional::prefix character(len=300)::path,line logical::initRequired character(len=8)::orderMain logical::bSTAR_lambdaDependent,dummyLogical integer::i,FILEver if(started) return if(.not.QCDinput_IsInitialized()) then if(outputLevel>1) write(*,*) '.. initializing QCDinput (from ',moduleName,')' if(present(prefix)) then call QCDinput_Initialize(file,prefix) else call QCDinput_Initialize(file) end if end if if(present(prefix)) then path=trim(adjustl(prefix))//trim(adjustr(file)) else path=trim(adjustr(file)) end if OPEN(UNIT=51, FILE=path, ACTION="read", STATUS="old") !!! Search for output level call MoveTO(51,'*0 ') call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) FILEver if(FILEver<inputver) then write(*,*) 'artemide.'//trim(moduleName)//': const-file version is too old.' write(*,*) ' Update the const-file with artemide.setup' write(*,*) ' ' stop end if call MoveTO(51,'*p2 ') read(51,*) outputLevel if(outputLevel>1) write(*,*) '--------------------------------------------- ' if(outputLevel>1) write(*,*) 'artemide.',moduleName,version,': initialization started ... ' call MoveTO(51,'*p3 ') read(51,*) messageTrigger call MoveTO(51,'*11 ') call MoveTO(51,'*p1 ') read(51,*) initRequired if(.not.initRequired) then if(outputLevel>1) write(*,*)'artemide.',moduleName,': initialization is not required. ' started=.false. return end if ! ---- ORDER call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) orderMain SELECT CASE(trim(orderMain)) CASE ("NA") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: NA',color(" (TMD=fNP)",c_yellow) order_global=-50 CASE ("LO") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: LO' order_global=0 if(outputLevel>0)write(*,*) WarningString('Initialize: lin.pol.gluon at LO are zero!',moduleName) CASE ("LO+") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: LO+' order_global=0 if(outputLevel>0)write(*,*) WarningString('Initialize: lin.pol.gluon at LO are zero!',moduleName) CASE ("NLO") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: NLO' order_global=1 CASE ("NLO+") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: NLO+' order_global=1 CASE ("NNLO") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: NNLO' order_global=2 CASE ("NNLO+") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: NNLO+' order_global=2 CASE DEFAULT if(outputLevel>0) & write(*,*) WarningString('Initialize: unknown order for coefficient function. Switch to NLO.',moduleName) if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: NLO' order_global=1 END SELECT if(outputLevel>2 .and. order_global>-1) write(*,'(A,I1)') ' | Coef.func. =as^',order_global !------ Compositeness call MoveTO(51,'*p2 ') read(51,*) IsComposite if(outputLevel>2) then if(IsComposite) then write(*,'(A,I1)') ' | Use compsite =TRUE' else write(*,'(A,I1)') ' | Use compsite =FALSE' end if end if !-------------parameters of NP model call MoveTO(51,'*B ') call MoveTO(51,'*p1 ') read(51,*) lambdaNPlength if(outputLevel>2) write(*,'(A,I3)') ' Number of NP parameters =',lambdaNPlength if(lambdaNPlength<=0) then write(*,*) ErrorString('Initialize: number of non-pertrubative & parameters should be >=1. Check the constants-file. Evaluation STOP',moduleName) stop end if allocate(lambdaNP(1:lambdaNPlength)) call MoveTO(51,'*p2 ') do i=1,lambdaNPlength read(51,*) lambdaNP(i) end do !-------------Numeric parameters call MoveTO(51,'*C ') call MoveTO(51,'*p1 ') read(51,*) tolerance call MoveTO(51,'*p2 ') read(51,*) maxIteration if(outputLevel>2) then write(*,'(A,ES10.3)') ' | tolerance =',tolerance write(*,'(A,ES10.3)') ' | max iteration =',REAL(maxIteration) end if !-------------Make grid options call MoveTO(51,'*D ') call MoveTO(51,'*p1 ') read(51,*) prepareGrid call MoveTO(51,'*p2 ') read(51,*) dummyLogical if(.not.dummyLogical) then if(outputLevel>0) write(*,*) WarningString('Initialize:& gluon option is switched ON (otherwise there is no reason to evaluate it)',moduleName) end if call MoveTO(51,'*p3 ') read(51,*) numberOfHadrons allocate(hadronsInGRID(1:numberOfHadrons)) call MoveTO(51,'*p4 ') read(51,*) hadronsInGRID !-------------Parameters of grid call MoveTO(51,'*E ') call MoveTO(51,'*p1 ') read(51,*) xGrid_Min call MoveTO(51,'*p2 ') read(51,*) bGrid_Max call MoveTO(51,'*p3 ') read(51,*) GridSizeX call MoveTO(51,'*p4 ') read(51,*) GridSizeB call MoveTO(51,'*p5 ') read(51,*) slope if(outputLevel>2) then write(*,*) 'Grid options:' write(*,'(A,ES10.3)') ' | xGrid_Min =',xGrid_Min write(*,'(A,ES10.3)') ' | bGrid_Max =',bGrid_Max write(*,'(A,I6,A,I6,A)') ' | (GridSizeX,GridSizeB) =(',GridSizeX,',',GridSizeB,')' write(*,'(A,F6.3)') ' | slope =',slope write(*,'(A,I3)') ' | hadrons to grid =',numberOfHadrons write(*,*) ' | list of hadrons in grid =(',hadronsInGRID,')' end if CLOSE (51, STATUS='KEEP') allocate(gridMain(0:GridSizeX,0:GridSizeB,-5:5,1:numberOfHadrons)) allocate(boundaryValues(0:GridSizeX,-5:5,1:numberOfHadrons)) allocate(lambdaNP_grid(1:lambdaNPlength)) c4_global=1d0 call ModelInitialization(lambdaNP) !!!!!!!Checking the x-dependance of muOPE IsMuXdependent=testMU() if(IsMuXdependent) then if(outputLevel>2) write(*,*) 'arTeMiDe.lpTMDPDF: mu OPE is dependent on x' else if(outputLevel>2) write(*,*) 'arTeMiDe.lpTMDPDF: mu OPE is independent on x' end if !!!!!!!Checking the lambda-dependance of bSTAR bSTAR_lambdaDependent=testbSTAR() if(bSTAR_lambdaDependent) then if(outputLevel>2) write(*,*) 'arTeMiDe.lpTMDPDF: bSTAR is dependent on lambda' else if(outputLevel>2) write(*,*) 'arTeMiDe.lpTMDPDF: bSTAR is independent on lambda' end if !!!!!!!Checking the x-dependance of FNP IsFnpZdependent=TestFNP() gridReady=.false. if(IsFnpZdependent) then if(outputLevel>2) write(*,*) 'arTeMiDe.lpTMDPDF: FNP is dependent on z' else if(outputLevel>2) write(*,*) 'arTeMiDe.lpTMDPDF: FNP is independent on z' end if !!! if fnp depende on z or bSTAR depeds on lambda !!! grid must be recalculate ech time. It canbe saved to single IsFnpZdependent if(IsFnpZdependent .or. bSTAR_lambdaDependent) then IsFnpZdependent=.true. if(outputLevel>2) write(*,*) 'arTeMiDe.lpTMDPDF: ............. convolution is lambda sensitive.' end if started=.true. messageCounter=0 if(outputLevel>0) write(*,*) color('----- arTeMiDe.lpTMDPDF '//trim(version)//': .... initialized',c_green) if(outputLevel>1) write(*,*) ' ' end subroutine lpTMDPDF_Initialize !! call for parameters from the model !! gluonRequired option is ignored subroutine lpTMDPDF_SetReplica_optional(num,buildGrid, gluonRequired) integer:: num logical,optional:: buildGrid,gluonRequired real(dp),allocatable::NParray(:) call GetReplicaParameters(num,NParray) if(present(buildGrid)) then call lpTMDPDF_SetLambdaNP_usual(NParray,buildGrid=buildGrid) else call lpTMDPDF_SetLambdaNP_usual(NParray) end if end subroutine lpTMDPDF_SetReplica_optional !! call QCDinput to change the PDF replica number !! unset the grid, since it should be recalculated fro different PDF replica. subroutine lpTMDPDF_SetPDFreplica(rep,hadron) integer:: rep,hadron logical::newPDF call QCDinput_SetlpPDFreplica(rep,hadron,newPDF) if(newPDF) then gridReady=.false. call lpTMDPDF_resetGrid() else if(outputLevel>1) write(*,"('arTeMiDe ',A,': replica of PDF (',I4,' is the same as the used one. Nothing is done!')") & moduleName, rep end if end subroutine lpTMDPDF_SetPDFreplica !!!Sets the non-pertrubative parameters lambda !!! carries additionl option to build the grid !!! if need to build grid, specify the gluon required directive. !!! gluon gluonRequired option is ignored subroutine lpTMDPDF_SetLambdaNP_usual(lambdaIN,buildGrid, gluonRequired) real(dp),intent(in)::lambdaIN(:) logical,optional :: buildGrid,gluonRequired real(dp),dimension(1:lambdaNPlength)::lambdaOLD logical::IsNewValues integer::i,ll messageCounter=0 if(present(buildGrid)) prepareGrid=buildGrid ll=size(lambdaIN) if(ll<lambdaNPlength) then if(outputLevel>0) write(*,"(A,I3,A,I3,')')")& WarningString('SetLambdaNP:length of lambdaNP(',moduleName),& ll,color(') is less then requred (',c_red),lambdaNPlength if(outputLevel>0) write(*,*)color(' Rest parameters are replaced by zeros!',c_red) lambdaNP=0d0*lambdaNP lambdaNP(1:ll)=lambdaIN(1:ll) else if (ll>lambdaNPlength) then if(outputLevel>0) write(*,"(A,I3,A,I3,')')")& WarningString('SetLambdaNP:length of lambdaNP(',moduleName),& ll,color(') is greater then requred (',c_red),lambdaNPlength if(outputLevel>0) write(*,*)color(' Array is truncated!',c_red) lambdaNP(1:lambdaNPlength)=lambdaIN(1:lambdaNPlength) else lambdaOLD=lambdaNP lambdaNP=lambdaIN end if lambdaOLD=lambdaNP lambdaNP=lambdaIN IsNewValues=.false. do i=1,lambdaNPlength if(ABS(lambdaNP(i)-lambdaOLD(i))>10d-10) then IsNewValues=.true. exit end if end do if(IsNewValues.and.(outputLevel>2)) write(*,*) 'arTeMiDe.',moduleName,': NPparameters reset = (',lambdaNP,')' call ModelUpdate(lambdaNP) !! further if's are only for griding if(prepareGrid) then !!!grid is requred if(IsNewValues) then !! values are new if(gridReady) then !!! grid is already build if(IsFnpZdependent) then !!! check the z-dependance of FNP !! if it is z- dependent, rebuild the grid gridReady=.false. call MakeGrid() gridReady=.true. else !!! if z-Independent just do nothing. if(outputLevel>2) write(*,*) 'arTeMiDe.',moduleName,': the values are to be restored from the initial grid' end if else !!! grid is not ready (how comes?) call MakeGrid() gridReady=.true. end if else !! values are old if(gridReady) then !!! grid is already build !!!nothing to do else!!rare option then parameters are not new but grit is not build if(outputLevel>2) write(*,*) 'arTeMiDe.',moduleName,': parameters are not reset. But grid is not ready.' call MakeGrid() gridReady=.true. end if end if else gridReady=.false. end if end subroutine lpTMDPDF_SetLambdaNP_usual !!! returns current value of NP parameters subroutine lpTMDPDF_CurrentNPparameters(var) real(dp),dimension(1:lambdaNPlength),intent(out)::var var=lambdaNP end subroutine lpTMDPDF_CurrentNPparameters !!! This subroutine ask for the grid reconstruction (or destruction) !!! gluon gluonRequired option is ignored subroutine lpTMDPDF_resetGrid(buildGrid,gluonRequired) logical,optional::buildGrid,gluonRequired logical::previousState if(present(buildGrid)) prepareGrid=buildGrid previousState=gridReady gridReady=.false. !! we recalculate grid only if it was already calculated! if(prepareGrid .and. previousState) then if(outputLevel>1) write(*,*) 'arTeMiDe ',moduleName,': Grid Reset. with c4=',c4_global call MakeGrid() gridReady=.true. end if end subroutine lpTMDPDF_resetGrid !!!! this routine set the variations of scales !!!! it is used for the estimation of errors subroutine lpTMDPDF_SetScaleVariation(c4_in) real(dp),intent(in)::c4_in if(c4_in<0.1d0 .or. c4_in>10.d0) then if(outputLevel>0) write(*,*) WarningString('variation in c4 is enourmous. c4 is set to 2',moduleName) c4_global=2d0 call lpTMDPDF_resetGrid() else if(abs(c4_in-c4_global)<tolerance) then if(outputLevel>1) write(*,*) color('lpTMDPDF: c4-variation is ignored. c4='//real8ToStr(c4_global),c_yellow) else c4_global=c4_in if(outputLevel>1) write(*,*) color('lpTMDPDF: set scale variations constant c4 as:'//real8ToStr(c4_global),c_yellow) call lpTMDPDF_resetGrid() end if end subroutine lpTMDPDF_SetScaleVariation end module lpTMDPDF
17,835
33.432432
128
f90
artemide-public
artemide-public-master/src/uTMDFF.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! arTeMiDe 2.00 ! ! Evaluation of the unpolarized TMD FF at low normalization point in zeta-prescription. ! ! if you use this module please, quote 1706.01473 (for arTeMiDe), + ????.???? (for UTMDFF) ! ! 27.02.2019 changed z^2 prescription, now dd=x^2 xd. ! 29.03.2019 Update to version 2.00 (AV). ! ! A.Vladimirov (19.04.2018) ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! module uTMDFF use aTMDe_Numerics use IO_functions use QCDinput use uTMDFF_model implicit none private !Current version of module character (len=5),parameter :: version="v2.05" character (len=7),parameter :: moduleName="uTMDFF" !Last appropriate version of constants-file integer,parameter::inputver=12 INCLUDE 'Tables/G7K15.f90' !-------------------Physical constants----------------------------------------- !--------------------------------Working variables----------------------------------------------- !! Level of output !! 0=only critical !! 1=initialization details !! 2=WARNINGS integer::outputLevel=2 !! variable that count number of WRNING mesagges. In order not to spam too much integer::messageTrigger=6 logical::started=.false. !!! The global order which is used in programm ! 0=LO, 1=NLO, 2=NNLO integer :: order_global !!parameters of non-perturbative input integer::lambdaNPlength real(dp),dimension(:),allocatable::lambdaNP,lambdaNP_grid real(dp)::c4_global!!!this is the variation constant for mu_OPE !!parameters of numerics real(dp) :: tolerance=0.0001d0!!! relative tolerance of the integration integer :: maxIteration=5000 !------------------------------Variables for coefficient function etc------------------------------- integer,parameter::parametrizationLength=36 !!!!!Coefficient lists !!!!! contain exact asymptotic z->0, and z->1. !!!!! regular part fit by some function, such that all coefficeint without polylog [main log,large-nf] are exact real(dp),dimension(1:parametrizationLength) :: Coeff_q_q, Coeff_q_g, Coeff_g_q, Coeff_g_g, Coeff_q_qb, Coeff_q_qp !! This is list of coefficeints for the encoding the singular at x->1 !! { 1/(1-x), (Log[1-x]/(1-x))_+, (Log[1-x]^2/(1-x))_+,} real(dp), dimension(1:3) :: CoeffSing1_q_q,CoeffSing1_g_g integer:: counter,messageCounter INCLUDE 'Code/Twist2/Twist2Convolution-VAR.f90' INCLUDE 'Code/Grids/TMDGrid-B-VAR.f90' !!--------------------------------- variables for the griding the TMD.--------------------------------------------- logical :: gridReady!!!!indicator that grid is ready to use. If it is .true., the TMD calculated form the grid logical :: prepareGrid!!!idicator that grid must be prepared logical :: withGluon!!!indicator the gluon is needed in the grid logical :: IsFnpZdependent !!! indicator that the grid must be recalculated with the change of Lambda !!--------------------------------- variables for hadron composition--------------------------------------------- integer::numberOfHadrons !!!number of hadrons/components integer,dimension(:),allocatable::hadronsInGRID !!!list of hadron to be pre-grid logical::IsComposite=.false. !!!flag to use the composite TMD !!-----------------------------------------------Public interface--------------------------------------------------- public::uTMDFF_Initialize,uTMDFF_SetLambdaNP,uTMDFF_resetGrid,uTMDFF_SetScaleVariation,uTMDFF_CurrentNPparameters public::uTMDFF_IsInitialized public::uTMDFF_lowScale5,uTMDFF_lowScale50 public::uTMDFF_SetFFreplica ! public::CheckCoefficient interface uTMDFF_SetLambdaNP module procedure uTMDFF_SetLambdaNP_usual,uTMDFF_SetReplica_optional end interface contains INCLUDE 'Code/Twist2/Twist2Convolution.f90' INCLUDE 'Code/Grids/TMDGrid-B.f90' !! Coefficient function INCLUDE 'Code/uTMDFF/coeffFunc.f90' !! Computation of TMDs INCLUDE 'Code/uTMDFF/convolutions.f90' !! Testing the model INCLUDE 'Code/uTMDFF/modelTest.f90' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Interface subroutines!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! function uTMDFF_IsInitialized() logical::uTMDFF_IsInitialized uTMDFF_IsInitialized=started end function uTMDFF_IsInitialized !! Initialization of the package subroutine uTMDFF_Initialize(file,prefix) character(len=*)::file character(len=*),optional::prefix character(len=300)::path,line logical::initRequired character(len=8)::orderMain logical::bSTAR_lambdaDependent integer::i,FILEver if(started) return if(.not.QCDinput_IsInitialized()) then if(outputLevel>1) write(*,*) '.. initializing QCDinput (from ',moduleName,')' if(present(prefix)) then call QCDinput_Initialize(file,prefix) else call QCDinput_Initialize(file) end if end if if(present(prefix)) then path=trim(adjustl(prefix))//trim(adjustr(file)) else path=trim(adjustr(file)) end if OPEN(UNIT=51, FILE=path, ACTION="read", STATUS="old") !!! Search for output level call MoveTO(51,'*0 ') call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) FILEver if(FILEver<inputver) then write(*,*) 'artemide.'//trim(moduleName)//': const-file version is too old.' write(*,*) ' Update the const-file with artemide.setup' write(*,*) ' ' stop end if call MoveTO(51,'*p2 ') read(51,*) outputLevel if(outputLevel>1) write(*,*) '--------------------------------------------- ' if(outputLevel>1) write(*,*) 'artemide.',moduleName,version,': initialization started ... ' call MoveTO(51,'*p3 ') read(51,*) messageTrigger call MoveTO(51,'*5 ') call MoveTO(51,'*p1 ') read(51,*) initRequired if(.not.initRequired) then if(outputLevel>1) write(*,*)'artemide.',moduleName,': initialization is not required. ' started=.false. return end if !------ ORDER call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) orderMain SELECT CASE(trim(orderMain)) CASE ("NA") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: NA',color(" (TMD=fNP)",c_yellow) order_global=-50 CASE ("LO") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: LO' order_global=0 CASE ("LO+") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: LO+' order_global=0 CASE ("NLO") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: NLO' order_global=1 CASE ("NLO+") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: NLO+' order_global=1 CASE ("NNLO") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: NNLO' order_global=2 CASE ("N2LO") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: NNLO' order_global=2 CASE ("NNLO+") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: NNLO+' order_global=2 CASE ("NNNLO") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: NNNLO' order_global=3 CASE ("N3LO") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: N3LO' order_global=3 CASE DEFAULT if(outputLevel>0) write(*,*) & WarningString('Initialize: unknown order for coefficient function. Switch to NLO.',moduleName) if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: NLO' order_global=1 END SELECT if(outputLevel>2 .and. order_global>-1) write(*,'(A,I1)') ' | Coef.func. =as^',order_global !------ Compositeness call MoveTO(51,'*p2 ') read(51,*) IsComposite if(outputLevel>2) then if(IsComposite) then write(*,'(A,I1)') ' | Use compsite =TRUE' else write(*,'(A,I1)') ' | Use compsite =FALSE' end if end if !-------------parameters of NP model call MoveTO(51,'*B ') call MoveTO(51,'*p1 ') read(51,*) lambdaNPlength if(outputLevel>2) write(*,'(A,I3)') ' Number of NP parameters =',lambdaNPlength if(lambdaNPlength<=0) then write(*,*) ErrorString('Initialize: number of non-pertrubative & parameters should be >=1. Check the constants-file. Evaluation STOP',moduleName) stop end if allocate(lambdaNP(1:lambdaNPlength)) call MoveTO(51,'*p2 ') do i=1,lambdaNPlength read(51,*) lambdaNP(i) end do !-------------Numeric parameters call MoveTO(51,'*C ') call MoveTO(51,'*p1 ') read(51,*) tolerance call MoveTO(51,'*p2 ') read(51,*) maxIteration if(outputLevel>2) then write(*,'(A,ES10.3)') ' | tolerance =',tolerance write(*,'(A,ES10.3)') ' | max iteration =',REAL(maxIteration) end if !-------------Make grid options call MoveTO(51,'*D ') call MoveTO(51,'*p1 ') read(51,*) prepareGrid call MoveTO(51,'*p2 ') read(51,*) withGluon call MoveTO(51,'*p3 ') read(51,*) numberOfHadrons allocate(hadronsInGRID(1:numberOfHadrons)) call MoveTO(51,'*p4 ') read(51,*) hadronsInGRID !-------------Parameters of grid call MoveTO(51,'*E ') call MoveTO(51,'*p1 ') read(51,*) xGrid_Min call MoveTO(51,'*p2 ') read(51,*) bGrid_Max call MoveTO(51,'*p3 ') read(51,*) GridSizeX call MoveTO(51,'*p4 ') read(51,*) GridSizeB call MoveTO(51,'*p5 ') read(51,*) slope if(outputLevel>2) then write(*,*) 'Grid options:' write(*,'(A,ES10.3)') ' | xGrid_Min =',xGrid_Min write(*,'(A,ES10.3)') ' | bGrid_Max =',bGrid_Max write(*,'(A,I6,A,I6,A)') ' | (GridSizeX,GridSizeB) =(',GridSizeX,',',GridSizeB,')' write(*,'(A,F6.3)') ' | slope =',slope write(*,'(A,I3)') ' | hadrons to grid =',numberOfHadrons write(*,*) ' | list of hadrons in grid =(',hadronsInGRID,')' end if CLOSE (51, STATUS='KEEP') allocate(gridMain(0:GridSizeX,0:GridSizeB,-5:5,1:numberOfHadrons)) allocate(boundaryValues(0:GridSizeX,-5:5,1:numberOfHadrons)) allocate(lambdaNP_grid(1:lambdaNPlength)) c4_global=1d0 call ModelInitialization(lambdaNP) !!!!!!!Checking the x-dependance of muOPE IsMuXdependent=testMU() if(IsMuXdependent) then if(outputLevel>2) write(*,*) 'arTeMiDe.uTMDFF: mu OPE is dependent on x' else if(outputLevel>2) write(*,*) 'arTeMiDe.uTMDFF: mu OPE is independent on x' end if !!!!!!!Checking the lambda-dependance of bSTAR bSTAR_lambdaDependent=testbSTAR() if(bSTAR_lambdaDependent) then if(outputLevel>2) write(*,*) 'arTeMiDe.uTMDFF: bSTAR is dependent on lambda' else if(outputLevel>2) write(*,*) 'arTeMiDe.uTMDFF: bSTAR is independent on lambda' end if !!!!!!!Checking the x-dependance of FNP IsFnpZdependent=TestFNP() gridReady=.false. if(IsFnpZdependent) then if(outputLevel>2) write(*,*) 'arTeMiDe.uTMDFF: FNP is dependent on z' else if(outputLevel>2) write(*,*) 'arTeMiDe.uTMDFF: FNP is independent on z' end if !!! if fnp depende on z or bSTAR depeds on lambda !!! grid must be recalculate ech time. It canbe saved to single IsFnpZdependent if(IsFnpZdependent .or. bSTAR_lambdaDependent) then IsFnpZdependent=.true. if(outputLevel>2) write(*,*) 'arTeMiDe.uTMDFF: ............. convolution is lambda sensitive.' end if messageCounter=0 started=.true. if(outputLevel>0) write(*,*) color('----- arTeMiDe.uTMDFF '//trim(version)//': .... initialized',c_green) if(outputLevel>1) write(*,*) ' ' end subroutine uTMDFF_Initialize !! call for parameters from the model subroutine uTMDFF_SetReplica_optional(num,buildGrid, gluonRequired) integer, intent(in):: num logical,optional:: buildGrid,gluonRequired real(dp),allocatable::NParray(:) call GetReplicaParameters(num,NParray) if(present(buildGrid)) then if(present(gluonRequired)) then call uTMDFF_SetLambdaNP_usual(NParray,buildGrid=buildGrid,gluonRequired=gluonRequired) else call uTMDFF_SetLambdaNP_usual(NParray,buildGrid=buildGrid) end if else if(present(gluonRequired)) then call uTMDFF_SetLambdaNP_usual(NParray,gluonRequired=gluonRequired) else call uTMDFF_SetLambdaNP_usual(NParray) end if end if end subroutine uTMDFF_SetReplica_optional !! call QCDinput to change the PDF replica number !! unset the grid, since it should be recalculated fro different PDF replica. subroutine uTMDFF_SetFFreplica(rep,hadron) integer,intent(in):: rep,hadron logical::newPDF call QCDinput_SetFFreplica(rep,hadron,newPDF) if(newPDF) then gridReady=.false. call uTMDFF_resetGrid() else if(outputLevel>1) write(*,"('arTeMiDe ',A,': replica of PDF (',I4,' is the same as the used one. Nothing is done!')") & moduleName, rep end if end subroutine uTMDFF_SetFFreplica !!!Sets the non-pertrubative parameters lambda !!! carries additionl option to build the grid !!! if need to build grid, specify the gluon required directive. subroutine uTMDFF_SetLambdaNP_usual(lambdaIN,buildGrid, gluonRequired) real(dp),intent(in)::lambdaIN(:) logical,optional :: buildGrid,gluonRequired real(dp),dimension(1:lambdaNPlength)::lambdaOLD logical::IsNewValues integer::i,ll messageCounter=0 if(present(buildGrid)) prepareGrid=buildGrid if(present(gluonRequired)) withGluon=gluonRequired ll=size(lambdaIN) if(ll<lambdaNPlength) then if(outputLevel>0) write(*,"(A,I3,A,I3,')')")& WarningString('SetLambdaNP:length of lambdaNP(',moduleName),& ll,color(') is less then requred (',c_red),lambdaNPlength if(outputLevel>0) write(*,*)color(' Rest parameters are replaced by zeros!',c_red) lambdaNP=0d0*lambdaNP lambdaNP(1:ll)=lambdaIN(1:ll) else if (ll>lambdaNPlength) then if(outputLevel>0) write(*,"(A,I3,A,I3,')')")& WarningString('SetLambdaNP:length of lambdaNP(',moduleName),& ll,color(') is greater then requred (',c_red),lambdaNPlength if(outputLevel>0) write(*,*)color(' Array is truncated!',c_red) lambdaNP(1:lambdaNPlength)=lambdaIN(1:lambdaNPlength) else lambdaOLD=lambdaNP lambdaNP=lambdaIN end if lambdaOLD=lambdaNP lambdaNP=lambdaIN IsNewValues=.false. do i=1,lambdaNPlength if(ABS(lambdaNP(i)-lambdaOLD(i))>10d-10) then IsNewValues=.true. exit end if end do if(IsNewValues.and.(outputLevel>2)) write(*,*) 'arTeMiDe.',moduleName,': NPparameters reset = (',lambdaNP,')' call ModelUpdate(lambdaNP) !! further if's are only for griding if(prepareGrid) then !!!grid is requred if(IsNewValues) then !! values are new if(gridReady) then !!! grid is already build if(IsFnpZdependent) then !!! check the z-dependance of FNP !! if it is z- dependent, rebuild the grid gridReady=.false. call MakeGrid() gridReady=.true. else !!! if z-Independent just do nothing. if(outputLevel>2) write(*,*) 'arTeMiDe.',moduleName,': the values are to be restored from the initial grid' end if else !!! grid is not ready (how comes?) call MakeGrid() gridReady=.true. end if else !! values are old if(gridReady) then !!! grid is already build !!!nothing to do else!!rare option then parameters are not new but grit is not build if(outputLevel>2) write(*,*) 'arTeMiDe.',moduleName,': parameters are not reset. But grid is not ready.' call MakeGrid() gridReady=.true. end if end if else gridReady=.false. end if end subroutine uTMDFF_SetLambdaNP_usual !!! This subroutine ask for the grid reconstruction (or destruction) subroutine uTMDFF_resetGrid(buildGrid,gluonRequired) logical,optional::buildGrid,gluonRequired logical::previousState if(present(buildGrid)) prepareGrid=buildGrid if(present(gluonRequired)) withGluon=gluonRequired previousState=gridReady gridReady=.false. ! we recalculate grid only if it was already calculated if(prepareGrid.and.previousState) then if(outputLevel>1) write(*,*) 'arTeMiDe ',moduleName,': Grid Reset. with c4=',c4_global call MakeGrid() gridReady=.true. end if end subroutine uTMDFF_resetGrid !!!! this routine set the variations of scales !!!! it is used for the estimation of errors subroutine uTMDFF_SetScaleVariation(c4_in) real(dp),intent(in)::c4_in if(c4_in<0.1d0 .or. c4_in>10.d0) then if(outputLevel>0) write(*,*) WarningString('variation in c4 is enourmous. c4 is set to 2',moduleName) c4_global=2d0 call uTMDFF_resetGrid() else if(abs(c4_in-c4_global)<tolerance) then if(outputLevel>1) write(*,*) color('uTMDFF: c4-variation is ignored. c4='//real8ToStr(c4_global),c_yellow) else c4_global=c4_in if(outputLevel>1) write(*,*) color('uTMDFF: set scale variations constant c4 as:'//real8ToStr(c4_global),c_yellow) call uTMDFF_resetGrid() end if end subroutine uTMDFF_SetScaleVariation !!! retruns current value of NP parameters subroutine uTMDFF_CurrentNPparameters(var) real(dp),dimension(1:lambdaNPlength),intent(out)::var var=lambdaNP end subroutine uTMDFF_CurrentNPparameters end module uTMDFF
18,145
33.045028
133
f90
artemide-public
artemide-public-master/src/uTMDPDF.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! arTeMiDe 2.0 ! ! Evaluation of the unpolarized TMD PDF at low normalization point in zeta-prescription. ! ! if you use this module please, quote 1706.01473 ! ! 08.11.2018 essential error in griding with x-dependance FIXED (AV). ! 29.03.2019 Update to version 2.00 (AV). ! 24.06.2022 Update to version 2.06 [N3LO] (AV). ! ! A.Vladimirov (19.04.2018) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! module uTMDPDF use aTMDe_Numerics use IO_functions use QCDinput use uTMDPDF_model implicit none !------------------------LOCALs ----------------------------------------------- private !Current version of module character (len=5),parameter :: version="v2.05" character (len=7),parameter :: moduleName="uTMDPDF" !Last appropriate version of constants-file integer,parameter::inputver=12 INCLUDE 'Tables/G7K15.f90' !--------------------------------Working variables----------------------------------------------- !--- general logical:: started=.false. !! Level of output !! 0=only critical !! 1=initialization details !! 2=WARNINGS integer::outputLevel=2 !! variable that count number of WRNING mesagges. In order not to spam too much integer::messageTrigger=6 !!! The global order which is used in programm ! it is set by SetOrderForC subroutine ! 0=LO, 1=NLO, 2=NNLO integer :: order_global integer::lambdaNPlength real(dp),dimension(:),allocatable::lambdaNP real(dp),dimension(:),allocatable::lambdaNP_grid !!! this is the value of lambda on which the grid is build real(dp)::c4_global!!!this is the variation constant for mu_OPE !!!Parameters of numerics real(dp) :: tolerance=0.0001d0!!! relative tolerance of the integration integer :: maxIteration=5000 !------------------------------Variables for coefficient function etc------------------------------- !!!!!Coefficient lists integer,parameter::parametrizationLength=37 !! { Log[1-x], log[1-x]^2, log[1-x]^3, log[1-x]^4, log[1-x]^5 !exact !! 1/x, log[x]/x, Log[x]^2/x !exact !! Log[x], log[x]^2, Log[x]^3, log[x]^4, Log[x]^5 !exact !! T0,...,T23 (Chebyshev polynomials) } !! The Lmu^2 part is exact the later parts are fitted, but exact if posible (e.g. Lmu and Nf parts for q->q) real(dp),dimension(1:parametrizationLength) :: Coeff_q_q, Coeff_q_g, Coeff_g_q, Coeff_g_g, Coeff_q_qb, Coeff_q_qp !! This is list of coefficeints for the encoding the singular at x->1 !! { 1/(1-x)_+, (Log[1-x]/(1-x))_+, (Log[1-x]^2/(1-x))_+} real(dp), dimension(1:3) :: CoeffSing1_q_q,CoeffSing1_g_g integer :: counter,messageCounter INCLUDE 'Code/Twist2/Twist2Convolution-VAR.f90' INCLUDE 'Code/Grids/TMDGrid-B-VAR.f90' !!--------------------------------- variables for the griding the TMD.--------------------------------------------- logical :: gridReady!!!!indicator that grid is ready to use. If it is .true., the TMD calculated from the grid logical :: prepareGrid!!!idicator that grid must be prepared logical :: withGluon!!!indicator the gluon is needed in the grid logical :: IsFnpZdependent !!! indicator that the grid must be recalculated with the change of Lambda !!--------------------------------- variables for hadron composition--------------------------------------------- integer::numberOfHadrons !!!number of hadrons/components integer,dimension(:),allocatable::hadronsInGRID !!!list of hadron to be pre-grid logical::IsComposite=.false. !!!flag to use the composite TMD !!-----------------------------------------------Public interface--------------------------------------------------- public::uTMDPDF_Initialize,uTMDPDF_SetLambdaNP,uTMDPDF_SetScaleVariation,uTMDPDF_resetGrid,uTMDPDF_SetPDFreplica public::uTMDPDF_IsInitialized,uTMDPDF_CurrentNPparameters public::uTMDPDF_lowScale5,uTMDPDF_lowScale50 ! public::CheckCoefficient ! public::mu_OPE interface uTMDPDF_SetLambdaNP module procedure uTMDPDF_SetLambdaNP_usual,uTMDPDF_SetReplica_optional end interface contains INCLUDE 'Code/Twist2/Twist2Convolution.f90' INCLUDE 'Code/Grids/TMDGrid-B.f90' !! Coefficient function INCLUDE 'Code/uTMDPDF/coeffFunc.f90' !! Computation of TMDs INCLUDE 'Code/uTMDPDF/convolutions.f90' !! Testing the model INCLUDE 'Code/uTMDPDF/modelTest.f90' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Interface subroutines!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! function uTMDPDF_IsInitialized() logical::uTMDPDF_IsInitialized uTMDPDF_IsInitialized=started end function uTMDPDF_IsInitialized !! Initialization of the package subroutine uTMDPDF_Initialize(file,prefix) character(len=*)::file character(len=*),optional::prefix character(len=300)::path,line logical::initRequired character(len=8)::orderMain logical::bSTAR_lambdaDependent integer::i,FILEver if(started) return if(.not.QCDinput_IsInitialized()) then if(outputLevel>1) write(*,*) '.. initializing QCDinput (from ',moduleName,')' if(present(prefix)) then call QCDinput_Initialize(file,prefix) else call QCDinput_Initialize(file) end if end if if(present(prefix)) then path=trim(adjustl(prefix))//trim(adjustr(file)) else path=trim(adjustr(file)) end if OPEN(UNIT=51, FILE=path, ACTION="read", STATUS="old") !!! Search for output level call MoveTO(51,'*0 ') call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) FILEver if(FILEver<inputver) then write(*,*) 'artemide.'//trim(moduleName)//': const-file version is too old.' write(*,*) ' Update the const-file with artemide.setup' write(*,*) ' ' stop end if call MoveTO(51,'*p2 ') read(51,*) outputLevel if(outputLevel>1) write(*,*) '--------------------------------------------- ' if(outputLevel>1) write(*,*) 'artemide.',moduleName,version,': initialization started ... ' call MoveTO(51,'*p3 ') read(51,*) messageTrigger call MoveTO(51,'*4 ') call MoveTO(51,'*p1 ') read(51,*) initRequired if(.not.initRequired) then if(outputLevel>1) write(*,*)'artemide.',moduleName,': initialization is not required. ' started=.false. return end if !----- ORDER call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) orderMain SELECT CASE(trim(orderMain)) CASE ("NA") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: NA',color(" (TMD=fNP)",c_yellow) order_global=-50 CASE ("LO") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: LO' order_global=0 CASE ("LO+") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: LO+' order_global=0 CASE ("NLO") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: NLO' order_global=1 CASE ("NLO+") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: NLO+' order_global=1 CASE ("NNLO") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: NNLO' order_global=2 CASE ("N2LO") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: NNLO' order_global=2 CASE ("NNLO+") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: NNLO+' order_global=2 CASE ("NNNLO") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: N3LO' order_global=3 CASE ("N3LO") if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: N3LO' order_global=3 CASE DEFAULT if(outputLevel>0)write(*,*) & WarningString('Initialize: unknown order for coefficient function. Switch to NLO.',moduleName) if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: NLO' order_global=1 END SELECT if(outputLevel>2 .and. order_global>-1) write(*,'(A,I1)') ' | Coef.func. =as^',order_global !------ Compositeness call MoveTO(51,'*p2 ') read(51,*) IsComposite if(outputLevel>2) then if(IsComposite) then write(*,'(A,I1)') ' | Use compsite =TRUE' else write(*,'(A,I1)') ' | Use compsite =FALSE' end if end if !-------------parameters of NP model call MoveTO(51,'*B ') call MoveTO(51,'*p1 ') read(51,*) lambdaNPlength if(outputLevel>2) write(*,'(A,I3)') ' Number of NP parameters =',lambdaNPlength if(lambdaNPlength<=0) then write(*,*) ErrorString('Initialize: number of non-pertrubative & parameters should be >=1. Check the constants-file. Evaluation STOP',moduleName) stop end if allocate(lambdaNP(1:lambdaNPlength)) call MoveTO(51,'*p2 ') do i=1,lambdaNPlength read(51,*) lambdaNP(i) end do !-------------Numeric parameters call MoveTO(51,'*C ') call MoveTO(51,'*p1 ') read(51,*) tolerance call MoveTO(51,'*p2 ') read(51,*) maxIteration if(outputLevel>2) then write(*,'(A,ES10.3)') ' | tolerance =',tolerance write(*,'(A,ES10.3)') ' | max iteration =',REAL(maxIteration) end if !-------------Make grid options call MoveTO(51,'*D ') call MoveTO(51,'*p1 ') read(51,*) prepareGrid call MoveTO(51,'*p2 ') read(51,*) withGluon call MoveTO(51,'*p3 ') read(51,*) numberOfHadrons allocate(hadronsInGRID(1:numberOfHadrons)) call MoveTO(51,'*p4 ') read(51,*) hadronsInGRID !-------------Parameters of grid call MoveTO(51,'*E ') call MoveTO(51,'*p1 ') read(51,*) xGrid_Min call MoveTO(51,'*p2 ') read(51,*) bGrid_Max call MoveTO(51,'*p3 ') read(51,*) GridSizeX call MoveTO(51,'*p4 ') read(51,*) GridSizeB call MoveTO(51,'*p5 ') read(51,*) slope if(outputLevel>2) then write(*,*) 'Grid options:' write(*,'(A,ES10.3)') ' | xGrid_Min =',xGrid_Min write(*,'(A,ES10.3)') ' | bGrid_Max =',bGrid_Max write(*,'(A,I6,A,I6,A)') ' | (GridSizeX,GridSizeB) =(',GridSizeX,',',GridSizeB,')' write(*,'(A,F6.3)') ' | slope =',slope write(*,'(A,I3)') ' | hadrons to grid =',numberOfHadrons write(*,*) ' | list of hadrons in grid =(',hadronsInGRID,')' end if CLOSE (51, STATUS='KEEP') allocate(gridMain(0:GridSizeX,0:GridSizeB,-5:5,1:numberOfHadrons)) allocate(boundaryValues(0:GridSizeX,-5:5,1:numberOfHadrons)) allocate(lambdaNP_grid(1:lambdaNPlength)) c4_global=1d0 call ModelInitialization(lambdaNP) !!!!!!!Checking the x-dependance of muOPE IsMuXdependent=testMU() if(IsMuXdependent) then if(outputLevel>2) write(*,*) 'arTeMiDe.uTMDPDF: mu OPE is dependent on x' else if(outputLevel>2) write(*,*) 'arTeMiDe.uTMDPDF: mu OPE is independent on x' end if !!!!!!!Checking the lambda-dependance of bSTAR bSTAR_lambdaDependent=testbSTAR() if(bSTAR_lambdaDependent) then if(outputLevel>2) write(*,*) 'arTeMiDe.uTMDPDF: bSTAR is dependent on lambda' else if(outputLevel>2) write(*,*) 'arTeMiDe.uTMDPDF: bSTAR is independent on lambda' end if !!!!!!!Checking the x-dependance of FNP IsFnpZdependent=TestFNP()!hadronsInGRID,lambdaNPlength) gridReady=.false. if(IsFnpZdependent) then if(outputLevel>2) write(*,*) 'arTeMiDe.uTMDPDF: FNP is dependent on z' else if(outputLevel>2) write(*,*) 'arTeMiDe.uTMDPDF: FNP is independent on z' end if !!! if fnp depende on z or bSTAR depeds on lambda !!! grid must be recalculate ech time. It canbe saved to single IsFnpZdependent if(IsFnpZdependent .or. bSTAR_lambdaDependent) then IsFnpZdependent=.true. if(outputLevel>2) write(*,*) 'arTeMiDe.uTMDPDF: ............. convolution is lambda sensitive.' end if started=.true. messageCounter=0 if(outputLevel>0) write(*,*) color('----- arTeMiDe.uTMDPDF '//trim(version)//': .... initialized',c_green) if(outputLevel>1) write(*,*) ' ' end subroutine uTMDPDF_Initialize !! call for parameters from the model subroutine uTMDPDF_SetReplica_optional(num,buildGrid, gluonRequired) integer,intent(in):: num logical,optional,intent(in):: buildGrid,gluonRequired real(dp),allocatable::NParray(:) call GetReplicaParameters(num,NParray) if(present(buildGrid)) then if(present(gluonRequired)) then call uTMDPDF_SetLambdaNP_usual(NParray,buildGrid=buildGrid,gluonRequired=gluonRequired) else call uTMDPDF_SetLambdaNP_usual(NParray,buildGrid=buildGrid) end if else if(present(gluonRequired)) then call uTMDPDF_SetLambdaNP_usual(NParray,gluonRequired=gluonRequired) else call uTMDPDF_SetLambdaNP_usual(NParray) end if end if end subroutine uTMDPDF_SetReplica_optional !! call QCDinput to change the PDF replica number !! unset the grid, since it should be recalculated fro different PDF replica. subroutine uTMDPDF_SetPDFreplica(rep,hadron) integer,intent(in):: rep,hadron logical::newPDF call QCDinput_SetPDFreplica(rep,hadron,newPDF) if(newPDF) then gridReady=.false. call uTMDPDF_resetGrid() else if(outputLevel>1) write(*,"('arTeMiDe ',A,': replica of PDF (',I4,' is the same as the used one. Nothing is done!')") & moduleName, rep end if end subroutine uTMDPDF_SetPDFreplica !!!Sets the non-pertrubative parameters lambda !!! carries additionl option to build the grid !!! if need to build grid, specify the gluon required directive. subroutine uTMDPDF_SetLambdaNP_usual(lambdaIN,buildGrid, gluonRequired) real(dp),intent(in)::lambdaIN(:) logical,optional,intent(in) :: buildGrid,gluonRequired real(dp),dimension(1:lambdaNPlength)::lambdaOLD logical::IsNewValues integer::i,ll messageCounter=0 if(present(buildGrid)) prepareGrid=buildGrid if(present(gluonRequired)) withGluon=gluonRequired ll=size(lambdaIN) if(ll<lambdaNPlength) then if(outputLevel>0) write(*,"(A,I3,A,I3,')')")& WarningString('SetLambdaNP:length of lambdaNP(',moduleName),& ll,color(') is less then requred (',c_red),lambdaNPlength if(outputLevel>0) write(*,*)color(' Rest parameters are replaced by zeros!',c_red) lambdaNP=0d0*lambdaNP lambdaNP(1:ll)=lambdaIN(1:ll) else if (ll>lambdaNPlength) then if(outputLevel>0) write(*,"(A,I3,A,I3,')')")& WarningString('SetLambdaNP:length of lambdaNP(',moduleName),& ll,color(') is greater then requred (',c_red),lambdaNPlength if(outputLevel>0) write(*,*)color(' Array is truncated!',c_red) lambdaNP(1:lambdaNPlength)=lambdaIN(1:lambdaNPlength) else lambdaOLD=lambdaNP lambdaNP=lambdaIN end if lambdaOLD=lambdaNP lambdaNP=lambdaIN IsNewValues=.false. do i=1,lambdaNPlength if(ABS(lambdaNP(i)-lambdaOLD(i))>10d-10) then IsNewValues=.true. exit end if end do if(IsNewValues.and.(outputLevel>2)) write(*,*) 'arTeMiDe.',moduleName,': NPparameters reset = (',lambdaNP,')' call ModelUpdate(lambdaNP) !! further if's are only for griding if(prepareGrid) then !!!grid is requred if(IsNewValues) then !! values are new if(gridReady) then !!! grid is already build if(IsFnpZdependent) then !!! check the z-dependance of FNP !! if it is z- dependent, rebuild the grid gridReady=.false. call MakeGrid() gridReady=.true. else !!! if z-Independent just do nothing. if(outputLevel>2) write(*,*) 'arTeMiDe.',moduleName,': the values are to be restored from the initial grid' end if else !!! grid is not ready (how comes?) call MakeGrid() gridReady=.true. end if else !! values are old if(gridReady) then !!! grid is already build !!!nothing to do else!!rare option then parameters are not new but grit is not build if(outputLevel>2) write(*,*) 'arTeMiDe.',moduleName,': parameters are not reset. But grid is not ready.' call MakeGrid() gridReady=.true. end if end if else gridReady=.false. end if end subroutine uTMDPDF_SetLambdaNP_usual !!! returns current value of NP parameters subroutine uTMDPDF_CurrentNPparameters(var) real(dp),dimension(1:lambdaNPlength),intent(out)::var var=lambdaNP end subroutine uTMDPDF_CurrentNPparameters !!! This subroutine ask for the grid reconstruction (or destruction) subroutine uTMDPDF_resetGrid(buildGrid,gluonRequired) logical,optional,intent(in)::buildGrid,gluonRequired logical::previousState if(present(buildGrid)) prepareGrid=buildGrid if(present(gluonRequired)) withGluon=gluonRequired previousState=gridReady gridReady=.false. !! we recalculate grid only if it was already calculated! if(prepareGrid .and. previousState) then if(outputLevel>1) write(*,*) 'arTeMiDe ',moduleName,': Grid Reset. with c4=',c4_global call MakeGrid() gridReady=.true. end if end subroutine uTMDPDF_resetGrid !!!! this routine set the variations of scales !!!! it is used for the estimation of errors subroutine uTMDPDF_SetScaleVariation(c4_in) real(dp),intent(in)::c4_in if(c4_in<0.1d0 .or. c4_in>10.d0) then if(outputLevel>0) write(*,*) WarningString('variation in c4 is enourmous. c4 is set to 2',moduleName) c4_global=2d0 call uTMDPDF_resetGrid() else if(abs(c4_in-c4_global)<tolerance) then if(outputLevel>1) write(*,*) color('uTMDPDF: c4-variation is ignored. c4='//real8ToStr(c4_global),c_yellow) else c4_global=c4_in if(outputLevel>1) write(*,*) color('uTMDPDF: set scale variations constant c4 as:'//real8ToStr(c4_global),c_yellow) call uTMDPDF_resetGrid() end if end subroutine uTMDPDF_SetScaleVariation end module uTMDPDF
18,260
33.650854
128
f90
artemide-public
artemide-public-master/src/wgtTMDPDF.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! arTeMiDe 2.06 ! ! Evaluation of the worm-gear T TMD PDF at low normalization point in zeta-prescription. ! ! if you use this module please, quote 1706.01473 ! ! 09.11.2021 Created (AV) ! ! A.Vladimirov (09.11.2021) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! module wgtTMDPDF use aTMDe_Numerics use IO_functions use QCDinput use wgtTMDPDF_model implicit none !------------------------LOCALs ----------------------------------------------- private !Current version of module character (len=5),parameter :: version="v2.06" character (len=7),parameter :: moduleName="wgtTMDPDF" !Last appropriate version of constants-file integer,parameter::inputver=19 INCLUDE 'Tables/G7K15.f90' !--------------------------------Working variables----------------------------------------------- !--- general logical:: started=.false. !! Level of output !! 0=only critical !! 1=initialization details !! 2=WARNINGS integer::outputLevel=2 !! variable that count number of WRNING mesagges. In order not to spam too much integer::messageTrigger=6 !!! The global order which is used in programm ! it is set by SetOrderForC subroutine ! 1=LO, 2=NLO, 3=NNLO, etc.. integer :: order_global, order_global_tw3 integer::lambdaNPlength real(dp),dimension(:),allocatable::lambdaNP real(dp),dimension(:),allocatable::lambdaNP_grid !!! this is the value of lambda on which the grid is build real(dp)::c4_global!!!this is the variation constant for mu_OPE !!!Parameters of numerics real(dp) :: tolerance=0.0001d0!!! relative tolerance of the integration integer :: maxIteration=5000 !------------------------------Variables for coefficient function etc------------------------------- !!!!!Coefficient lists integer,parameter::parametrizationLength=4 !! { 1 (exact)} !! The Lmu^2 part is exact the later parts are fitted, but exact if posible (e.g. Lmu and Nf parts for q->q) real(dp),dimension(1:parametrizationLength) :: Coeff_q_q, Coeff_q_g, Coeff_g_q, Coeff_g_g, Coeff_q_qb, Coeff_q_qp !! This is list of coefficeints for the encoding the singular at x->1 !! { 1/(1-x), (Log[1-x]/(1-x))_+, (Log[1-x]^2/(1-x))_+,} real(dp), dimension(1:3) :: CoeffSing1_q_q,CoeffSing1_g_g integer :: counter,messageCounter INCLUDE 'Code/Twist2/Twist2Convolution-VAR.f90' INCLUDE 'Code/Grids/TMDGrid-B-VAR.f90' !!--------------------------------- variables for the griding the TMD.--------------------------------------------- logical :: gridReady!!!!indicator that grid is ready to use. If it is .true., the TMD calculated from the grid logical :: prepareGrid!!!idicator that grid must be prepared logical :: withGluon!!!indicator the gluon is needed in the grid logical :: IsFnpZdependent !!! indicator that the grid must be recalculated with the change of Lambda !!--------------------------------- variables for hadron composition--------------------------------------------- integer::numberOfHadrons !!!number of hadrons/components integer,dimension(:),allocatable::hadronsInGRID !!!list of hadron to be pre-grid logical::IsComposite=.false. !!!flag to use the composite TMD !!-----------------------------------------------Public interface--------------------------------------------------- public::wgtTMDPDF_Initialize,wgtTMDPDF_SetLambdaNP,wgtTMDPDF_SetScaleVariation,wgtTMDPDF_resetGrid,wgtTMDPDF_SetPDFreplica public::wgtTMDPDF_IsInitialized,wgtTMDPDF_CurrentNPparameters public::wgtTMDPDF_lowScale5,wgtTMDPDF_lowScale50 ! public::CheckCoefficient ! public::mu_OPE interface wgtTMDPDF_SetLambdaNP module procedure wgtTMDPDF_SetLambdaNP_usual,wgtTMDPDF_SetReplica_optional end interface contains INCLUDE 'Code/Twist2/Twist2Convolution.f90' INCLUDE 'Code/Grids/TMDGrid-B.f90' !! Coefficient function INCLUDE 'Code/wgtTMDPDF/coeffFunc.f90' !! Computation of TMDs INCLUDE 'Code/wgtTMDPDF/convolutions.f90' !! Testing the model INCLUDE 'Code/wgtTMDPDF/modelTest.f90' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Interface subroutines!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! function wgtTMDPDF_IsInitialized() logical::wgtTMDPDF_IsInitialized wgtTMDPDF_IsInitialized=started end function wgtTMDPDF_IsInitialized !! Initialization of the package subroutine wgtTMDPDF_Initialize(file,prefix) character(len=*)::file character(len=*),optional::prefix character(len=300)::path,line logical::initRequired character(len=8)::orderTW2 logical::bSTAR_lambdaDependent integer::i,FILEver if(started) return if(.not.QCDinput_IsInitialized()) then if(outputLevel>1) write(*,*) '.. initializing QCDinput (from ',moduleName,')' if(present(prefix)) then call QCDinput_Initialize(file,prefix) else call QCDinput_Initialize(file) end if end if if(present(prefix)) then path=trim(adjustl(prefix))//trim(adjustr(file)) else path=trim(adjustr(file)) end if OPEN(UNIT=51, FILE=path, ACTION="read", STATUS="old") !!! Search for output level call MoveTO(51,'*0 ') call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) FILEver if(FILEver<inputver) then write(*,*) 'artemide.'//trim(moduleName)//': const-file version is too old.' write(*,*) ' Update the const-file with artemide.setup' write(*,*) ' ' stop end if call MoveTO(51,'*p2 ') read(51,*) outputLevel if(outputLevel>1) write(*,*) '--------------------------------------------- ' if(outputLevel>1) write(*,*) 'artemide.',moduleName,version,': initialization started ... ' call MoveTO(51,'*p3 ') read(51,*) messageTrigger !!!!--------------------- actual wgtTMDPDF section call MoveTO(51,'*13 ') call MoveTO(51,'*p1 ') read(51,*) initRequired if(.not.initRequired) then if(outputLevel>1) write(*,*)'artemide.',moduleName,': initialization is not required. ' started=.false. return end if !----- ORDER call MoveTO(51,'*A ') call MoveTO(51,'*p1 ') read(51,*) orderTW2 !!!!!!!!!!!!!!!!!! !!!!! LO=1 because it is needed to trigger computation of convolution in convolution.f90 SELECT CASE(trim(orderTW2)) CASE ("NA") if(outputLevel>1) write(*,*) trim(moduleName)//' Order for tw2-part set: NA',color(" (TMD=fNP)",c_yellow) order_global=-50 CASE ("LO") if(outputLevel>1) write(*,*) trim(moduleName)//' Order for tw2-part set: LO' order_global=1 CASE ("LO+") if(outputLevel>1) write(*,*) trim(moduleName)//' Order for tw2-part set: LO+' order_global=1 CASE ("NLO") if(outputLevel>1) write(*,*) trim(moduleName)//' Order for tw2-part set: NLO' order_global=2 CASE DEFAULT if(outputLevel>0) write(*,*) & WarningString('Initialize: unknown order for tw2 coefficient function. Switch to LO.',moduleName) if(outputLevel>1) write(*,*) trim(moduleName)//' Order set: LO' order_global=1 END SELECT if(outputLevel>2 .and. order_global>-1) write(*,'(A,I1)') ' | Tw2.Coef.func. =as^',(order_global-1) !------ Compositeness call MoveTO(51,'*p2 ') read(51,*) IsComposite if(outputLevel>2) then if(IsComposite) then write(*,'(A,I1)') ' | Use compsite =TRUE' else write(*,'(A,I1)') ' | Use compsite =FALSE' end if end if !-------------parameters of NP model call MoveTO(51,'*B ') call MoveTO(51,'*p1 ') read(51,*) lambdaNPlength if(outputLevel>2) write(*,'(A,I3)') ' Number of NP parameters =',lambdaNPlength if(lambdaNPlength<=0) then write(*,*) ErrorString('Initialize: number of non-pertrubative & parameters should be >=1. Check the constants-file. Evaluation STOP',moduleName) stop end if allocate(lambdaNP(1:lambdaNPlength)) call MoveTO(51,'*p2 ') do i=1,lambdaNPlength read(51,*) lambdaNP(i) end do !-------------Numeric parameters call MoveTO(51,'*C ') call MoveTO(51,'*p1 ') read(51,*) tolerance call MoveTO(51,'*p2 ') read(51,*) maxIteration if(outputLevel>2) then write(*,'(A,ES10.3)') ' | tolerance =',tolerance write(*,'(A,ES10.3)') ' | max iteration =',REAL(maxIteration) end if !-------------Make grid options call MoveTO(51,'*D ') call MoveTO(51,'*p1 ') read(51,*) prepareGrid call MoveTO(51,'*p2 ') read(51,*) withGluon call MoveTO(51,'*p3 ') read(51,*) numberOfHadrons allocate(hadronsInGRID(1:numberOfHadrons)) call MoveTO(51,'*p4 ') read(51,*) hadronsInGRID !-------------Parameters of grid call MoveTO(51,'*E ') call MoveTO(51,'*p1 ') read(51,*) xGrid_Min call MoveTO(51,'*p2 ') read(51,*) bGrid_Max call MoveTO(51,'*p3 ') read(51,*) GridSizeX call MoveTO(51,'*p4 ') read(51,*) GridSizeB call MoveTO(51,'*p5 ') read(51,*) slope if(outputLevel>2) then write(*,*) 'Grid options:' write(*,'(A,ES10.3)') ' | xGrid_Min =',xGrid_Min write(*,'(A,ES10.3)') ' | bGrid_Max =',bGrid_Max write(*,'(A,I6,A,I6,A)') ' | (GridSizeX,GridSizeB) =(',GridSizeX,',',GridSizeB,')' write(*,'(A,F6.3)') ' | slope =',slope write(*,'(A,I3)') ' | hadrons to grid =',numberOfHadrons write(*,*) ' | list of hadrons in grid =(',hadronsInGRID,')' end if CLOSE (51, STATUS='KEEP') allocate(gridMain(0:GridSizeX,0:GridSizeB,-5:5,1:numberOfHadrons)) allocate(boundaryValues(0:GridSizeX,-5:5,1:numberOfHadrons)) allocate(lambdaNP_grid(1:lambdaNPlength)) c4_global=1d0 call ModelInitialization(lambdaNP) !!!! no x-dependance in Mu FOREVER IsMuXdependent=.false. !!!!!!!Checking the lambda-dependance of bSTAR bSTAR_lambdaDependent=testbSTAR() if(bSTAR_lambdaDependent) then if(outputLevel>2) write(*,*) 'arTeMiDe.wgtTMDPDF: bSTAR is dependent on lambda' else if(outputLevel>2) write(*,*) 'arTeMiDe.wgtTMDPDF: bSTAR is independent on lambda' end if !!! if fnp depende on z or bSTAR depeds on lambda !!! grid must be recalculate ech time. It canbe saved to single IsFnpZdependent if(bSTAR_lambdaDependent) then IsFnpZdependent=.true. if(outputLevel>2) write(*,*) 'arTeMiDe.wgtTMDPDF: ............. convolution is lambda sensitive.' end if started=.true. messageCounter=0 if(outputLevel>0) write(*,*) color('----- arTeMiDe.wgtTMDPDF '//trim(version)//': .... initialized',c_green) if(outputLevel>1) write(*,*) ' ' end subroutine wgtTMDPDF_Initialize !! call for parameters from the model subroutine wgtTMDPDF_SetReplica_optional(num,buildGrid, gluonRequired) integer,intent(in):: num logical,optional,intent(in):: buildGrid,gluonRequired real(dp),allocatable::NParray(:) call GetReplicaParameters(num,NParray) if(present(buildGrid)) then if(present(gluonRequired)) then call wgtTMDPDF_SetLambdaNP_usual(NParray,buildGrid=buildGrid,gluonRequired=gluonRequired) else call wgtTMDPDF_SetLambdaNP_usual(NParray,buildGrid=buildGrid) end if else if(present(gluonRequired)) then call wgtTMDPDF_SetLambdaNP_usual(NParray,gluonRequired=gluonRequired) else call wgtTMDPDF_SetLambdaNP_usual(NParray) end if end if end subroutine wgtTMDPDF_SetReplica_optional !! call QCDinput to change the PDF replica number !! unset the grid, since it should be recalculated fro different PDF replica. subroutine wgtTMDPDF_SetPDFreplica(rep,hadron) integer,intent(in):: rep,hadron logical::newPDF call QCDinput_SethPDFreplica(rep,hadron,newPDF) if(newPDF) then gridReady=.false. call wgtTMDPDF_resetGrid() else if(outputLevel>1) write(*,"('arTeMiDe ',A,': replica of PDF (',I4,' is the same as the used one. Nothing is done!')") & moduleName, rep end if end subroutine wgtTMDPDF_SetPDFreplica !!!Sets the non-pertrubative parameters lambda !!! carries additionl option to build the grid !!! if need to build grid, specify the gluon required directive. subroutine wgtTMDPDF_SetLambdaNP_usual(lambdaIN,buildGrid, gluonRequired) real(dp),intent(in)::lambdaIN(:) logical,optional,intent(in) :: buildGrid,gluonRequired real(dp),dimension(1:lambdaNPlength)::lambdaOLD logical::IsNewValues integer::i,ll messageCounter=0 if(present(buildGrid)) prepareGrid=buildGrid if(present(gluonRequired)) withGluon=gluonRequired ll=size(lambdaIN) if(ll<lambdaNPlength) then if(outputLevel>0) write(*,"(A,I3,A,I3,')')")& WarningString('SetLambdaNP:length of lambdaNP(',moduleName),& ll,color(') is less then requred (',c_red),lambdaNPlength if(outputLevel>0) write(*,*)color(' Rest parameters are replaced by zeros!',c_red) lambdaNP=0d0*lambdaNP lambdaNP(1:ll)=lambdaIN(1:ll) else if (ll>lambdaNPlength) then if(outputLevel>0) write(*,"(A,I3,A,I3,')')")& WarningString('SetLambdaNP:length of lambdaNP(',moduleName),& ll,color(') is greater then requred (',c_red),lambdaNPlength if(outputLevel>0) write(*,*)color(' Array is truncated!',c_red) lambdaNP(1:lambdaNPlength)=lambdaIN(1:lambdaNPlength) else lambdaOLD=lambdaNP lambdaNP=lambdaIN end if lambdaOLD=lambdaNP lambdaNP=lambdaIN IsNewValues=.false. do i=1,lambdaNPlength if(ABS(lambdaNP(i)-lambdaOLD(i))>10d-10) then IsNewValues=.true. exit end if end do if(IsNewValues.and.(outputLevel>2)) write(*,*) 'arTeMiDe.',moduleName,': NPparameters reset = (',lambdaNP,')' call ModelUpdate(lambdaNP) !! further if's are only for griding if(prepareGrid) then !!!grid is requred if(IsNewValues) then !! values are new if(gridReady) then !!! grid is already build if(IsFnpZdependent) then !!! check the z-dependance of FNP !! if it is z- dependent, rebuild the grid gridReady=.false. call MakeGrid() gridReady=.true. else !!! if z-Independent just do nothing. if(outputLevel>2) write(*,*) 'arTeMiDe.',moduleName,': the values are to be restored from the initial grid' end if else !!! grid is not ready (how comes?) call MakeGrid() gridReady=.true. end if else !! values are old if(gridReady) then !!! grid is already build !!!nothing to do else!!rare option then parameters are not new but grit is not build if(outputLevel>2) write(*,*) 'arTeMiDe.',moduleName,': parameters are not reset. But grid is not ready.' call MakeGrid() gridReady=.true. end if end if else gridReady=.false. end if end subroutine wgtTMDPDF_SetLambdaNP_usual !!! returns current value of NP parameters subroutine wgtTMDPDF_CurrentNPparameters(var) real(dp),dimension(1:lambdaNPlength),intent(out)::var var=lambdaNP end subroutine wgtTMDPDF_CurrentNPparameters !!! This subroutine ask for the grid reconstruction (or destruction) subroutine wgtTMDPDF_resetGrid(buildGrid,gluonRequired) logical,optional,intent(in)::buildGrid,gluonRequired logical::previousState if(present(buildGrid)) prepareGrid=buildGrid if(present(gluonRequired)) withGluon=gluonRequired previousState=gridReady gridReady=.false. !! we recalculate grid only if it was already calculated! if(prepareGrid .and. previousState) then if(outputLevel>1) write(*,*) 'arTeMiDe ',moduleName,': Grid Reset. with c4=',c4_global call MakeGrid() gridReady=.true. end if end subroutine wgtTMDPDF_resetGrid !!!! this routine set the variations of scales !!!! it is used for the estimation of errors subroutine wgtTMDPDF_SetScaleVariation(c4_in) real(dp),intent(in)::c4_in if(c4_in<0.1d0 .or. c4_in>10.d0) then if(outputLevel>0) write(*,*) WarningString('variation in c4 is enourmous. c4 is set to 2',moduleName) c4_global=2d0 call wgtTMDPDF_resetGrid() else if(abs(c4_in-c4_global)<tolerance) then if(outputLevel>1) write(*,*) color('wgtTMDPDF: c4-variation is ignored. c4='//real8ToStr(c4_global),c_yellow) else c4_global=c4_in if(outputLevel>1) write(*,*) color('wgtTMDPDF: set scale variations constant c4 as:'//real8ToStr(c4_global),c_yellow) call wgtTMDPDF_resetGrid() end if end subroutine wgtTMDPDF_SetScaleVariation end module wgtTMDPDF
16,933
33.629857
128
f90
artemide-public
artemide-public-master/src/Code/IO_functions.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! arTeMiDe 2.02 ! ! The module that contains support functions for input-output used within artemide ! ! A.Vladimirov (08.09.2019) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! module IO_functions use aTMDe_numerics implicit none !!!! colors for colring of the ansi-output character(len=1), parameter :: c_esc = achar(27) character(len=2), parameter :: c_start = c_esc // '[' character(len=1), parameter :: c_end = 'm' character(len=*), parameter :: c_black = '30' character(len=*), parameter :: c_black_bold = '30;1' character(len=*), parameter :: c_red = '31' character(len=*), parameter :: c_red_bold = '31;1' character(len=*), parameter :: c_green = '32' character(len=*), parameter :: c_green_bold = '32;1' character(len=*), parameter :: c_yellow = '33' character(len=*), parameter :: c_yellow_bold = '33;1' character(len=*), parameter :: c_blue = '34' character(len=*), parameter :: c_magenta = '35' character(len=*), parameter :: c_cyan = '36' character(len=*), parameter :: c_white = '37' character(len=*), parameter :: c_clear = c_start // '0' // c_end interface numToStr module procedure intToStr,realToStr,real8ToStr end interface numToStr contains !!!the function that makes string-ansi-colored !!!initial code copied from http://fortranwiki.org/fortran/show/ansi_colors function color(str, code) result(out) character(len=*), intent(in) :: str character(len=*), intent(in) :: code character(len=:), allocatable :: out out = c_start // code // c_end // str // c_clear end function color !!! move the CURRET in streem to the next line that starts from pos (5 char) !!! this function is universally used in all reading of constants-files subroutine MoveTO(streem,pos) integer,intent(in)::streem character(len=5)::pos character(len=300)::line integer::IOstatus do read(streem,'(A)',IOSTAT=IOstatus) line if(IOstatus>0) then write(*,*) ErrorString("Error in attemt to read the line ("//pos//")", "aTMDe_IO_system") stop else if(IOstatus<0) then write(*,*) ErrorString("EndOfFile during search of the line ("//pos//")", "aTMDe_IO_system") stop else if(line(1:5)==pos) exit end if end do end subroutine MoveTO !!! write list of short integers (I5) to streem spliting by commas !!! used to fill constants-file subroutine writeShortIntegerList(streem, list) integer::streem,i integer,intent(in)::list(:) do i=1,size(list)-1 write(streem,"(I5,', ')",advance='no') list(i) end do write(streem,"(I5)") list(size(list)) end subroutine writeShortIntegerList !--------------------convertation !!! convert a real(dp) number to a string function real8ToStr(num) real(dp),intent(in)::num character(len=16)::real8ToStr write(real8ToStr,"(F16.10)") num end function real8ToStr !!! convert a real number to a string function realToStr(num) real,intent(in)::num character(len=12)::realToStr write(realToStr,*) num end function realToStr !!! convert an integer number to a string function intToStr(num) integer,intent(in)::num character(len=8)::intToStr write(intToStr,"(I8)") num end function intToStr !! convert an short integer number to a string function int4ToStr(num) integer,intent(in)::num character(len=4)::int4ToStr write(int4ToStr,"(I4)") num end function int4ToStr !!!Common format of Warning line in artemide function WarningString(str, moduleName) result(out) character(len=*), intent(in) :: str character(len=*), intent(in) :: moduleName character(len=:), allocatable :: out out = color('WARNING: artemide.'//trim(moduleName)//': '//trim(str),c_red) end function WarningString !!!Common format of error line in artemide function ErrorString(str, moduleName) result(out) character(len=*), intent(in) :: str character(len=*), intent(in) :: moduleName character(len=:), allocatable :: out out = color('ERROR: artemide.'//trim(moduleName)//': '//trim(str),c_red_bold) end function ErrorString !--------------------------- massage trigger counter functions !!!! the routine shows a line of warning. and increase the counter !!!! Use this one for WARNINGS subroutine Warning_Raise(str,messageCounter,messageTrigger,moduleName) integer::messageCounter integer,intent(in)::messageTrigger character(len=*), intent(in) :: moduleName character(len=*), intent(in) :: str if(messageCounter<=messageTrigger) then write(*,*) WarningString(str,moduleName) messageCounter=messageCounter+1 if(messageCounter>messageTrigger) then write(*,*) color('artemide.'//trim(moduleName)//& ': number of warning massages hits the limit. Further warnings are suppressed',c_red) end if end if end subroutine Warning_Raise end module IO_functions
5,059
34.138889
104
f90
artemide-public
artemide-public-master/src/Code/IntegrationRoutines.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! arTeMiDe 2.04 ! ! The module that contains standard integration routines (mainly used for bin integration) ! the main difference from library routines is the absence of checks (boundaries, etc.), ! the checks are done in the artemide main code. ! ! Currently it incorporates: ! S5: 5-point Simpsons ! SN: N-point Simpsons (N=even) ! SA: Adaptive Simpsons ! G7: 7-point Gauss ! K15: 15-point Kronrod ! GK: Adaptive Gauss Kronrod 7/15 ! ! A.Vladimirov (17.04.2020) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! module IntegrationRoutines use aTMDe_numerics implicit none private INCLUDE '../Tables/G7K15.f90' public::Integrate_S5,Integrate_SN,Integrate_SA public::Integrate_G7,Integrate_K15,Integrate_GK contains !!! Simpson by 5 points !!! Use it for estimations only! !!! f:: function of 1 variable !!! xMin, and xMax boundaries of the integral. xMax>xMin !! function Integrate_S5(f,xMin,xMax) real(dp)::f,Integrate_S5 real(dp),intent(in)::xMin,xMax real(dp)::delta,x2,x3,x4,f1,f2,f3,f4,f5 delta=xMax-xMin x2=xMin+delta/4_dp x3=xMin+delta/2_dp x4=xMax-delta/4_dp f1=f(xMin) f2=f(x2) f3=f(x3) f4=f(x4) f5=f(xMax) Integrate_S5=delta*(f1+4_dp*f2+2_dp*f3+4_dp*f4+f5)/12_dp end function Integrate_S5 !!! Simpson by N points !!! f:: function of 1 variable !!! xMin, and xMax boundaries of the integral. xMax>xMin !! !!! N is an even integer N>2 function Integrate_SN(f,xMin,xMax,N) real(dp)::f,Integrate_SN real(dp),intent(in)::xMin,xMax real(dp)::delta,inter,xCur integer::N,i !!!!!!!!!!!!!!!!!!!fixed number Simpsons delta=(xMax-xMin)/N inter=f(xMin) !!!! first term !!!! even terms do i=1,N-1,2 xCur=xMin+i*delta inter=inter+4_dp*f(xCur) end do !!!! odd term do i=2,N-2,2 xCur=xMin+i*delta inter=inter+2_dp*f(xCur) end do inter=inter+f(xMax)!!!! last term Integrate_SN=delta/3_dp*inter end function Integrate_SN !!! Simpson adaptive !!! f:: function of 1 variable !!! xMin, and xMax boundaries of the integral. xMax>xMin !! !!! tolerance is relative (it is wieghted by approximate value of integral) function Integrate_SA(f,xMin,xMax,tolerance) real(dp)::f,Integrate_SA,tolerance,eps real(dp),intent(in)::xMin,xMax real(dp)::delta,x2,x3,x4,f1,f2,f3,f4,f5 delta=xMax-xMin x2=xMin+delta/4_dp x3=xMin+delta/2_dp x4=xMax-delta/4_dp f1=f(xMin) f2=f(x2) f3=f(x3) f4=f(x4) f5=f(xMax) !!! the error parameter is weighted with the approximate integral size eps=tolerance*abs(delta*(f1+4_dp*f2+2_dp*f3+4_dp*f4+f5)/12_dp) Integrate_SA=SA_Rec(f,xMin,x2,x3,f1,f2,f3,eps)+SA_Rec(f,x3,x4,xMax,f3,f4,f5,eps) end function Integrate_SA recursive function SA_Rec(f,x1,x3,x5,f1,f3,f5,eps) result(res) real(dp)::f,x1,x2,x3,x4,x5 real(dp)::f1,f2,f3,f4,f5,eps,res real(dp)::value15,value135 x2=(x1+x3)/2_dp f2=f(x2) x4=(x3+x5)/2_dp f4=f(x4) value15=(x5-x1)*(f1+4_dp*f3+f5)/6_dp value135=(x5-x1)*(f1+4_dp*f2+2_dp*f3+4_dp*f4+f5)/12_dp If(ABS(value135-value15)>eps) then res=SA_Rec(f,x1,x2,x3,f1,f2,f3,eps)+SA_Rec(f,x3,x4,x5,f3,f4,f5,eps) else res=value135 end if end function SA_Rec !!! Gauss 7-points !!! f:: function of 1 variable !!! xMin, and xMax boundaries of the integral. xMax>xMin !! function Integrate_G7(f,xMin,xMax) real(dp)::f,Integrate_G7 real(dp),intent(in)::xMin,xMax real(dp)::delta,av,inter integer::i delta=(xMax-xMin)/2_dp av=(xMax+xMin)/2_dp inter=0_dp do i=1,7 inter=inter+Wi_g77(i)*f(Xi_g7(i)*delta+av) end do Integrate_G7=delta*inter end function Integrate_G7 !!! Kronrod 15-points !!! f:: function of 1 variable !!! xMin, and xMax boundaries of the integral. xMax>xMin !! function Integrate_K15(f,xMin,xMax) real(dp)::f,Integrate_K15 real(dp),intent(in)::xMin,xMax real(dp)::delta,av,inter integer::i delta=(xMax-xMin)/2_dp av=(xMax+xMin)/2_dp inter=0_dp do i=1,15 inter=inter+Wi_k15(i)*f(Xi_k15(i)*delta+av) end do Integrate_K15=delta*inter end function Integrate_K15 !!! Gauss-Kronrod 7/15 adaptive !!! f:: function of 1 variable !!! xMin, and xMax boundaries of the integral. xMax>xMin !! !!! tolerance is relative (it is wieghted by approximate value of integral) function Integrate_GK(f,xMin,xMax,tolerance) real(dp)::f,Integrate_GK real(dp),intent(in)::xMin,xMax real(dp)::delta,av,g7,k15,eps,tolerance,fI integer::i delta=(xMax-xMin)/2_dp av=(xMax+xMin)/2_dp g7=0_dp k15=0_dp do i=1,15 fI=f(Xi_k15(i)*delta+av) g7=g7+Wi_g7(i)*fI k15=k15+Wi_k15(i)*fI end do eps=delta*abs(k15)*tolerance if(delta*abs(k15-g7)>eps) then Integrate_GK=GK_Rec(f,xMin,av,eps)+GK_Rec(f,av,xMax,eps) else Integrate_GK=delta*k15 end if end function Integrate_GK recursive function GK_Rec(f,xMin,xMax,eps) result(res) real(dp)::f,res real(dp),intent(in)::xMin,xMax real(dp)::delta,av,g7,k15,eps,fI integer::i delta=(xMax-xMin)/2_dp av=(xMax+xMin)/2_dp g7=0_dp k15=0_dp do i=1,15 fI=f(Xi_k15(i)*delta+av) g7=g7+Wi_g7(i)*fI k15=k15+Wi_k15(i)*fI end do if(delta*abs(k15-g7)>eps) then res=GK_Rec(f,xMin,av,eps)+GK_Rec(f,av,xMax,eps) else res=delta*k15 end if end function GK_Rec end module IntegrationRoutines
5,842
23.654008
95
f90
artemide-public
artemide-public-master/src/Code/aTMDe_Numerics.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! arTeMiDe 2.03 ! ! Contains the definition of the precision and global numeric constants, used in computation ! Used in each artemide module. ! ! A.Vladimirov (10.02.2020) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! module aTMDe_Numerics implicit none public !!-------------------------Definition of presision kinds---------------- !!-------------------------artemide uses dp presision everywhere ------- !!-------------------------declare as real(dp) integer, parameter :: sp = selected_real_kind(6, 37) integer, parameter :: dp = selected_real_kind(15, 307) integer, parameter :: qp = selected_real_kind(33, 4931) !!! for the complex nimbers I use COMPLEX*16 !!------------------------Constants !!------------------------written up to 64 digits (in case double-precision will be rised) !!! Zeta-functions real(dp),parameter::zeta2=1.644934066848226436472415166646025189218949901206798437735558229_dp real(dp),parameter::zeta3=1.202056903159594285399738161511449990764986292340498881792271555_dp real(dp),parameter::zeta4=1.082323233711138191516003696541167902774750951918726907682976215_dp real(dp),parameter::zeta5=1.036927755143369926331365486457034168057080919501912811974192678_dp real(dp),parameter::zeta6=1.017343061984449139714517929790920527901817490032853561842408664_dp !!! Pi 's real(dp),parameter::piHalf=1.570796326794896619231321691639751442098584699687552910487472296_dp !!pi/2 real(dp),parameter::pi=3.141592653589793238462643383279502884197169399375105820974944592_dp !!pi real(dp),parameter::pix2=6.283185307179586476925286766559005768394338798750211641949889185_dp !!2*pi real(dp),parameter::pix4=12.56637061435917295385057353311801153678867759750042328389977837_dp !!4*pi !!! Pi^2 's real(dp),parameter::pi2=9.869604401089358618834490999876151135313699407240790626413349376_dp !!pi^2 real(dp),parameter::pi2x2=19.73920880217871723766898199975230227062739881448158125282669875_dp !!2*pi^2 real(dp),parameter::pi2x4=39.47841760435743447533796399950460454125479762896316250565339750_dp !!4*pi^2 !!! Pi^4 's real(dp),parameter::pi4=97.40909103400243723644033268870511124972758567268542169146785939_dp !!pi^4 real(dp),parameter::pi4x2=194.8181820680048744728806653774102224994551713453708433829357188_dp !!2*pi^4 real(dp),parameter::pi4x4=389.6363641360097489457613307548204449989103426907416867658714376_dp !!4*pi^4 !!! C0 -constant (typical TMD constant) real(dp), parameter :: C0_const=1.122918967133770339648286429581761573531420773850306336308318152_dp !!=2Exp[-gamma_E] real(dp), parameter :: C0_inv_const=0.8905362089950989926182520515535897745848226071517151026788329383_dp !!=Exp[gamma_E]/2 end module aTMDe_Numerics
2,858
52.943396
126
f90
artemide-public
artemide-public-master/src/Code/Grids/TMDGrid-B-2.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! arTeMiDe 1.4 ! ! This file contains the part of the code, which is common for all TMD-evaluation modules that operates at twist-2 ! It shares the variables with the module where it is inlucded (as a text) ! Such idiotic structure is needed since, FORTRAN does not allow inheritance. ! ! Be AWARE of possible clash of variable names. ! ! This part is devoted to the Grid evaluation ! ! v.2.00 Large-b evaluation changed AV (25.03.2019) ! v.2.01 Cosmetic changes AV (25.04.2019) ! ! A.Vladimirov (08.10.2018) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!! !!!! THIS IS THE SAME CODE AS IN TMDGRID-B !!!! THE ONLY DIFFERENCE THAT FNP is called without z-argument !!!! !--------------------------------------------------------------------------------------- !Used global variables: ! outputlevel, moduleName ! numberOfHadrons, hadronsInGRID ! lambdaNP_grid, lambdaNP, FNP ! aTMDe_Numerics, IO_functions functions ! + variables defined in TMDGrid-B-VAR.f90 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Griding functions !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! this subroutine create grid. It is called only from the uTMDPDF_SetLambdaNP function. subroutine MakeGrid() real(dp):: x_local,b_local !!!size of grid is power of 2, to make it testable and reusable. order is the current power. integer:: iX,iB,j,h real(dp),dimension(-5:5)::checkValue,dummyfNP real(dp)::maxValue,eps,epsB,epsX,B_BAD,x_BAD,eps_av,time1,time2 integer::grid_size real(dp),dimension(0:GridSizeX,1:2,-5:5,1:numberOfHadrons)::smallGrid real(dp)::v1_BAD,v2_BAD if(numberOfHadrons==1 .and. hadronsInGRID(1)==0) return call cpu_time(time1) if(outputlevel>2) write(*,*) 'arTeMiDe.',moduleName,' starts to build grid. At ',time1 !!!save the parameters on which the grid is build lambdaNP_grid=lambdaNP bFactor=bGrid_Max/(EXP(slope)-1d0) !!! often used combination slopeFactor=slope/REAL(GridSizeB) ! goto 111 !!!We use the following grid !! b=(e^{a i/imax}-1)/(e^a-1)*b_Max !! where a=slope. If slope higher more points concentrated at b->0 !! For x we use the grid !! x=(xMin)^(i/imax) do h=1,numberOfHadrons do iX=0,GridSizeX do iB=0,GridSizeB x_local=xGrid_Min**(REAL(iX)/REAL(GridSizeX)) b_local=(EXP(slopeFactor*REAL(iB))-1d0)*bFactor if(x_local==1d0) then gridMain(iX,iB,-5:5,h)=0d0 else if(withGluon) then gridMain(iX,iB,-5:5,h)=x_local*Common_lowScale50(x_local,b_local,hadronsInGRID(h)) else gridMain(iX,iB,-5:5,h)=x_local*Common_lowScale5(x_local,b_local,hadronsInGRID(h)) end if end if end do end do if(outputLevel>1 .and. numberOfHadrons>1) write(*,'(" ",A,": Grid for hadron ",I3," is done")') moduleName,hadronsInGRID(h) end do !!!!!!!!!!!!!************************************************************************************************************** !!!!!!!!!!!!!************************************************************************************************************** !!!!!!!!!!!!!*****************************TALE PART************************************************************************ !!!!!!!!!!!!!************************************************************************************************************** !!!The high B (b>bGrid_Max) tales are approximated as value(bGrid_Max)/fNP(x,x,bGrid_Max) * fNP(x,x,b) !!! this approximation is exact if coeff-function freeze at large b. 111 do h=1,numberOfHadrons do iX=1,GridSizeX x_local=xGrid_Min**(REAL(iX)/REAL(GridSizeX)) b_local=bGrid_Max if(withGluon) then boundaryValues(iX,-5:5,h)=x_local*Common_lowScale50(x_local,b_local,hadronsInGRID(h)) else boundaryValues(iX,-5:5,h)=x_local*Common_lowScale5(x_local,b_local,hadronsInGRID(h)) boundaryValues(iX,0,h)=0d0 end if dummyfNP=FNP(x_local,b_local,hadronsInGRID(h),lambdaNP_grid) !!!! if fNP=0, here, we check is C x f fNP=0, if so, we save 1, otherwise exception do j=-5,5 if(dummyfNP(j)==0d0) then if(boundaryValues(iX,j,h)/=0d0 .and. outputLevel>0) then call Warning_Raise('error in evaluation of boundary for grid',messageCounter,messageTrigger,moduleName) if(messageCounter<messageTrigger) then write(*,*) '----- information on last call -----' write(*,*) 'fNP=',dummyfNP(j),'boundary=',boundaryValues(iX,j,h), 'for (h,f)=(',hadronsInGRID(h),j,')' write(*,*) 'Continue with value=1' end if end if boundaryValues(iX,j,h)=1d0 else !!!normal case boundaryValues(iX,j,h)=boundaryValues(iX,j,h)/dummyfNP(j) end if end do end do end do call cpu_time(time2) if(outputlevel>1) then if(numberOfHadrons>1) then write(*,'(" ",A,": Grids are built (",I5," x",I5,") calc.time=",F6.2,"s. ")')& moduleName, GridSizeX,GridSizeB, time2-time1 else write(*,'(" ",A,": Grid is built (",I5," x",I5,") calc.time=",F6.2,"s. ")')& moduleName, GridSizeX,GridSizeB, time2-time1 end if end if !!check the grid !! we pass though grid restoring a point from near-by points !! in this way we estimate error if(outputLevel>2) then do h=1,numberOfHadrons epsB=0d0 epsX=0d0 eps_av=0d0 grid_size=0 !check b-grid do iX=0,GridSizeX maxValue=MAXVAL(ABS(gridMain(iX,2:GridSizeB,1:3,h))) if(maxValue>0d0) then do iB=2,GridSizeB-4 checkValue=((-gridMain(iX,iB,-5:5,h)+4d0*gridMain(iX,iB+1,-5:5,h)+4d0*gridMain(iX,iB+3,-5:5,h)& -gridMain(iX,iB+4,-5:5,h))/6d0-gridMain(iX,iB+2,-5:5,h)) if(.not.withGluon) checkValue(0)=0 eps=MAXVAL(ABS(checkValue))/maxValue eps_av=eps_av+checkValue(MAXLOC(ABS(checkValue),1)-6)/maxValue grid_size=grid_size+1 if(eps>epsB) then epsB=eps B_BAD=(EXP(slopeFactor*REAL(iB+2))-1d0)*bFactor x_BAD=xGrid_Min**(REAL(iX)/REAL(GridSizeX)) end if end do end if end do ! write(*,*) 'The worst B reconstraction with ',epsB, 'at (x,b)=',x_BAD,B_BAD ! check x-grid do iB=0,GridSizeB if(withGluon) then maxValue=MAXVAL(ABS(gridMain(0:GridSizeX,iB,0:3,h))) else maxValue=MAXVAL(ABS(gridMain(0:GridSizeX,iB,1:3,h))) end if if(maxValue>0d0) then do iX=0,GridSizeX-4 checkValue=((-gridMain(iX,iB,-5:5,h)+4d0*gridMain(iX+1,iB,-5:5,h)+4d0*gridMain(iX+3,iB,-5:5,h)& -gridMain(iX+4,iB,-5:5,h))/6d0-gridMain(iX+2,iB,-5:5,h)) if(.not.withGluon) checkValue(0)=0 eps=MAXVAL(ABS(checkValue))/maxValue eps_av=eps_av+eps grid_size=grid_size+1 if(eps>epsX) then epsX=eps B_BAD=(EXP(slopeFactor*REAL(iB))-1d0)*bFactor x_BAD=xGrid_Min**(REAL(iX+2)/REAL(GridSizeX)) end if end do end if end do ! write(*,*) 'The worst X reconstraction with ',epsX, 'at (x,b)=',x_BAD,B_BAD write(*,'(" ",A,": Grid (for hadron ",I3,") av.badness =",ES12.3)')& moduleName,hadronsInGRID(h),eps_av/REAL(grid_size) end do end if end subroutine MakeGrid function ExtractFromGrid(x,bT,hadron) real(dp),intent(in)::x,bT integer,intent(in)::hadron real(dp),dimension(-5:5)::ExtractFromGrid real(dp),dimension(0:3,-5:5):: interI real(dp),dimension(-5:5)::dummyfNP real(dp)::indexX,indexB,fX,fB integer::i,iX,iB,h real(dp)::var1,var2,var3,var4 !!dummyvariables !!!searching for hadron h=0 do i=1,numberOfHadrons if(hadronsInGRID(i)==hadron) then h=i exit end if end do if(h==0) then write(*,*) ErrorString('the hadron '//numToStr(hadron)//' is not found in the grid',moduleName) write(*,*) 'arTeMiDe: evaluation STOP' stop end if if(x<xGrid_Min) then write(*,*) ErrorString('The TMD with x ='//numToStr(x)//'is called. Current grid size is up to '//& numToStr(xGrid_Min)//'. Enlarge boundaries.',moduleName) write(*,*) 'arTeMiDe: evaluation STOP' stop end if if(x>1d0) then write(*,*) ErrorString('The TMD with x >1 ('//numToStr(x)//') is called.',moduleName) write(*,*) 'arTeMiDe: evaluation STOP' stop end if if(bT<0d0) then write(*,*) ErrorString('The TMD with bT <0 ('//numToStr(bT)//') is called.',moduleName) write(*,*) 'arTeMiDe: evaluation STOP' stop end if !!!!!!!!!Finding X index indexX=GridSizeX*LOG(x)/LOG(xGrid_Min) iX=INT(indexX) if(iX>0) then if(iX<GridSizeX-1) then !!normal restoration X iX=INT(indexX) else !!X in the last interval iX=INT(indexX)-2 end if else !! X in the first inteval iX=INT(indexX)+1 end if fX=indexX-iX !!! fraction part (automatically shifted by +- 1 if needed) if(bT>bGrid_Max) then !!!!here will code for large b !!! we interpolate over x the boundary value var1=-fX*(fX-1d0)*(fX-2d0) var2=3d0*(fX+1d0)*(fX-1d0)*(fX-2d0) var3=-3d0*(fX+1d0)*fX*(fX-2d0) var4=(fX+1d0)*fX*(fX-1d0) ExtractFromGrid=FNP(x,bT,hadronsInGRID(h),lambdaNP_grid)*& (var1*boundaryValues(iX-1,-5:5,h)+var2*boundaryValues(iX,-5:5,h)& +var3*boundaryValues(iX+1,-5:5,h)+var4*boundaryValues(iX+2,-5:5,h))/6d0/x else!!! b inside the main region indexB=LOG(1d0+bT/bFactor)/slopeFactor iB=INT(indexB) if(iB>0) then if(iB<GridSizeB-1) then !!normal restoration B iB=INT(indexB) else !!B in the last interval iB=INT(indexB)-2 end if else !! B in the first inteval iB=INT(indexB)+1 end if fB=indexB-iB !!! fraction part (automatically shifted by +- 1 if needed) !! intepolation procedure var1=-fB*(fB-1d0)*(fB-2d0) var2=3d0*(fB+1d0)*(fB-1d0)*(fB-2d0) var3=-3d0*(fB+1d0)*fB*(fB-2d0) var4=(fB+1d0)*fB*(fB-1d0) interI(0,-5:5)=(var1*gridMain(iX-1,iB-1,-5:5,h)+var2*gridMain(iX-1,iB,-5:5,h)& +var3*gridMain(iX-1,iB+1,-5:5,h)+var4*gridMain(iX-1,iB+2,-5:5,h))/6d0 interI(1,-5:5)=(var1*gridMain(iX,iB-1,-5:5,h)+var2*gridMain(iX,iB,-5:5,h)& +var3*gridMain(iX,iB+1,-5:5,h)+var4*gridMain(iX,iB+2,-5:5,h))/6d0 interI(2,-5:5)=(var1*gridMain(iX+1,iB-1,-5:5,h)+var2*gridMain(iX+1,iB,-5:5,h)& +var3*gridMain(iX+1,iB+1,-5:5,h)+var4*gridMain(iX+1,iB+2,-5:5,h))/6d0 interI(3,-5:5)=(var1*gridMain(iX+2,iB-1,-5:5,h)+var2*gridMain(iX+2,iB,-5:5,h)& +var3*gridMain(iX+2,iB+1,-5:5,h)+var4*gridMain(iX+2,iB+2,-5:5,h))/6d0 !!! linear interpolation procedure ! interI(0,-5:5)=fB*gridMain(iX-1,iB,-5:5,h)+(1d0-fB)*gridMain(iX-1,iB+1,-5:5,h) ! interI(1,-5:5)=fB*gridMain(iX,iB,-5:5,h)+(1d0-fB)*gridMain(iX,iB+1,-5:5,h) ! interI(2,-5:5)=fB*gridMain(iX+1,iB,-5:5,h)+(1d0-fB)*gridMain(iX+1,iB+1,-5:5,h) ! interI(3,-5:5)=fB*gridMain(iX+2,iB,-5:5,h)+(1d0-fB)*gridMain(iX+2,iB+1,-5:5,h) var1=-fX*(fX-1d0)*(fX-2d0) var2=3d0*(fX+1d0)*(fX-1d0)*(fX-2d0) var3=-3d0*(fX+1d0)*fX*(fX-2d0) var4=(fX+1d0)*fX*(fX-1d0) ExtractFromGrid=(var1*interI(0,-5:5)+var2*interI(1,-5:5)& +var3*interI(2,-5:5)+var4*interI(3,-5:5))/6d0/x end if do i=-5,5 if(ISNAN(ExtractFromGrid(i))) then write(*,*) ErrorString('grid extraction produced NaN. EVALUATION STOP',moduleName) write(*,*) '----- information on last call -----' write(*,*) 'bT=',bT,' i=',i, ' extraction=',ExtractFromGrid(i) write(*,*) 'interI=',interI(0:3,i) dummyfNP=FNP(x,bT,hadronsInGRID(h),lambdaNP_grid) write(*,*) 'fNP=', dummyfNP(i) stop end if end do end function ExtractFromGrid
12,003
34.514793
127
f90
artemide-public
artemide-public-master/src/Code/Grids/TMDGrid-B-VAR.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! arTeMiDe 1.4 ! ! This file contains the part of the code, which is common for all TMD-evaluation modules that operates at twist-2 ! ONLY DECLARATION OF VARIABLES that are used in twist2Convolution ! It shares the variables with the module where it is inlucded (as a text) ! Such idiotic structure is needed since, FORTRAN does not allow inheritance. ! ! Be AWARE of possible clash of variable names. ! ! This part is devoted to the Grid evaluation ! ! A.Vladimirov (08.10.2018) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! real(dp)::xGrid_Min=0.00001d0 !!!!min x in grid. if lower requared remake it real(dp)::bGrid_Max=100d0 !!!max b in grid if higher requared, extrapolation is done integer::GridSizeX=250 integer::GridSizeB=750 real(dp) :: slope=10d0 real(dp), dimension(:,:,:,:), allocatable :: gridMain !!!! THIS IS HUGE(!) matrix for the grid real(dp), dimension(:,:,:), allocatable :: boundaryValues !!!! for b>bGrid_Max we approximate by fNP. With prefactor given by boundary value/fNP(bMax) real(dp):: bFactor,slopeFactor !! some often used combinations
1,220
49.875
152
f90
artemide-public
artemide-public-master/src/Code/Grids/TMDGrid-B.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! arTeMiDe 1.4 ! ! This file contains the part of the code, which is common for all TMD-evaluation modules that operates at twist-2 ! It shares the variables with the module where it is inlucded (as a text) ! Such idiotic structure is needed since, FORTRAN does not allow inheritance. ! ! Be AWARE of possible clash of variable names. ! ! This part is devoted to the Grid evaluation ! ! v.2.00 Large-b evaluation changed AV (25.03.2019) ! v.2.01 Cosmetic changes AV (25.04.2019) ! ! A.Vladimirov (08.10.2018) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !--------------------------------------------------------------------------------------- !Used global variables: ! outputlevel, moduleName ! numberOfHadrons, hadronsInGRID ! lambdaNP_grid, lambdaNP, FNP ! aTMDe_Numerics, IO_functions functions ! + variables defined in TMDGrid-B-VAR.f90 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Griding functions !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! this subroutine create grid. It is called only from the uTMDPDF_SetLambdaNP function. subroutine MakeGrid() real(dp):: x_local,b_local !!!size of grid is power of 2, to make it testable and reusable. order is the current power. integer:: iX,iB,j,h real(dp),dimension(-5:5)::checkValue,dummyfNP real(dp)::maxValue,eps,epsB,epsX,B_BAD,x_BAD,eps_av,time1,time2 integer::grid_size real(dp),dimension(0:GridSizeX,1:2,-5:5,1:numberOfHadrons)::smallGrid real(dp)::v1_BAD,v2_BAD if(numberOfHadrons==1 .and. hadronsInGRID(1)==0) return !!!!!!!!!!!!!************************************************************************************************************** !!initial message call cpu_time(time1) if(outputlevel>1) then if(numberOfHadrons>1) then write(*,*) 'arTeMiDe.',moduleName,' starts to build grids for',numToStr(numberOfHadrons), ' hadrons. At ',time1 else write(*,*) 'arTeMiDe.',moduleName,' starts to build grid. At ',time1 end if end if !!!!!!!!!!!!!************************************************************************************************************** !!main part !!!save the parameters on which the grid is build lambdaNP_grid=lambdaNP bFactor=bGrid_Max/(EXP(slope)-1d0) !!! often used combination slopeFactor=slope/REAL(GridSizeB) ! goto 111 !!!We use the following grid !! b=(e^{a i/imax}-1)/(e^a-1)*b_Max !! where a=slope. If slope higher more points concentrated at b->0 !! For x we use the grid !! x=(xMin)^(i/imax) do h=1,numberOfHadrons do iX=0,GridSizeX do iB=0,GridSizeB x_local=xGrid_Min**(REAL(iX)/REAL(GridSizeX)) b_local=(EXP(slopeFactor*REAL(iB))-1d0)*bFactor if(x_local==1d0) then gridMain(iX,iB,-5:5,h)=0d0 else if(withGluon) then gridMain(iX,iB,-5:5,h)=x_local*Common_lowScale50(x_local,b_local,hadronsInGRID(h)) else gridMain(iX,iB,-5:5,h)=x_local*Common_lowScale5(x_local,b_local,hadronsInGRID(h)) end if end if end do end do if(outputLevel>1 .and. numberOfHadrons>1) write(*,'(" ",A,": Grid for hadron ",I3," is done")') moduleName,hadronsInGRID(h) end do !!!!!!!!!!!!!************************************************************************************************************** !!!!!!!!!!!!!************************************************************************************************************** !!!!!!!!!!!!!*****************************TALE PART************************************************************************ !!!!!!!!!!!!!************************************************************************************************************** !!!The high B (b>bGrid_Max) tales are approximated as value(bGrid_Max)/fNP(x,x,bGrid_Max) * fNP(x,x,b) !!! this approximation is exact if coeff-function freeze at large b. 111 do h=1,numberOfHadrons do iX=1,GridSizeX x_local=xGrid_Min**(REAL(iX)/REAL(GridSizeX)) b_local=bGrid_Max if(withGluon) then boundaryValues(iX,-5:5,h)=x_local*Common_lowScale50(x_local,b_local,hadronsInGRID(h)) else boundaryValues(iX,-5:5,h)=x_local*Common_lowScale5(x_local,b_local,hadronsInGRID(h)) boundaryValues(iX,0,h)=0d0 end if dummyfNP=FNP(x_local,x_local,b_local,hadronsInGRID(h),lambdaNP_grid) !!!! if fNP=0, here, we check is C x f fNP=0, if so, we save 1, otherwise exception do j=-5,5 if(dummyfNP(j)==0d0) then if(boundaryValues(iX,j,h)/=0d0 .and. outputLevel>0) then call Warning_Raise('error in evaluation of boundary for grid',messageCounter,messageTrigger,moduleName) if(messageCounter<messageTrigger) then write(*,*) '----- information on last call -----' write(*,*) 'fNP=',dummyfNP(j),'boundary=',boundaryValues(iX,j,h), 'for (h,f)=(',hadronsInGRID(h),j,')' write(*,*) 'Continue with value=1' end if end if boundaryValues(iX,j,h)=1d0 else !!!normal case boundaryValues(iX,j,h)=boundaryValues(iX,j,h)/dummyfNP(j) end if end do end do end do !!!!!!!!!!!!!************************************************************************************************************** !!check the grid !! we pass though grid restoring a point from near-by points !! in this way we estimate error if(outputLevel>2) then do h=1,numberOfHadrons epsB=0d0 epsX=0d0 eps_av=0d0 grid_size=0 !check b-grid do iX=0,GridSizeX maxValue=MAXVAL(ABS(gridMain(iX,2:GridSizeB,1:3,h))) if(maxValue>0d0) then do iB=2,GridSizeB-4 checkValue=((-gridMain(iX,iB,-5:5,h)+4d0*gridMain(iX,iB+1,-5:5,h)+4d0*gridMain(iX,iB+3,-5:5,h)& -gridMain(iX,iB+4,-5:5,h))/6d0-gridMain(iX,iB+2,-5:5,h)) if(.not.withGluon) checkValue(0)=0 eps=MAXVAL(ABS(checkValue))/maxValue eps_av=eps_av+checkValue(MAXLOC(ABS(checkValue),1)-6)/maxValue grid_size=grid_size+1 if(eps>epsB) then epsB=eps B_BAD=(EXP(slopeFactor*REAL(iB+2))-1d0)*bFactor x_BAD=xGrid_Min**(REAL(iX)/REAL(GridSizeX)) end if end do end if end do ! write(*,*) 'The worst B reconstraction with ',epsB, 'at (x,b)=',x_BAD,B_BAD ! check x-grid do iB=0,GridSizeB if(withGluon) then maxValue=MAXVAL(ABS(gridMain(0:GridSizeX,iB,0:3,h))) else maxValue=MAXVAL(ABS(gridMain(0:GridSizeX,iB,1:3,h))) end if if(maxValue>0d0) then do iX=0,GridSizeX-4 checkValue=((-gridMain(iX,iB,-5:5,h)+4d0*gridMain(iX+1,iB,-5:5,h)+4d0*gridMain(iX+3,iB,-5:5,h)& -gridMain(iX+4,iB,-5:5,h))/6d0-gridMain(iX+2,iB,-5:5,h)) if(.not.withGluon) checkValue(0)=0 eps=MAXVAL(ABS(checkValue))/maxValue eps_av=eps_av+eps grid_size=grid_size+1 if(eps>epsX) then epsX=eps B_BAD=(EXP(slopeFactor*REAL(iB))-1d0)*bFactor x_BAD=xGrid_Min**(REAL(iX+2)/REAL(GridSizeX)) end if end do end if end do ! write(*,*) 'The worst X reconstraction with ',epsX, 'at (x,b)=',x_BAD,B_BAD write(*,'(" ",A,": Grid (for hadron ",I3,") av.badness =",ES12.3)')& moduleName,hadronsInGRID(h),eps_av/REAL(grid_size) end do end if !!!!!!!!!!!!!************************************************************************************************************** !!final message call cpu_time(time2) if(outputlevel>1) then if(numberOfHadrons>1) then write(*,'(" ",A,": Grids are built (",I5," x",I5,") calc.time=",F6.2,"s. ")')& moduleName, GridSizeX,GridSizeB, time2-time1 else write(*,'(" ",A,": Grid is built (",I5," x",I5,") calc.time=",F6.2,"s. ")')& moduleName, GridSizeX,GridSizeB, time2-time1 end if end if end subroutine MakeGrid function ExtractFromGrid(x,bT,hadron) real(dp),intent(in)::x,bT integer,intent(in)::hadron real(dp),dimension(-5:5)::ExtractFromGrid real(dp),dimension(0:3,-5:5):: interI real(dp),dimension(-5:5)::dummyfNP real(dp)::indexX,indexB,fX,fB integer::i,iX,iB,h real(dp)::var1,var2,var3,var4 !!dummyvariables !!!searching for hadron h=0 do i=1,numberOfHadrons if(hadronsInGRID(i)==hadron) then h=i exit end if end do if(h==0) then write(*,*) ErrorString('the hadron '//numToStr(hadron)//' is not found in the grid',moduleName) write(*,*) 'arTeMiDe: evaluation STOP' stop end if if(x<xGrid_Min) then write(*,*) ErrorString('The TMD with x ='//numToStr(x)//'is called. Current grid size is up to '//& numToStr(xGrid_Min)//'. Enlarge boundaries.',moduleName) write(*,*) 'arTeMiDe: evaluation STOP' stop end if if(x>1d0) then write(*,*) ErrorString('The TMD with x >1 ('//numToStr(x)//') is called.',moduleName) write(*,*) 'arTeMiDe: evaluation STOP' stop end if if(bT<0d0) then write(*,*) ErrorString('The TMD with bT <0 ('//numToStr(bT)//') is called.',moduleName) write(*,*) 'arTeMiDe: evaluation STOP' stop end if !!!!!!!!!Finding X index indexX=GridSizeX*LOG(x)/LOG(xGrid_Min) iX=INT(indexX) if(iX>0) then if(iX<GridSizeX-1) then !!normal restoration X iX=INT(indexX) else !!X in the last interval iX=INT(indexX)-2 end if else !! X in the first inteval iX=INT(indexX)+1 end if fX=indexX-iX !!! fraction part (automatically shifted by +- 1 if needed) if(bT>bGrid_Max) then !!!!here will code for large b !!! we interpolate over x the boundary value var1=-fX*(fX-1d0)*(fX-2d0) var2=3d0*(fX+1d0)*(fX-1d0)*(fX-2d0) var3=-3d0*(fX+1d0)*fX*(fX-2d0) var4=(fX+1d0)*fX*(fX-1d0) ExtractFromGrid=FNP(x,x,bT,hadronsInGRID(h),lambdaNP_grid)*& (var1*boundaryValues(iX-1,-5:5,h)+var2*boundaryValues(iX,-5:5,h)& +var3*boundaryValues(iX+1,-5:5,h)+var4*boundaryValues(iX+2,-5:5,h))/6d0/x else!!! b inside the main region indexB=LOG(1d0+bT/bFactor)/slopeFactor iB=INT(indexB) if(iB>0) then if(iB<GridSizeB-1) then !!normal restoration B iB=INT(indexB) else !!B in the last interval iB=INT(indexB)-2 end if else !! B in the first inteval iB=INT(indexB)+1 end if fB=indexB-iB !!! fraction part (automatically shifted by +- 1 if needed) !! intepolation procedure var1=-fB*(fB-1d0)*(fB-2d0) var2=3d0*(fB+1d0)*(fB-1d0)*(fB-2d0) var3=-3d0*(fB+1d0)*fB*(fB-2d0) var4=(fB+1d0)*fB*(fB-1d0) interI(0,-5:5)=(var1*gridMain(iX-1,iB-1,-5:5,h)+var2*gridMain(iX-1,iB,-5:5,h)& +var3*gridMain(iX-1,iB+1,-5:5,h)+var4*gridMain(iX-1,iB+2,-5:5,h))/6d0 interI(1,-5:5)=(var1*gridMain(iX,iB-1,-5:5,h)+var2*gridMain(iX,iB,-5:5,h)& +var3*gridMain(iX,iB+1,-5:5,h)+var4*gridMain(iX,iB+2,-5:5,h))/6d0 interI(2,-5:5)=(var1*gridMain(iX+1,iB-1,-5:5,h)+var2*gridMain(iX+1,iB,-5:5,h)& +var3*gridMain(iX+1,iB+1,-5:5,h)+var4*gridMain(iX+1,iB+2,-5:5,h))/6d0 interI(3,-5:5)=(var1*gridMain(iX+2,iB-1,-5:5,h)+var2*gridMain(iX+2,iB,-5:5,h)& +var3*gridMain(iX+2,iB+1,-5:5,h)+var4*gridMain(iX+2,iB+2,-5:5,h))/6d0 !!! linear interpolation procedure ! interI(0,-5:5)=fB*gridMain(iX-1,iB,-5:5,h)+(1d0-fB)*gridMain(iX-1,iB+1,-5:5,h) ! interI(1,-5:5)=fB*gridMain(iX,iB,-5:5,h)+(1d0-fB)*gridMain(iX,iB+1,-5:5,h) ! interI(2,-5:5)=fB*gridMain(iX+1,iB,-5:5,h)+(1d0-fB)*gridMain(iX+1,iB+1,-5:5,h) ! interI(3,-5:5)=fB*gridMain(iX+2,iB,-5:5,h)+(1d0-fB)*gridMain(iX+2,iB+1,-5:5,h) var1=-fX*(fX-1d0)*(fX-2d0) var2=3d0*(fX+1d0)*(fX-1d0)*(fX-2d0) var3=-3d0*(fX+1d0)*fX*(fX-2d0) var4=(fX+1d0)*fX*(fX-1d0) ExtractFromGrid=(var1*interI(0,-5:5)+var2*interI(1,-5:5)& +var3*interI(2,-5:5)+var4*interI(3,-5:5))/6d0/x end if do i=-5,5 if(ISNAN(ExtractFromGrid(i))) then write(*,*) ErrorString('grid extraction produced NaN. EVALUATION STOP',moduleName) write(*,*) '----- information on last call -----' write(*,*) 'bT=',bT,' i=',i, ' extraction=',ExtractFromGrid(i) write(*,*) 'interI=',interI(0:3,i) dummyfNP=FNP(x,x,bT,hadronsInGRID(h),lambdaNP_grid) write(*,*) 'fNP=', dummyfNP(i) stop end if end do end function ExtractFromGrid
13,867
38.73639
131
f90
artemide-public
artemide-public-master/src/Code/SiversTMDPDF/convolutions.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!! !!!!!!!!! part of SiversTMDPDF module for artemide !!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!------------------------------------------------------------------------------------------------------- !!!-----------------------------Routines for evaluation of TMD distributions------------------------------ !!!-------------------------the actual calculation takes a place in twist3 code--------------------------- !!!------------------------------------------------------------------------------------------------------- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Convolutions!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !--------------------------------------------------------------------- !- This is the TMD function evaluated for all quarks simultaniously (-5..5) at x,bT,mu !-- f = -5, -4, -3, -2, -1,0,1,2,3, 4 ,5 !-- = bbar ,cbar sbar,ubar,dbar,??,d,u,s, c ,b !!---Gluon contribution is undefined !!---Base version: hadron=number of PDF !--------------------------------------------------------------------- !--------------------------------------------------------------------- function SiversTMDPDF_base5(x,bT,hadron) real(dp),dimension(-5:5)::SiversTMDPDF_base5 real(dp) :: x, bT integer::hadron !!! variables for restoration only real(dp),dimension(-5:5) :: fNP_grid,fNP_current integer::j !!!! if the coefficient function is not used at all. Just return fNP if(order_global==-50) then SiversTMDPDF_base5=fNP(x,bT,hadron,lambdaNP) !!! in the case the greed has been calculated AND the hadron is in the grid else if(gridReady .and. ANY(hadronsInGRID.eq.hadron)) then SiversTMDPDF_base5=ExtractFromGrid(x,bT,hadron) !!!!!!!!!!This is procedure of restoration of function from the initial grid !!! if fNP is x-independent then the value can be obtained by TMDPDF(initial) fNP(current)/fNP(initial) if(.not.IsFnpZdependent) then fNP_grid=FNP(x,bT,hadron,lambdaNP_grid) fNP_current=FNP(x,bT,hadron,lambdaNP) do j=-5,5 if(fNP_grid(j)==0) then if(fNP_current(j)/=0 .and. ((j/=0).or.(.not.withGluon))) then if(outputLevel>0) & call Warning_Raise('error in restoration: original value is zero. TMDPDF set to zero. b='//numToStr(bT),& messageCounter,messageTrigger,moduleName) end if SiversTMDPDF_base5(j)=0!!!! this is case then 0/0 else SiversTMDPDF_base5(j)=SiversTMDPDF_base5(j)*fNP_current(j)/fNP_grid(j) end if end do end if !!!! Finally, just computation else SiversTMDPDF_base5=Common_lowScale5(x,bT,hadron) end if end function SiversTMDPDF_base5 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !--------------------------------------------------------------------- !- This is the TMD function evaluated for all quarks simultaniously (-5..5) at x,bT,mu the GLUON INCLUDED !-- f = -5, -4, -3, -2, -1,0,1,2,3, 4 ,5 !-- = bbar ,cbar sbar,ubar,dbar,g,d,u,s, c ,b !!---Base version: hadron=number of PDF !--------------------------------------------------------------------- !--------------------------------------------------------------------- function SiversTMDPDF_base50(x,bT,hadron) real(dp),dimension(-5:5)::SiversTMDPDF_base50 real(dp) :: x, bT integer::hadron !!! variables for restoration only real(dp),dimension(-5:5) :: fNP_grid,fNP_current integer::j !!!! if the coefficient function is not used at all. Just return fNP if(order_global==-50) then SiversTMDPDF_base50=fNP(x,bT,hadron,lambdaNP) !!! in the case the greed has been calculated else if(gridReady .and. ANY(hadronsInGRID.eq.hadron)) then SiversTMDPDF_base50=ExtractFromGrid(x,bT,hadron) !!!!!!!!!!This is procedure of restoration of function from the initial grid !!! if fNP is x-independent then the value can be obtained by TMDPDF(initial) fNP(current)/fNP(initial) if(.not.IsFnpZdependent) then fNP_grid=FNP(x,bT,hadron,lambdaNP_grid) fNP_current=FNP(x,bT,hadron,lambdaNP) do j=-5,5 if(fNP_grid(j)==0) then if(SiversTMDPDF_base50(j)/=0.and.j/=0) then if(outputLevel>0) & call Warning_Raise('error in restoration: original value is zero. TMDPDF set to zero. b='//numToStr(bT),& messageCounter,messageTrigger,moduleName) end if SiversTMDPDF_base50(j)=0 else SiversTMDPDF_base50(j)=SiversTMDPDF_base50(j)*fNP_current(j)/fNP_grid(j) end if end do end if !!!! Finally just calculation else SiversTMDPDF_base50=Common_lowScale50(x,bT,hadron) end if end function SiversTMDPDF_base50 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!OUTPUT INTERFACE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !--------------------------------------------------------------------- !- This is the TMD function evaluated for all quarks simultaniously (-5..5) at x,bT,mu !-- f = -5, -4, -3, -2, -1,0,1,2,3, 4 ,5 !-- = bbar ,cbar sbar,ubar,dbar,??,d,u,s, c ,b !!---Gluon contribution is undefined !!---Full version: hadron=number of PDF (if compositeness OFF) !!--- hadron=sum components (if compositeness ON) !--------------------------------------------------------------------- !--------------------------------------------------------------------- function SiversTMDPDF_lowScale5(x,bT,hadron) real(dp),dimension(-5:5)::SiversTMDPDF_lowScale5 real(dp) :: x, bT integer::hadron logical,allocatable::includeInComposition(:) real(dp),allocatable::compositionCoefficients(:) integer::j,jN if(x>1d0) then SiversTMDPDF_lowScale5=(/0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0/) return end if if(IsComposite) then SiversTMDPDF_lowScale5=(/0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0/) call GetCompositionArray(hadron,lambdaNP,includeInComposition,compositionCoefficients) jN=size(includeInComposition) do j=1,jN if(includeInComposition(j)) then SiversTMDPDF_lowScale5=SiversTMDPDF_lowScale5+compositionCoefficients(j)*SiversTMDPDF_base5(x,bT,j) end if end do deallocate(includeInComposition,compositionCoefficients) else SiversTMDPDF_lowScale5=SiversTMDPDF_base5(x,bT,hadron) end if end function SiversTMDPDF_lowScale5 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !--------------------------------------------------------------------- !- This is the TMD function evaluated for all quarks simultaniously (-5..5) at x,bT,mu the GLUON INCLUDED !-- f = -5, -4, -3, -2, -1,0,1,2,3, 4 ,5 !-- = bbar ,cbar sbar,ubar,dbar,g,d,u,s, c ,b !!---Full version: hadron=number of PDF (if compositeness OFF) !!--- hadron=sum components (if compositeness ON) !--------------------------------------------------------------------- !--------------------------------------------------------------------- function SiversTMDPDF_lowScale50(x,bT,hadron) real(dp),dimension(-5:5)::SiversTMDPDF_lowScale50 real(dp) :: x, bT integer::hadron logical,allocatable::includeInComposition(:) real(dp),allocatable::compositionCoefficients(:) integer::j,jN if(x>1d0) then SiversTMDPDF_lowScale50=(/0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0/) return end if if(IsComposite) then SiversTMDPDF_lowScale50=(/0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0/) call GetCompositionArray(hadron,lambdaNP,includeInComposition,compositionCoefficients) jN=size(includeInComposition) do j=1,jN if(includeInComposition(j)) then SiversTMDPDF_lowScale50=SiversTMDPDF_lowScale50+compositionCoefficients(j)*SiversTMDPDF_base50(x,bT,j) end if end do deallocate(includeInComposition,compositionCoefficients) else SiversTMDPDF_lowScale50=SiversTMDPDF_base50(x,bT,hadron) end if end function SiversTMDPDF_lowScale50
9,018
41.947619
125
f90
artemide-public
artemide-public-master/src/Code/SiversTMDPDF/modelTest.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!! !!!!!!!!! part of SiversTMDPDF module for artemide !!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! The twist-3 convolution with in Sivers function is difficult enough! !!!!!!!!!!! !!!!!!!!!!!!!!!!! So the NP-functions are made independent on convolution library !!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!! test bSTAR for lambda-dependance !!! .true. = lambda-dependent function TestbSTAR() integer::i,j,k logical::TestbSTAR real(dp)::bT,dummy1,dummy2 real(dp),allocatable::NPtest(:) allocate(NPtest(1:lambdaNPlength)) TestbSTAR=.false. do i=1,lambdaNPlength NPtest=0.5d0+0d0*NPtest do k=0,3 bT=0.1d0+k dummy1=bSTAR(bT,NPtest) do j=1,3 NPtest(i)=0.9d0*j dummy2=bSTAR(bT,NPtest) if(abs(dummy2-dummy1)>1d-10) then TestbSTAR=.true. exit end if end do end do end do end function TestbSTAR
1,419
33.634146
106
f90
artemide-public
artemide-public-master/src/Code/TMDF/Ogata.f90
!!!Prepare tables for Ogata quadrature with given h subroutine PrepareTables() integer::i,k,j real(dp)::hS!=h*hSegmentationWeight real(dp)::xi,qqq do j=1,hSegmentationNumber do k=0,3 do i=1,Nmax hS=hOGATA*hSegmentationWeight(j) xi=JZero(k,i) ! ww(j,k,i)=BESSEL_JN(k,bb(j,k,i))/xi/(BESSEL_JN(k+1,xi)**2)& ! *(pi*xi*hS*Cosh(xi*hS)+Sinh(pi*Sinh(xi*hS)))/(1d0+Cosh(pi*Sinh(xi*hS))) !!! if we too far away in xI*hS, the double exponential grow rapidly. !!! and for >6, it generates term 10^{300} and exceed the presision if(xi*hS>6.d0) then bb(j,k,i)=xi*Tanh(piHalf*Sinh(xi*hS)) ww(j,k,i)=BESSEL_JN(k,bb(j,k,i))/xi/(BESSEL_JN(k+1,xi)**2) else bb(j,k,i)=xi*Tanh(piHalf*Sinh(xi*hS)) ww(j,k,i)=BESSEL_JN(k,bb(j,k,i))/xi/(BESSEL_JN(k+1,xi)**2)& *(pi*xi*hS*Cosh(xi*hS)/(2d0*Cosh(piHalf*Sinh(xi*hS))**2)+Tanh(piHalf*Sinh(xi*hS))) end if end do end do end do end subroutine PrepareTables !!!This is the defining module function !!! It evaluates the integral !!! int_0^infty b^(n+1) db/2 Jn(b qT) zff F1 F2 !!! function TMDF_F(Q2,qT,x1,x2,mu,zeta1,zeta2,process) real(dp)::TMDF_F real(dp)::qT,x1,x2,mu,zeta1,zeta2,Q2 integer::process real(dp)::integral,eps,delta real(dp)::v1,v2,v3,v4 integer::k,n,j,Nsegment CallCounter=CallCounter+1 integral=0d0 if(qT<0.0000001d0 .or. x1>=1d0 .or. x2>=1d0) then integral=0d0 else if(TMDF_IsconvergenceLost()) then !!!in the case of lost convergence we return huge number (divergent xSec) TMDF_F=1d10 else v1=1d0 v2=1d0 v3=1d0 v4=1d0 !!Here we set the order of Bessel if(process<10000) then n=0 else if(process<20000) then n=1 else if(process<30000) then n=2 else n=3 end if !!! define segment of qT do j=1,hSegmentationNumber if(qT<qTSegmentationBoundary(j)) exit end do if(j>hSegmentationNumber) then Nsegment=hSegmentationNumber else Nsegment=j end if !!! sum over OGATA nodes do k=1,Nmax!!! maximum of number of bessel roots preevaluated in the head eps=ww(Nsegment,n,k)*(bb(Nsegment,n,k)**(n+1))*Integrand(Q2,bb(Nsegment,n,k)/qT,x1,x2,mu,zeta1,zeta2,process) v4=v3 v3=v2 v2=v1 v1=ABS(eps) delta=(v1+v2+v3+v4) integral=integral+eps !!! here we check that residual term is smaller than already collected integral !!! also checking the zerothness of the integral. If already collected integral is null it is null !!! Here is potential bug. If the first 10 points give zero (whereas some later points do not), the integral will be zero if((delta<tolerance*abs(integral) .or. abs(integral)<1d-32) .and. k>=10) exit end do if(k>=Nmax) then if(outputlevel>0) WRITE(*,*) WarningString('OGATA quadrature diverge. TMD decaing too slow? ',moduleName) if(outputlevel>1) then write(*,*) 'Information over the last call ----------' write(*,*) 'bt/qT= ',bb(Nsegment,n,Nmax)/qT, 'qT=',qT, '| segmentation zone=',Nsegment,& ' ogata h=',hOGATA*hSegmentationWeight(Nsegment) write(*,*) 'W=',Integrand(Q2,bb(Nsegment,n,Nmax)/qT,x1,x2,mu,zeta1,zeta2,process), 'eps/integral =', eps/integral write(*,*) 'residual term=',delta, '>',tolerance write(*,*) '(x1,x2)=(',x1,',',x2,')' write(*,*) 'process =',process,' it is ',CallCounter,'call.' write(*,*) '------------------------------------------' end if call TMDF_convergenceISlost() end if if(k>MaxCounter) MaxCounter=k-1 ! write(*,*) 'Integral=',integral TMDF_F=integral/(qT**(n+2)) end if !write(*,*) 'Last call: ',k ! write(*,'("{",F6.2,",",F18.16,"},")') qT,x1*x2*TMDF_F end function TMDF_F
3,758
29.560976
125
f90
artemide-public
artemide-public-master/src/Code/TMDR/type1.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!! !!!!!!!!! part of TMDR module for artemide !!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!------------------------------------------------------------------------------------------------------- !!!-----------------------------Routines for the evolution of type 1-------------------------------------- !!!--------------------------(ordinary CS evolution=improved-D evolution)--------------------------------- !!!------------------------------------------------------------------------------------------------------- !!! Evolution exponent in the improved D-picture !!! from point to point, via intemidiate scale mu0 function TMDR_R_type1(b,muf,zetaf,mui,zetai,mu0,f) real(dp)::TMDR_R_type1,b,muf,zetaf,mui,zetai,mu0 integer::f counter=0 if(b<1d-6) b=1d-6 TMDR_R_type1=EXP(IntegralG1(muf,mui,zetaf,f)-(IntegralG2(mui,mu0,f)+DNP(mu0,b,f))*Log(zetaf/zetai)) !write(*,*) 'TMDR_R_type1: number of AD calls ',counter end function TMDR_R_type1 !!! Evolution exponent in the improved D-picture to zeta-line !!! The evolution from point (muf,zetaf) -> (zeta_mui) via scale mu0 function TMDR_Rzeta_type1(b,muf,zetaf,mui,mu0,f) real(dp)::TMDR_Rzeta_type1,b,muf,zetaf,mui,mu0,zetaP integer::f counter=0 if(b<1d-6) b=1d-6 zetaP=zetaNP(mui,b,f) TMDR_Rzeta_type1=EXP(IntegralG1(muf,mui,zetaf,f)-(IntegralG2(mui,mu0,f)+DNP(mu0,b,f))*Log(zetaf/zetaP)) !write(*,*) 'TMDR_Rzeta_type1: number of AD calls ',counter end function TMDR_Rzeta_type1 !!!This is the integral \int_{mu_i}^{muf} dmu/mu (Gamma(mu)Log[mu^2/zeta]-gammaV) !!! evaluation by adaptive simpson function IntegralG1(muf,mui,zeta,f) real(dp)::IntegralG1,muf,mui,zeta,lnz integer::f real(dp)::y1,y3,y5,X1,X3,X5,maxV lnz=Log(zeta) y1=Log(muf) y5=Log(mui) if(y1<y5) then y3=y1 y1=y5 y5=y3 end if y3=(y1+y5)/2d0 X1=gammaCUSP(Exp(y1),f)*(2d0*y1-lnz)-gammaV(Exp(y1),f) X3=gammaCUSP(Exp(y3),f)*(2d0*y3-lnz)-gammaV(Exp(y3),f) X5=gammaCUSP(Exp(y5),f)*(2d0*y5-lnz)-gammaV(Exp(y5),f) counter=counter+3 !maxV is approximate value of the integral, just to normalize the errors maxV=ABS((y1-y5)*(X1+4d0*X3+X5)/6d0) !!!! swithc sign if the integral is opposite if(muf>mui) then IntegralG1=integral1_S(y1,y5,lnz,f,X1,X3,X5,maxV) else IntegralG1=-integral1_S(y1,y5,lnz,f,X1,X3,X5,maxV) end if end function IntegralG1 !!! expected that y1>y2 (logarithm scale) recursive function integral1_S(y1,y5,lnz,f,X1,X3,X5,maxV) result(interX) real(dp) ::y1,y5,lnz integer::f real(dp) :: interX,X1,X2,X3,X4,X5 real(dp) :: value,valueAB,valueACB real(dp) :: y2,y3,y4,deltay,maxV deltay=y1-y5 y4=y5+deltay/4d0 y3=y5+deltay/2d0 y2=y1-deltay/4d0 X2=gammaCUSP(Exp(y2),f)*(2d0*y2-lnz)-gammaV(Exp(y2),f) X4=gammaCUSP(Exp(y4),f)*(2d0*y4-lnz)-gammaV(Exp(y4),f) counter=counter+2 valueAB=deltay*(X1+4d0*X3+X5)/6d0 valueACB=deltay*(X1+4d0*X2+2d0*X3+4d0*X4+X5)/12d0 ! write(*,*) y1,y3,y5,valueACB-valueAB If(ABS(valueACB-valueAB)/15d0>tolerance*maxV) then interX=integral1_S(y1,y3,lnz,f,X1,X2,X3,maxV)& +integral1_S(y3,y5,lnz,f,X3,X4,X5,maxV) else interX=valueACB end if end function integral1_S !!!This is the integral \int_{mu_i}^{muf} dmu/mu Gamma(mu) !!! evaluation by adaptive simpson function IntegralG2(muf,mui,f) real(dp)::IntegralG2,muf,mui integer::f real(dp)::y1,y3,y5,X1,X3,X5,maxV if(Abs(muf-mui)<tolerance) then IntegralG2=0d0 return end if y1=Log(muf) y5=Log(mui) if(y1<y5) then y3=y1 y1=y5 y5=y3 end if y3=(y1+y5)/2d0 X1=gammaCUSP(Exp(y1),f) X3=gammaCUSP(Exp(y3),f) X5=gammaCUSP(Exp(y5),f) counter=counter+3 !maxV is approximate value of the integral, just to normalize the errors maxV=ABS((y1-y5)*(X1+4d0*X3+X5)/6d0) !!!! swithc sign if the integral is opposite if(muf>mui) then IntegralG2=integral2_S(y1,y5,f,X1,X3,X5,maxV) else IntegralG2=-integral2_S(y1,y5,f,X1,X3,X5,maxV) end if end function IntegralG2 !!! expected that y1>y2 (logarithm scale) recursive function integral2_S(y1,y5,f,X1,X3,X5,maxV) result(interX) real(dp) ::y1,y5 integer::f real(dp) :: interX,X1,X2,X3,X4,X5 real(dp) :: value,valueAB,valueACB real(dp) :: y2,y3,y4,deltay,maxV deltay=y1-y5 y4=y5+deltay/4d0 y3=y5+deltay/2d0 y2=y1-deltay/4d0 X2=gammaCUSP(Exp(y2),f) X4=gammaCUSP(Exp(y4),f) counter=counter+2 valueAB=deltay*(X1+4d0*X3+X5)/6d0 valueACB=deltay*(X1+4d0*X2+2d0*X3+4d0*X4+X5)/12d0 ! write(*,*) y1,y3,y5,valueACB-valueAB If(ABS(valueACB-valueAB)/15d0>tolerance*maxV) then interX=integral2_S(y1,y3,f,X1,X2,X3,maxV)& +integral2_S(y3,y5,f,X3,X4,X5,maxV) else interX=valueACB end if end function integral2_S
5,032
25.489474
106
f90
artemide-public
artemide-public-master/src/Code/TMDR/type2.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!! !!!!!!!!! part of TMDR module for artemide !!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!------------------------------------------------------------------------------------------------------- !!!-----------------------------Routines for the evolution of type 2-------------------------------------- !!!----------------------------------(improved-gamma evolution)------------------------------------------- !!!------------------------------------------------------------------------------------------------------- !!! Evolution exponent in the improved gamma-picture !!! Evolution from (muf,zetaf) -> (mui,zetai) function TMDR_R_type2(b,muf,zetaf,mui,zetai,f) real(dp)::TMDR_R_type2,b,muf,zetaf,mui,zetai integer::f counter=0 if(b<1d-6) b=1d-6 TMDR_R_type2=EXP(-IntegralG3(muf,mui,b,f)+DNP(muf,b,f)*Log(muf**2/zetaf)-DNP(mui,b,f)*Log(mui**2/zetai)) !write(*,*) 'TMDR_R_type2: number of AD calls ',counter if(TMDR_R_type2>1d6) then write(*,*) ErrorString('Evolution factor (type2-1) is TOO HUGE check the formula',moduleName) write(*,*) 'NP parameters =', NPparam write(*,*) 'b=',b,'zetaf=',zetaf,'muf=',muf,'zetai=',zetai,'mui=',mui write(*,*) 'int=',IntegralG3(muf,mui,b,f),'t1=',DNP(muf,b,f)*Log(muf**2/zetaf),'t2=',DNP(mui,b,f)*Log(mui**2/zetai) write(*,*) 'Evaluation continue with R=10^6' TMDR_R_type2=1d6 end if end function TMDR_R_type2 !!! Evolution exponent in the improved gamma-picture to zeta-line !!! Evolution from (muf,zetaf) -> (zeta_mui) function TMDR_Rzeta_type2(b,muf,zetaf,mui,f) real(dp)::TMDR_Rzeta_type2,b,muf,zetaf,mui,zetaP integer::f counter=0 if(b<1d-6) b=1d-6 zetaP=zetaNP(mui,b,f) TMDR_Rzeta_type2=EXP(-IntegralG3(muf,mui,b,f)+DNP(muf,b,f)*Log(muf**2/zetaf)-DNP(mui,b,f)*Log(mui**2/zetaP)) !write(*,*) 'TMDR_Rzeta_type2: number of AD calls ',counter if(TMDR_Rzeta_type2>1d6) then write(*,*) ErrorString('Evolution factor (type2-2) is TOO HUGE check the formula',moduleName) write(*,*) 'b=',b,'zetaf=',zetaf,'muf=',muf,'zetaP=',zetaP,'mui=',mui write(*,*) 'int=',IntegralG3(muf,mui,b,f),'t1=',DNP(muf,b,f)*Log(muf**2/zetaf),'t2=',DNP(mui,b,f)*Log(mui**2/zetaP) write(*,*) 'Evaluation continue with R=10^6' TMDR_Rzeta_type2=1d6 end if end function TMDR_Rzeta_type2 !!!This is the integral \int_{mu_i}^{muf} dmu/mu (2 D(mu,b)+gammaV) !!! evaluation by adaptive simpson function IntegralG3(muf,mui,b,f) real(dp)::IntegralG3,muf,mui,b integer::f real(dp)::y1,y3,y5,X1,X3,X5,maxV y1=Log(muf) y5=Log(mui) if(y1<y5) then y3=y1 y1=y5 y5=y3 end if y3=(y1+y5)/2d0 X1=2d0*DNP(Exp(y1),b,f)+gammaV(Exp(y1),f) X3=2d0*DNP(Exp(y3),b,f)+gammaV(Exp(y3),f) X5=2d0*DNP(Exp(y5),b,f)+gammaV(Exp(y5),f) counter=counter+3 !maxV is approximate value of the integral, just to normalize the errors maxV=ABS((y1-y5)*(X1+4d0*X3+X5)/6d0) !!!! swithc sign if the integral is opposite if(muf>mui) then IntegralG3=integral3_S(y1,y5,b,f,X1,X3,X5,maxV) else IntegralG3=-integral3_S(y1,y5,b,f,X1,X3,X5,maxV) end if end function IntegralG3 !!! expected that y1>y2 (logarithm scale) recursive function integral3_S(y1,y5,b,f,X1,X3,X5,maxV) result(interX) real(dp) ::y1,y5,b integer::f real(dp) :: interX,X1,X2,X3,X4,X5 real(dp) :: value,valueAB,valueACB real(dp) :: y2,y3,y4,deltay,maxV deltay=y1-y5 y4=y5+deltay/4d0 y3=y5+deltay/2d0 y2=y1-deltay/4d0 X2=2d0*DNP(Exp(y2),b,f)+gammaV(Exp(y2),f) X4=2d0*DNP(Exp(y4),b,f)+gammaV(Exp(y4),f) counter=counter+2 valueAB=deltay*(X1+4d0*X3+X5)/6d0 valueACB=deltay*(X1+4d0*X2+2d0*X3+4d0*X4+X5)/12d0 ! write(*,*) y1,y3,y5,valueACB-valueAB If(ABS(valueACB-valueAB)/15>tolerance*maxV) then interX=integral3_S(y1,y3,b,f,X1,X2,X3,maxV)& +integral3_S(y3,y5,b,f,X3,X4,X5,maxV) else interX=valueACB end if end function integral3_S
4,150
30.44697
119
f90
artemide-public
artemide-public-master/src/Code/TMDR/type3.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!! !!!!!!!!! part of TMDR module for artemide !!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!------------------------------------------------------------------------------------------------------- !!!-----------------------------Routines for the evolution of type 3-------------------------------------- !!!----------------------------------(zeta-prescription)-------------------------------------------------- !!!------------------------------------------------------------------------------------------------------- !!! Evolution exponent in the improved gamma-picture to zeta-line (defined by zetaNP) function TMDR_Rzeta_type3(b,muf,zetaf,f) real(dp)::TMDR_Rzeta_type3,b,muf,zetaf,zetaP integer::f if(b<1d-6) b=1d-6 zetaP=zetaNP(muf,b,f) TMDR_Rzeta_type3=EXP(-DNP(muf,b,f)*Log(zetaf/zetaP)) ! write(*,*) 'HERE' ! write(*,*) DNP(muf,b,f),zetaf,zetaP if(TMDR_Rzeta_type3>1d6) then write(*,*) ErrorString('Evolution factor(type3) is TOO HUGE check the formula',moduleName) write(*,*) 'b=',b,'zetaf=',zetaf,'muf=',muf,'zetaP=',zetaP write(*,*) 'DNP=',DNP(muf,b,f), 'log(zeta/zetamu)=',Log(zetaf/zetaP) write(*,*) 'NPparameters= (',NPparam,')' write(*,*) 'Evaluation continue with R=10^6' TMDR_Rzeta_type3=1d6 stop end if end function TMDR_Rzeta_type3 function TMDR_Rzeta_harpy(b,muf,zetaf,f) real(dp)::TMDR_Rzeta_harpy,b,muf,zetaf integer::f TMDR_Rzeta_harpy=TMDR_Rzeta_type3(b,muf,zetaf,f) end function TMDR_Rzeta_harpy
1,690
37.431818
106
f90
artemide-public
artemide-public-master/src/Code/TMD_AD/AD_Integral.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!! !!!!!!!!! part of TMD_AD module for artemide !!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!------------------------------------------------------------------------------------------------------- !!!-----------------------------Integrals with anomalous dimensions--------------------------------------- !!!------------------------------------------------------------------------------------------------------- !!!! Defines the coefficients for the decomposition for the integral Gamma/(-2 beta) over the roots of beta-function !!!! The zeroth terms is G0/(-2b0) (common) !!!! k=number of root. The expression is given by Lagrange decomposition subroutine SetIntegralCoefficeintsGAMMA_Q() integer::n,i,j,k,l real(dp)::G1,G2,G3,G4,BB COMPLEX(dp)::ps GammaIntegral_Q_internal=0d0*GammaIntegral_Q_internal do n=NfMIN,NfMAX G1=GammaCusp_q(1,n)/GammaCusp_q(0,n) G2=GammaCusp_q(2,n)/GammaCusp_q(0,n) G3=GammaCusp_q(3,n)/GammaCusp_q(0,n) G4=GammaCusp_q(4,n)/GammaCusp_q(0,n) !!! loops do i=1,4 !!! special case: common prefactor = Gamma0/(-2beta0) GammaIntegral_Q_internal(i,0,n)=GammaCusp_q(0,n)/(-2d0*betaQCD(0,n)) !!! Bi BB=betaQCD(i,n)/betaQCD(0,n) !!! roots do j=1,i !!! 0;th-root=0 ps=betaRoots_internal(i,j,n) !!! rest roots do k=1,i if(k.ne.j) ps=ps*(betaRoots_internal(i,j,n)-betaRoots_internal(i,k,n)) end do !!! numerator is Gamma at root GammaIntegral_Q_internal(i,j,n)=1d0 if(i>0) GammaIntegral_Q_internal(i,j,n)=GammaIntegral_Q_internal(i,j,n)+G1*betaRoots_internal(i,j,n) if(i>1) GammaIntegral_Q_internal(i,j,n)=GammaIntegral_Q_internal(i,j,n)+G2*betaRoots_internal(i,j,n)**2 if(i>2) GammaIntegral_Q_internal(i,j,n)=GammaIntegral_Q_internal(i,j,n)+G3*betaRoots_internal(i,j,n)**3 if(i>3) GammaIntegral_Q_internal(i,j,n)=GammaIntegral_Q_internal(i,j,n)+G4*betaRoots_internal(i,j,n)**4 GammaIntegral_Q_internal(i,j,n)=GammaIntegral_Q_internal(i,j,n)/ps/BB end do end do end do end subroutine SetIntegralCoefficeintsGAMMA_Q !!!! Defines the coefficients for the decomposition for the integral Gamma/(-2 beta) over the roots of beta-function !!!! The zeroth terms is G0/(-2b0) (common) !!!! k=number of root. The expression is given by Lagrange decomposition subroutine SetIntegralCoefficeintsGAMMA_G() integer::n,i,j,k,l real(dp)::G1,G2,G3,G4,BB COMPLEX(dp)::ps GammaIntegral_G_internal=0d0*GammaIntegral_G_internal do n=NfMIN,NfMAX G1=GammaCusp_g(1,n)/GammaCusp_g(0,n) G2=GammaCusp_g(2,n)/GammaCusp_g(0,n) G3=GammaCusp_g(3,n)/GammaCusp_g(0,n) G4=GammaCusp_g(4,n)/GammaCusp_g(0,n) !!! loops do i=1,4 !!! special case: common prefactor = Gamma0/(-2beta0) GammaIntegral_G_internal(i,0,n)=GammaCusp_g(0,n)/(-2d0*betaQCD(0,n)) !!! Bi BB=betaQCD(i,n)/betaQCD(0,n) !!! roots do j=1,i !!! 0;th-root=0 ps=betaRoots_internal(i,j,n) !!! rest roots do k=1,i if(k.ne.j) ps=ps*(betaRoots_internal(i,j,n)-betaRoots_internal(i,k,n)) end do !!! numerator is Gamma at root GammaIntegral_G_internal(i,j,n)=1d0 if(i>0) GammaIntegral_G_internal(i,j,n)=GammaIntegral_G_internal(i,j,n)+G1*betaRoots_internal(i,j,n) if(i>1) GammaIntegral_G_internal(i,j,n)=GammaIntegral_G_internal(i,j,n)+G2*betaRoots_internal(i,j,n)**2 if(i>2) GammaIntegral_G_internal(i,j,n)=GammaIntegral_G_internal(i,j,n)+G3*betaRoots_internal(i,j,n)**3 if(i>3) GammaIntegral_G_internal(i,j,n)=GammaIntegral_G_internal(i,j,n)+G4*betaRoots_internal(i,j,n)**4 GammaIntegral_G_internal(i,j,n)=GammaIntegral_G_internal(i,j,n)/ps/BB end do end do end do end subroutine SetIntegralCoefficeintsGAMMA_G !!!! Compute the integral !!!! Gamma(a)/(-2beta(a)) for [a0,a1] !!!! loop=loop order (0=1loop), Nf=number of flavors !!!! Uses exact analytic expression with decomposition over roots of beta-function. function GammaIntegral_Q(a0,a1,loop,nf) integer, intent(in)::loop,nf real(dp), intent(in)::a1,a0 real(dp)::GammaIntegral_Q COMPLEX(dp):: inter integer::i !!! common term from the 0th-root inter=LOG(a1/a0) !!! sum over roots do i=1,loop inter=inter+GammaIntegral_Q_internal(loop,i,nf)*LOG((a1-betaRoots_internal(loop,i,nf))/(a0-betaRoots_internal(loop,i,nf))) end do !!!! common factor (I use index=1, it is not defined for loop=0) GammaIntegral_Q=GammaIntegral_Q_internal(1,0,nf)*dreal(inter) end function GammaIntegral_Q !!!! Compute the integral !!!! Gamma(a)/(-2beta(a)) for [a0,a1] !!!! loop=loop order (0=1loop), Nf=number of flavors !!!! Uses exact analytic expression with decomposition over roots of beta-function. function GammaIntegral_G(a0,a1,loop,nf) integer, intent(in)::loop,nf real(dp), intent(in)::a1,a0 real(dp)::GammaIntegral_G COMPLEX(dp):: inter integer::i !!! common term from the 0th-root inter=LOG(a1/a0) !!! sum over roots do i=1,loop inter=inter+GammaIntegral_G_internal(loop,i,nf)*LOG((a1-betaRoots_internal(loop,i,nf))/(a0-betaRoots_internal(loop,i,nf))) end do GammaIntegral_G=GammaIntegral_G_internal(1,0,nf)*dreal(inter) end function GammaIntegral_G !!!! gives the additive factor for the RAD evolution from (mu0) to (mu1) !!!! It is equal to: Gamma(a)/2 dmu2/mu2 for mu in [mu0,mu1] !!!! loop= orderCusp, f=flavor function RADevolution(mu0,mu1,f) real(dp),intent(in)::mu0,mu1 integer,intent(in)::f real(dp):: RADevolution real(dp)::a0,a1,inter,ar1,ar2 logical::naturalOrder !!! mu0<mu1 integer::n0,n1 if(mu0<mu1) then a0=as(mu0) a1=as(mu1) naturalOrder=.true. n0=activeNf(mu0) n1=activeNf(mu1) else !!! order of limits inverted a0=as(mu1) a1=as(mu0) naturalOrder=.false. n0=activeNf(mu1) n1=activeNf(mu0) end if if(n0==n1) then if(f==0) then inter=GammaIntegral_G(a0,a1,orderCusp,n0) else inter=GammaIntegral_Q(a0,a1,orderCusp,n0) end if else if (n0==3 .and. n1==4) then ar1=as(mCHARM) if(f==0) then inter=GammaIntegral_G(a0,ar1,orderCusp,3)+GammaIntegral_G(ar1,a1,orderCusp,4) else inter=GammaIntegral_Q(a0,ar1,orderCusp,3)+GammaIntegral_Q(ar1,a1,orderCusp,4) end if else if (n0==4 .and. n1==5) then ar1=as(mBOTTOM) if(f==0) then inter=GammaIntegral_G(a0,ar1,orderCusp,4)+GammaIntegral_G(ar1,a1,orderCusp,5) else inter=GammaIntegral_Q(a0,ar1,orderCusp,4)+GammaIntegral_Q(ar1,a1,orderCusp,5) end if else if (n0==3 .and. n1==5) then ar1=as(mCHARM) ar2=as(mBOTTOM) if(f==0) then inter=GammaIntegral_G(a0,ar1,orderCusp,3)+GammaIntegral_G(ar1,ar2,orderCusp,4)+GammaIntegral_G(ar2,a1,orderCusp,5) else inter=GammaIntegral_Q(a0,ar1,orderCusp,3)+GammaIntegral_Q(ar1,ar2,orderCusp,4)+GammaIntegral_Q(ar2,a1,orderCusp,5) end if else write(*,*) WarningString(' RADevolution finds impossible combination of thresholds.',moduleName) write(*,*) "Numbers for Nf", n0, " to ",n1, "(compute with ",n0,")" inter=GammaIntegral_G(a0,a1,orderCusp,n0) end if if(naturalOrder) then RADevolution=inter else RADevolution=-inter end if end function RADevolution
8,317
37.331797
138
f90
artemide-public
artemide-public-master/src/Code/TMD_AD/AD_atMu.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!! !!!!!!!!! part of TMD_AD module for artemide !!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!------------------------------------------------------------------------------------------------------- !!!-----------------------------Anomalous dimensions at scale mu------------------------------------------ !!!------------------------------------------------------------------------------------------------------- ! The TMD rapidity anomalous dimension D, pertrubative expression function Dpert(mu,bT,f) real(dp),intent(in):: bT,mu integer,intent(in):: f real(dp)::Dpert integer:: Nf,n,k real(dp)::LL,astrong,inter LL=2_dp*LOG(bt*mu*C0_inv_const) astrong=As(mu) Dpert=0_dp Nf=ActiveNf(mu) if(f==0) then!gluon do n=1,orderD inter=0_dp do k=0,orderD inter=inter+dnk_G(n,k,Nf)*(LL**k) end do Dpert=Dpert+inter*(astrong**n) end do else!quark do n=1,orderD inter=0_dp do k=0,orderD inter=inter+dnk_Q(n,k,Nf)*(LL**k) end do Dpert=Dpert+inter*(astrong**n) end do end if end function Dpert ! The TMD UV anomalous dimension gammaV function gammaV(mu,f) real(dp),intent(in)::mu integer,intent(in)::f real(dp):: gammaV integer:: Nf,i real(dp) ::astrong astrong=As(mu) Nf=ActiveNf(mu) gammaV=0_dp if(f==0) then !!gluon case do i=1,orderV gammaV=gammaV+gammaV_G(i,Nf)*(astrong**i) end do else !! quark case do i=1,orderV gammaV=gammaV+gammaV_Q(i,Nf)*(astrong**i) end do end if end function gammaV ! The Gamma Cusp anomalous dimension gammaV function gammaCUSP(mu,f) real(dp),intent(in)::mu integer,intent(in)::f real(dp) :: gammaCUSP integer:: Nf,i real(dp) ::astrong astrong=As(mu) Nf=activeNf(mu) gammaCUSP=0_dp if(f==0) then !!gluon case do i=1,orderCusp gammaCUSP=gammaCUSP+GammaCusp_G(i-1,Nf)*(astrong**i) end do else !! quark case do i=1,orderCusp gammaCUSP=gammaCUSP+GammaCusp_Q(i-1,Nf)*(astrong**i) end do end if end function gammaCUSP !!the resummed version of rapidity anomalous dimension function Dresum(mu,bT,f) real(dp),intent(in)::mu,bT integer,intent(in)::f real(dp)::Dresum integer::Nf integer::n,k,l real(dp):: X,alpha,lX,LL,commulant,inter alpha=As(mu) Nf=ActiveNf(mu) LL=2_dp*LOG(bT*mu*C0_inv_const) X=betaQCD(0,Nf)*alpha*LL !!! in many models D evaluated at X=0, to speed up these computations I explicitely state it if(abs(X)<1d-7) then Dresum=0_dp if(f==0) then !! gluon case do n=2,orderDresum Dresum=Dresum+alpha**n*dnk_G(n,0,Nf) end do else !! quark case do n=2,orderDresum Dresum=Dresum+alpha**n*dnk_Q(n,0,Nf) end do end if !!! complete case else lX=Log(1_dp-X) if(f==0) then !! gluon case commulant=lX do n=1,orderDresum inter=0_dp do k=0,n do l=0,n inter=inter+(X**k)*(lX**l)*dnkl_G(n,k,l,Nf) end do end do commulant=commulant+((alpha/(1_dp-X))**n)*inter end do Dresum=-GammaCusp_G(0,Nf)/betaQCD(0,Nf)*commulant else !!! quark case commulant=lX do n=1,orderDresum inter=0_dp do k=0,n do l=0,n inter=inter+(X**k)*(lX**l)*dnkl_Q(n,k,l,Nf) end do end do commulant=commulant+((alpha/(1_dp-X))**n)*inter end do Dresum=-GammaCusp_Q(0,Nf)/betaQCD(0,Nf)/2_dp*commulant end if if(ISNAN(Dresum)) then write(*,*) ErrorString('Dresum is NaN.',moduleName) write(*,*) 'At mu=',mu,'b=',bT,'Lmu=',2_dp*Log(mu*bT*C0_inv_const), 'X=',X,'log(1-x)=',lX write(*,*) 'Evaluation STOP' stop end if end if end function Dresum !-------------------zeta-lines ------------------------------------- !the exact zeta-line is in TMDR (because it depends on DNP) !! the value of zeta_mu in the pertrubation theory with ri=0 function zetaMUpert(mu,bt,f) real(dp),intent(in)::mu,bT integer,intent(in)::f real(dp):: zetaMUpert integer::Nf,n,k real(dp)::alpha,LL,val,iter if(orderZETA>0) then !!! NLO,NNLO,... LL=2_dp*LOG(bt*mu*C0_inv_const) alpha=As(mu) Nf=ActiveNf(mu) !!!!! Important!!!! !! the perturbative value for zeta, must be taken 1-order higher !! because there double logarithms ~~beta0 L !! For 4-loop it requires 5-loop rad... The value which contains it is set to zero v(4,0)=0. if(f==0) then !!! gluon val=vnk_g(0,0,Nf) do n=1,orderZETA-1 iter = 0_dp do k=0,n+1 iter=iter+(LL**k)*vnk_g(n,k,Nf) end do val=val+(alpha**n)*iter end do else !!!! quark val=vnk_q(0,0,Nf) do n=1,orderZETA iter = 0_dp do k=0,n+1 iter=iter+(LL**k)*vnk_q(n,k,Nf) end do val=val+(alpha**n)*iter end do end if zetaMUpert=mu*C0_const/bT*EXP(-val) else if (orderZETA==0) then !!! LO zetaMUpert=mu*C0_const/bT else !!!! just in case zetaMUpert=1_dp end if end function zetaMUpert
5,762
24.843049
106
f90
artemide-public
artemide-public-master/src/Code/TMD_AD/AD_primary.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!! !!!!!!!!! part of TMD_AD module for artemide !!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!------------------------------------------------------------------------------------------------------- !!!--------------------------------------------PRIMARY ADs------------------------------------------------ !!!------------------------------------------------------------------------------------------------------- !!!! sets the values of beta function !!!! the expressions are taken from [1701.01404] subroutine SetBetaFunction() integer::n !! 1-loop do n=NfMIN,NfMAX beta_internal(0,n)=11d0/3d0*CA-4d0/3d0*TF*n end do !! 2-loop do n=NfMIN,NfMAX beta_internal(1,n)=34d0/3d0*(CA**2)-20d0/3d0*CA*TF*n-4d0*CF*TF*n end do !! 3-loop do n=NfMIN,NfMAX beta_internal(2,n)=2857d0/54d0*(CA**3) -1415d0/27d0*(CA**2)*TF*n -205d0/9d0*CF*CA*TF*n +2d0*(CF**2)*TF*n& +44d0/9d0*CF*(TF**2)*(n**2) +158d0/27d0*CA*(TF**2)*(n**2) end do !! 4-loop do n=NfMIN,NfMAX beta_internal(3,n)=(CA**4)*(150653d0/486d0 -44d0/9d0*zeta3) +dAA*(-80d0/9d0 +704d0/3d0*zeta3)& +(CA**3)*TF*n*(-39143d0/81d0 +136d0/3d0*zeta3) +(CA**2)*CF*TF*n*(7073d0/243d0 -656d0/9d0*zeta3)& +CA*(CF**2)*TF*n*(-4204d0/27d0 +352d0/9d0*zeta3) +dFA*n*(512d0/9d0 -1664d0/3d0*zeta3)& +46d0*(CF**3)*TF*n +(CA**2)*(TF**2)*(n**2)*(7930d0/81d0 +224d0/9d0*zeta3)& +(CF**2)*(TF**2)*(n**2)*(1352d0/27d0 -704d0/9d0*zeta3)& +CA*CF*(TF**2)*(n**2)*(17152d0/243d0 +448d0/9d0*zeta3) +dFF*(n**2)*(-704d0/9d0 +512d0/3d0*zeta3)& +424d0/243d0*CA*(TF**3)*(n**3) +1232d0/243d0*CF*(TF**3)*(n**3) end do !! 5-loop do n=NfMIN,NfMAX beta_internal(4,n)=(CA**5)*(8296235d0/3888d0 -1630d0/81d0*zeta3 +121d0/6d0*zeta4 -1045d0/9d0*zeta5)& +dAA*CA*(-514d0/3d0 +18716d0/3d0*zeta3 -968d0*zeta4 -15400d0/3d0*zeta5)& +(CA**4)*TF*n*(-5048959d0/972d0 +10505d0/81d0*zeta3 -583d0/3d0*zeta4 +1230d0*zeta5)& +(CA**3)*CF*TF*n*(8141995d0/1944d0 +146d0*zeta3 +902d0/3d0*zeta4 -8720d0/3d0*zeta5)& +(CA**2)*(CF**2)*TF*n*(-548732d0/81d0 -50581d0/27d0*zeta3 -484d0/3d0*zeta4 +12820d0/3d0*zeta5)& +CA*(CF**3)*TF*n*(3717d0 +5696d0/3d0*zeta3 -7480d0/3d0*zeta5)& -(CF**4)*TF*n*(4157d0/6d0 +128d0*zeta3)& +dAA*TF*n*(904d0/9d0 -20752d0/9d0*zeta3 +352d0*zeta4 +4000d0/9d0*zeta5)& +dFA*CA*n*(11312d0/9d0 -127736d0/9d0*zeta3 +2288d0*zeta4 +67520d0/9d0*zeta5)& +dFA*CF*n*(-320d0 +1280d0/3d0*zeta3 +6400d0/3d0*zeta5)& +(CA**3)*(TF**2)*(n**2)*(843067d0/486d0 +18446d0/27d0*zeta3 -104d0/3d0*zeta4-2200d0/3d0*zeta5)& +(CA**2)*CF*(TF**2)*(n**2)*(5701d0/162d0 +26452d0/27d0*zeta3 -944d0/3d0*zeta4 +1600d0/3d0*zeta5)& +(CF**2)*CA*(TF**2)*(n**2)*(31583d0/18d0 -28628d0/27d0*zeta3 +1144d0/3d0*zeta4 -4400d0/3d0*zeta5)& +(CF**3)*(TF**2)*(n**2)*(-5018d0/9d0 -2144d0/3d0*zeta3 +4640d0/3d0*zeta5)& +dFA*TF*(n**2)*(-3680d0/9d0 +40160d0/9d0*zeta3 -832d0*zeta4 -1280d0/9d0*zeta5)& +dFF*CA*(n**2)*(-7184d0/3d0 +40336d0/9d0*zeta3 -704d0*zeta4 +2240d0/9d0*zeta5)& +dFF*CF*(n**2)*(4160d0/3d0 +5120d0/3d0*zeta3 -12800d0/3d0*zeta5)& +(CA**2)*(TF**3)*(n**3)*(-2077d0/27d0 -9736d0/81d0*zeta3 +112d0/3d0*zeta4 +320d0/9d0*zeta5)& +CA*CF*(TF**3)*(n**3)*(-736d0/81d0 -5680d0/27d0*zeta3 +224d0/3d0*zeta4)& +(CF**2)*(TF**3)*(n**3)*(-9922d0/81d0 +7616d0/27d0*zeta3 -352d0/3d0*zeta4)& +dFF*TF*(n**3)*(3520d0/9d0 - 2624d0/3d0*zeta3 +256d0*zeta4 +1280d0/3d0*zeta5)& +CA*(TF**4)*(n**4)*(916d0/243d0 -640d0/81d0*zeta3) - CF*(TF**4)*(n**4)*(856d0/243d0 +128d0/27d0*zeta3) end do end subroutine SetBetaFunction !!!! sets the values of cusp anomalous dimension !!!! the 4-loop expression is taken from [2001.11377] (appendix C) !!!! the 5-loop expression is taken from [1812.11818] formula (13), central value(!!) !!!! only nf=3,4,5 avalible subroutine SetGammaCuspQuark() integer::n !! 1-loop do n=NfMIN,NfMAX GammaCuspQ_internal(0,n)=CF*4d0 end do !! 2-loop do n=NfMIN,NfMAX GammaCuspQ_internal(1,n)=4d0*CF*(CA*(67d0/9d0 -2*zeta2) -10d0/9d0*n) end do !! 3-loop do n=NfMIN,NfMAX GammaCuspQ_internal(2,n)=4d0*CF*(& (CA**2)*(245d0/6d0 -268d0/9d0*zeta2 +22d0/3d0*zeta3 +22d0*zeta4)& +CA*n*(-209d0/27d0 +40d0/9d0*zeta2 -28d0/3d0*zeta3)& +CF*n*(-55d0/6d0 +8d0*zeta3) -(n**2)*4d0/27d0) end do !! 4-loop do n=NfMIN,NfMAX GammaCuspQ_internal(3,n)=CF*(& dFA*(7040d0/3d0*zeta5 +256d0/3d0*zeta3-768d0*(zeta3**2) -256d0*zeta2 -15872d0/35d0*(zeta2**3))& +dFF*n*(-2560d0/3d0*zeta5 -512d0/3d0*zeta3 +512d0*zeta2)& +(n**3)*(-32d0/81d0 +64d0/27d0*zeta3)& +CF*(n**2)*(2392d0/81d0 -640d0/9d0*zeta3 +64d0/5d0*(zeta2**2))& +(CF**2)*n*(572d0/9d0 -320d0*zeta5 +592d0/3d0*zeta3)& +CA*(n**2)*(923d0/81d0 +2240d0/27d0*zeta3 -608d0/81d0*zeta2 -224d0/15d0*(zeta2**2))& +CF*CA*n*(-34066d0/81d0 +160d0*zeta5 +3712d0/9d0*zeta3 +440d0/3d0*zeta2 -128*zeta2*zeta3 -352d0/5d0*(zeta2**2))& +(CA**2)*n*(-24137d0/81d0 +2096d0/9d0*zeta5 -23104d0/27d0*zeta3 +20320d0/81d0*zeta2 & +448d0/3d0*zeta2*zeta3 -352d0/15d0*(zeta2**2))& +(CA**3)*(84278d0/81d0 - 3608d0/9d0*zeta5 +20944d0/27d0*zeta3 -16d0*(zeta3**2) & -88400d0/81d0*zeta2 -352d0/3d0*zeta2*zeta3 +3608d0/5d0*(zeta2**2)-20032d0/105d0*(zeta2**3))) end do !! 5-loop do n=NfMIN,NfMAX if(n<=3) then GammaCuspQ_internal(4,n)=4d0*CF*32417.5d0 else if(n==4) then GammaCuspQ_internal(4,n)=4d0*CF*19949.2d0 else GammaCuspQ_internal(4,n)=4d0*CF*12468.3d0 end if end do end subroutine SetGammaCuspQuark !!!! sets the values of cusp anomalous dimension !!!! the values up to 3-loop are the same as for the quark *CA/CF !!!! the explicit 4-loop expression is not given yet. !!!! Instead, I use the numeric values for given in [1805.09638] !!!! the 5-loop expression is taken as CA/CF from [1812.11818] formula (13), central value(!!) !!!! only nf=3,4,5 avalible, subroutine SetGammaCuspGluon() integer::n !! 1-loop do n=NfMIN,NfMAX GammaCuspG_internal(0,n)=CA*4d0 end do !! 2-loop do n=NfMIN,NfMAX GammaCuspG_internal(1,n)=4d0*CA*(CA*(67d0/9d0 -2*zeta2) -10d0/9d0*n) end do !! 3-loop do n=NfMIN,NfMAX GammaCuspG_internal(2,n)=4d0*CA*(& (CA**2)*(245d0/6d0 -268d0/9d0*zeta2 +22d0/3d0*zeta3 +22d0*zeta4)& +CA*n*(-209d0/27d0 +40d0/9d0*zeta2 -28d0/3d0*zeta3)& +CF*n*(-55d0/6d0 +8d0*zeta3) -(n**2)*4d0/27d0) end do !! 4-loop do n=NfMIN,NfMAX GammaCuspG_internal(3,n)=40880.d0 - 11714.d0*n + 440.0488d0*(n**2) + 7.362774d0*(n**3) end do !! 5-loop do n=NfMIN,NfMAX if(n<=3) then GammaCuspG_internal(4,n)=4d0*CA*32417.5d0 else if(n==4) then GammaCuspG_internal(4,n)=4d0*CA*19949.2d0 else GammaCuspG_internal(4,n)=4d0*CA*12468.3d0 end if end do end subroutine SetGammaCuspGluon !!!! sets the values of vector FF anomalous dimension !!!! it is defined with factor 2 (standard for TMD physics) !!!! 3-loop expression is taken from [1004.3653] !!!! 4-loop expression is taken from [2202.04660] (aux-file, 2,3-loops confirmed) subroutine SetGammaVQuark() integer::n !! 1-loop do n=NfMIN,NfMAX GammaVQ_internal(1,n)=-6d0*CF end do !! 2-loop do n=NfMIN,NfMAX GammaVQ_internal(2,n)=2d0*CF*(& CF*(-3d0/2d0 +12d0*zeta2 -24d0*zeta3)& +CA*(-961d0/54d0 -11d0*zeta2 +26d0*zeta3)& +n*(65d0/27d0 +2d0*zeta2)) end do !! 3-loop do n=NfMIN,NfMAX GammaVQ_internal(3,n)=2d0*CF*(& CF*n*(2953d0/54d0 -26d0/3d0*zeta2 -140d0/3d0*zeta4 +256d0/9d0*zeta3)& +(n**2)*(2417d0/729d0 -20d0/9d0*zeta2 -8d0/27d0*zeta3)& +CA*n*(-8659d0/729d0 +2594d0/81d0*zeta2 +22d0*zeta4 -964d0/27d0*zeta3)& +(CF**2)*(-29d0/2d0 -18d0*zeta2 -144d0*zeta4 -68d0*zeta3 +32d0*zeta2*zeta3 +240d0*zeta5)& +CF*CA*(-151d0/4d0 +410d0/3d0*zeta2 +494d0/3d0*zeta4 -844d0/3d0*zeta3 -16d0*zeta2*zeta3 -120d0*zeta5)& +(CA**2)*(-139345d0/2916d0 -7163d0/81d0*zeta2 -83d0*zeta4 +3526d0/9d0*zeta3 -88d0/3d0*zeta2*zeta3 -136d0*zeta5)) end do !! 4-loop do n=NfMIN,NfMAX GammaVQ_internal(4,n)=-24503.6d0 + 7857.17d0*n - 414.043d0*n**2 - 6.51577d0*n**3 end do end subroutine SetGammaVQuark !!!! sets the values of vector FF anomalous dimension !!!! it is defined with factor 2 (standard for TMD physics) !!!! 3-loop expression is taken from [1004.3653] !!!! 4-loop expression is taken from [2202.04660] (aux-file, 2,3-loops confirmed) subroutine SetGammaVGluon() integer::n !! 1-loop do n=NfMIN,NfMAX GammaVG_internal(1,n)=-22d0/3d0*CA+4d0/3d0*n end do !! 2-loop do n=NfMIN,NfMAX GammaVG_internal(2,n)=2d0*(& (CA**2)*(-692d0/27d0 +11d0/3d0*zeta2+2d0*zeta3) +CA*n*(128d0/27d0 -2d0/3d0*zeta2) +2*CF*n) end do !! 3-loop do n=NfMIN,NfMAX GammaVG_internal(3,n)=2d0*(& (CA**3)*(-97186d0/729d0 +6109d0/81d0*zeta2 -319d0/3d0*zeta4 +122d0/3d0*zeta3 -40d0/3d0*zeta2*zeta3 -16d0*zeta5)& +(CA**2)*n*(30715d0/1458d0 -1198d0/81d0*zeta2 +82d0/3d0*zeta4 +356d0/27d0*zeta3)& +CF*CA*n*(1217d0/27d0 -2d0*zeta2 -8d0*zeta4 -152d0/9d0*zeta3)& +CA*(n**2)*(-269d0/1458d0 +20d0/27d0*zeta2 -56d0/27d0*zeta3)& -(CF**2)*n -11d0/9d0*CF*(n**2)) end do !! 4-loop do n=NfMIN,NfMAX GammaVG_internal(4,n)=-84790.4d0 + 29077.5d0*n - 906.871d0*n**2 - 2.90651d0*n**3 end do end subroutine SetGammaVGluon !!!! sets the values of finite part for RAD !!!! Expression is taken from [1707.07606] !!!! 4-loop expression is taken from aux-files in [2205.02249] subroutine SetDn0Quark() integer::n !! 1-loop do n=NfMIN,NfMAX d_nk_Q_internal(1,0,n)=0d0 end do !! 2-loop do n=NfMIN,NfMAX d_nk_Q_internal(2,0,n)=CF*CA*(404d0/27d0-14d0*zeta3)-CF*n*56d0/27d0 end do !! 3-loop do n=NfMIN,NfMAX d_nk_Q_internal(3,0,n)=CF*(CA**2)*(297029d0/1458d0 -3196d0/81d0*zeta2 & -6164d0/27d0*zeta3 -77d0/3d0*zeta4 +88d0/3d0*zeta2*zeta3 +96d0*zeta5)& +CF*CA*n*(-31313d0/729d0 +412d0/81d0*zeta2 +452d0/27d0*zeta3 -10d0/3d0*zeta4)& +(CF**2)*n*(-1711d0/54d0 +152d0/9d0*zeta3 +8d0*zeta4)& +CF*(n**2)*(928d0/729d0 +16d0/9d0*zeta3) end do !! 4-loop do n=NfMIN,NfMAX d_nk_Q_internal(4,0,n)=350.834d0 - 2428.14d0*n + 378.306d0*n**2 - 8.07192d0*n**3 end do end subroutine SetDn0Quark !!!! sets the values of finite part for RAD !!!! Expression is taken from [1707.07606] !!!! at this order the differance between quark and gluon is CA/CF !!!! 4-loop expression is taken from aux-files in [2205.02249] (there is no CA/CF any more) subroutine SetDn0Gluon() integer::n !! 1-loop do n=NfMIN,NfMAX d_nk_G_internal(1,0,n)=0d0 end do !! 2-loop do n=NfMIN,NfMAX d_nk_G_internal(2,0,n)=(CA**2)*(404d0/27d0-14d0*zeta3)-CA*n*56d0/27d0 end do !! 3-loop do n=NfMIN,NfMAX d_nk_G_internal(3,0,n)=(CA**3)*(297029d0/1458d0 -3196d0/81d0*zeta2 & -6164d0/27d0*zeta3 -77d0/3d0*zeta4 +88d0/3d0*zeta2*zeta3 +96d0*zeta5)& +(CA**2)*n*(-31313d0/729d0 +412d0/81d0*zeta2 +452d0/27d0*zeta3 -10d0/3d0*zeta4)& +CF*CA*n*(-1711d0/54d0 +152d0/9d0*zeta3 +8d0*zeta4)& +CA*(n**2)*(928d0/729d0 +16d0/9d0*zeta3) end do !! 4-loop do n=NfMIN,NfMAX d_nk_G_internal(3,0,n)=-333.77d0 - 5506.38d0*n + 851.188d0*n**2 - 18.1618d0*n**3 end do end subroutine SetDn0Gluon
13,009
41.37785
130
f90
artemide-public
artemide-public-master/src/Code/TMD_AD/AD_secondary.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!! !!!!!!!!! part of TMD_AD module for artemide !!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!------------------------------------------------------------------------------------------------------- !!!--------------------------------------------SECONDARY ADs------------------------------------------------ !!!------------------------------------------------------------------------------------------------------- !!!! sets the values of logarithm part for QUARK !!!! Expression is taken from [1707.07606] subroutine SetDnkQuark() integer::n !! 1-loop !! *[checked 18.05.22] do n=NfMIN,NfMAX d_nk_Q_internal(1,4,n)=0d0 d_nk_Q_internal(1,3,n)=0d0 d_nk_Q_internal(1,2,n)=0d0 d_nk_Q_internal(1,1,n)=GammaCusp_q(0,n)/2d0 end do !! 2-loop !! *[checked 18.05.22] do n=NfMIN,NfMAX d_nk_Q_internal(2,4,n)=0d0 d_nk_Q_internal(2,3,n)=0d0 d_nk_Q_internal(2,2,n)=GammaCusp_q(0,n)*betaQCD(0,n)/4d0 d_nk_Q_internal(2,1,n)=GammaCusp_q(1,n)/2d0 end do !! 3-loop !! *[checked 18.05.22] do n=NfMIN,NfMAX d_nk_Q_internal(3,4,n)=0 d_nk_Q_internal(3,3,n)=GammaCusp_q(0,n)*(betaQCD(0,n)**2)/6d0 d_nk_Q_internal(3,2,n)=(GammaCusp_q(0,n)*betaQCD(1,n)+2d0*GammaCusp_q(1,n)*betaQCD(0,n))/4d0 d_nk_Q_internal(3,1,n)=(GammaCusp_q(2,n)+4d0*dnk_q(2,0,n)*betaQCD(0,n))/2d0 end do !! 4-loop do n=NfMIN,NfMAX d_nk_Q_internal(4,4,n)=GammaCusp_q(0,n)*(betaQCD(0,n)**3)/8d0 d_nk_Q_internal(4,3,n)=5d0/12d0*GammaCusp_q(0,n)*betaQCD(0,n)*betaQCD(1,n)& +GammaCusp_q(1,n)*(betaQCD(0,n)**2)/2d0 d_nk_Q_internal(4,2,n)=GammaCusp_q(0,n)*betaQCD(2,n)/4d0+GammaCusp_q(1,n)*betaQCD(1,n)/2d0& +3d0/4d0*GammaCusp_q(2,n)*betaQCD(0,n)& +3d0*dnk_q(2,0,n)*(betaQCD(0,n)**2) d_nk_Q_internal(4,1,n)=GammaCusp_q(3,n)/2d0+2d0*dnk_q(2,0,n)*betaQCD(1,n)& +3d0*dnk_q(3,0,n)*betaQCD(0,n) end do end subroutine SetDnkQuark !!!! sets the values of logarithm part for RAD GLUON !!!! Expression is taken from [1707.07606] subroutine SetDnkGluon() integer::n !! 1-loop do n=NfMIN,NfMAX d_nk_G_internal(1,4,n)=0d0 d_nk_G_internal(1,3,n)=0d0 d_nk_G_internal(1,2,n)=0d0 d_nk_G_internal(1,1,n)=GammaCusp_g(0,n)/2d0 end do !! 2-loop do n=NfMIN,NfMAX d_nk_G_internal(2,4,n)=0d0 d_nk_G_internal(2,3,n)=0d0 d_nk_G_internal(2,2,n)=GammaCusp_g(0,n)*betaQCD(0,n)/4d0 d_nk_G_internal(2,1,n)=GammaCusp_g(1,n)/2d0 end do !! 3-loop do n=NfMIN,NfMAX d_nk_G_internal(3,4,n)=0d0 d_nk_G_internal(3,3,n)=GammaCusp_g(0,n)*(betaQCD(0,n)**2)/6d0 d_nk_G_internal(3,2,n)=(GammaCusp_g(0,n)*betaQCD(1,n)+2d0*GammaCusp_g(1,n)*betaQCD(0,n))/4d0 d_nk_G_internal(3,1,n)=(GammaCusp_g(2,n)+4d0*dnk_g(2,0,n)*betaQCD(0,n))/2d0 end do !! 4-loop do n=NfMIN,NfMAX d_nk_G_internal(4,4,n)=GammaCusp_g(0,n)*(betaQCD(0,n)**3)/8d0 d_nk_G_internal(4,3,n)=5d0/12d0*GammaCusp_q(0,n)*betaQCD(0,n)*betaQCD(1,n)& +GammaCusp_g(1,n)*(betaQCD(0,n)**2)/2d0 d_nk_G_internal(4,2,n)=GammaCusp_g(0,n)*betaQCD(2,n)/4d0+GammaCusp_g(1,n)*betaQCD(1,n)/2d0& +3d0/4d0*GammaCusp_g(2,n)*betaQCD(0,n)& +3d0*dnk_g(2,0,n)*(betaQCD(0,n)**2) d_nk_G_internal(4,1,n)=GammaCusp_g(3,n)/2d0+2d0*dnk_g(2,0,n)*betaQCD(1,n)& +3d0*dnk_g(3,0,n)*betaQCD(0,n) end do end subroutine SetDnkGluon !!!! sets the values of RAD-resummed coefficients for QUARK !!!! D=-GAMMA0/2BETA0(LOG(1-X)+as^n/(1-X)^n dnkl X^k Log(1-X)^l subroutine SetDnklQuark() integer::n,i,j real(dp)::B1,B2,B3,B4,G1,G2,G3,G4,DD2,DD3,DD4 do n=NfMIN,NfMAX B1=betaQCD(1,n)/betaQCD(0,n) B2=betaQCD(2,n)/betaQCD(0,n) B3=betaQCD(3,n)/betaQCD(0,n) B4=betaQCD(4,n)/betaQCD(0,n) G1=GammaCusp_q(1,n)/GammaCusp_q(0,n) G2=GammaCusp_q(2,n)/GammaCusp_q(0,n) G3=GammaCusp_q(3,n)/GammaCusp_q(0,n) G4=GammaCusp_q(4,n)/GammaCusp_q(0,n) DD2=-2d0*dnk_q(2,0,n)*betaQCD(0,n)/GammaCusp_q(0,n) DD3=-2d0*dnk_q(3,0,n)*betaQCD(0,n)/GammaCusp_q(0,n) DD4=-2d0*dnk_q(4,0,n)*betaQCD(0,n)/GammaCusp_q(0,n) !! 1-loop !! *checked [18.05.22] d_nkl_Q_internal(1,0,1,n)=B1 d_nkl_Q_internal(1,1,0,n)=B1-G1 d_nkl_Q_internal(1,0,0,n)=0d0 !! 2-loop !! *checked [18.05.22] d_nkl_Q_internal(2,0,2,n)=-(B1**2)/2d0 d_nkl_Q_internal(2,0,1,n)=B1*G1 d_nkl_Q_internal(2,2,0,n)=(G2-B1*G1-B2+B1**2)/2d0 d_nkl_Q_internal(2,1,0,n)=B1*G1-G2 d_nkl_Q_internal(2,0,0,n)=DD2 d_nkl_Q_internal(2,2,2,n)=0d0 d_nkl_Q_internal(2,1,1,n)=0d0 !! 3-loop d_nkl_Q_internal(3,0,3,n)=(B1**3)/3d0 d_nkl_Q_internal(3,0,2,n)=-(B1**3)/2d0-(B1**2)*G1 d_nkl_Q_internal(3,0,1,n)=B1*G2-2d0*B1*DD2 d_nkl_Q_internal(3,1,1,n)=B1*B2-B1**3 d_nkl_Q_internal(3,3,0,n)=1d0/3d0*(B1**3-2d0*B1*B2+B3-(B1**2)*G1+B2*G1+B1*G2-G3) d_nkl_Q_internal(3,2,0,n)=-0.5d0*(B1**3)+B1*B2-0.5d0*B3+(B1**2)*G1-B2*G1-B1*G2+G3 d_nkl_Q_internal(3,1,0,n)=B1*G2-G3 d_nkl_Q_internal(3,0,0,n)=DD3 d_nkl_Q_internal(3,1,2,n)=0d0 d_nkl_Q_internal(3,1,3,n)=0d0 d_nkl_Q_internal(3,2,1,n)=0d0 d_nkl_Q_internal(3,2,2,n)=0d0 d_nkl_Q_internal(3,2,3,n)=0d0 d_nkl_Q_internal(3,3,1,n)=0d0 d_nkl_Q_internal(3,3,2,n)=0d0 d_nkl_Q_internal(3,3,3,n)=0d0 !! 4-loop do i=0,4 do j=0,4 d_nkl_Q_internal(4,i,j,n)=0d0 end do end do d_nkl_Q_internal(4,0,4,n)=-(B1**4)/4d0 d_nkl_Q_internal(4,0,3,n)=5d0/6d0*(B1**4)+(B1**3)*G1 d_nkl_Q_internal(4,0,2,n)=-(B1**2*B2)/2d0 + 3d0*B1**2*DD2 - B1**3*G1 - 3d0*B1**2*G2/2d0 d_nkl_Q_internal(4,1,2,n)=B1**4 - B1**2*B2 d_nkl_Q_internal(4,0,1,n)=-2d0*B1**2*DD2 - 3d0*B1*DD3 + B1*G3 d_nkl_Q_internal(4,1,1,n)=-(B1**2*B2) + B1*B3 - 2d0*B1**3*G1 + 2d0*B1*B2*G1 d_nkl_Q_internal(4,2,1,n)=-B1**4/2d0 + B1**2*B2 - (B1*B3)/2d0 d_nkl_Q_internal(4,4,0,n)=(B1**4 - 3d0*B1**2*B2 + B2**2 + 2d0*B1*B3 - B4 & - B1**3*G1 + 2d0*B1*B2*G1 - B3*G1 + B1**2*G2 - B2*G2 - B1*G3 + G4)/4d0 d_nkl_Q_internal(4,3,0,n)=(-2*B1**4 + 6*B1**2*B2 - 2*B2**2 - 4*B1*B3 + 2*B4 + 3*B1**3*G1 & - 6*B1*B2*G1 + 3*B3*G1 - 3*B1**2*G2 + 3*B2*G2 + 3*B1*G3 - 3*G4)/3d0 d_nkl_Q_internal(4,2,0,n)=(-(B1**2*B2) + 2*B1*B3 - B4 - 2*B1**3*G1 + 4*B1*B2*G1 - 2*B3*G1 & + 3*B1**2*G2 - 3*B2*G2 - 3*B1*G3 + 3*G4)/2d0 d_nkl_Q_internal(4,1,0,n)=-2*B1**2*DD2 + 2*B2*DD2 + B1*G3 - G4 d_nkl_Q_internal(4,0,0,n)=DD4 end do end subroutine SetDnklQuark !!!! sets the values of RAD-resummed coefficients for QUARK !!!! D=-GAMMA0/2BETA0(LOG(1-X)+as^n/(1-X)^n dnkl X^k Log(1-X)^l subroutine SetDnklGluon() integer::n, i,j real(dp)::B1,B2,B3,B4,G1,G2,G3,G4,DD2,DD3,DD4 do n=NfMIN,NfMAX B1=betaQCD(1,n)/betaQCD(0,n) B2=betaQCD(2,n)/betaQCD(0,n) B3=betaQCD(3,n)/betaQCD(0,n) B4=betaQCD(4,n)/betaQCD(0,n) G1=GammaCusp_g(1,n)/GammaCusp_g(0,n) G2=GammaCusp_g(2,n)/GammaCusp_g(0,n) G3=GammaCusp_g(3,n)/GammaCusp_g(0,n) G4=GammaCusp_g(4,n)/GammaCusp_g(0,n) DD2=-2d0*dnk_g(2,0,n)*betaQCD(0,n)/GammaCusp_g(0,n) DD3=-2d0*dnk_g(3,0,n)*betaQCD(0,n)/GammaCusp_g(0,n) DD4=-2d0*dnk_g(4,0,n)*betaQCD(0,n)/GammaCusp_g(0,n) !! 1-loop d_nkl_G_internal(1,0,1,n)=B1 d_nkl_G_internal(1,1,0,n)=B1-G1 d_nkl_G_internal(1,0,0,n)=0d0 !! 2-loop d_nkl_G_internal(2,0,2,n)=-(B1**2)/2d0 d_nkl_G_internal(2,0,1,n)=B1*G1 d_nkl_G_internal(2,2,0,n)=(G2-B1*G1-B2+B1**2)/2d0 d_nkl_G_internal(2,1,0,n)=B1*G1-G2 d_nkl_G_internal(2,0,0,n)=-2d0*dnk_g(2,0,n)*betaQCD(0,n)/GammaCusp_g(0,n) d_nkl_G_internal(2,2,2,n)=0d0 d_nkl_G_internal(2,1,1,n)=0d0 !! 3-loop d_nkl_G_internal(3,0,3,n)=(B1**3)/3d0 d_nkl_G_internal(3,0,2,n)=-(B1**3)/2d0-(B1**2)*G1 d_nkl_G_internal(3,0,1,n)=B1*G2+4d0*dnk_g(2,0,n)*betaQCD(1,n)/GammaCusp_g(0,n) d_nkl_G_internal(3,1,1,n)=B1*B2-B1**3 d_nkl_G_internal(3,3,0,n)=1d0/3d0*(B1**3-2d0*B1*B2+B3-(B1**2)*G1+B2*G1+B1*G2-G3) d_nkl_G_internal(3,2,0,n)=-0.5d0*(B1**3)+B1*B2-0.5d0*B3+(B1**2)*G1-B2*G1-B1*G2+G3 d_nkl_G_internal(3,1,0,n)=B1*G2-G3 d_nkl_G_internal(3,0,0,n)=-2d0*dnk_g(3,0,n)*betaQCD(0,n)/GammaCusp_g(0,n) d_nkl_G_internal(3,1,2,n)=0d0 d_nkl_G_internal(3,1,3,n)=0d0 d_nkl_G_internal(3,2,1,n)=0d0 d_nkl_G_internal(3,2,2,n)=0d0 d_nkl_G_internal(3,2,3,n)=0d0 d_nkl_G_internal(3,3,1,n)=0d0 d_nkl_G_internal(3,3,2,n)=0d0 d_nkl_G_internal(3,3,3,n)=0d0 !! 4-loop do i=0,4 do j=0,4 d_nkl_G_internal(4,i,j,n)=0d0 end do end do d_nkl_G_internal(4,0,4,n)=-(B1**4)/4d0 d_nkl_G_internal(4,0,3,n)=5d0/6d0*(B1**4)+(B1**3)*G1 d_nkl_G_internal(4,0,2,n)=-(B1**2*B2)/2d0 + 3d0*B1**2*DD2 - B1**3*G1 - 3d0*B1**2*G2/2d0 d_nkl_G_internal(4,1,2,n)=B1**4 - B1**2*B2 d_nkl_G_internal(4,0,1,n)=-2d0*B1**2*DD2 - 3d0*B1*DD3 + B1*G3 d_nkl_G_internal(4,1,1,n)=-(B1**2*B2) + B1*B3 - 2d0*B1**3*G1 + 2d0*B1*B2*G1 d_nkl_G_internal(4,2,1,n)=-B1**4/2d0 + B1**2*B2 - (B1*B3)/2d0 d_nkl_G_internal(4,4,0,n)=(B1**4 - 3d0*B1**2*B2 + B2**2 + 2d0*B1*B3 - B4 & - B1**3*G1 + 2d0*B1*B2*G1 - B3*G1 + B1**2*G2 - B2*G2 - B1*G3 + G4)/4d0 d_nkl_G_internal(4,3,0,n)=(-2*B1**4 + 6*B1**2*B2 - 2*B2**2 - 4*B1*B3 + 2*B4 + 3*B1**3*G1 & - 6*B1*B2*G1 + 3*B3*G1 - 3*B1**2*G2 + 3*B2*G2 + 3*B1*G3 - 3*G4)/3d0 d_nkl_G_internal(4,2,0,n)=(-(B1**2*B2) + 2*B1*B3 - B4 - 2*B1**3*G1 + 4*B1*B2*G1 - 2*B3*G1 & + 3*B1**2*G2 - 3*B2*G2 - 3*B1*G3 + 3*G4)/2d0 d_nkl_G_internal(4,1,0,n)=-2*B1**2*DD2 + 2*B2*DD2 + B1*G3 - G4 d_nkl_G_internal(4,0,0,n)=DD4 end do end subroutine SetDnklGluon !!!! sets the values of zeta-line PT coefficients for QUARK !!!! zeta=C0 mu/b*exp(-v), v=a^n L^k v^{(nk)} subroutine SetVnkQuark() integer::n real(dp)::B1,B2,B3,G1,G2,G3,gg1,gg2,gg3,gg4,dd2,dd3,dd4 v_nk_Q_internal=0d0*v_nk_Q_internal do n=NfMIN,NfMAX B1=betaQCD(1,n)/betaQCD(0,n) B2=betaQCD(2,n)/betaQCD(0,n) B3=betaQCD(3,n)/betaQCD(0,n) G1=GammaCusp_q(1,n)/GammaCusp_q(0,n) G2=GammaCusp_q(2,n)/GammaCusp_q(0,n) G3=GammaCusp_q(3,n)/GammaCusp_q(0,n) gg1=gammaV_q(1,n)/GammaCusp_q(0,n) gg2=(gammaV_q(2,n)+dnk_q(2,0,n))/GammaCusp_q(0,n) gg3=(gammaV_q(3,n)+dnk_q(3,0,n))/GammaCusp_q(0,n) gg4=(gammaV_q(4,n)+dnk_q(4,0,n))/GammaCusp_q(0,n) dd2=dnk_q(2,0,n)/GammaCusp_q(0,n) dd3=dnk_q(3,0,n)/GammaCusp_q(0,n) dd4=dnk_q(4,0,n)/GammaCusp_q(0,n) !! 1-loop v_nk_Q_internal(0,1,n)=0d0 v_nk_Q_internal(0,0,n)=gg1 !! 2-loop v_nk_Q_internal(1,2,n)=betaQCD(0,n)/12d0 v_nk_Q_internal(1,1,n)=0d0 v_nk_Q_internal(1,0,n)=-gg1*G1+gg2 !! 3-loop v_nk_Q_internal(2,3,n)=(betaQCD(0,n)**2)/24d0 v_nk_Q_internal(2,2,n)=betaQCD(0,n)/12d0*(B1+G1) v_nk_Q_internal(2,1,n)=betaQCD(0,n)/2d0*(5d0/3d0*dd2-gg1*G1+gg2) v_nk_Q_internal(2,0,n)=gg1*(G1**2)-gg2*G1-gg1*G2+gg3 !! 4-loop v_nk_Q_internal(3,4,n)=19d0*(betaQCD(0,n)**3)/720d0 v_nk_Q_internal(3,3,n)=(betaQCD(0,n)**2)/12d0*(G1+3d0/2d0*B1) v_nk_Q_internal(3,2,n)=betaQCD(0,n)/12d0*(B2 + B1*G1 - G1**2 + 2d0*G2 & + (14d0*dd2 - 5d0*G1*gg1 + 5d0*gg2)*betaQCD(0,n)) v_nk_Q_internal(3,1,n)=betaQCD(0,n)/6d0*(5d0*B1*dd2 + 8d0*dd3 - 6d0*dd2*G1 & - 3d0*B1*G1*gg1 + 6d0*G1**2*gg1 - 6d0*G2*gg1 + 3d0*B1*gg2 & - 6d0*G1*gg2 + 6d0*gg3) v_nk_Q_internal(3,0,n)=-(G1**3*gg1) + 2d0*G1*G2*gg1 - G3*gg1 + G1**2*gg2 & - G2*gg2 - G1*gg3 + gg4 + ((-5d0*dd2**2)/3d0 - dd2*G1*gg1 + dd2*gg2)*betaQCD(0,n) !! 5-loop partially v_nk_Q_internal(4,5,n)=3d0*(betaQCD(0,n)**4)/160d0 v_nk_Q_internal(4,4,n)=(betaQCD(0,n)**3)/720d0*(104*B1 + 57*G1) v_nk_Q_internal(4,3,n)=betaQCD(0,n)**2/24d0*(2d0*B1**2 + 4d0*B2 + 5d0*B1*G1 - 3d0*G1**2 + 6d0*G2 & + ((511d0*dd2)/15d0 - 9d0*G1*gg1 + 9d0*gg2)*betaQCD(0,n)) v_nk_Q_internal(4,2,n)=betaQCD(0,n)/12d0*(B3 + B2*G1 - B1*G1**2 + G1**3 + 2d0*B1*G2 - 3d0*G1*G2 & + 3*G3 + (35d0*B1*dd2 + 33d0*dd3 - 24d0*dd2*G1 - 12d0*B1*G1*gg1 + 13d0*G1**2*gg1 & - 14d0*G2*gg1 + 12d0*B1*gg2 - 13d0*G1*gg2 + 14d0*gg3)*betaQCD(0,n)) v_nk_Q_internal(4,1,n)=betaQCD(0,n)/6d0*(5*B2*dd2 + 8*B1*dd3 + 11*dd4 - 6*B1*dd2*G1 - 9*dd3*G1 & + 7*dd2*G1**2 - 7*dd2*G2 - 3*B2*G1*gg1 + 6*B1*G1**2*gg1 - 9*G1**3*gg1 - 6*B1*G2*gg1 & + 18*G1*G2*gg1 - 9*G3*gg1 + 3*B2*gg2 - 6*B1*G1*gg2 + 9*G1**2*gg2 - 9*G2*gg2 + 6*B1*gg3 & - 9*G1*gg3 + 9*gg4 + (-29*dd2**2 - 16*dd2*G1*gg1 + 16*dd2*gg2)*betaQCD(0,n)) v_nk_Q_internal(4,0,n)=0d0 end do end subroutine SetVnkQuark !!!! sets the values of zeta-line PT coefficients for QUARK !!!! zeta=C0 mu/b*exp(-v), v=a^n L^k v^{(nk)} subroutine SetVnkGluon() integer::n real(dp)::B1,B2,B3,G1,G2,G3,gg1,gg2,gg3,gg4,dd2,dd3,dd4 v_nk_G_internal=0d0*v_nk_G_internal do n=NfMIN,NfMAX B1=betaQCD(1,n)/betaQCD(0,n) B2=betaQCD(2,n)/betaQCD(0,n) B2=betaQCD(3,n)/betaQCD(0,n) G1=GammaCusp_g(1,n)/GammaCusp_g(0,n) G2=GammaCusp_g(2,n)/GammaCusp_g(0,n) G3=GammaCusp_g(3,n)/GammaCusp_g(0,n) gg1=gammaV_g(1,n)/GammaCusp_g(0,n) gg2=(gammaV_g(2,n)+dnk_g(2,0,n))/GammaCusp_g(0,n) gg3=(gammaV_g(3,n)+dnk_g(3,0,n))/GammaCusp_g(0,n) gg4=(gammaV_g(4,n)+dnk_g(4,0,n))/GammaCusp_g(0,n) dd2=dnk_g(2,0,n)/GammaCusp_g(0,n) dd3=dnk_g(3,0,n)/GammaCusp_g(0,n) dd4=dnk_g(4,0,n)/GammaCusp_g(0,n) !! 1-loop v_nk_G_internal(0,1,n)=0d0 v_nk_G_internal(0,0,n)=gg1 !! 2-loop v_nk_G_internal(1,2,n)=betaQCD(0,n)/12d0 v_nk_G_internal(1,1,n)=0d0 v_nk_G_internal(1,0,n)=-gg1*G1+gg2 !! 3-loop v_nk_G_internal(2,3,n)=(betaQCD(0,n)**2)/24d0 v_nk_G_internal(2,2,n)=betaQCD(0,n)/12d0*(B1+G1) v_nk_G_internal(2,1,n)=betaQCD(0,n)/2d0*(5d0/3d0*dd2-gg1*G1+gg2) v_nk_G_internal(2,0,n)=gg1*(G1**2)-gg2*G1-gg1*G2+gg3 !! 4-loop v_nk_G_internal(3,4,n)=19d0*(betaQCD(0,n)**3)/720d0 v_nk_G_internal(3,3,n)=(betaQCD(0,n)**2)/12d0*(G1+3d0/2d0*B1) v_nk_G_internal(3,2,n)=betaQCD(0,n)/12d0*(B2 + B1*G1 - G1**2 + 2d0*G2 & + (14d0*dd2 - 5d0*G1*gg1 + 5d0*gg2)*betaQCD(0,n)) v_nk_G_internal(3,1,n)=betaQCD(0,n)/6d0*(5d0*B1*dd2 + 8d0*dd3 - 6d0*dd2*G1 & - 3d0*B1*G1*gg1 + 6d0*G1**2*gg1 - 6d0*G2*gg1 + 3d0*B1*gg2 & - 6d0*G1*gg2 + 6d0*gg3) v_nk_G_internal(3,0,n)=-(G1**3*gg1) + 2d0*G1*G2*gg1 - G3*gg1 + G1**2*gg2 & - G2*gg2 - G1*gg3 + gg4 + ((-5d0*dd2**2)/3d0 - dd2*G1*gg1 + dd2*gg2)*betaQCD(0,n) !! 5-loop partially v_nk_G_internal(4,5,n)=3d0*(betaQCD(0,n)**4)/160d0 v_nk_G_internal(4,4,n)=(betaQCD(0,n)**3)/720d0*(104*B1 + 57*G1) v_nk_G_internal(4,3,n)=betaQCD(0,n)**2/24d0*(2d0*B1**2 + 4d0*B2 + 5d0*B1*G1 - 3d0*G1**2 + 6d0*G2 & + ((511d0*dd2)/15d0 - 9d0*G1*gg1 + 9d0*gg2)*betaQCD(0,n)) v_nk_G_internal(4,2,n)=betaQCD(0,n)/12d0*(B3 + B2*G1 - B1*G1**2 + G1**3 + 2d0*B1*G2 - 3d0*G1*G2 & + 3*G3 + (35d0*B1*dd2 + 33d0*dd3 - 24d0*dd2*G1 - 12d0*B1*G1*gg1 + 13d0*G1**2*gg1 & - 14d0*G2*gg1 + 12d0*B1*gg2 - 13d0*G1*gg2 + 14d0*gg3)*betaQCD(0,n)) v_nk_G_internal(4,1,n)=betaQCD(0,n)/6d0*(5*B2*dd2 + 8*B1*dd3 + 11*dd4 - 6*B1*dd2*G1 - 9*dd3*G1 & + 7*dd2*G1**2 - 7*dd2*G2 - 3*B2*G1*gg1 + 6*B1*G1**2*gg1 - 9*G1**3*gg1 - 6*B1*G2*gg1 & + 18*G1*G2*gg1 - 9*G3*gg1 + 3*B2*gg2 - 6*B1*G1*gg2 + 9*G1**2*gg2 - 9*G2*gg2 + 6*B1*gg3 & - 9*G1*gg3 + 9*gg4 + (-29*dd2**2 - 16*dd2*G1*gg1 + 16*dd2*gg2)*betaQCD(0,n)) v_nk_G_internal(4,0,n)=0d0 end do end subroutine SetVnkGluon !!!! sets the values of EXACT zeta-line PT coefficients for QUARK !!!! zeta=mu^2*exp(-1/beta0/as * OMEGA), OMEGA=a^n OMEGA^{(nk)} ... !!!! ... in each term different. subroutine SetOMEGAnkQuark() integer::n real(dp)::B1,B2,B3,B4,G1,G2,G3,G4,gg1,gg2,gg3,gg4,commonF OMEGA_nk_Q_internal=0d0*OMEGA_nk_Q_internal do n=NfMIN,NfMAX B1=betaQCD(1,n)/betaQCD(0,n) B2=betaQCD(2,n)/betaQCD(0,n) B3=betaQCD(3,n)/betaQCD(0,n) B4=betaQCD(4,n)/betaQCD(0,n) G1=GammaCusp_q(1,n)/GammaCusp_q(0,n) G2=GammaCusp_q(2,n)/GammaCusp_q(0,n) G3=GammaCusp_q(3,n)/GammaCusp_q(0,n) G4=GammaCusp_q(4,n)/GammaCusp_q(0,n) gg1=gammaV_q(1,n)*betaQCD(0,n)/GammaCusp_q(0,n) gg2=gammaV_q(2,n)*betaQCD(0,n)/GammaCusp_q(0,n) gg3=gammaV_q(3,n)*betaQCD(0,n)/GammaCusp_q(0,n) gg4=gammaV_q(4,n)*betaQCD(0,n)/GammaCusp_q(0,n) pFACTOR_Q_internal(n)=2d0*betaQCD(0,n)/GammaCusp_q(0,n) commonF=1d0/betaQCD(0,n) !! 0-loop !! * z_1 OMEGA_nk_Q_internal(0,1,n)=1d0*commonF !! 1-loop !! * z_1 OMEGA_nk_Q_internal(1,1,n)=(B1-G1)*commonF !! * 1 OMEGA_nk_Q_internal(1,2,n)=gg1*commonF !! * p OMEGA_nk_Q_internal(1,3,n)=-B1/2d0*commonF !! 2-loop !! * z_1 OMEGA_nk_Q_internal(2,1,n)=(B2-B1*G1+G1**2-G2)/2d0*commonF !! * z_{-1} OMEGA_nk_Q_internal(2,2,n)=((-B2+B1*G1+G1**2-G2)/2d0-G1*gg1+gg2)*commonF !! * 1 OMEGA_nk_Q_internal(2,3,n)=(-G1*gg1+gg2)*commonF !! 3-loop !! * z_1 OMEGA_nk_Q_internal(3,1,n)=(2d0*B3+(B1**2)*G1-B2*G1-G1**3+3*G1*G2-B1*B2-B1*G2-2d0*G3)/6d0*commonF !! * z_{-1} !!! corrected 17.11.2022 OMEGA_nk_Q_internal(3,2,n)=(-B2+B1*G1+G1**2-G2-2d0*G1*gg1+2d0*gg2)*(G1-B1)/2d0*commonF !! * z_{-2} OMEGA_nk_Q_internal(3,3,n)=((-B1*B2-B3+(B1**2)*G1+2d0*B2*G1-4d0*(G1**3)-B1*G2+6d0*G1*G2-2d0*G3)/12d0& +(2d0*G1-B1)*(G1*gg1-gg2)/2d0-(G2*gg1-gg3)/2d0)*commonF !! * 1 OMEGA_nk_Q_internal(3,4,n)=((G1**2)*gg1-G2*gg1-G1*gg2+gg3)*commonF !! * p (leading term of expansion z[1]+z[-1]+z[-2] parts.) !! this is used to cure the groving tail OMEGA_nk_Q_internal(3,5,n)=(-G1**3 + 2*G1*G2 - G3 - B1*G1*gg1 + 3*G1**2*gg1 & - 2*G2*gg1 + B1*gg2 - 3*G1*gg2 + 2*gg3)/2d0*commonF !! 4-loop !! * z_1 OMEGA_nk_Q_internal(4,1,n)=(2d0*B1**2*B2 - 3d0*B2**2 - 4d0*B1*B3 + 6d0*B4 - 2d0*B1**3*G1 & + 6d0*B1*B2*G1 - 2d0*B3*G1 - B1**2*G1**2 - 2d0*B2*G1**2 + 2d0*B1*G1**3 & + G1**4 + 2d0*B1**2*G2 - 2d0*B1*G1*G2 - 6d0*G1**2*G2 + 3d0*G2**2 - 2d0*B1*G3 & + 8d0*G1*G3 - 6d0*G4)/24d0*commonF !! * z_{-1} OMEGA_nk_Q_internal(4,2,n)=(2d0*B1**2 - B2 - 3d0*B1*G1 + G1**2 + G2)*(-B2 + B1*G1 & + G1**2 - G2 - 2d0*G1*gg1 + 2d0*gg2)/4d0*commonF !! * z_{-2} OMEGA_nk_Q_internal(4,3,n)=(B1*B2 + B3 - B1**2*G1 - 2d0*B2*G1 + 4d0*G1**3 + B1*G2 - 6d0*G1*G2 & + 2d0*G3 + 6d0*B1*G1*gg1 - 12d0*G1**2*gg1 + 6d0*G2*gg1 - 6d0*B1*gg2 & + 12d0*G1*gg2 - 6d0*gg3)*(B1-G1)/6d0*commonF !! * z_{-3} OMEGA_nk_Q_internal(4,4,n)=(-2*B1**2*B2 - B2**2 - 4*B1*B3 - 2*B4 + 2*B1**3*G1 + 10*B1*B2*G1 & + 6*B3*G1 - 3*B1**2*G1**2 - 6*B2*G1**2 - 18*B1*G1**3 + 27*G1**4 - 2*B1**2*G2 + 30*B1*G1*G2 & - 54*G1**2*G2 + 9*G2**2 - 10*B1*G3 + 24*G1*G3 - 6*G4 - 24*B1**2*G1*gg1 - 12*B2*G1*gg1 & + 108*B1*G1**2*gg1 - 108*G1**3*gg1 - 48*B1*G2*gg1 + 108*G1*G2*gg1 - 24*G3*gg1 & + 24*B1**2*gg2 + 12*B2*gg2 - 108*B1*G1*gg2 + 108*G1**2*gg2 - 36*G2*gg2 + 48*B1*gg3 & - 72*G1*gg3 + 24*gg4)/72d0*commonF !! * 1 OMEGA_nk_Q_internal(4,5,n)=(-(G1**3*gg1) + 2*G1*G2*gg1 - G3*gg1 + G1**2*gg2 & - G2*gg2 - G1*gg3 + gg4)*commonF end do ! write(*,*) "w0" ! write(*,*) OMEGA_nk_Q_internal(0,1,3),OMEGA_nk_Q_internal(0,1,4),OMEGA_nk_Q_internal(0,1,5) ! write(*,*) "w1" ! write(*,*) OMEGA_nk_Q_internal(1,1,3),OMEGA_nk_Q_internal(1,1,4),OMEGA_nk_Q_internal(1,1,5) ! write(*,*) OMEGA_nk_Q_internal(1,2,3),OMEGA_nk_Q_internal(1,2,4),OMEGA_nk_Q_internal(1,2,5) ! write(*,*) OMEGA_nk_Q_internal(1,3,3),OMEGA_nk_Q_internal(1,3,4),OMEGA_nk_Q_internal(1,3,5) ! write(*,*) "w2" ! write(*,*) OMEGA_nk_Q_internal(2,1,3),OMEGA_nk_Q_internal(2,1,4),OMEGA_nk_Q_internal(2,1,5) ! write(*,*) OMEGA_nk_Q_internal(2,2,3),OMEGA_nk_Q_internal(2,2,4),OMEGA_nk_Q_internal(2,2,5) ! write(*,*) OMEGA_nk_Q_internal(2,3,3),OMEGA_nk_Q_internal(2,3,4),OMEGA_nk_Q_internal(2,3,5) ! write(*,*) "w3" ! write(*,*) OMEGA_nk_Q_internal(3,1,3),OMEGA_nk_Q_internal(3,1,4),OMEGA_nk_Q_internal(3,1,5) ! write(*,*) OMEGA_nk_Q_internal(3,2,3),OMEGA_nk_Q_internal(3,2,4),OMEGA_nk_Q_internal(3,2,5) ! write(*,*) OMEGA_nk_Q_internal(3,3,3),OMEGA_nk_Q_internal(3,3,4),OMEGA_nk_Q_internal(3,3,5) ! write(*,*) OMEGA_nk_Q_internal(3,4,3),OMEGA_nk_Q_internal(3,4,4),OMEGA_nk_Q_internal(3,4,5) ! write(*,*) OMEGA_nk_Q_internal(3,5,3),OMEGA_nk_Q_internal(3,5,4),OMEGA_nk_Q_internal(3,5,5) ! write(*,*) "w4" ! write(*,*) OMEGA_nk_Q_internal(4,1,3),OMEGA_nk_Q_internal(4,1,4),OMEGA_nk_Q_internal(4,1,5) ! write(*,*) OMEGA_nk_Q_internal(4,2,3),OMEGA_nk_Q_internal(4,2,4),OMEGA_nk_Q_internal(4,2,5) ! write(*,*) OMEGA_nk_Q_internal(4,3,3),OMEGA_nk_Q_internal(4,3,4),OMEGA_nk_Q_internal(4,3,5) ! write(*,*) OMEGA_nk_Q_internal(4,4,3),OMEGA_nk_Q_internal(4,4,4),OMEGA_nk_Q_internal(4,4,5) ! write(*,*) OMEGA_nk_Q_internal(4,5,3),OMEGA_nk_Q_internal(4,5,4),OMEGA_nk_Q_internal(4,5,5) end subroutine SetOMEGAnkQuark !!!! sets the values of EXACT zeta-line PT coefficients for QUARK !!!! zeta=mu^2*exp(-1/as * OMEGA), OMEGA=a^n OMEGA^{(nk)} ... !!!! ... in each term different. subroutine SetOMEGAnkGluon() integer::n real(dp)::B1,B2,B3,B4,G1,G2,G3,G4,gg1,gg2,gg3,gg4,commonF OMEGA_nk_G_internal=0d0*OMEGA_nk_G_internal do n=NfMIN,NfMAX B1=betaQCD(1,n)/betaQCD(0,n) B2=betaQCD(2,n)/betaQCD(0,n) B3=betaQCD(3,n)/betaQCD(0,n) B4=betaQCD(4,n)/betaQCD(0,n) G1=GammaCusp_g(1,n)/GammaCusp_g(0,n) G2=GammaCusp_g(2,n)/GammaCusp_g(0,n) G3=GammaCusp_g(3,n)/GammaCusp_g(0,n) G4=GammaCusp_g(4,n)/GammaCusp_g(0,n) gg1=gammaV_g(1,n)*betaQCD(0,n)/GammaCusp_g(0,n) gg2=gammaV_g(2,n)*betaQCD(0,n)/GammaCusp_g(0,n) gg3=gammaV_g(3,n)*betaQCD(0,n)/GammaCusp_g(0,n) gg4=gammaV_g(4,n)*betaQCD(0,n)/GammaCusp_g(0,n) pFACTOR_G_internal(n)=2d0*betaQCD(0,n)/GammaCusp_g(0,n) commonF=1d0/betaQCD(0,n) !! 0-loop !! * z_1 OMEGA_nk_G_internal(0,1,n)=1d0*commonF !! 1-loop !! * z_1 OMEGA_nk_G_internal(1,1,n)=(B1-G1)*commonF !! * 1 OMEGA_nk_G_internal(1,2,n)=gg1*commonF !! * p OMEGA_nk_G_internal(1,3,n)=-B1/2d0*commonF !! 2-loop !! * z_1 OMEGA_nk_G_internal(2,1,n)=(B2-B1*G1+G1**2-G2)/2d0*commonF !! * z_{-1} OMEGA_nk_G_internal(2,2,n)=((-B2+B1*G1+G1**2-G2)/2d0-G1*gg1+gg2)*commonF !! * 1 OMEGA_nk_G_internal(2,3,n)=(-G1*gg1+gg2)*commonF !! 3-loop !! * z_1 OMEGA_nk_G_internal(3,1,n)=(2d0*B3+(B1**2)*G1-B2*G1-G1**3+3*G1*G2-B1*B2-B1*G2-2d0*G3)/6d0*commonF !! * z_{-1} OMEGA_nk_G_internal(3,2,n)=(-B2+B1*G1+G1**2-G2-2d0*G1*gg1+2d0*gg2)*(B1-G1)/2d0*commonF !! * z_{-2} OMEGA_nk_G_internal(3,3,n)=((-B1*B2-B3+(B1**2)*G1+2d0*B2*G1-4d0*(G1**3)-B1*G2+6d0*G1*G2-2d0*G3)/12d0& +(2d0*G1-B1)*(G1*gg1-gg2)/2d0-(G2*gg1-gg3)/2d0)*commonF !! * 1 OMEGA_nk_G_internal(3,4,n)=((G1**2)*gg1-G2*gg1-G1*gg2+gg3)*commonF !! * p (leading term of expansion z[-1]+z[-2] parts.) !! this is used to cure the groving tail OMEGA_nk_G_internal(3,5,n)=(B1*B2 - 2*B3 - B1**2*G1 + B2*G1 - 5*G1**3 + B1*G2 + 9*G1*G2 - 4*G3 & - 6*B1*G1*gg1 + 18*G1**2*gg1 - 12*G2*gg1 + 6*B1*gg2 - 18*G1*gg2 + 12*gg3)/12d0*commonF !! 4-loop !! * z_1 OMEGA_nk_G_internal(4,1,n)=(2d0*B1**2*B2 - 3d0*B2**2 - 4d0*B1*B3 + 6d0*B4 - 2d0*B1**3*G1 & + 6d0*B1*B2*G1 - 2d0*B3*G1 - B1**2*G1**2 - 2d0*B2*G1**2 + 2d0*B1*G1**3 & + G1**4 + 2d0*B1**2*G2 - 2d0*B1*G1*G2 - 6d0*G1**2*G2 + 3d0*G2**2 - 2d0*B1*G3 & + 8d0*G1*G3 - 6d0*G4)/24d0*commonF !! * z_{-1} OMEGA_nk_G_internal(4,2,n)=(2d0*B1**2 - B2 - 3d0*B1*G1 + G1**2 + G2)*(-B2 + B1*G1 & + G1**2 - G2 - 2d0*G1*gg1 + 2d0*gg2)/4d0*commonF !! * z_{-2} OMEGA_nk_G_internal(4,3,n)=(B1*B2 + B3 - B1**2*G1 - 2d0*B2*G1 + 4d0*G1**3 + B1*G2 - 6d0*G1*G2 & + 2d0*G3 + 6d0*B1*G1*gg1 - 12d0*G1**2*gg1 + 6d0*G2*gg1 - 6d0*B1*gg2 & + 12d0*G1*gg2 - 6d0*gg3)*(B1-G1)/6d0*commonF !! * z_{-3} OMEGA_nk_G_internal(4,4,n)=(-2*B1**2*B2 - B2**2 - 4*B1*B3 - 2*B4 + 2*B1**3*G1 + 10*B1*B2*G1 & + 6*B3*G1 - 3*B1**2*G1**2 - 6*B2*G1**2 - 18*B1*G1**3 + 27*G1**4 - 2*B1**2*G2 + 30*B1*G1*G2 & - 54*G1**2*G2 + 9*G2**2 - 10*B1*G3 + 24*G1*G3 - 6*G4 - 24*B1**2*G1*gg1 - 12*B2*G1*gg1 & + 108*B1*G1**2*gg1 - 108*G1**3*gg1 - 48*B1*G2*gg1 + 108*G1*G2*gg1 - 24*G3*gg1 & + 24*B1**2*gg2 + 12*B2*gg2 - 108*B1*G1*gg2 + 108*G1**2*gg2 - 36*G2*gg2 + 48*B1*gg3 & - 72*G1*gg3 + 24*gg4)/72d0*commonF !! * 1 OMEGA_nk_G_internal(4,5,n)=(-(G1**3*gg1) + 2*G1*G2*gg1 - G3*gg1 + G1**2*gg2 & - G2*gg2 - G1*gg3 + gg4)*commonF end do end subroutine SetOMEGAnkGluon subroutine SetBetaRoots() integer::n,i,j real(dp)::B1,B2,B3,B4 COMPLEX*16 :: a,answ !!!!! TABLES OF ROOTS ARE COMPUTED BY MATHEMATICA !!!!! for pairs of complex roots the root with Im>0 is first !!! 3-loop COMPLEX*16,dimension(0:6),parameter:: root21=[& (-0.03570178508925446272313615680784,0.080160885478465432575800740549553),& (-0.038675539164595526336887677383148,0.086322238704594954924135437271609),& (-0.042909558259571733587612197093758,0.094759912532946789061512692156804),& (-0.049702303908879109500388299249288,0.107277462500385745931517856995518),& (-0.06316365127831199015631408649683,0.12852249664419349413270267645244),& (-0.106868666188965093663629849524,0.17594897561664481697781266179055),& (-0.21268639236122698844346103757164,0.)] COMPLEX*16,dimension(0:6),parameter:: root22=[& (-0.03570178508925446272313615680784,-0.080160885478465432575800740549553),& (-0.038675539164595526336887677383148,-0.086322238704594954924135437271609),& (-0.042909558259571733587612197093758,-0.094759912532946789061512692156804),& (-0.049702303908879109500388299249288,-0.107277462500385745931517856995518),& (-0.06316365127831199015631408649683,-0.12852249664419349413270267645244),& (-0.106868666188965093663629849524,-0.17594897561664481697781266179055),& (1.0126863923612269884434610375716,0.)] !!! 4-loop COMPLEX*16,dimension(0:6),parameter:: root31=[& -0.07241478299428282,-0.07680070354530623,-0.08208483490867254,& -0.08849217512975707,-0.09621061277365012,-0.10508908839765044,-0.11362023213019258] COMPLEX*16,dimension(0:6),parameter:: root32=[& (0.011782712908695248,0.07110324448715928),& (0.012965518598492015,0.07588307304102093),& (0.014740652117464371,0.08195773114463775),& (0.01762023160041607,0.09000832305675134),& (0.02281953013830925,0.10128572857488127),& (0.0338021542840822,0.11821077095791804),& (0.0633829862094608,0.1445765143534799)] COMPLEX*16,dimension(0:6),parameter:: root33=[& (0.011782712908695248,-0.07110324448715928),& (0.012965518598492015,-0.07588307304102093),& (0.014740652117464371,-0.08195773114463775),& (0.01762023160041607,-0.09000832305675134),& (0.02281953013830925,-0.10128572857488127),& (0.0338021542840822,-0.11821077095791804),& (0.0633829862094608,-0.1445765143534799)] !!! 5-loop COMPLEX*16,dimension(0:6),parameter:: root41=[& (-0.05591091756225722,0.04182926526696407),& (-0.06136700935148767,0.044883180457591494),& (-0.06931025598997154,0.0486907342529324),& (-0.08235582183306786,0.05320124554862426),& (-0.10910510735854696,0.05533447765266648),& (-0.12511060289367348,0.),& (-0.11397406563300194,0.)] COMPLEX*16,dimension(0:6),parameter:: root42=[& (-0.05591091756225722,-0.04182926526696407),& (-0.06136700935148767,-0.044883180457591494),& (-0.06931025598997154,-0.0486907342529324),& (-0.08235582183306786,-0.05320124554862426),& (-0.10910510735854696,-0.05533447765266648),& (-0.2793998493629861,0),& (-9.12266237853665,0)] COMPLEX*16,dimension(0:6),parameter:: root43=[& (0.028690317392283806,0.05811172924003517),& (0.03054701511242339,0.06261303090284312),& (0.03290023100445615,0.06851832657672867),& (0.03598915425211804,0.07671897555874341),& (0.040205175247139464,0.08906642425176058),& (0.0462770317488488,0.10970531146206083),& (0.06410815653997126,0.1438532871828738)] COMPLEX*16,dimension(0:6),parameter:: root44=[& (0.028690317392283806,-0.05811172924003517),& (0.03054701511242339,-0.06261303090284312),& (0.03290023100445615,-0.06851832657672867),& (0.03598915425211804,-0.07671897555874341),& (0.040205175247139464,-0.08906642425176058),& (0.0462770317488488,-0.10970531146206083),& (0.06410815653997126,-0.1438532871828738)] betaRoots_internal=0d0*betaRoots_internal do n=NfMIN,NfMAX B1=betaQCD(1,n)/betaQCD(0,n) !!! 2-loop !!! 1 real root betaRoots_internal(1,1,n)=-1d0/B1 end do !!! rest roots are tabulated if(NfMIN>=0 .and. NfMAX<=6) then !!! 3-loop betaRoots_internal(2,1,NfMIN:NfMAX)=root21(NfMIN:NfMAX) betaRoots_internal(2,2,NfMIN:NfMAX)=root22(NfMIN:NfMAX) !!! 4-loop betaRoots_internal(3,1,NfMIN:NfMAX)=root31(NfMIN:NfMAX) betaRoots_internal(3,2,NfMIN:NfMAX)=root32(NfMIN:NfMAX) betaRoots_internal(3,3,NfMIN:NfMAX)=root33(NfMIN:NfMAX) !!! 5-loop betaRoots_internal(4,1,NfMIN:NfMAX)=root41(NfMIN:NfMAX) betaRoots_internal(4,2,NfMIN:NfMAX)=root42(NfMIN:NfMAX) betaRoots_internal(4,3,NfMIN:NfMAX)=root43(NfMIN:NfMAX) betaRoots_internal(4,4,NfMIN:NfMAX)=root44(NfMIN:NfMAX) else !!! 3-loop betaRoots_internal(2,1,0:6)=root21(0:6) betaRoots_internal(2,2,0:6)=root22(0:6) !!! 4-loop betaRoots_internal(3,1,0:6)=root31(0:6) betaRoots_internal(3,2,0:6)=root32(0:6) betaRoots_internal(3,3,0:6)=root33(0:6) !!! 5-loop betaRoots_internal(4,1,0:6)=root41(0:6) betaRoots_internal(4,2,0:6)=root42(0:6) betaRoots_internal(4,3,0:6)=root43(0:6) betaRoots_internal(4,4,0:6)=root44(0:6) write(*,*) ErrorString('Beta-roots are not defined for Nf<0, and Nf>6.',moduleName) write(*,*) 'All cases beyond: [Nf(min),Nf(max)] = [', NfMIN, ', ', NfMAX, '], are ignored.' end if !!! checking procedure do n=NfMIN,NfMAX B1=betaQCD(1,n)/betaQCD(0,n) B2=betaQCD(2,n)/betaQCD(0,n) B3=betaQCD(3,n)/betaQCD(0,n) B4=betaQCD(4,n)/betaQCD(0,n) do i=1,4 do j=1,i a=betaRoots_internal(i,j,n) answ=1d0+B1*a if(i>1) answ=answ+B2*a**2 if(i>2) answ=answ+B3*a**3 if(i>3) answ=answ+B4*a**4 !!! the test of roots must be relative. I.e. for large roots, absolute precision decreses if(abs(dreal(answ)/max(1.,abs(a**i)))<0.000001 .and. abs(aimag(answ)/max(1.,abs(a**i)))<0.000001 )then !write(*,'(I1,"-loop , root-", I1, " Nf=",I2, ": PASS")') i,j,n else write(*,*) ErrorString('The beta-root is incorrect:',moduleName) write(*,'(I1,"-loop , root-", I1, " Nf=",I2, ": root incorrect")') i,j,n write(*,*) "EQN yealds=", answ end if end do end do end do end subroutine SetBetaRoots
34,012
44.050331
114
f90
artemide-public
artemide-public-master/src/Code/TMD_AD/exactZetaLine.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!! !!!!!!!!! part of TMDR module for artemide !!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!------------------------------------------------------------------------------------------------------- !!!-----------------------------The expression for exact zeta-line---------------------------------------- !!!------------------------------------------------------------------------------------------------------- !!!!!!!!!! exact value of zeta-line at given b,mu expanded over as !!!!!!!!!! rad = dNP function zetaSL(mu,rad,f) real(dp)::zetaSL real(dp),intent(in)::rad,mu integer,intent(in)::f real(dp)::alpha,GD if (orderZETA<0) then zetaSL=1d0 return end if alpha=As(mu) !!dd=DNP(mu,b,f) if(f==0) then GD=valueOfGD_type4_G(rad,alpha,mu) else GD=valueOfGD_type4_Q(rad,alpha,mu) end if !write(*,*) '..........',b,rad,alpha,GD zetaSL=(mu**2)*exp(-GD) end function zetaSL !!! expression for G, at given D,alpha, and mu !!! evaluated for type4 evolution for Quark function valueOfGD_type4_Q(dd,alpha,mu) real(dp)::valueOfGD_type4_Q,dd,alpha,mu integer::Nf real(dp)::p,pFF,z1,zm1,zm2,zm3,val if (orderZETA<0) then valueOfGD_type4_Q=0d0 return end if Nf=ActiveNf(mu) pFF=pFACTOR_Q(Nf) p=dd*pFF z1=zFUNC(p,1) val=z1*OMEGA_q(0,1,Nf) if(orderZETA>=1) then val=val+alpha*(z1*OMEGA_q(1,1,Nf)+OMEGA_q(1,2,Nf)+p*OMEGA_q(1,3,Nf)) if(orderZETA>=2) then zm1=zFUNC(p,-1) val=val+(alpha**2)*(z1*OMEGA_q(2,1,Nf)+zm1*OMEGA_q(2,2,Nf)+OMEGA_q(2,3,Nf)) if(orderZETA>=3) then !!! the problem is that the coefficients of z[-1], z[-2], are negative !!! therefore at large D the expression for R, diverges exponentially. !!! however, z[] \sim as, therefore, these terms contribute to as^4. !!! here I kill them. Istead I add their expansion up to p !val=val+(alpha**3)*(OMEGA_q(3,4,Nf)+p*OMEGA_q(3,5,Nf)) !!! killed part !!!+z1*OMEGA_q(3,1,Nf)+zm1*OMEGA_q(3,2,Nf)+zm2*OMEGA_q(3,3,Nf) !!! full expression zm2=zFUNC(p,-2) val=val+(alpha**3)*(OMEGA_q(3,4,Nf)+z1*OMEGA_q(3,1,Nf)+zm1*OMEGA_q(3,2,Nf)+zm2*OMEGA_q(3,3,Nf)) if(orderZETA>=4) then !!! here is the same problem. So I just kill z[-1],z[-2],z[-3] !!! since they formally gives as^5 !!! I do not add anything -- no need !val=val+(alpha**4)*(OMEGA_q(4,5,Nf)) !!! killed part !!!+z1*OMEGA_q(4,1,Nf)+zm1*OMEGA_q(4,2,Nf)+zm2*OMEGA_q(4,3,Nf)+zm3*OMEGA_q(4,4,Nf) !!! full expression zm3=zFUNC(p,-3) val=val+(alpha**4)*(OMEGA_q(4,5,Nf)+z1*OMEGA_q(4,1,Nf) & +zm1*OMEGA_q(4,2,Nf)+zm2*OMEGA_q(4,3,Nf)+zm3*OMEGA_q(4,4,Nf)) end if end if end if end if valueOfGD_type4_Q=val/alpha end function valueOfGD_type4_Q !!! expression for G*D, at given D,alpha, and mu !!! evaluated for type4 evolution for Quark function valueOfGD_type4_G(dd,alpha,mu) real(dp)::valueOfGD_type4_G,dd,alpha,mu integer::Nf real(dp)::p,pFF,z1,zm1,zm2,val if (orderZETA<0) then valueOfGD_type4_G=0d0 return end if Nf=ActiveNf(mu) pFF=pFACTOR_G(Nf) p=dd*pFF z1=zFUNC(p,1) val=z1*OMEGA_g(0,1,Nf) if(orderZETA>=1) then val=val+alpha*(z1*OMEGA_g(1,1,Nf)+OMEGA_g(1,2,Nf)+p*OMEGA_g(1,3,Nf)) if(orderZETA>=2) then zm1=zFUNC(p,-1) val=val+(alpha**2)*(z1*OMEGA_g(2,1,Nf)+zm1*OMEGA_g(2,2,Nf)+OMEGA_g(2,3,Nf)) if(orderZETA>=3) then ! zm2=zFUNC(p,-2) !!! the problem is that the coefficients of z[-1], z[-2], are negative !!! therefore at large D the expression for R, diverges exponentially. !!! however, z[] \sim as, therefore, these terms contribute to as^4. !!! here I kill them. Istead I add their expansion up to p val=val+(alpha**3)*(OMEGA_g(3,4,Nf)+p*OMEGA_g(3,5,Nf)) !!! killed part !!!+z1*OMEGA_g(3,1,Nf)+zm1*OMEGA_g(3,2,Nf)+zm2*OMEGA_g(3,3,Nf) if(orderZETA>=4) then !!! here is the same problem. So I just kill z[-1],z[-2],z[-3] !!! since they formally gives as^5 !!! I do not add anything -- no need val=val+(alpha**4)*(OMEGA_g(4,5,Nf)) !!! killed part !!!+z1*OMEGA_g(4,1,Nf)+zm1*OMEGA_g(4,2,Nf)+zm2*OMEGA_g(4,3,Nf)+zm3*OMEGA_g(4,4,Nf) end if end if end if end if valueOfGD_type4_G=val/alpha end function valueOfGD_type4_G !!! this is z=(exp(- np)-1+np)/p pure function zFUNC(p,n) real(dp)::zFUNC real(dp),intent(in)::p integer,intent(in)::n real(dp):: freezeP !!!! in the case p~0, the computation requires cancelation of zero, I expand in a series if(Abs(p)>0.00001d0) then !!!! In the case n<0, and p very large, the exponent blows-up !!!! this is due to the nonperurbative effects. Because it happen at b->infty !!!! To cure this problem, I freeze the expression for n<0, and large p. !!!! For typical CS-kernels, this freze starts at p~2 or b>~5-6 GeV [at 2GeV, and b~2 at 100 GeV], and is suppressed as as^3, or as^4. !!!! Therefore, it should not be important, if(n<0 .and. p>2.) then !!! the tail is 3a/2+ p/(1-p*(3/a**2)), where a is the point at which the effect turns on !!! in this form, the function is continious with its first derivative freezeP=3d0+p/(1d0-0.75d0*p**2) zFUNC=(real(n,dp)*freezeP-1d0+Exp(-real(n,dp)*freezeP))/freezeP else !! normal case zFUNC=(real(n,dp)*p-1d0+Exp(-real(n,dp)*p))/p end if else !!!! in the case p~0, the computation requires cancelation of zero, I expand in a series zFUNC=real(n**2,dp)*p/2d0-real(n**3,dp)*(p**2)/6d0 end if end function zFUNC
6,499
33.946237
142
f90
artemide-public
artemide-public-master/src/Code/TMDs/TMD-calls.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!! !!!!!!!!! part of TMDs module for artemide !!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!------------------------------------------------------------------------------------------------------- !!!-----------------------------Routines for composition of TMD distributions----------------------------- !!!------------------------------------------------------------------------------------------------------- !!!!!!!!!!!!!!!!!!!uTMDPDF!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!! upolarized TMDPDF ! vector (bbar,cbar,sbar,ubar,dbar,??,d,u,s,c,b) function uTMDPDF_5_Ev(x,bt,muf,zetaf,hadron) real(dp)::uTMDPDF_5_Ev(-5:5) real(dp),intent(in):: x,bt,muf,zetaf integer,intent(in)::hadron real(dp):: mui,Rkernel SELECT CASE(EvolutionType) CASE(1)!!!! improved D mui=c3_global*mu_LOW(bt) Rkernel=TMDR_Rzeta(bt,muf,zetaf,mui,c1_global*mu0(bt),1) CASE(2)!!!! improved gamma mui=c3_global*mu_LOW(bt) Rkernel=TMDR_Rzeta(bt,muf,zetaf,mui,1) CASE(3)!!!! fixed mu Rkernel=TMDR_Rzeta(bt,muf,zetaf,1) CASE(4)!!!! exact solution via zeta-line mui=c3_global*mu_LOW(bt) Rkernel=TMDR_Rzeta(bt,muf,zetaf,mui,1) END SELECT uTMDPDF_5_Ev=Rkernel*uTMDPDF_lowScale5(x,bT,hadron) !!! forcefully set =0 below threshold if(muf<mBOTTOM) then uTMDPDF_5_Ev(5)=0_dp uTMDPDF_5_Ev(-5)=0_dp end if if(muf<mCHARM) then uTMDPDF_5_Ev(4)=0_dp uTMDPDF_5_Ev(-4)=0_dp end if end function uTMDPDF_5_Ev !!!!!!!! upolarized TMDPDF ! vector (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function uTMDPDF_50_Ev(x,bt,muf,zetaf,hadron) real(dp)::uTMDPDF_50_Ev(-5:5) real(dp),intent(in):: x,bt,muf,zetaf integer,intent(in)::hadron real(dp):: mui,Rkernel ,RkernelG SELECT CASE(EvolutionType) CASE(1)!!!! improved D mui=c3_global*mu_LOW(bt) Rkernel=TMDR_Rzeta(bt,muf,zetaf,mui,c1_global*mu0(bt),1) RkernelG=TMDR_Rzeta(bt,muf,zetaf,mui,c1_global*mu0(bt),0) CASE(2)!!!! improved gamma mui=c3_global*mu_LOW(bt) Rkernel=TMDR_Rzeta(bt,muf,zetaf,mui,1) RkernelG=TMDR_Rzeta(bt,muf,zetaf,mui,0) CASE(3)!!!! fixed mu Rkernel=TMDR_Rzeta(bt,muf,zetaf,1) RkernelG=TMDR_Rzeta(bt,muf,zetaf,0) CASE(4)!!!! exact solution via zeta-line mui=c3_global*mu_LOW(bt) Rkernel=TMDR_Rzeta(bT,muf,zetaf,mui,1) RkernelG=TMDR_Rzeta(bt,muf,zetaf,mui,0) END SELECT !uTMDPDF_50_Ev=Rkernel*uTMDPDF_lowScale50(x,bT,hadron) !uTMDPDF_50_Ev(0)=uTMDPDF_50_Ev(0)*RkernelG/Rkernel uTMDPDF_50_Ev=uTMDPDF_lowScale50(x,bT,hadron)*& (/Rkernel,Rkernel,Rkernel,Rkernel,Rkernel,RkernelG,Rkernel,Rkernel,Rkernel,Rkernel,Rkernel/) !!! forcefully set =0 below threshold if(muf<mBOTTOM) then uTMDPDF_50_Ev(5)=0_dp uTMDPDF_50_Ev(-5)=0_dp end if if(muf<mCHARM) then uTMDPDF_50_Ev(4)=0_dp uTMDPDF_50_Ev(-4)=0_dp end if end function uTMDPDF_50_Ev !!!!!!!! upolarized TMDPDF OPTIMAL ! vector (bbar,cbar,sbar,ubar,dbar,??,d,u,s,c,b) function uTMDPDF_5_optimal(x,bt,hadron) real(dp)::uTMDPDF_5_optimal(-5:5) real(dp),intent(in):: x,bt integer,intent(in)::hadron uTMDPDF_5_optimal=uTMDPDF_lowScale5(x,bT,hadron) end function uTMDPDF_5_optimal !!!!!!!! upolarized TMDPDF ! vector (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function uTMDPDF_50_optimal(x,bt,hadron) real(dp)::uTMDPDF_50_optimal(-5:5) real(dp),intent(in):: x,bt integer,intent(in)::hadron uTMDPDF_50_optimal=uTMDPDF_lowScale50(x,bT,hadron) end function uTMDPDF_50_optimal !!!!!!!!!!!!!!!!!!!!!!!!!!!!!! PRODUCTS FOR DY!!!!!!!!!!!!!!!!!!!!!! !!! Product of quark*antiquark uTMDPDFs. Slightly faster then just product ! vector (bbar,cbar,sbar,ubar,dbar,??,d,u,s,c,b) function uPDF_uPDF(x1,x2,bt,muf,zetaf,hadron1,hadron2) real(dp),dimension(-5:5)::uPDF_uPDF real(dp),intent(in):: x1,x2,bt,muf,zetaf integer,intent(in)::hadron1,hadron2 real(dp):: mui,Rkernel real(dp),dimension(-5:5)::tmd1,tmd2 SELECT CASE(EvolutionType) CASE(1)!!!! improved D mui=c3_global*mu_LOW(bt) Rkernel=TMDR_Rzeta(bt,muf,zetaf,mui,c1_global*mu0(bt),1) CASE(2)!!!! improved gamma mui=c3_global*mu_LOW(bt) Rkernel=TMDR_Rzeta(bt,muf,zetaf,mui,1) CASE(3)!!!! fixed mu Rkernel=TMDR_Rzeta(bt,muf,zetaf,1) CASE(4)!!!! exact solution via zeta-line mui=c3_global*mu_LOW(bt) Rkernel=TMDR_Rzeta(bt,muf,zetaf,mui,1) END SELECT tmd1=uTMDPDF_lowScale5(x1,bT,hadron1) tmd2=uTMDPDF_lowScale5(x2,bT,hadron2) uPDF_uPDF=(Rkernel**2)*tmd1*(tmd2(5:-5:-1)) !!! forcefully set =0 below threshold if(muf<mBOTTOM) then uPDF_uPDF(5)=0_dp uPDF_uPDF(-5)=0_dp end if if(muf<mCHARM) then uPDF_uPDF(4)=0_dp uPDF_uPDF(-4)=0_dp end if end function uPDF_uPDF !!! Product of quark*quark uTMDPDFs. Slightly faster then just product ! vector (bbar,cbar,sbar,ubar,dbar,??,d,u,s,c,b) function uPDF_anti_uPDF(x1,x2,bt,muf,zetaf,hadron1,hadron2) real(dp),dimension(-5:5)::uPDF_anti_uPDF real(dp),intent(in):: x1,x2,bt,muf,zetaf integer,intent(in)::hadron1,hadron2 real(dp):: mui,Rkernel real(dp),dimension(-5:5)::tmd1,tmd2 SELECT CASE(EvolutionType) CASE(1)!!!! improved D mui=c3_global*mu_LOW(bt) Rkernel=TMDR_Rzeta(bt,muf,zetaf,mui,c1_global*mu0(bt),1) CASE(2)!!!! improved gamma mui=c3_global*mu_LOW(bt) Rkernel=TMDR_Rzeta(bt,muf,zetaf,mui,1) CASE(3)!!!! fixed mu Rkernel=TMDR_Rzeta(bt,muf,zetaf,1) CASE(4)!!!! exact solution via zeta-line mui=c3_global*mu_LOW(bt) Rkernel=TMDR_Rzeta(bt,muf,zetaf,mui,1) END SELECT tmd1=uTMDPDF_lowScale5(x1,bT,hadron1) tmd2=uTMDPDF_lowScale5(x2,bT,hadron2) uPDF_anti_uPDF=(Rkernel**2)*tmd1*tmd2 !!! forcefully set =0 below threshold if(muf<mBOTTOM) then uPDF_anti_uPDF(5)=0_dp uPDF_anti_uPDF(-5)=0_dp end if if(muf<mCHARM) then uPDF_anti_uPDF(4)=0_dp uPDF_anti_uPDF(-4)=0_dp end if end function uPDF_anti_uPDF !!!!!!!!!!!!!!!!!!!uTMDFF!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!! upolarized TMDFF ! vector (bbar,cbar,sbar,ubar,dbar,??,d,u,s,c,b) function uTMDFF_5_Ev(x,bt,muf,zetaf,hadron) real(dp)::uTMDFF_5_Ev(-5:5) real(dp),intent(in):: x,bt,muf,zetaf integer,intent(in)::hadron real(dp):: mui,Rkernel SELECT CASE(EvolutionType) CASE(1)!!!! improved D mui=c3_global*mu_LOW(bt) Rkernel=TMDR_Rzeta(bt,muf,zetaf,mui,c1_global*mu0(bt),1) CASE(2)!!!! improved gamma mui=c3_global*mu_LOW(bt) Rkernel=TMDR_Rzeta(bt,muf,zetaf,mui,1) CASE(3)!!!! fixed mu Rkernel=TMDR_Rzeta(bt,muf,zetaf,1) CASE(4)!!!! exact solution via zeta-line mui=c3_global*mu_LOW(bt) Rkernel=TMDR_Rzeta(bt,muf,zetaf,mui,1) END SELECT uTMDFF_5_Ev=Rkernel*uTMDFF_lowScale5(x,bT,hadron) !!! forcefully set =0 below threshold if(muf<mBOTTOM) then uTMDFF_5_Ev(5)=0_dp uTMDFF_5_Ev(-5)=0_dp end if if(muf<mCHARM) then uTMDFF_5_Ev(4)=0_dp uTMDFF_5_Ev(-4)=0_dp end if end function uTMDFF_5_Ev !!!!!!!! upolarized TMDFF ! vector (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function uTMDFF_50_Ev(x,bt,muf,zetaf,hadron) real(dp)::uTMDFF_50_Ev(-5:5) real(dp),intent(in):: x,bt,muf,zetaf integer,intent(in)::hadron real(dp):: mui,Rkernel ,RkernelG SELECT CASE(EvolutionType) CASE(1)!!!! improved D mui=c3_global*mu_LOW(bt) Rkernel=TMDR_Rzeta(bt,muf,zetaf,mui,c1_global*mu0(bt),1) RkernelG=TMDR_Rzeta(bt,muf,zetaf,mui,c1_global*mu0(bt),0) CASE(2)!!!! improved gamma mui=c3_global*mu_LOW(bt) Rkernel=TMDR_Rzeta(bt,muf,zetaf,mui,1) RkernelG=TMDR_Rzeta(bt,muf,zetaf,mui,0) CASE(3)!!!! fixed mu Rkernel=TMDR_Rzeta(bt,muf,zetaf,1) RkernelG=TMDR_Rzeta(bt,muf,zetaf,0) CASE(4)!!!! exact solution via zeta-line mui=c3_global*mu_LOW(bt) Rkernel=TMDR_Rzeta(bt,muf,zetaf,mui,1) RkernelG=TMDR_Rzeta(bt,muf,zetaf,mui,0) END SELECT !uTMDFF_50_Ev=Rkernel*uTMDFF_lowScale50(x,bT,hadron) !uTMDFF_50_Ev(0)=uTMDFF_50_Ev(0)*RkernelG/Rkernel uTMDFF_50_Ev=uTMDFF_lowScale50(x,bT,hadron)*& (/Rkernel,Rkernel,Rkernel,Rkernel,Rkernel,RkernelG,Rkernel,Rkernel,Rkernel,Rkernel,Rkernel/) !!! forcefully set =0 below threshold if(muf<mBOTTOM) then uTMDFF_50_Ev(5)=0_dp uTMDFF_50_Ev(-5)=0_dp end if if(muf<mCHARM) then uTMDFF_50_Ev(4)=0_dp uTMDFF_50_Ev(-4)=0_dp end if end function uTMDFF_50_Ev ! vector (bbar,cbar,sbar,ubar,dbar,??,d,u,s,c,b) function uTMDFF_5_optimal(x,bt,hadron) real(dp)::uTMDFF_5_optimal(-5:5) real(dp),intent(in):: x,bt integer,intent(in)::hadron uTMDFF_5_optimal=uTMDFF_lowScale5(x,bT,hadron) end function uTMDFF_5_optimal ! vector (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function uTMDFF_50_optimal(x,bt,hadron) real(dp)::uTMDFF_50_optimal(-5:5) real(dp),intent(in):: x,bt integer,intent(in)::hadron uTMDFF_50_optimal=uTMDFF_lowScale50(x,bT,hadron) end function uTMDFF_50_optimal !!!!!!!!!!!!!!!!!!!lpTMDPDF!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!! linearly polarized gluon TMDPDF ! vector (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) ! all quark terms are zero! function lpTMDPDF_50_Ev(x,bt,muf,zetaf,hadron) real(dp)::lpTMDPDF_50_Ev(-5:5) real(dp),intent(in):: x,bt,muf,zetaf integer,intent(in)::hadron real(dp):: mui,RkernelG SELECT CASE(EvolutionType) CASE(1)!!!! improved D mui=c3_global*mu_LOW(bt) RkernelG=TMDR_Rzeta(bt,muf,zetaf,mui,c1_global*mu0(bt),0) CASE(2)!!!! improved gamma mui=c3_global*mu_LOW(bt) RkernelG=TMDR_Rzeta(bt,muf,zetaf,mui,0) CASE(3)!!!! fixed mu RkernelG=TMDR_Rzeta(bt,muf,zetaf,0) CASE(4)!!!! exact solution via zeta-line mui=c3_global*mu_LOW(bt) RkernelG=TMDR_Rzeta(bt,muf,zetaf,mui,0) END SELECT lpTMDPDF_50_Ev=RkernelG*lpTMDPDF_lowScale50(x,bT,hadron) !!! forcefully set=0 all quarks ! glTMDPDF_50_Ev(5)=0_dp ! glTMDPDF_50_Ev(4)=0_dp ! glTMDPDF_50_Ev(3)=0_dp ! glTMDPDF_50_Ev(2)=0_dp ! glTMDPDF_50_Ev(1)=0_dp ! glTMDPDF_50_Ev(-1)=0_dp ! glTMDPDF_50_Ev(-2)=0_dp ! glTMDPDF_50_Ev(-3)=0_dp ! glTMDPDF_50_Ev(-4)=0_dp ! glTMDPDF_50_Ev(-5)=0_dp end function lpTMDPDF_50_Ev !!!!!!!! linearly polarized gluon TMDPDF OPTIMAL ! vector (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) ! all quark terms are zero! function lpTMDPDF_50_optimal(x,bt,hadron) real(dp)::lpTMDPDF_50_optimal(-5:5) real(dp),intent(in):: x,bt integer,intent(in)::hadron lpTMDPDF_50_optimal=lpTMDPDF_lowScale50(x,bT,hadron) end function lpTMDPDF_50_optimal !!!!!!!!!!!!!!!!!!!SiversTMDPDF!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!! upolarized TMDFF ! vector (bbar,cbar,sbar,ubar,dbar,??,d,u,s,c,b) function SiversTMDPDF_5_Ev(x,bt,muf,zetaf,hadron) real(dp)::SiversTMDPDF_5_Ev(-5:5) real(dp),intent(in):: x,bt,muf,zetaf integer,intent(in)::hadron real(dp):: mui,Rkernel SELECT CASE(EvolutionType) CASE(1)!!!! improved D mui=c3_global*mu_LOW(bt) Rkernel=TMDR_Rzeta(bt,muf,zetaf,mui,c1_global*mu0(bt),1) CASE(2)!!!! improved gamma mui=c3_global*mu_LOW(bt) Rkernel=TMDR_Rzeta(bt,muf,zetaf,mui,1) CASE(3)!!!! fixed mu Rkernel=TMDR_Rzeta(bt,muf,zetaf,1) CASE(4)!!!! exact solution via zeta-line mui=c3_global*mu_LOW(bt) Rkernel=TMDR_Rzeta(bt,muf,zetaf,mui,1) END SELECT SiversTMDPDF_5_Ev=Rkernel*SiversTMDPDF_lowScale5(x,bT,hadron) !!! forcefully set =0 below threshold if(muf<mBOTTOM) then SiversTMDPDF_5_Ev(5)=0_dp SiversTMDPDF_5_Ev(-5)=0_dp end if if(muf<mCHARM) then SiversTMDPDF_5_Ev(4)=0_dp SiversTMDPDF_5_Ev(-4)=0_dp end if end function SiversTMDPDF_5_Ev !!!!!!!! upolarized TMDFF ! vector (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function SiversTMDPDF_50_Ev(x,bt,muf,zetaf,hadron) real(dp)::SiversTMDPDF_50_Ev(-5:5) real(dp),intent(in):: x,bt,muf,zetaf integer,intent(in)::hadron real(dp):: mui,Rkernel ,RkernelG SELECT CASE(EvolutionType) CASE(1)!!!! improved D mui=c3_global*mu_LOW(bt) Rkernel=TMDR_Rzeta(bt,muf,zetaf,mui,c1_global*mu0(bt),1) RkernelG=TMDR_Rzeta(bt,muf,zetaf,mui,c1_global*mu0(bt),0) CASE(2)!!!! improved gamma mui=c3_global*mu_LOW(bt) Rkernel=TMDR_Rzeta(bt,muf,zetaf,mui,1) RkernelG=TMDR_Rzeta(bt,muf,zetaf,mui,0) CASE(3)!!!! fixed mu Rkernel=TMDR_Rzeta(bt,muf,zetaf,1) RkernelG=TMDR_Rzeta(bt,muf,zetaf,0) CASE(4)!!!! exact solution via zeta-line mui=c3_global*mu_LOW(bt) Rkernel=TMDR_Rzeta(bt,muf,zetaf,mui,1) RkernelG=TMDR_Rzeta(bt,muf,zetaf,mui,0) END SELECT !SiversTMDPDF_50_Ev=Rkernel*SiversTMDPDF_lowScale50(x,bT,hadron) !SiversTMDPDF_50_Ev(0)=SiversTMDPDF_50_Ev(0)*RkernelG/Rkernel SiversTMDPDF_50_Ev=SiversTMDPDF_lowScale50(x,bT,hadron)*& (/Rkernel,Rkernel,Rkernel,Rkernel,Rkernel,RkernelG,Rkernel,Rkernel,Rkernel,Rkernel,Rkernel/) !!! forcefully set =0 below threshold if(muf<mBOTTOM) then SiversTMDPDF_50_Ev(5)=0_dp SiversTMDPDF_50_Ev(-5)=0_dp end if if(muf<mCHARM) then SiversTMDPDF_50_Ev(4)=0_dp SiversTMDPDF_50_Ev(-4)=0_dp end if end function SiversTMDPDF_50_Ev ! vector (bbar,cbar,sbar,ubar,dbar,??,d,u,s,c,b) function SiversTMDPDF_5_optimal(x,bt,hadron) real(dp)::SiversTMDPDF_5_optimal(-5:5) real(dp),intent(in):: x,bt integer,intent(in)::hadron SiversTMDPDF_5_optimal=SiversTMDPDF_lowScale5(x,bT,hadron) end function SiversTMDPDF_5_optimal ! vector (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function SiversTMDPDF_50_optimal(x,bt,hadron) real(dp)::SiversTMDPDF_50_optimal(-5:5) real(dp),intent(in):: x,bt integer,intent(in)::hadron SiversTMDPDF_50_optimal=SiversTMDPDF_lowScale50(x,bT,hadron) end function SiversTMDPDF_50_optimal !!!!!!!!!!!!!!!!!!!wgtTMDPDF!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!! upolarized TMDFF ! vector (bbar,cbar,sbar,ubar,dbar,??,d,u,s,c,b) function wgtTMDPDF_5_Ev(x,bt,muf,zetaf,hadron) real(dp)::wgtTMDPDF_5_Ev(-5:5) real(dp),intent(in):: x,bt,muf,zetaf integer,intent(in)::hadron real(dp):: mui,Rkernel SELECT CASE(EvolutionType) CASE(1)!!!! improved D mui=c3_global*mu_LOW(bt) Rkernel=TMDR_Rzeta(bt,muf,zetaf,mui,c1_global*mu0(bt),1) CASE(2)!!!! improved gamma mui=c3_global*mu_LOW(bt) Rkernel=TMDR_Rzeta(bt,muf,zetaf,mui,1) CASE(3)!!!! fixed mu Rkernel=TMDR_Rzeta(bt,muf,zetaf,1) CASE(4)!!!! exact solution via zeta-line mui=c3_global*mu_LOW(bt) Rkernel=TMDR_Rzeta(bt,muf,zetaf,mui,1) END SELECT wgtTMDPDF_5_Ev=Rkernel*wgtTMDPDF_lowScale5(x,bT,hadron) !!! forcefully set =0 below threshold if(muf<mBOTTOM) then wgtTMDPDF_5_Ev(5)=0_dp wgtTMDPDF_5_Ev(-5)=0_dp end if if(muf<mCHARM) then wgtTMDPDF_5_Ev(4)=0_dp wgtTMDPDF_5_Ev(-4)=0_dp end if end function wgtTMDPDF_5_Ev !!!!!!!! upolarized TMDFF ! vector (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function wgtTMDPDF_50_Ev(x,bt,muf,zetaf,hadron) real(dp)::wgtTMDPDF_50_Ev(-5:5) real(dp),intent(in):: x,bt,muf,zetaf integer,intent(in)::hadron real(dp):: mui,Rkernel ,RkernelG SELECT CASE(EvolutionType) CASE(1)!!!! improved D mui=c3_global*mu_LOW(bt) Rkernel=TMDR_Rzeta(bt,muf,zetaf,mui,c1_global*mu0(bt),1) RkernelG=TMDR_Rzeta(bt,muf,zetaf,mui,c1_global*mu0(bt),0) CASE(2)!!!! improved gamma mui=c3_global*mu_LOW(bt) Rkernel=TMDR_Rzeta(bt,muf,zetaf,mui,1) RkernelG=TMDR_Rzeta(bt,muf,zetaf,mui,0) CASE(3)!!!! fixed mu Rkernel=TMDR_Rzeta(bt,muf,zetaf,1) RkernelG=TMDR_Rzeta(bt,muf,zetaf,0) CASE(4)!!!! exact solution via zeta-line mui=c3_global*mu_LOW(bt) Rkernel=TMDR_Rzeta(bt,muf,zetaf,mui,1) RkernelG=TMDR_Rzeta(bt,muf,zetaf,mui,0) END SELECT !wgtTMDPDF_50_Ev=Rkernel*wgtTMDPDF_lowScale50(x,bT,hadron) !wgtTMDPDF_50_Ev(0)=wgtTMDPDF_50_Ev(0)*RkernelG/Rkernel wgtTMDPDF_50_Ev=wgtTMDPDF_lowScale50(x,bT,hadron)*& (/Rkernel,Rkernel,Rkernel,Rkernel,Rkernel,RkernelG,Rkernel,Rkernel,Rkernel,Rkernel,Rkernel/) !!! forcefully set =0 below threshold if(muf<mBOTTOM) then wgtTMDPDF_50_Ev(5)=0_dp wgtTMDPDF_50_Ev(-5)=0_dp end if if(muf<mCHARM) then wgtTMDPDF_50_Ev(4)=0_dp wgtTMDPDF_50_Ev(-4)=0_dp end if end function wgtTMDPDF_50_Ev ! vector (bbar,cbar,sbar,ubar,dbar,??,d,u,s,c,b) function wgtTMDPDF_5_optimal(x,bt,hadron) real(dp)::wgtTMDPDF_5_optimal(-5:5) real(dp),intent(in):: x,bt integer,intent(in)::hadron wgtTMDPDF_5_optimal=wgtTMDPDF_lowScale5(x,bT,hadron) end function wgtTMDPDF_5_optimal ! vector (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function wgtTMDPDF_50_optimal(x,bt,hadron) real(dp)::wgtTMDPDF_50_optimal(-5:5) real(dp),intent(in):: x,bt integer,intent(in)::hadron wgtTMDPDF_50_optimal=wgtTMDPDF_lowScale50(x,bT,hadron) end function wgtTMDPDF_50_optimal
17,694
32.198874
106
f90
artemide-public
artemide-public-master/src/Code/Twist2/Twist2Convolution-VAR.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! arTeMiDe 1.4 ! ! This file contains the part of the code, which is common for all TMD-evaluation modules that operates at twist-2 ! ONLY DECLARATION OF VARIABLES that are used in twist2Convolution ! It shares the variables with the module where it is inlucded (as a text) ! Such idiotic structure is needed since, FORTRAN does not allow inheritance. ! ! Be AWARE of possible clash of variable names. ! ! This part is devoted to the calculation of Mellin convolution ! ! A.Vladimirov (08.10.2018) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !these are globals for the exchange of parameters between functions ! it is used only in the calculation without grid!!! real(dp):: xCurrent,bTcurrent,muCurrent real(dp)::muAt1!!!special case for z-dependant mu. it is = mu(z=1) real(dp),dimension(-5:5)::FPDFcurrent !!!value of fNP(1)*f(xCurrent) real(dp),dimension(-5:5)::PDFcurrent !!!value of f(xCurrent) real(dp),dimension(-5:5)::Fcurrent !!!value of fNP(1) real(dp),dimension(-5:5) :: integralWeight !!!triger for calculation logical:: IsMuXdependent
1,208
45.5
114
f90
artemide-public
artemide-public-master/src/Code/Twist2/Twist2Convolution.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! arTeMiDe 1.4 ! ! This file contains the part of the code, which is common for all TMD-evaluation modules that operates at twist-2 ! It shares the variables with the module where it is inlucded (as a text) ! Such idiotic structure is needed since, FORTRAN does not allow inheritance. ! ! Be AWARE of possible clash of variable names. ! ! This part is devoted to the calculation of Mellin convolution ! ! v.2.00 Added b* AV (27.03.2019) ! ! A.Vladimirov (08.10.2018) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Supplimentary functions !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !--------------------------------------------------------------------------------------- !Used global variables: ! outputlevel, moduleName ! lambdaNP, FNP, bSTAR, mu_OPE ! QCDinput functions ! aTMDe_Numerics, IO_functions functions ! + variables defined in Twist2Convolution-VAR.f90 !!Evaluate Log[mu^2 bT^2/4/Exp(-2Gamma_E)] !! the b here is b*, this funciton is used only in Coefficeint functions function LogMuB(mu,bT) real(dp)::LogMuB real(dp),intent(in)::bT,mu LogMuB=2d0*Log(bSTAR(bT,lambdaNP)*mu*C0_inv_const) end function LogMuB !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Convolutions!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !--------------------------------------------------------------------- !- This is the TMD function evaluated for all quarks simultaniously (-5..5) at x,bT,mu !-- f = -5, -4, -3, -2, -1,0,1,2,3, 4 ,5 !-- = bbar ,cbar sbar,ubar,dbar,g,d,u,s, c ,b !!---Gluon contribution is undefined !- The order is accumulative pertrubative order of coefficient =0,1,2 (LO,NLO,NNLO) !--------------------------------------------------------------------- !!!--- !!! It calculates 1/x int_x^1 dz C[z] f[x/z], !!! where f is given by xf, C is given by coeff. function. !!!--- !--------------------------------------------------------------------- function Common_lowScale5(x,bT,hadron) real(dp),dimension(-5:5)::Common_lowScale5 real(dp),intent(in) :: x, bT integer,intent(in)::hadron real(dp) :: alpha,alphaAt1 real(dp) :: Lmu,Nf,LmuAt1, NfAt1 real(dp) :: remnant real(dp),dimension(-5:5) :: deltaPart real(dp),dimension(-5:5) :: convolutionPart integer :: j xCurrent=x !! for extrimely small-values of b we freeze its value at b=10^{-6}. if(bT>1d-6) then bTcurrent=bT else bTcurrent=1d-6 end if muCurrent=mu_OPE(x,bTcurrent,c4_global) alpha=As(muCurrent) Nf=real(activeNf(muCurrent),dp) Lmu=LogMuB(muCurrent,bTcurrent) !! in the x-dependent mu we should additionally calculate values at x=1 if(IsMuXdependent) then !!! we first calculate at z=1 muAt1=mu_OPE(1d0,bTcurrent,c4_global) LmuAt1=LogMuB(muAt1,bTcurrent) alphaAt1=As(muAt1) NfAt1=real(activeNf(muAt1),dp) end if !! boundary value of FNP*PDF if(IsMuXdependent) then Fcurrent=FNP(xCurrent,1d0,bTcurrent,hadron,lambdaNP) PDFcurrent=xf(x,muAt1,hadron)!!!!!!!! This is important, since y enters definition of d via mu(y) FPDFcurrent=Fcurrent*PDFcurrent else Fcurrent=FNP(xCurrent,1d0,bTcurrent,hadron,lambdaNP) PDFcurrent=xf(x,muCurrent,hadron) FPDFcurrent=Fcurrent*PDFcurrent end if !------------DELTA PART------------------- !Leading order is always here!! if(IsMuXdependent) then deltaPart=FPDFcurrent*C_q_q_delta(alphaAt1,NfAt1,LmuAt1) else deltaPart=FPDFcurrent*C_q_q_delta(alpha,Nf,Lmu) end if !!!!evaluate coefficients if(order_global>=1) then call Set_CoeffSing1_q_q(alpha,Nf,Lmu) call Set_Coeff_q_q(alpha,Nf,Lmu) call Set_Coeff_q_qb(alpha,Nf,Lmu) call Set_Coeff_q_qp(alpha,Nf,Lmu) call Set_Coeff_q_g(alpha,Nf,Lmu) end if if(order_global>=1) then !!!! evaluating Mellin convolution counter=1 !=1 since there was singe call for FPDFcurrent !!! The crude estimation of the integral is its tree-value !!! It is needed to weight the adaptive integration integralWeight=ABS(FPDFcurrent) do j=-5,5!!!this is needed since at low energies some of functions =0. if(ABS(2d0*integralWeight(j))<tolerance) integralWeight(j)=tolerance end do !!!! the integral over 1/(1-x)_+ has a remnant part ~delta(1-x)\int_0^x !!!! these terms appears order-by-order, !!!! since Log[1-x] can be large I compute it order-by-order to avoid dropping of precision (large number x 0d0) remnant=CoeffSing1_q_q(1)*LOG(1d0-xCurrent) !!! remnant of 1/(1-x)_+ if(order_global>=2) remnant=remnant+CoeffSing1_q_q(2)*LOG(1d0-xCurrent)**2/2d0 !!! remnant of log[1-x]/(1-x)_+ if(order_global>=3) remnant=remnant+CoeffSing1_q_q(3)*LOG(1d0-xCurrent)**3/3d0 !!! remnant of Log[1-x]^2/(1-x)_+ convolutionPart=MellinConvolutionVectorPart5(xCurrent,1d0,hadron)& +remnant*FPDFcurrent !write(*,*) 'counter GK=',counter else convolutionPart=0d0 end if !write(*,*) 'gluonMIXTUREPart =', gluonMIXTURE/x !write(*,*) 'TDhat', (deltaPart+singularPart+regularPart)/x Common_lowScale5=(deltaPart+convolutionPart)*(1d0/x) end function Common_lowScale5 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !--------------------------------------------------------------------- !- This is the TMD function evaluated for all quarks simultaniously (-5..5) at x,bT,mu the GLUON INCLUDED !-- f = -5, -4, -3, -2, -1,0,1,2,3, 4 ,5 !-- = bbar ,cbar sbar,ubar,dbar,g,d,u,s, c ,b !- The order is accumulative pertrubative order of coefficient =0,1,2 (LO,NLO,NNLO) !--------------------------------------------------------------------- !!!--- !!! It calculates 1/x int_x^1 dz C[z] f[x/z], !!! where f is given by xf, C is given by coeff. function. !!!--- !--------------------------------------------------------------------- function Common_lowScale50(x,bT,hadron) real(dp),dimension(-5:5)::Common_lowScale50 real(dp),intent(in) :: x, bT integer,intent(in)::hadron real(dp) :: alpha,alphaAt1 real(dp) :: Lmu,Nf,LmuAt1, NfAt1,dummy1,dummy2 real(dp),dimension(-5:5) :: deltaPart real(dp),dimension(-5:5) :: convolutionPart integer :: j xCurrent=x !! for extrimely small-values of b we freeze its value at b=10^{-6}. if(bT>1d-6) then bTcurrent=bT else bTcurrent=1d-6 end if muCurrent=mu_OPE(x,bTcurrent,c4_global) alpha=As(muCurrent) Nf=real(activeNf(muCurrent),dp) Lmu=LogMuB(muCurrent,bTcurrent) !! in the x-dependent mu we should additionally calculate values at x=1 if(IsMuXdependent) then !!! we first calculate at z=1 muAt1=mu_OPE(1d0,bTcurrent,c4_global) LmuAt1=LogMuB(muAt1,bTcurrent) alphaAt1=As(muAt1) NfAt1=real(activeNf(muAt1),dp) end if !! boundary value of FNP*PDF if(IsMuXdependent) then Fcurrent=FNP(xCurrent,1d0,bTcurrent,hadron,lambdaNP) PDFcurrent=xf(x,muAt1,hadron)!!!!!!!! This is important, since y enters definition of d via mu(y) FPDFcurrent=Fcurrent*PDFcurrent else Fcurrent=FNP(xCurrent,1d0,bTcurrent,hadron,lambdaNP) PDFcurrent=xf(x,muCurrent,hadron) FPDFcurrent=Fcurrent*PDFcurrent end if !------------DELTA PART------------------- !Leading order is always here!! if(IsMuXdependent) then deltaPart=FPDFcurrent*C_q_q_delta(alphaAt1,NfAt1,LmuAt1) deltaPart(0)=FPDFcurrent(0)*C_g_g_delta(alphaAt1,NfAt1,LmuAt1) else deltaPart=FPDFcurrent*C_q_q_delta(alpha,Nf,Lmu) deltaPart(0)=FPDFcurrent(0)*C_g_g_delta(alpha,Nf,Lmu) end if !!!!evaluate coefficients if(order_global>=1) then call Set_CoeffSing1_q_q(alpha,Nf,Lmu) call Set_CoeffSing1_g_g(alpha,Nf,Lmu) call Set_Coeff_q_q(alpha,Nf,Lmu) call Set_Coeff_q_qb(alpha,Nf,Lmu) call Set_Coeff_q_qp(alpha,Nf,Lmu) call Set_Coeff_q_g(alpha,Nf,Lmu) call Set_Coeff_g_g(alpha,Nf,Lmu) call Set_Coeff_g_q(alpha,Nf,Lmu) end if if(order_global>=1) then !!!! evaluating Mellin convolution counter=1 !=1 since there was call in FPDFcurrent !!! The crude estimation of the integral is its tree-value !!! It is needed to weight the adaptive integration integralWeight=ABS(FPDFcurrent) do j=-5,5!!!this is needed since at low energies some of function =0. if(ABS(2d0*integralWeight(j))<tolerance) integralWeight(j)=tolerance end do !!!! the integral over 1/(1-x)_+ has a remnant part ~delta(1-x)\int_0^x !!!! these terms appears order-by-order, !!!! since Log[1-x] can be large I compute it order-by-order to avoid dropping of precision (large number x 0d0) !!! quark case dummy1=CoeffSing1_q_q(1)*LOG(1d0-xCurrent) !!! remnant of 1/(1-x)_+ if(order_global>=2) dummy1=dummy1+CoeffSing1_q_q(2)*LOG(1d0-xCurrent)**2/2d0 !!! remnant of log[1-x]/(1-x)_+ if(order_global>=3) dummy1=dummy1+CoeffSing1_q_q(3)*LOG(1d0-xCurrent)**3/3d0 !!! remnant of Log[1-x]^2/(1-x)_+ !!! gluon case dummy2=CoeffSing1_g_g(1)*LOG(1d0-xCurrent) !!! remnant of 1/(1-x)_+ if(order_global>=2) dummy2=dummy2+CoeffSing1_g_g(2)*LOG(1d0-xCurrent)**2/2d0 !!! remnant of log[1-x]/(1-x)_+ if(order_global>=3) dummy2=dummy2+CoeffSing1_g_g(3)*LOG(1d0-xCurrent)**3/3d0 !!! remnant of Log[1-x]^2/(1-x)_+ convolutionPart=MellinConvolutionVectorPart50(xCurrent,1d0,hadron)& +(/dummy1,dummy1,dummy1,dummy1,dummy1,& dummy2,dummy1,dummy1,dummy1,dummy1,dummy1/)*FPDFcurrent ! write(*,*) 'counter GK=',counter else convolutionPart=0d0 end if !write(*,*) 'gluonMIXTUREPart =', gluonMIXTURE/x !write(*,*) 'TDhat', (deltaPart+singularPart+regularPart)/x Common_lowScale50=(deltaPart+convolutionPart)*(1d0/x) end function Common_lowScale50 !!Gauss-Kronrod adaptive quadrature, with explicit evaluation at the end point (if converge slow) !!!--- !!! It calculates int_x0^x1 dz C[z] f[x/z], !!! where f[x/z] is given by function xf, C[z] is given by coeff. !!!--- recursive function MellinConvolutionVectorPart5(x0,x1,hadron) result(res5) integer,intent(in)::hadron real(dp),dimension(-5:5)::res5,PDFs,value,eps,epspdf,vg7,vk15 real(dp) :: x0,x1,xm,xr,z,PDFsum,CqMain,CqAnti,CqPrime,CqGluon integer :: j,i real(dp),dimension(1:parametrizationLength):: var real(dp):: alpha,Lmu,Nf,dummy real(dp),dimension(-5:5)::F0 xm=0.5d0*(x1+x0) xr=0.5d0*(x1-x0) vg7=(/0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0/) vk15=(/0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0/) Do j=1,15 z=xm+xr*Xi_k15(j) !!!!If mu(x) we have to recalculate Coefficeints every new x!!! This should be very loooong if(IsMuXdependent) then if(bTcurrent>1d-8) then muCurrent=mu_OPE(z,bTcurrent,c4_global) Lmu=LogMuB(muCurrent,bTcurrent) else muCurrent=mu_OPE(z,10d-8,c4_global) Lmu=LogMuB(muCurrent,10d-8) end if alpha=As(muCurrent) Nf=real(activeNf(muCurrent),dp) call Set_CoeffSing1_q_q(alpha,Nf,Lmu) call Set_Coeff_q_q(alpha,Nf,Lmu) call Set_Coeff_q_qb(alpha,Nf,Lmu) call Set_Coeff_q_qp(alpha,Nf,Lmu) call Set_Coeff_q_g(alpha,Nf,Lmu) end if !!! PDFs are together with non-perp func! PDFs=xf(xCurrent/z,muCurrent,hadron) PDFsum=PDFs(-5)+PDFs(-4)+PDFs(-3)+PDFs(-2)+PDFs(-1)+PDFs(1)+PDFs(2)+PDFs(3)+PDFs(4)+PDFs(5) counter=counter+1 var=parametrizationString(z) !! summing regular part CqMain=SUM(Coeff_q_q*var) CqPrime=SUM(Coeff_q_qp*var) CqAnti=SUM(Coeff_q_qb*var) CqGluon=SUM(Coeff_q_g*var) F0=FNP(xCurrent,z,bTcurrent,hadron,lambdaNP) !!combingin with PDFs value=F0*(/& CqMain*PDFs(-5)+CqAnti*PDFs(5)+CqPrime*PDFsum+CqGluon*PDFs(0),& CqMain*PDFs(-4)+CqAnti*PDFs(4)+CqPrime*PDFsum+CqGluon*PDFs(0),& CqMain*PDFs(-3)+CqAnti*PDFs(3)+CqPrime*PDFsum+CqGluon*PDFs(0),& CqMain*PDFs(-2)+CqAnti*PDFs(2)+CqPrime*PDFsum+CqGluon*PDFs(0),& CqMain*PDFs(-1)+CqAnti*PDFs(1)+CqPrime*PDFsum+CqGluon*PDFs(0),& 0d0,& CqMain*PDFs(1)+CqAnti*PDFs(-1)+CqPrime*PDFsum+CqGluon*PDFs(0),& CqMain*PDFs(2)+CqAnti*PDFs(-2)+CqPrime*PDFsum+CqGluon*PDFs(0),& CqMain*PDFs(3)+CqAnti*PDFs(-3)+CqPrime*PDFsum+CqGluon*PDFs(0),& CqMain*PDFs(4)+CqAnti*PDFs(-4)+CqPrime*PDFsum+CqGluon*PDFs(0),& CqMain*PDFs(5)+CqAnti*PDFs(-5)+CqPrime*PDFsum+CqGluon*PDFs(0)/) !!adding ()_+ part dummy=CoeffSing1_q_q(1)/(1d0-z) if(order_global>=2) dummy=dummy+CoeffSing1_q_q(2)*LOG(1d0-z)/(1d0-z) if(order_global>=3) dummy=dummy+CoeffSing1_q_q(3)*LOG(1d0-z)**2/(1d0-z) value=value+dummy*(F0*PDFs-FPDFcurrent) vg7=vg7+Wi_g7(j)*value vk15=vk15+Wi_k15(j)*value end do !!!! check the convergance eps=ABS(xr*(vg7-vk15)/integralWeight) eps(0)=0d0 !write(*,*) x0,x1, eps !!!! section for checking integral if(MAXVAL(eps)>tolerance) then !!!integral not yet convergent if(counter>maxIteration) then !!!out of counting limit: rise warning, return current result if(outputLevel>0) call Warning_Raise('Mellin convolution does not converge. Integral evaluation stop after '//& numToStr(maxIteration)//' iterations.',messageCounter,messageTrigger,moduleName) if(outputLevel>2) then write(*,*) '----- information on last call -----' write(*,*) 'x=',xCurrent,'b=',bTcurrent,'mu=',muCurrent write(*,*) 'iteration=',counter, 'eps=',eps write(*,*) 'weight=',integralWeight end if !stop res5=xr*vk15 else !!!! we are inside the counting limit if(x1==1d0 .and. 1d0-x0<tolerance) then !!!!small distance to unity !!!! in the case of the integration from x to 1, we check the convergance at 1 !!!! if the change of PDF*fNP is small enough we replace the integral, by the exact integral if(IsMuXdependent) then if(bTcurrent>1d-8) then muCurrent=mu_OPE(x0,bTcurrent,c4_global) else muCurrent=mu_OPE(x0,1d-8,c4_global) end if end if epspdf=ABS((FNP(xCurrent,x0,bTcurrent,hadron,lambdaNP)*xf(xCurrent/x0,muCurrent,hadron)-FPDFcurrent)/integralWeight) epspdf(0)=0 counter=counter+1 !here we will add end point integration !write(*,*) x0,x1, epspdf if(MAXVAL(epspdf)<tolerance) then !!! variation is small if(IsMuXdependent) then if(bTcurrent>1d-8) then muCurrent=mu_OPE(x0,bTcurrent,c4_global) Lmu=LogMuB(muCurrent,bTcurrent) else muCurrent=mu_OPE(x0,1d-8,c4_global) Lmu=LogMuB(muCurrent,1d-8) end if alpha=As(muCurrent) Nf=real(activeNf(muCurrent),dp) call Set_CoeffSing1_q_q(alpha,Nf,Lmu) call Set_Coeff_q_q(alpha,Nf,Lmu) call Set_Coeff_q_qb(alpha,Nf,Lmu) call Set_Coeff_q_qp(alpha,Nf,Lmu) call Set_Coeff_q_g(alpha,Nf,Lmu) end if !!!! integrate by usuming that the pdf is flat (+linear) PDFs=(xf(xCurrent/x0,muCurrent,hadron)+PDFcurrent)/2d0 PDFsum=PDFs(-5)+PDFs(-4)+PDFs(-3)+PDFs(-2)+PDFs(-1)+PDFs(1)+PDFs(2)+PDFs(3)+PDFs(4)+PDFs(5) counter=counter+1 !!!this is integral over vars from x0 to 1, last terms are <10^-7 for x0=1-10^-3 var=parametrizationStringAt1(x0) !! summing regular part CqMain=SUM(Coeff_q_q*var) CqPrime=SUM(Coeff_q_qp*var) CqAnti=SUM(Coeff_q_qb*var) CqGluon=SUM(Coeff_q_g*var) F0=FNP(xCurrent,x0,bTcurrent,hadron,lambdaNP) !!combingin with PDFs value=F0*(/& CqMain*PDFs(-5)+CqAnti*PDFs(5)+CqPrime*PDFsum+CqGluon*PDFs(0),& CqMain*PDFs(-4)+CqAnti*PDFs(4)+CqPrime*PDFsum+CqGluon*PDFs(0),& CqMain*PDFs(-3)+CqAnti*PDFs(3)+CqPrime*PDFsum+CqGluon*PDFs(0),& CqMain*PDFs(-2)+CqAnti*PDFs(2)+CqPrime*PDFsum+CqGluon*PDFs(0),& CqMain*PDFs(-1)+CqAnti*PDFs(1)+CqPrime*PDFsum+CqGluon*PDFs(0),& 0d0,& CqMain*PDFs(1)+CqAnti*PDFs(-1)+CqPrime*PDFsum+CqGluon*PDFs(0),& CqMain*PDFs(2)+CqAnti*PDFs(-2)+CqPrime*PDFsum+CqGluon*PDFs(0),& CqMain*PDFs(3)+CqAnti*PDFs(-3)+CqPrime*PDFsum+CqGluon*PDFs(0),& CqMain*PDFs(4)+CqAnti*PDFs(-4)+CqPrime*PDFsum+CqGluon*PDFs(0),& CqMain*PDFs(5)+CqAnti*PDFs(-5)+CqPrime*PDFsum+CqGluon*PDFs(0)/) !!! AV: 25.06.22 !!! the (..)_+ part is tricky. !!! I estimate int_x0^1 (f[xc/x]-f[xc])/(1-x)g[x] as (f[xc/x0]-f[xc])/(1-x0) int_x0^1 g[x] !!! it follows from the expansion of f[xc/x] at x->1, and comparison to the expansion of f[xc/x0] at x0->1 !!! it is justified if x0->1, and f[xc] is smooth dummy=CoeffSing1_q_q(1) if(order_global>=2) dummy=dummy+CoeffSing1_q_q(2)*(LOG(1d0-x0)-1d0) if(order_global>=3) dummy=dummy+CoeffSing1_q_q(3)*(LOG(1d0-x0)**2-2d0*LOG(1d0-x0)+2d0) value=value+dummy*(F0*PDFs-FPDFcurrent) res5=value else res5=MellinConvolutionVectorPart5(x0,xm,hadron)+MellinConvolutionVectorPart5(xm,x1,hadron) end if else res5=MellinConvolutionVectorPart5(x0,xm,hadron)+MellinConvolutionVectorPart5(xm,x1,hadron) end if end if else !!!integral converges res5=xr*vk15 end if end function MellinConvolutionVectorPart5 !!!Gauss-Kronrod adaptive quadrature, with explicit evaluation at the end point (if converge slow) !!!--- !!! It calculates int_x0^x1 dz C[z] f[x/z], !!! where f[x/z] is given by function xf, C[z] is given by coeff. !!!--- recursive function MellinConvolutionVectorPart50(x0,x1,hadron) result(res5) integer,intent(in)::hadron real(dp),dimension(-5:5)::res5,PDFs,value,vg7,vk15,eps,epspdf,addV real(dp) :: x0,x1,xm,xr,z,PDFsum,CqMain,CqAnti,CqPrime,CqGluon,CgMain,CgQuark integer :: j,i real(dp),dimension(1:parametrizationLength):: var real(dp):: alpha,Lmu,Nf,dummy real(dp),dimension(-5:5)::F0 xm=0.5d0*(x1+x0) xr=0.5d0*(x1-x0) vg7=(/0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0/) vk15=(/0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0/) Do j=1,15 z=xm+xr*Xi_k15(j) !!!!If mu(z) we have to recalculate Coefficeints every new z!!! This should be very loooong if(IsMuXdependent) then if(bTcurrent>1d-8) then muCurrent=mu_OPE(z,bTcurrent,c4_global) Lmu=LogMuB(muCurrent,bTcurrent) else muCurrent=mu_OPE(z,10d-8,c4_global) Lmu=LogMuB(muCurrent,10d-8) end if alpha=As(muCurrent) Nf=real(activeNf(muCurrent),dp) call Set_CoeffSing1_q_q(alpha,Nf,Lmu) call Set_Coeff_q_q(alpha,Nf,Lmu) call Set_Coeff_q_qb(alpha,Nf,Lmu) call Set_Coeff_q_qp(alpha,Nf,Lmu) call Set_Coeff_q_g(alpha,Nf,Lmu) call Set_Coeff_g_q(alpha,Nf,Lmu) call Set_Coeff_g_g(alpha,Nf,Lmu) end if !!! PDFs are together with non-perp func! PDFs=xf(xCurrent/z,muCurrent,hadron) PDFsum=PDFs(-5)+PDFs(-4)+PDFs(-3)+PDFs(-2)+PDFs(-1)+PDFs(1)+PDFs(2)+PDFs(3)+PDFs(4)+PDFs(5) counter=counter+1 var=parametrizationString(z) !! summing regular part CqMain=SUM(Coeff_q_q*var) CqPrime=SUM(Coeff_q_qp*var) CqAnti=SUM(Coeff_q_qb*var) CqGluon=SUM(Coeff_q_g*var) CgMain=SUM(Coeff_g_g*var) CgQuark=SUM(Coeff_g_q*var) F0=FNP(xCurrent,z,bTcurrent,hadron,lambdaNP) !!combingin with PDFs value=F0*(/& CqMain*PDFs(-5)+CqAnti*PDFs(5)+CqPrime*PDFsum+CqGluon*PDFs(0),& CqMain*PDFs(-4)+CqAnti*PDFs(4)+CqPrime*PDFsum+CqGluon*PDFs(0),& CqMain*PDFs(-3)+CqAnti*PDFs(3)+CqPrime*PDFsum+CqGluon*PDFs(0),& CqMain*PDFs(-2)+CqAnti*PDFs(2)+CqPrime*PDFsum+CqGluon*PDFs(0),& CqMain*PDFs(-1)+CqAnti*PDFs(1)+CqPrime*PDFsum+CqGluon*PDFs(0),& CgMain*PDFs(0)+CgQuark*PDFsum,& CqMain*PDFs(1)+CqAnti*PDFs(-1)+CqPrime*PDFsum+CqGluon*PDFs(0),& CqMain*PDFs(2)+CqAnti*PDFs(-2)+CqPrime*PDFsum+CqGluon*PDFs(0),& CqMain*PDFs(3)+CqAnti*PDFs(-3)+CqPrime*PDFsum+CqGluon*PDFs(0),& CqMain*PDFs(4)+CqAnti*PDFs(-4)+CqPrime*PDFsum+CqGluon*PDFs(0),& CqMain*PDFs(5)+CqAnti*PDFs(-5)+CqPrime*PDFsum+CqGluon*PDFs(0)/) !!adding ()_+ part dummy=CoeffSing1_q_q(1)/(1d0-z) if(order_global>=2) dummy=dummy+CoeffSing1_q_q(2)*LOG(1d0-z)/(1d0-z) if(order_global>=3) dummy=dummy+CoeffSing1_q_q(3)*LOG(1d0-z)**2/(1d0-z) addV=dummy*(F0*PDFs-FPDFcurrent) dummy=CoeffSing1_g_g(1)/(1d0-z) if(order_global>=2) dummy=dummy+CoeffSing1_g_g(2)*LOG(1d0-z)/(1d0-z) if(order_global>=3) dummy=dummy+CoeffSing1_g_g(3)*LOG(1d0-z)**2/(1d0-z) addV(0)=dummy*(F0(0)*PDFs(0)-FPDFcurrent(0)) value=value+addV !write(*,*)CqMain,CqAnti,CqPrime,singCoeff,singCoeffLog vg7=vg7+Wi_g7(j)*value vk15=vk15+Wi_k15(j)*value end do eps=ABS(xr*(vg7-vk15)/integralWeight) !write(*,*) x0,x1, eps(0), xr*vk15(0) if(MAXVAL(eps)>tolerance) then if(counter>maxIteration) then if(outputLevel>0) call Warning_Raise('Mellin convolution does not converge. Integral evaluation stop after '//& numToStr(maxIteration)//' iterations.',messageCounter,messageTrigger,moduleName) if(outputLevel>1) then write(*,*) '----- information on last call -----' write(*,*) 'x=',xCurrent,'b=',bTcurrent,'mu=',muCurrent write(*,*) 'iteration=',counter, 'eps=',eps write(*,*) 'weight=',integralWeight end if res5=xr*vk15 else if((1d0-x1)<1d-12 .and. (1d0-x0)<tolerance) then !!!! in the case of the integration from x to 1, we check the convergance at 1 !!!! if the change of PDF*fNP is small enough we replace hte integral, by the exact integral if(IsMuXdependent) then if(bTcurrent>1d-8) then muCurrent=mu_OPE(x0,bTcurrent,c4_global) else muCurrent=mu_OPE(x0,1d-8,c4_global) end if end if epspdf=ABS((FNP(xCurrent,x0,bTcurrent,hadron,lambdaNP)*xf(xCurrent/x0,muCurrent,hadron)-FPDFcurrent)/integralWeight) counter=counter+1 !here we will add end point integration !write(*,*) "====",x0,x1, epspdf(0) if(MAXVAL(epspdf)<tolerance) then !!! variation is small if(IsMuXdependent) then if(bTcurrent>1d-8) then muCurrent=mu_OPE(x0,bTcurrent,c4_global) Lmu=LogMuB(muCurrent,bTcurrent) else muCurrent=mu_OPE(x0,1d-8,c4_global) Lmu=LogMuB(muCurrent,1d-8) end if alpha=As(muCurrent) Nf=real(activeNf(muCurrent),dp) call Set_CoeffSing1_q_q(alpha,Nf,Lmu) call Set_Coeff_q_q(alpha,Nf,Lmu) call Set_Coeff_q_qb(alpha,Nf,Lmu) call Set_Coeff_q_qp(alpha,Nf,Lmu) call Set_Coeff_q_g(alpha,Nf,Lmu) call Set_Coeff_g_q(alpha,Nf,Lmu) call Set_Coeff_g_g(alpha,Nf,Lmu) end if !!! I approximate function f(xC/z) by mean value f(xC/x0)-f(xC) PDFs=(xf(xCurrent/x0,muCurrent,hadron)+PDFcurrent)/2d0 PDFsum=PDFs(-5)+PDFs(-4)+PDFs(-3)+PDFs(-2)+PDFs(-1)+PDFs(1)+PDFs(2)+PDFs(3)+PDFs(4)+PDFs(5) counter=counter+1 !!!this is integral over vars from x0 to 1, last terms are <10^-7 for x0=1-10^-3 var=parametrizationStringAt1(x0) !! summing regular part CqMain=SUM(Coeff_q_q*var) CqPrime=SUM(Coeff_q_qp*var) CqAnti=SUM(Coeff_q_qb*var) CqGluon=SUM(Coeff_q_g*var) CgMain=SUM(Coeff_g_g*var) CgQuark=SUM(Coeff_g_q*var) F0=FNP(xCurrent,x0,bTcurrent,hadron,lambdaNP) !!combingin with PDFs value=F0*(/& CqMain*PDFs(-5)+CqAnti*PDFs(5)+CqPrime*PDFsum+CqGluon*PDFs(0),& CqMain*PDFs(-4)+CqAnti*PDFs(4)+CqPrime*PDFsum+CqGluon*PDFs(0),& CqMain*PDFs(-3)+CqAnti*PDFs(3)+CqPrime*PDFsum+CqGluon*PDFs(0),& CqMain*PDFs(-2)+CqAnti*PDFs(2)+CqPrime*PDFsum+CqGluon*PDFs(0),& CqMain*PDFs(-1)+CqAnti*PDFs(1)+CqPrime*PDFsum+CqGluon*PDFs(0),& CgMain*PDFs(0)+CgQuark*PDFsum,& CqMain*PDFs(1)+CqAnti*PDFs(-1)+CqPrime*PDFsum+CqGluon*PDFs(0),& CqMain*PDFs(2)+CqAnti*PDFs(-2)+CqPrime*PDFsum+CqGluon*PDFs(0),& CqMain*PDFs(3)+CqAnti*PDFs(-3)+CqPrime*PDFsum+CqGluon*PDFs(0),& CqMain*PDFs(4)+CqAnti*PDFs(-4)+CqPrime*PDFsum+CqGluon*PDFs(0),& CqMain*PDFs(5)+CqAnti*PDFs(-5)+CqPrime*PDFsum+CqGluon*PDFs(0)/) !!! AV: 25.06.22 !!! the (..)_+ part is tricky. !!! I estimate int_x0^1 (f[xc/x]-f[xc])/(1-x)g[x] as (f[xc/x0]-f[xc])/(1-x0) int_x0^1 g[x] !!! it follows from the expansion of f[xc/x] at x->1, and comparison to the expansion of f[xc/x0] at x0->1 !!! it is justified if x0->1, and f[xc] is smooth dummy=CoeffSing1_q_q(1) if(order_global>=2) dummy=dummy+CoeffSing1_q_q(2)*(LOG(1d0-x0)-1d0) if(order_global>=3) dummy=dummy+CoeffSing1_q_q(3)*(LOG(1d0-x0)**2-2d0*LOG(1d0-x0)+2d0) addV=dummy*(F0*PDFs-FPDFcurrent) dummy=CoeffSing1_g_g(1) if(order_global>=2) dummy=dummy+CoeffSing1_g_g(2)*(LOG(1d0-x0)-1d0) if(order_global>=3) dummy=dummy+CoeffSing1_g_g(3)*(LOG(1d0-x0)**2-2d0*LOG(1d0-x0)+2d0) addV(0)=dummy*(F0(0)*PDFs(0)-FPDFcurrent(0)) value=value+addV res5=value else res5=MellinConvolutionVectorPart50(x0,xm,hadron)+MellinConvolutionVectorPart50(xm,x1,hadron) end if else res5=MellinConvolutionVectorPart50(x0,xm,hadron)+MellinConvolutionVectorPart50(xm,x1,hadron) end if end if else res5=xr*vk15 end if end function MellinConvolutionVectorPart50
26,377
38.078519
134
f90
artemide-public
artemide-public-master/src/Code/Twist3/Twist3Convolution-VAR.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! arTeMiDe 2.05 ! ! This file contains the part of the code, which is common for all TMD-evaluation modules that operates at twist-3 ! ONLY DECLARATION OF VARIABLES that are used in twist2Convolution ! It shares the variables with the module where it is inlucded (as a text) ! Such idiotic structure is needed since, FORTRAN does not allow inheritance. ! ! Be AWARE of possible clash of variable names. ! ! SO FAR THERE IS NO TWIST-3 CONVOLUTION IMPLEMENTATION ! ! A.Vladimirov (21.05.2020) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
674
44
114
f90
artemide-public
artemide-public-master/src/Code/Twist3/Twist3Convolution.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! arTeMiDe 2.05 ! ! This file contains the part of the code, which is common for all TMD-evaluation modules that operates at twist-2 ! It shares the variables with the module where it is inlucded (as a text) ! Such idiotic structure is needed since, FORTRAN does not allow inheritance. ! ! Be AWARE of possible clash of variable names. ! ! SO FAR THERE IS NO TWIST-3 CONVOLUTION IMPLEMENTATION ! ! A.Vladimirov (21.05.2020) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Supplimentary functions !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!Evaluate Log[mu^2 bT^2/4/Exp(-2Gamma_E)] !! the b here is b*, this funciton is used only in Coefficeint functions function LogMuB(mu,bT) real(dp)::LogMuB real(dp),intent(in)::bT,mu LogMuB=2d0*Log(bSTAR(bT,lambdaNP)*mu*C0_inv_const) end function LogMuB !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Convolutions!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !--------------------------------------------------------------------- !- This is the TMD function evaluated for all quarks simultaniously (-5..5) at x,bT,mu !-- f = -5, -4, -3, -2, -1,0,1,2,3, 4 ,5 !-- = bbar ,cbar sbar,ubar,dbar,g,d,u,s, c ,b !!---Gluon contribution is undefined !- The order is accumulative pertrubative order of coefficient =0,1,2 (LO,NLO,NNLO) !--------------------------------------------------------------------- function Common_lowScale5(x,bT,hadron) real(dp),dimension(-5:5)::Common_lowScale5 real(dp),intent(in) :: x, bT integer,intent(in)::hadron !!!!SO FAR THERE IS NO TWIST-3 CONVOLUTION IMPLEMENTATION Common_lowScale5=FNP(x,bT,hadron,lambdaNP) end function Common_lowScale5 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !--------------------------------------------------------------------- !- This is the TMD function evaluated for all quarks simultaniously (-5..5) at x,bT,mu the GLUON INCLUDED !-- f = -5, -4, -3, -2, -1,0,1,2,3, 4 ,5 !-- = bbar ,cbar sbar,ubar,dbar,g,d,u,s, c ,b !- The order is accumulative pertrubative order of coefficient =0,1,2 (LO,NLO,NNLO) !--------------------------------------------------------------------- function Common_lowScale50(x,bT,hadron) real(dp),dimension(-5:5)::Common_lowScale50 real(dp),intent(in) :: x, bT integer,intent(in)::hadron !!!!SO FAR THERE IS NO TWIST-3 CONVOLUTION IMPLEMENTATION Common_lowScale50=FNP(x,bT,hadron,lambdaNP) end function Common_lowScale50
3,180
48.703125
134
f90
artemide-public
artemide-public-master/src/Code/aTMDe_setup/const-modification.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!! !!!!!!!!! part of aTMDe_setup module for artemide !!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!------------------------------------------------------------------------------------------------------- !!!-----------------------------Routines for modification of constants-file------------------------------- !!!------------------------------------------------------------------------------------------------------- !-------------------------------------------------------CHANGE INITILIZATION PARAMETERS------------------------------------- subroutine Set_outputLevel(level,numMessages) integer,intent(in)::level integer,optional,intent(in)::numMessages outputLevel=level if(present(numMessages)) messageTrigger=numMessages end subroutine Set_outputLevel subroutine artemide_include(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10) character(len=*),optional::a1,a2,a3,a4,a5,a6,a7,a8,a9,a10 if(present(a1)) call SwitchModule(a1) if(present(a2)) call SwitchModule(a2) if(present(a3)) call SwitchModule(a3) if(present(a4)) call SwitchModule(a4) if(present(a5)) call SwitchModule(a5) if(present(a6)) call SwitchModule(a6) if(present(a7)) call SwitchModule(a7) if(present(a8)) call SwitchModule(a8) if(present(a9)) call SwitchModule(a9) if(present(a10)) call SwitchModule(a10) end subroutine artemide_include subroutine SwitchModule(name) character(len=*)::name select case(trim(name)) case('QCDinput') if(outputLevel>1) write(*,*) 'artemide_setup: Module QCDinput is included by default' case('EWinput') include_EWinput=.true. if(outputLevel>1) write(*,*) 'artemide_setup: Module EWinput is included' case('uTMDPDF') include_uTMDPDF=.true. if(outputLevel>1) write(*,*) 'artemide_setup: Module uTMDPDF is included' case('uTMDFF') include_uTMDFF=.true. if(outputLevel>1) write(*,*) 'artemide_setup: Module uTMDFF is included' case('lpTMDPDF') include_lpTMDPDF=.true. if(outputLevel>1) write(*,*) 'artemide_setup: Module lpTMDPDF is included' case('SiversTMDPDF') include_SiversTMDPDF=.true. if(outputLevel>1) write(*,*) 'artemide_setup: Module SiversTMDPDF is included' case('TMDR') include_TMDR=.true. if(outputLevel>1) write(*,*) 'artemide_setup: Module TMDR is included' case('TMDs') include_TMDs=.true. if(outputLevel>1) write(*,*) 'artemide_setup: Module TMDs is included' case('TMDF') include_TMDF=.true. if(outputLevel>1) write(*,*) 'artemide_setup: Module TMDF is included' case('TMDs_inKT') include_TMDs_inKT=.true. if(outputLevel>1) write(*,*) 'artemide_setup: Module TMDs_inKT is included' case('TMDX_DY') include_TMDX_DY=.true. if(outputLevel>1) write(*,*) 'artemide_setup: Module TMDX_DY is included' case('TMDX_SIDIS') include_TMDX_SIDIS=.true. if(outputLevel>1) write(*,*) 'artemide_setup: Module TMDX_SIDIS is included' end select end subroutine SwitchModule !!! Adds a uPDF to initialization list subroutine Set_uPDF(hadron,setName,replica) integer,intent(in)::hadron character(len=*),intent(in)::setName integer,intent(in),optional::replica integer::pos,i integer,allocatable::enum_old(:),rep_old(:) character(len=100),allocatable::sets_old(:) !!! If there is no hadron so far in the list, we make it new if(number_of_uPDFs==0) then if(outputLevel>2) write(*,"('artemide_setup: uPDF initialization list is made')") number_of_uPDFs=1 pos=1 !!! by default all allocated with single element, we have to just rewrite it. else if(ANY(enumeration_of_uPDFs.eq.hadron)) then!!!! hadron already in the grid. We ust redefine it if(outputLevel>2) write(*,"('artemide_setup: uPDF for hadron',I3,' is redefined')") hadron do i=1,number_of_uPDFs if(enumeration_of_uPDFs(i)==hadron) exit end do pos=i else !!!! this hadron is NEW if(outputLevel>2) write(*,"('artemide_setup: uPDF for hadron',I3,' is added')") hadron !!save old arrays allocate(enum_old(1:number_of_uPDFs)) allocate(rep_old(1:number_of_uPDFs)) allocate(sets_old(1:number_of_uPDFs)) do i=1,number_of_uPDFs enum_old(i)=enumeration_of_uPDFs(i) rep_old(i)=replicas_of_uPDFs(i) sets_old(i)=sets_of_uPDFs(i) end do !! reallocating arrays deallocate(enumeration_of_uPDFs,replicas_of_uPDFs,sets_of_uPDFs) number_of_uPDFs=number_of_uPDFs+1 allocate(enumeration_of_uPDFs(1:number_of_uPDFs)) allocate(replicas_of_uPDFs(1:number_of_uPDFs)) allocate(sets_of_uPDFs(1:number_of_uPDFs)) !! copy information do i=1,number_of_uPDFs-1 enumeration_of_uPDFs(i)=enum_old(i) replicas_of_uPDFs(i)=rep_old(i) sets_of_uPDFs(i)=sets_old(i) end do pos=number_of_uPDFs deallocate(enum_old,sets_old,rep_old) end if enumeration_of_uPDFs(pos)=hadron sets_of_uPDFs(pos)=trim(setName) if(present(replica)) then replicas_of_uPDFs(pos)=replica else replicas_of_uPDFs(pos)=0 end if if(outputLevel>1) write(*,"('artemide_setup: uPDF ',A,' for hadron ',I3,' added to initializaton list')") trim(setName),hadron end subroutine Set_uPDF !!! Adds a uFF to initialization list subroutine Set_uFF(hadron,setName,replica) integer,intent(in)::hadron character(len=*),intent(in)::setName integer,intent(in),optional::replica integer::pos,i integer,allocatable::enum_old(:),rep_old(:) character(len=100),allocatable::sets_old(:) !!! If there is no hadron so far in the list, we make it new if(number_of_uFFs==0) then if(outputLevel>2) write(*,"('artemide_setup: uFF initialization list is made')") number_of_uFFs=1 pos=1 !!! by default all allocated with single element, we have to just rewrite it. else if(ANY(enumeration_of_uFFs.eq.hadron)) then!!!! hadron already in the grid. We ust redefine it if(outputLevel>2) write(*,"('artemide_setup: uFF for hadron',I3,' is redefined')") hadron do i=1,number_of_uFFs if(enumeration_of_uFFs(i)==hadron) exit end do pos=i else !!!! this hadron is NEW if(outputLevel>2) write(*,"('artemide_setup: uFF for hadron',I3,' is added')") hadron !!save old arrays allocate(enum_old(1:number_of_uFFs)) allocate(rep_old(1:number_of_uFFs)) allocate(sets_old(1:number_of_uFFs)) do i=1,number_of_uFFs enum_old(i)=enumeration_of_uFFs(i) rep_old(i)=replicas_of_uFFs(i) sets_old(i)=sets_of_uFFs(i) end do !! reallocating arrays deallocate(enumeration_of_uFFs,replicas_of_uFFs,sets_of_uFFs) number_of_uFFs=number_of_uFFs+1 allocate(enumeration_of_uFFs(1:number_of_uFFs)) allocate(replicas_of_uFFs(1:number_of_uFFs)) allocate(sets_of_uFFs(1:number_of_uFFs)) !! copy information do i=1,number_of_uFFs-1 enumeration_of_uFFs(i)=enum_old(i) replicas_of_uFFs(i)=rep_old(i) sets_of_uFFs(i)=sets_old(i) end do pos=number_of_uFFs deallocate(enum_old,sets_old,rep_old) end if enumeration_of_uFFs(pos)=hadron sets_of_uFFs(pos)=trim(setName) if(present(replica)) then replicas_of_uFFs(pos)=replica else replicas_of_uFFs(pos)=0 end if if(outputLevel>1) write(*,"('artemide_setup: uFF ',A,' for hadron ',I3,' added to initializaton list')") trim(setName),hadron end subroutine Set_uFF !!! Adds a uPDF to initialization list subroutine Set_lpPDF(hadron,setName,replica) integer,intent(in)::hadron character(len=*),intent(in)::setName integer,intent(in),optional::replica integer::pos,i integer,allocatable::enum_old(:),rep_old(:) character(len=100),allocatable::sets_old(:) !!! If there is no hadron so far in the list, we make it new if(number_of_lpPDFs==0) then if(outputLevel>2) write(*,"('artemide_setup: lpPDF initialization list is made')") number_of_lpPDFs=1 pos=1 !!! by default all allocated with single element, we have to just rewrite it. else if(ANY(enumeration_of_lpPDFs.eq.hadron)) then!!!! hadron already in the grid. We ust redefine it if(outputLevel>2) write(*,"('artemide_setup: lpPDF for hadron',I3,' is redefined')") hadron do i=1,number_of_lpPDFs if(enumeration_of_lpPDFs(i)==hadron) exit end do pos=i else !!!! this hadron is NEW if(outputLevel>2) write(*,"('artemide_setup: lpPDF for hadron',I3,' is added')") hadron !!save old arrays allocate(enum_old(1:number_of_lpPDFs)) allocate(rep_old(1:number_of_lpPDFs)) allocate(sets_old(1:number_of_lpPDFs)) do i=1,number_of_lpPDFs enum_old(i)=enumeration_of_lpPDFs(i) rep_old(i)=replicas_of_lpPDFs(i) sets_old(i)=sets_of_lpPDFs(i) end do !! reallocating arrays deallocate(enumeration_of_lpPDFs,replicas_of_lpPDFs,sets_of_lpPDFs) number_of_lpPDFs=number_of_lpPDFs+1 allocate(enumeration_of_lpPDFs(1:number_of_lpPDFs)) allocate(replicas_of_lpPDFs(1:number_of_lpPDFs)) allocate(sets_of_lpPDFs(1:number_of_lpPDFs)) !! copy information do i=1,number_of_lpPDFs-1 enumeration_of_lpPDFs(i)=enum_old(i) replicas_of_lpPDFs(i)=rep_old(i) sets_of_lpPDFs(i)=sets_old(i) end do pos=number_of_lpPDFs deallocate(enum_old,sets_old,rep_old) end if enumeration_of_lpPDFs(pos)=hadron sets_of_lpPDFs(pos)=trim(setName) if(present(replica)) then replicas_of_lpPDFs(pos)=replica else replicas_of_lpPDFs(pos)=0 end if if(outputLevel>1) write(*,"('artemide_setup: lpPDF ',A,' for hadron ',I3,' added to initializaton list')") trim(setName),hadron end subroutine Set_lpPDF subroutine Set_quarkMasses(mC,mB,mT) real,optional::mC,mB,mT if(present(mC)) mCHARM=mC if(present(mB)) mBOTTOM=mB if(present(mT)) mTOP=mT if(outputLevel>1) write(*,"('artemide_setup: quark masses reset (mCHARM,mBOTTOM,mTOP)=(',F6.3,',',F6.3,',',F6.3,')')")& mCHARM,mBOTTOM,mTOP end subroutine Set_quarkMasses subroutine Set_EWparameters(alphaInv,massZ,massW,widthZ,widthW,massH,widthH,vevHIGGS,sin2ThetaW,UD,US,UB,CD,CS,CB) real(dp),optional::alphaInv,massZ,massW,widthZ,widthW,sin2ThetaW,UD,US,UB,CD,CS,CB,massH,widthH,vevHIGGS if(present(alphaInv)) alphaQED_MZ=alphaInv if(present(massZ)) MZ=massZ if(present(massW)) MW=massW if(present(massH)) MH=massH if(present(widthZ)) GammaZ=widthZ if(present(widthW)) GammaW=widthW if(present(widthH)) GammaH=widthH if(present(vevHIGGS)) vevH=vevHIGGS if(present(sin2ThetaW)) sW2=sin2ThetaW if(present(UD)) Vckm_UD=UD if(present(US)) Vckm_US=US if(present(UB)) Vckm_UB=UB if(present(CD)) Vckm_CD=CD if(present(CS)) Vckm_CS=CS if(present(CB)) Vckm_CB=CB if(outputLevel>1) write(*,"('artemide_setup: EW parameters reset')") end subroutine Set_EWparameters !------------------------- subroutine Set_TMDR_order(order) character(len=*)::order if(len(order)<8) then TMDR_order=trim(order) else TMDR_order=trim(order(1:8)) end if if(outputLevel>1) write(*,"('artemide_setup: TMDR order is changed to ',A)") TMDR_order end subroutine Set_TMDR_order subroutine Set_TMDR_evolutionType(num) integer,intent(in)::num if(num<=0 .or. num>4) then write(*,"(A,I3)") WarningString('Set_TMDR_evolutionType, type must be =1,2,3,4 but not',moduleName), TMDR_evolutionType TMDR_evolutionType=4 else TMDR_evolutionType=num end if if(outputLevel>1) write(*,"('artemide_setup: TMDR evolution type is changed to ',I3)") TMDR_evolutionType end subroutine Set_TMDR_evolutionType subroutine Set_TMDR_lengthNParray(num) integer,intent(in)::num TMDR_lambdaLength=num if(outputLevel>1) write(*,"('artemide_setup: TMDR length of NP array is set to ',I3)") TMDR_lambdaLength end subroutine Set_TMDR_lengthNParray !------------------------- subroutine Set_uTMDPDF(hadron,setName,replica) integer,intent(in)::hadron character(len=*),intent(in)::setName integer,intent(in),optional::replica if(.not.include_uTMDPDF) then include_uTMDPDF=.true. if(outputLevel>1) write(*,"('artemide_setup: uTMDPDF module included into initialisaion list')") end if if(outputLevel>1) write(*,"('artemide_setup: uTMDPDF ',A,' for hadron ',I3,' added to grid list')") trim(setName),hadron call Set_uPDF(hadron,setName,replica) end subroutine Set_uTMDPDF subroutine Set_uTMDPDF_order(order) character(len=*)::order if(len(order)<8) then uTMDPDF_order=trim(order) else uTMDPDF_order=trim(order(1:8)) end if if(outputLevel>1) write(*,"('artemide_setup: uTMDPDF order is changed to ',A)") uTMDPDF_order end subroutine Set_uTMDPDF_order subroutine Set_uTMDPDF_gridEvaluation(prepareGrid,includeGluon) logical::prepareGrid logical,optional::includeGluon uTMDPDF_makeGrid=prepareGrid if(present(includeGluon)) uTMDPDF_withGluon=includeGluon if(outputLevel>1) write(*,"('artemide_setup: uTMDPDF grid evaluation is changed to (',L2,',',L2,')')") prepareGrid,includeGluon end subroutine Set_uTMDPDF_gridEvaluation subroutine Set_uTMDPDF_lengthNParray(num) integer,intent(in)::num uTMDPDF_lambdaLength=num if(outputLevel>1) write(*,"('artemide_setup: uTMDPDF length of NP array is set to ',I3)") uTMDPDF_lambdaLength end subroutine Set_uTMDPDF_lengthNParray !------------------------- subroutine Set_uTMDFF(hadron,setName,replica) integer,intent(in)::hadron character(len=*),intent(in)::setName integer,intent(in),optional::replica if(.not.include_uTMDFF) then include_uTMDFF=.true. if(outputLevel>1) write(*,"('artemide_setup: uTMDFF module included into initialisaion list')") end if if(outputLevel>1) write(*,"('artemide_setup: uTMDFF ',A,' for hadron ',I3,' added to grid list')") trim(setName),hadron call Set_uFF(hadron,setName,replica) end subroutine Set_uTMDFF subroutine Set_uTMDFF_order(order) character(len=*)::order if(len(order)<8) then uTMDFF_order=trim(order) else uTMDFF_order=trim(order(1:8)) end if if(outputLevel>1) write(*,"('artemide_setup: uTMDFF order is changed to ',A)") uTMDFF_order end subroutine Set_uTMDFF_order subroutine Set_uTMDFF_gridEvaluation(prepareGrid,includeGluon) logical::prepareGrid logical,optional::includeGluon uTMDFF_makeGrid=prepareGrid if(present(includeGluon)) uTMDFF_withGluon=includeGluon if(outputLevel>1) write(*,"('artemide_setup: uTMDFF grid evaluation is changed to (',L2,',',L2,')')") prepareGrid,includeGluon end subroutine Set_uTMDFF_gridEvaluation subroutine Set_uTMDFF_lengthNParray(num) integer,intent(in)::num uTMDFF_lambdaLength=num if(outputLevel>1) write(*,"('artemide_setup: uTMDFF length of NP array is set to ',I3)") uTMDFF_lambdaLength end subroutine Set_uTMDFF_lengthNParray !------------------------- subroutine Set_lpTMDPDF(hadron,setName,replica) integer,intent(in)::hadron character(len=*),intent(in)::setName integer,intent(in),optional::replica if(.not.include_lpTMDPDF) then include_lpTMDPDF=.true. if(outputLevel>1) write(*,"('artemide_setup: lpTMDPDF module included into initialisaion list')") end if if(outputLevel>1) write(*,"('artemide_setup: lpTMDPDF ',A,' for hadron ',I3,' added to grid list')") trim(setName),hadron call Set_uPDF(hadron,setName,replica) end subroutine Set_lpTMDPDF subroutine Set_lpTMDPDF_order(order) character(len=*)::order if(len(order)<8) then lpTMDPDF_order=trim(order) else lpTMDPDF_order=trim(order(1:8)) end if if(outputLevel>1) write(*,"('artemide_setup: lpTMDPDF order is changed to ',A)") lpTMDPDF_order end subroutine Set_lpTMDPDF_order subroutine Set_lpTMDPDF_gridEvaluation(prepareGrid,includeGluon) logical::prepareGrid logical,optional::includeGluon lpTMDPDF_makeGrid=prepareGrid if(present(includeGluon)) lpTMDPDF_withGluon=includeGluon if(outputLevel>1) write(*,"('artemide_setup: lpTMDPDF grid evaluation is changed to (',L2,',',L2,')')") prepareGrid,includeGluon end subroutine Set_lpTMDPDF_gridEvaluation subroutine Set_lpTMDPDF_lengthNParray(num) integer::num lpTMDPDF_lambdaLength=num if(outputLevel>1) write(*,"('artemide_setup: lpTMDPDF length of NP array is set to ',I3)") lpTMDPDF_lambdaLength end subroutine Set_lpTMDPDF_lengthNParray
17,378
34.612705
132
f90
artemide-public
artemide-public-master/src/Code/lpTMDPDF/coeffFunc.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!! !!!!!!!!! part of lpTMDPDF module for artemide !!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!------------------------------------------------------------------------------------------------------- !!!-----------------------------Routines for the mathing coefficient-------------------------------------- !!!--------------The order is accumulative pertrubative order of coefficient =0,1,2 (LO,NLO,NNLO)--------- !!!------------------------------------------------------------------------------------------------------- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!COEFFICIENT FUNCTIONS!! !!! the function which contains the functions of parameterizations function parametrizationString(z) real(dp)::z,lz,llz,zz real(dp),dimension(1:parametrizationLength)::parametrizationString zz=1d0-z lz=Log(z) llz=Log(zz) parametrizationString=(/& 1d0/z,lz/z,& lz,lz**2,& 1d0,zz,z*zz,& zz*llz/z,& z*lz,z**2*lz,& zz*llz,zz**2*llz,& lz**2*llz,lz*llz**2/) end function parametrizationString !!! the function which contains !!! int_z^1 parameterization at values of z -> 1 !!! it is used to estimate integration error at z~1 function parametrizationStringAt1(z) real(dp)::z real(dp),dimension(1:parametrizationLength)::parametrizationStringAt1 parametrizationStringAt1=(/1d0-z, 0d0,0d0,0d0,1d0-z,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0/) end function parametrizationStringAt1 !!!!Each coefficient is split to delta, sing x->1, regular !!!!!coefficient function q<-q delta-part !!!! NO QUARK HERE! function C_q_q_delta(alpha,Nf,Lmu) real(dp)::C_q_q_delta,Nf,alpha,Lmu C_q_q_delta=0d0 end function C_q_q_delta !!!!!coefficient function g<-g delta-part !!!! NO DELTA-function! function C_g_g_delta(alpha,Nf,Lmu) real(dp)::C_g_g_delta,Nf,alpha,Lmu C_g_g_delta=0d0 end function C_g_g_delta !!!!!coefficient function q<-q singular-part (1/(1-x)_+,(Log(1-x)/(1-x))_+) !!!! NO QUARK HERE! subroutine Set_CoeffSing1_q_q(alpha,Nf,Lmu) real(dp)::Nf,alpha,LLambda,Lmu CoeffSing1_q_q=(/0d0,0d0,0d0/) end subroutine Set_CoeffSing1_q_q !!!!!coefficient function g<-g singular-part (1/(1-x)_+,(Log(1-x)/(1-x))_+) !!!! NO SINGULAR PART HERE! subroutine Set_CoeffSing1_g_g(alpha,Nf,Lmu) real(dp)::Nf,alpha,Lmu CoeffSing1_g_g=(/0d0,0d0,0d0/) end subroutine Set_CoeffSing1_g_g !!!!!coefficient function q<-q regular-part !!!! NO QUARK HERE! subroutine Set_Coeff_q_q(alpha,Nf,Lmu) real(dp)::alpha,Nf,Lmu Coeff_q_q=(/0d0, 0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0/) end subroutine Set_Coeff_q_q !!!!!coefficient function q<-g regular-part !!!! NO QUARK HERE! subroutine Set_Coeff_q_g(alpha,Nf,Lmu) real(dp)::alpha,Nf,Lmu !! the Leading order is always zero, therefore calculation should be done only for order >=1 Coeff_q_g=(/0d0, 0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0/) end subroutine Set_Coeff_q_g !!!!!coefficient function g<-q regular-part subroutine Set_Coeff_g_q(alpha,Nf,Lmu) real(dp)::alpha,Nf,Lmu !! the Leading order is always zero, therefore calculation should be done only for order >=1 Coeff_g_q=(/0d0, 0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0/) if(order_global>=1) then Coeff_g_q=Coeff_g_q+alpha*(/& -16d0/3d0,0d0,& !1/x, log[x]/x 0d0,0d0,& !log[x], log[x]^2 16d0/3d0,0d0,0d0,& !1 ,1-x, x(1-x) 0d0,& !(1-x)log[1-x]/x 0d0,0d0,& !xlog[x], x^2 log[x] 0d0,0d0,& !(1-x)Log[1-x],(1-x)^2Log[1-x] 0d0,0d0/) !log[1-x]Log[x]^2,log[1-x]^2log[x] !------The kernels are calculated in mathematica if(order_global>=2) then Coeff_g_q=Coeff_g_q+alpha*alpha*(/& 352d0/9d0+128d0/27d0*Nf+Lmu*(32d0/9d0*Nf-512d0/3d0)+80d0*zeta2-128d0*zeta3,& !1/x, 64d0*(1d0-Lmu),& ! log[x]/x 1120d0/9d0-448d0/9d0*Lmu,& !log[x] -224d0/9d0,& !log[x]^2 -352d0/9d0-128d0/27d0*Nf+Lmu*(-32d0/9d0*Nf+512d0/3d0)-80d0*zeta2+128d0*zeta3,& !1 96.93661014992554d0 - 80d0*Lmu/9d0,& !1-x -12.03616313305288d0, & !x(1-x) -70.94828373998075d0+256d0*Lmu/9d0 + 64d0*Nf/9d0,& !(1-x)log[1-x]/x 66.13401288059151d0, -4.368597177618905d0,& !xlog[x], x^2 log[x] 29.77672764648373d0, -7.277284712894577d0,& !(1-x)Log[1-x],(1-x)^2Log[1-x] -0.21013073998329043d0, 17.922444586392995d0/) !log[1-x]Log[x]^2,log[1-x]^2log[x] end if end if end subroutine Set_Coeff_g_q !!!!!coefficient function g<-g regular-part subroutine Set_Coeff_g_g(alpha,Nf,Lmu) real(dp)::alpha,Nf,Lmu !! the Leading order is always zero, therefore calculation should be done only for order >=1 Coeff_g_g=(/0d0, 0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0/) if(order_global>=1) then Coeff_g_g=Coeff_g_g+alpha*(/& -12d0,0d0,& !1/x, log[x]/x 0d0,0d0,& !log[x], log[x]^2 12d0,0d0,0d0,& !1 ,1-x, x(1-x) 0d0,& !(1-x)log[1-x]/x 0d0,0d0,& !xlog[x], x^2 log[x] 0d0,0d0,& !(1-x)Log[1-x],(1-x)^2Log[1-x] 0d0,0d0/) !log[1-x]Log[x]^2,log[1-x]^2log[x] !------The kernels are calculated in mathematica if(order_global>=2) then Coeff_g_g=Coeff_g_g+alpha*alpha*(/& 220d0+12d0*Nf+Lmu*(64d0/9d0*Nf-408d0)+180d0*zeta2-288d0*zeta3,& !1/x, 144d0*(1d0-Lmu),& ! log[x]/x 228d0+8d0*Nf+Lmu*(32d0/3d0*Nf-144d0),& !log[x] -72d0+16d0*Nf/3d0,& !log[x]^2 -208d0-16d0*Nf+Lmu*(-64d0/9d0*Nf+408d0)-180d0*zeta2+288d0*zeta3,& !1 -1069d0/4d0+80d0/3d0*Nf+Lmu*(64d0/9d0*Nf-48d0)+288d0*zeta2,& !1-x -28d0/3d0*Nf+Lmu*(-32d0/9d0*Nf+24d0)-47.26606760498457d0, & !x(1-x) -0.04368111639126644d0+144d0*Lmu,& !(1-x)log[1-x]/x 143.74118698578818d0, -3.936195409223967d0,& !xlog[x], x^2 log[x] 18.440046947186577d0, -31.890749138002473d0,& !(1-x)Log[1-x],(1-x)^2Log[1-x] 1.080993168990866d0, -1.8412301915911546d0/) !log[1-x]Log[x]^2,log[1-x]^2log[x] end if end if end subroutine Set_Coeff_g_g !!!!!coefficient function q<-qb regular-part !!!! NO QUARK HERE! subroutine Set_Coeff_q_qb(alpha,Nf,Lmu) real(dp)::alpha,Nf,Lmu !! the Leading order is always zero, therefore calculation should be done only for order >=1 Coeff_q_qb=(/0d0, 0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0/) end subroutine Set_Coeff_q_qb !!!!!coefficient function q<-qp regular-part !!!! NO QUARK HERE! subroutine Set_Coeff_q_qp(alpha,Nf,Lmu) real(dp)::alpha,Nf,Lmu !! the Leading order is always zero, therefore calculation should be done only for order >=1 Coeff_q_qp=(/0d0, 0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0/) end subroutine Set_Coeff_q_qp !!! This function has been used during debuging subroutine CheckCoefficient(as,Nf,Lmu,z) real(dp)::Lmu,as,z,Nf real(dp), dimension(1:parametrizationLength)::func real(dp), dimension(1:3)::func1 func=parametrizationString(z) func1=(/1d0/(1d0-z),Log(1d0-z)/(1d0-z),Log(1d0-z)/(1d0-z)/) !!Q->Q ! call Set_CoeffSing1_q_q(as,Nf,Lmu) ! call Set_Coeff_q_q(as,Nf,Lmu) ! write(*,*) SUM(Coeff_q_q*func)+SUM(CoeffSing1_q_q*func1) ! !!Q->G ! call Set_Coeff_q_g(as,Nf,Lmu) ! write(*,*) SUM(Coeff_q_g*func) ! !!Q->Q' ! call Set_Coeff_q_qp(as,Nf,Lmu) ! write(*,*) SUM(Coeff_q_qp*func) !!Q->Qbar ! call Set_Coeff_q_qb(as,Nf,Lmu) ! write(*,*) SUM(Coeff_q_qb*func) ! !! G->Q ! call Set_Coeff_g_q(as,Nf,Lmu) ! write(*,*) SUM(Coeff_g_q*func) ! !!G->G call Set_CoeffSing1_g_g(as,Nf,Lmu) call Set_Coeff_g_g(as,Nf,Lmu) ! ! write(*,*) Coeff_g_g ! write(*,*) '---------' ! write(*,*) func write(*,*) SUM(Coeff_g_g*func)+SUM(CoeffSing1_g_g*func1) end subroutine CheckCoefficient
7,996
34.074561
106
f90
artemide-public
artemide-public-master/src/Code/lpTMDPDF/convolutions.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!! !!!!!!!!! part of uTMDPDF module for artemide !!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!------------------------------------------------------------------------------------------------------- !!!-----------------------------Routines for evaluation of TMD distributions------------------------------ !!!-------------------------the actual calculation takes a place in twist2 code--------------------------- !!!------------------------------------------------------------------------------------------------------- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Convolutions!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !------------------------------------------------- !!!!array of x times PDF(x,Q) for hadron 'hadron' !!!! array is (-5:5) (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function xf(x,Q,hadron) real(dp) :: x,Q integer:: hadron real(dp), dimension(-5:5):: xf xf=x_lp_PDF(x,Q,hadron) end function xf !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Convolutions!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !---------------------NO SUCH FUNCTION IN HERE ! function lpTMDPDF_base5(x,bT,hadron) ! real(dp),dimension(-5:5)::lpTMDPDF_base5 ! real(dp) :: x, bT ! integer::hadron ! ! lpTMDPDF_base5=0d0 ! ! end function lpTMDPDF_base5 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !--------------------------------------------------------------------- !- This is the TMD function evaluated for all quarks simultaniously (-5..5) at x,bT,mu the GLUON INCLUDED !-- f = -5, -4, -3, -2, -1,0,1,2,3, 4 ,5 !-- = bbar ,cbar sbar,ubar,dbar,g,d,u,s, c ,b !- The order is accumulative pertrubative order of coefficient =0,1,2 (LO,NLO,NNLO) !!---Base version: hadron=number of PDF !--------------------------------------------------------------------- !--------------------------------------------------------------------- function lpTMDPDF_base50(x,bT,hadron) real(dp),dimension(-5:5)::lpTMDPDF_base50 real(dp) :: x, bT integer::hadron !!! variables for restoration only real(dp),dimension(-5:5) :: fNP_grid,fNP_current integer::j !!!! if the coefficient function is not used at all. Just return fNP if(order_global==-50) then lpTMDPDF_base50=fNP(x,1d0,bT,hadron,lambdaNP) !!! in the case the greed has been calculated else if(gridReady .and. ANY(hadronsInGRID.eq.hadron)) then lpTMDPDF_base50=ExtractFromGrid(x,bT,hadron) !!!!!!!!!!This is procedure of restoration of function from the initial grid !!! if fNP is x-independent then the value can be obtained by TMDPDF(initial) fNP(current)/fNP(initial) if(.not.IsFnpZdependent) then fNP_grid=FNP(x,0d0,bT,hadron,lambdaNP_grid) fNP_current=FNP(x,0d0,bT,hadron,lambdaNP) do j=-5,5 if(fNP_grid(j)==0) then if(lpTMDPDF_base50(j)/=0.and.j/=0) then if(outputlevel>0) & call Warning_Raise('error in restoration: original value is zero. TMDPDF set to zero. b='//numToStr(bT),& messageCounter,messageTrigger,moduleName) end if lpTMDPDF_base50(j)=0 else lpTMDPDF_base50(j)=lpTMDPDF_base50(j)*fNP_current(j)/fNP_grid(j) end if end do end if !!!! Finally, Just calculation else lpTMDPDF_base50=Common_lowScale50(x,bT,hadron) end if end function lpTMDPDF_base50 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!OUTPUT INTERFACE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! NO SUCH FUNCTION HERE ! function lpTMDPDF_lowScale5(x,bT,hadron) ! real(dp),dimension(-5:5)::lpTMDPDF_lowScale5 ! real(dp) :: x, bT ! integer::hadron ! end function lpTMDPDF_lowScale5 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !--------------------------------------------------------------------- !- This is the TMD function evaluated for all quarks simultaniously (-5..5) at x,bT,mu the GLUON INCLUDED !-- f = -5, -4, -3, -2, -1,0,1,2,3, 4 ,5 !-- = bbar ,cbar sbar,ubar,dbar,g,d,u,s, c ,b !!---Full version: hadron=number of PDF (if compositeness OFF) !!--- hadron=sum components (if compositeness ON) !--------------------------------------------------------------------- !--------------------------------------------------------------------- function lpTMDPDF_lowScale50(x,bT,hadron) real(dp),dimension(-5:5)::lpTMDPDF_lowScale50 real(dp) :: x, bT integer::hadron logical,allocatable::includeInComposition(:) real(dp),allocatable::compositionCoefficients(:) integer::j,jN if(x>1d0) then lpTMDPDF_lowScale50=(/0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0/) return end if if(IsComposite) then lpTMDPDF_lowScale50=(/0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0/) call GetCompositionArray(hadron,lambdaNP,includeInComposition,compositionCoefficients) jN=size(includeInComposition) do j=1,jN if(includeInComposition(j)) then lpTMDPDF_lowScale50=lpTMDPDF_lowScale50+compositionCoefficients(j)*lpTMDPDF_base50(x,bT,j) end if end do deallocate(includeInComposition,compositionCoefficients) else lpTMDPDF_lowScale50=lpTMDPDF_base50(x,bT,hadron) end if end function lpTMDPDF_lowScale50
6,400
42.25
134
f90
artemide-public
artemide-public-master/src/Code/lpTMDPDF/modelTest.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!! !!!!!!!!! part of uTMDPDF module for artemide !!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!------------------------------------------------------------------------------------------------------- !!!-----------------------------Routines that test the behaviour of NP model------------------------------ !!!------------------------------------------------------------------------------------------------------- !!! test FNP for z-dependance !!! the test consists in the evaluation of FNP at several random sets and NParray !!! and comparison of the values. function TestFNP() logical::TestFNP real(dp)::xR,bR real(dp),dimension(-5:5)::test1,test2 integer::h,i,j real(dp),allocatable::NPtest(:) allocate(NPtest(1:lambdaNPlength)) call RANDOM_NUMBER(NPtest) NPtest=3d0*NPtest TestFNP=.false. do h=1,numberOfHadrons do i=1,10 !! generate some random input call RANDOM_NUMBER(xR) if(xR>0.99d0) xR=xR/2d0 if(xR<0.00001d0) xR=0.0001d0+xR call RANDOM_NUMBER(bR) bR=3d0*bR test1=FNP(xR,0.9d0,bR,hadronsInGRID(h),NPtest) do j=1,10 test2=FNP(xR,0.8d0/REAL(j),bR,hadronsInGRID(h),NPtest) if(SUM(ABS(test1-test2))>1d-10) then TestFNP=.true. exit end if end do end do end do deallocate(NPtest) end function TestFNP !!! test MU for x-dependance !!! the test consists in the evaluation of FNP at several random sets and NParray !!! and comparison of the values. function TestMU() logical::TestMU real(dp)::xR,bR real(dp)::test1,test2 integer::i,j TestMU=.false. do i=1,10 call RANDOM_NUMBER(bR) bR=3d0*bR !!! generate some random input call RANDOM_NUMBER(xR) if(xR>0.99d0) xR=xR/2d0 if(xR<0.00001d0) xR=0.0001d0+xR test1=mu_OPE(xR,bR) !!! generate some random input call RANDOM_NUMBER(xR) if(xR>0.99d0) xR=xR/2d0 if(xR<0.00001d0) xR=0.0001d0+xR test2=mu_OPE(xR,bR) if(ABS(test1-test2)>1d-10) then TestMU=.true. exit end if end do end function TestMU !!! test bSTAR for lambda-dependance !!! .true. = lambda-dependent function TestbSTAR() integer::i,j,k logical::TestbSTAR real(dp)::bT,dummy1,dummy2 real(dp),allocatable::NPtest(:) allocate(NPtest(1:lambdaNPlength)) TestbSTAR=.false. do i=1,lambdaNPlength NPtest=0.5d0+0d0*NPtest do k=0,3 bT=0.1d0+k dummy1=bSTAR(bT,NPtest) do j=1,3 NPtest(i)=0.9d0*j dummy2=bSTAR(bT,NPtest) if(abs(dummy2-dummy1)>1d-10) then TestbSTAR=.true. exit end if end do end do end do end function TestbSTAR
3,133
26.734513
106
f90
artemide-public
artemide-public-master/src/Code/uTMDFF/coeffFunc.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!! !!!!!!!!! part of uTMDFF module for artemide !!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!------------------------------------------------------------------------------------------------------- !!!-----------------------------Routines for the mathing coefficient-------------------------------------- !!!--------------The order is accumulative pertrubative order of coefficient =0,1,2 (LO,NLO,NNLO)--------- !!!------------------------------------------------------------------------------------------------------- !!! the function which contains the functions of parameterizations pure function parametrizationString(z) real(dp),intent(in)::z real(dp)::lz,l1z,zz real(dp),dimension(1:parametrizationLength)::parametrizationString zz=1d0-z lz=Log(z) l1z=Log(1d0-z) parametrizationString=(/& l1z,l1z**2,l1z**3,l1z**4,l1z**5,& 1d0/z,lz/z,lz**2/z,lz**3/z,lz**4/z,lz**5/z,& lz,lz**2,lz**3,lz**4,lz**5,& !!!<--- exact part, approximate part ---> 1d0,z,z*zz,& z*(lz/zz+1d0),z*lz**2/zz,z*lz**3/zz,& z*lz,z*lz**2,z*lz**3,& z*zz*lz,z*zz*lz**2,& zz*l1z,zz*l1z**2,zz*l1z**3,& z*zz*l1z,z*zz*l1z**2,& lz*l1z,z*lz*l1z,& l1z/zz*(1-z**2+2*lz),zz/z*(l1z+z)& /) end function parametrizationString !!! the function which contains !!! int_z^1 parameterization at values of z -> 1 !!! it is used to estimate integration error at z~1 pure function parametrizationStringAt1(z) real(dp),intent(in)::z real(dp)::lz,l1z,zz real(dp),dimension(1:parametrizationLength)::parametrizationStringAt1 zz=1d0-z l1z=Log(zz) parametrizationStringAt1=(/ & zz*(l1z-1), & !Log[1-x] zz*(2d0-2d0*l1z+l1z**2),& ! Log^2[1-x] zz*(-6d0+6d0*l1z-3d0*l1z**2+l1z**3),& !Log^3[1-x] zz*(24d0 - 24d0*l1z + 12d0*l1z**2 - 4d0*l1z**3 + l1z**4),& !Log^4[1-x] zz*(-120d0 + 120d0*l1z - 60d0*l1z**2 + 20d0*l1z**3 - 5d0*l1z**4 + l1z**5),& !Log^5[1-x] zz,& !1/x 0d0, 0d0, 0d0,0d0,0d0,&! log[x]/x, log[x]^2/x, log[x]^3/x, log[x]^4/x, log[x]^4/x 0d0,0d0,0d0,0d0,0d0,& !!log[x],Log[x]^2,Log[x]^3,Log[x]^4,Log[x]^5 zz, zz, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0, 0d0, 0d0,& 0d0, 0d0, 0d0, 0d0, 0d0, 0d0 /) !!! rest end function parametrizationStringAt1 !!!!Each coefficient is split to delta, sing x->1, regular !!!!!coefficient function q<-q delta-part pure function C_q_q_delta(alpha,Nf,Lmu) real(dp), intent(in)::Nf,alpha,Lmu real(dp)::C_q_q_delta C_q_q_delta=1d0 if(order_global>=1) then !(checked 27.02.19 AV) (27.06.22 AV) C_q_q_delta=C_q_q_delta+alpha*(-4d0/3d0*zeta2-4d0*Lmu) if(order_global>=2) then !----- C_q_q_delta=C_q_q_delta+alpha*alpha*(& -2416d0/81d0 + (Lmu**2)*(-14d0 + 4d0*Nf/3d0 - 128d0*zeta2/9d0) & + Nf*(352d0/243d0 + 20d0*zeta2/9d0 + 56d0*zeta3/27d0) + Lmu*(-14d0 - 140d0*zeta2/3d0 + Nf*(4d0/9d0& + 40d0*zeta2/9d0) + 16d0*zeta3/3d0)- 134d0*zeta2/3d0 + 448d0*zeta3/9d0 + 200d0*zeta4/9d0 ) !!!+ 2360d0*zeta4/9d0 if(order_global>=3) then C_q_q_delta=C_q_q_delta+alpha**3*(& Lmu**3*(-84d0 - (16d0*Nf**2)/27d0 - (896d0*zeta2)/9d0 + Nf*(128d0/9d0 + (256d0*zeta2)/27d0) & - (4096d0*zeta3)/81d0) + (13954d0*zeta3)/81d0 + (30212d0*zeta2*zeta3)/27d0 - (244d0*zeta3**2)/3d0 & + Nf**2*(2800d0/19683d0 - (496d0*zeta2)/81d0 - (3712d0*zeta3)/729d0 - (88d0*zeta4)/81d0) & + (12796d0*zeta4)/9d0 + Lmu**2*(-302d0 + Nf**2*(-8d0/27d0 - (80d0*zeta2)/27d0) - (26476d0*zeta2)/27d0 & + Nf*(340d0/9d0 + (7744d0*zeta2)/81d0 - (32d0*zeta3)/9d0) + (112d0*zeta3)/3d0 + (12800d0*zeta4)/27d0) & + Lmu*(-5947d0/27d0 - (232612d0*zeta2)/81d0 + Nf**2*(428d0/729d0 - (560d0*zeta2)/81d0 - (32d0*zeta3)/81d0) & + (35200d0*zeta3)/27d0 + (15680d0*zeta2*zeta3)/27d0 + Nf*(6496d0/243d0 + (80536d0*zeta2)/243d0 & - (112d0*zeta3)/3d0 - (1064d0*zeta4)/9d0) + (3364d0*zeta4)/3d0 - (4960d0*zeta5)/9d0) & + Nf*(212644d0/6561d0 + (224116d0*zeta2)/729d0 + (83452d0*zeta3)/729d0 - (5960d0*zeta2*zeta3)/81d0 & - (1988d0*zeta4)/81d0 - (8144d0*zeta5)/81d0) - (1576d0*zeta5)/3d0 - (59468d0*zeta6)/81d0 & - 578966d0/2187d0 - (667234d0*zeta2)/243d0) end if end if end if end function C_q_q_delta !!!!!coefficient function g<-g delta-part pure function C_g_g_delta(alpha,Nf,Lmu) real(dp),intent(in)::Nf,alpha,Lmu real(dp)::C_g_g_delta C_g_g_delta=1d0 if(order_global>=1) then !(checked 27.02.19 AV) (27.06.22 AV) C_g_g_delta=C_g_g_delta+alpha*(-3d0*zeta2+(-11d0+2d0/3d0*Nf)*Lmu) if(order_global>=2) then !--- C_g_g_delta=C_g_g_delta+alpha*alpha*(& -112d0 - 56d0*(Nf**2)/81d0 - 201d0*zeta2/2d0 - 72d0*(Lmu**2)*zeta2 + Lmu*(-96d0 + 32d0*Nf/3d0 & - 108d0*zeta3) + Nf*(548d0/27d0 + 5d0*zeta2 - 28d0*zeta3/3d0) + 154d0*zeta3 + 225d0*zeta4/4d0) !!+ 2385d0*zeta4/4d0 if(order_global>=3) then C_g_g_delta=C_g_g_delta+alpha**3*(& -698456d0/243d0 - (213865d0*zeta2)/54d0 + Nf**3*(-752d0/2187d0 + (16d0*zeta3)/27d0) & + (1489d0*zeta3)/9d0 - 576d0*Lmu**3*zeta3 + 429d0*zeta2*zeta3 + 2337d0*zeta3**2 & + Nf**2*(-73577d0/2187d0 - (200d0*zeta2)/81d0 - (368d0*zeta3)/81d0 - (20d0*zeta4)/9d0) & + (15395d0*zeta4)/4d0 + Lmu**2*(-561d0 - (38d0*Nf**2)/9d0 - 3216d0*zeta2 + Nf*(311d0/3d0 & + 160d0*zeta2) + 2700d0*zeta4) - 2046d0*zeta5 + Nf*(1033259d0/1458d0 + (27305d0*zeta2)/81d0 & - (17762d0*zeta3)/81d0 + (122d0*zeta2*zeta3)/3d0 - (2767d0*zeta4)/18d0 + (556d0*zeta5)/9d0) & + Lmu*(-4597d0/2d0 + (112d0*Nf**3)/243d0 - (8855d0*zeta2)/2d0 - 3130d0*zeta3 & + 3780d0*zeta2*zeta3 + Nf**2*(-4471d0/162d0 - (10d0*zeta2)/3d0 + (56d0*zeta3)/9d0) & + Nf*(25175d0/54d0 + (904d0*zeta2)/3d0 + (104d0*zeta3)/3d0 - (15d0*zeta4)/2d0) & + (495d0*zeta4)/4d0 + 2160d0*zeta5) - (28783d0*zeta6)/16d0) end if end if end if end function C_g_g_delta !!!!!coefficient function q<-q singular-part (1/(1-x)_+,(Log(1-x)/(1-x))_+) subroutine Set_CoeffSing1_q_q(alpha,Nf,Lmu) real(dp),intent(in)::Nf,alpha,Lmu real(dp)::s1,s2,s3 s1=0d0!!!coeff 1/(1-x) s2=0d0!!!coeff log(1-x)/(1-x) s3=0d0!!!coeff log(1-x)^2/(1-x) if(order_global>=1) then !(checked 27.02.19 AV) (27.06.22 AV) s1=s1+alpha*(-16d0/3d0*Lmu) if(order_global>=2) then !(checked 27.02.19 AV) (27.06.22 AV) s1=s1+alpha*alpha*(& -3232d0/27d0 + 448d0*Nf/81d0 + (Lmu**2)*(-8d0 + 16d0*Nf/9d0) + & Lmu*(-1072d0/9d0 + 160d0*Nf/27d0 + 352d0*zeta2/9d0) + 112d0*zeta3) s2=s2+alpha*alpha*(256d0/9d0*Lmu**2) if(order_global>=3) then s1=s1+alpha**3*(& -1188116d0/243d0 + (89632d0*zeta2)/81d0 + Lmu**3*(-208d0/9d0 + (320d0*Nf)/27d0 & - (64d0*Nf**2)/81d0 + (2048d0*zeta2)/27d0) + Lmu**2*(-9280d0/9d0 - (320d0*Nf**2)/81d0 & + Nf*(4112d0/27d0 - (1280d0*zeta2)/27d0) + 512d0*zeta2 - (256d0*zeta3)/9d0) & + Nf**2*(-7424d0/2187d0 - (128d0*zeta3)/27d0) + (49312d0*zeta3)/9d0 - (2560d0*zeta2*zeta3)/3d0 & + Lmu*(-961208d0/243d0 - (1600d0*Nf**2)/243d0 + (49312d0*zeta2)/27d0 + Nf*(321104d0/729d0 & - (7360d0*zeta2)/81d0 - (5504d0*zeta3)/81d0) + (37760d0*zeta3)/27d0 - (34592d0*zeta4)/27d0) & + Nf*(332632d0/729d0 - (11680d0*zeta2)/243d0 - (15712d0*zeta3)/81d0 - (16d0*zeta4)/9d0) & + 616d0*zeta4 - 2304d0*zeta5) s2=s2+alpha**3*(Lmu**3*(1792d0/9d0 - (512d0*Nf)/27d0) + Lmu**2*(34304d0/27d0 - (5120d0*Nf)/81d0 & - (10240d0*zeta2)/27d0) + Lmu*(103424d0/81d0 - (14336d0*Nf)/243d0 - (3584d0*zeta3)/3d0)) s3=alpha**3*((-2048d0*Lmu**3)/27d0) end if end if end if CoeffSing1_q_q=(/s1,s2,s3/) end subroutine Set_CoeffSing1_q_q !!!!!coefficient function g<-g singular-part (1/(1-x)_+,(Log(1-x)/(1-x))_+) subroutine Set_CoeffSing1_g_g(alpha,Nf,Lmu) real(dp),intent(in)::Nf,alpha,Lmu real(dp)::s1,s2,s3 s1=0d0!!!coeff 1/(1-x) s2=0d0!!!coeff log(1-x)/(1-x) s3=0d0!!!coeff log(1-x)^2/(1-x) if(order_global>=1) then !(checked 27.02.19 AV) (27.06.22 AV) s1=s1+alpha*(-12d0)*Lmu if(order_global>=2) then !(checked 27.02.19 AV) (27.06.22 AV) s1=s1+alpha*alpha*(& -808d0/3d0 + (Lmu**2)*(66d0 - 4d0*Nf) + 112d0*Nf/9d0 +& Lmu*(-268d0 + 40d0*Nf/3d0 + 108d0*zeta2) + 252d0*zeta3) ! s2=s2+alpha*alpha*144d0*(Lmu**2) if(order_global>=3) then !(checked 27.02.19 AV) (27.06.22 AV) s1=s1+alpha**3*(& -297029d0/27d0 + (8816d0*zeta2)/3d0 + Lmu**3*(242d0 - (88d0*Nf)/3d0 + (8d0*Nf**2)/9d0 + 864d0*zeta2) & + Nf**2*(-1856d0/243d0 - (32d0*zeta3)/3d0) + 12328d0*zeta3 - 2340d0*zeta2*zeta3 & + Lmu**2*(540d0 + Nf*(-52d0 - 12d0*zeta2) + 198d0*zeta2 + 1296d0*zeta3) & + Lmu*(-18086d0/3d0 + (16d0*Nf**2)/9d0 + 5226d0*zeta2 + 132d0*zeta3 + Nf*(4484d0/9d0 & - 260d0*zeta2 + 152d0*zeta3) - 3591d0*zeta4) + Nf*(83158d0/81d0 - (1160d0*zeta2)/9d0 & - (3928d0*zeta3)/9d0 - 4d0*zeta4) + 1386d0*zeta4 - 5184d0*zeta5) ! s2=s2+alpha**3*(Lmu**2*(6432d0 - 320d0*Nf - 2160d0*zeta2) + Lmu*(6464d0 - (896d0*Nf)/3d0 - 6048d0*zeta3)) s3=alpha**3*(-864d0*Lmu**3) end if end if end if CoeffSing1_g_g=(/s1,s2,s3/) end subroutine Set_CoeffSing1_g_g !!!!!coefficient function q->q subroutine Set_Coeff_q_q(alpha,Nf,Lmu) real(dp),intent(in)::alpha,Nf,Lmu real(dp),dimension(1:36)::inter !! the Leading order is always zero, therefore calculation should be done only for order >=1 Coeff_q_q=0d0 ! if(order_global>=1) then !(checked 27.02.19 AV) (27.06.22 AV) Coeff_q_q=Coeff_q_q+alpha*(/& 0d0,0d0,0d0, 0d0, 0d0,& !Log[1-z], log[1-z]^2, log[1-z]^3, log[1-z]^4, log[1-z]^5 !exact 0d0,0d0,0d0,0d0,0d0,0d0,& !1/z, log[z]/z, Log[z]^2/z, Log[z]^3/z, Log[z]^4/z, Log[z]^5/z !exact 16d0/3d0,0d0,0d0,0d0, 0d0,& !Log[z], log[z]^2, Log[z]^3, log[z]^4, Log[z]^5 !exact 8d0/3d0*(1d0+Lmu),8d0/3d0*(Lmu-5d0), 0d0,& 32d0/3d0, 0d0, 0d0,& -16d0/3d0, 0d0, 0d0,& 0d0, 0d0, 0d0, 0d0, 0d0, 0d0,& 0d0, 0d0, 0d0, 0d0, 0d0/) !------The kernels are calculated in mathematica if(order_global>=2) then !(checked 27.02.19 AV) inter(1:16)=(/& -200d0/9d0 + 256d0*Lmu/3d0 - 256d0*(Lmu**2)/9d0, &!Log[1-z] 64d0/9d0, & !log[1-z]^2 0d0, 0d0, 0d0, & !Log^2[1-z], log[1-z]^3, log[1-z]^4 !exact 0d0,0d0,0d0,0d0,0d0,0d0,& !1/z, log[z]/z, Log[z]^2/z, Log[z]^3/z !exact 1496d0/9d0-32d0*(Lmu**2)/9d0+Lmu*(248d0/9d0-16d0*Nf/9d0)-8d0*Nf-560d0*zeta2/9d0,&!Log[z] -130d0/9d0+88d0*Lmu/9d0+4d0*Nf/9d0, & !Log^2[z] -140d0/27d0, 0d0, 0d0/) !Log[z], log[z]^2, Log[z]^3 !exact inter(17:36)=& (/ -0.888888888888889d0, -0.888888888888889d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0& /)*Nf*Lmu**2& + & (/ -1.185185185185185d0, -1.185185185185185d0, 0d0, -3.555555555555556d0, & 0d0, 0d0, 1.777777777777778d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0, 0d0& /)*Nf*Lmu& + & (/ -3.654320987654321d0, 7.01234567901235d0, 0d0, -8.888888888888889d0, & 0.8888888888888889d0, 0d0, 8.d0, -0.4444444444444444d0, & 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0& /)*Nf& + & (/ -3.111111111111111d0, 25.33333333333333d0, 0d0, -14.22222222222222d0, & 0d0, 0d0, 10.66666666666667d0, 0d0, 0d0, 0d0, 0d0, 14.22222222222222d0, & 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0& /)*Lmu**2 & + & (/ -10.83426619614309d0, 70.9435115816347d0, 0d0, -5.333333333333333d0, & 40.88888888888889d0, 0d0, -24.d0, -31.11111111111111d0, 0d0, & 0d0, 0d0, -56.88888888888889d0, 0d0, 0d0, 0d0, 0d0, & 42.66666666666667d0, 42.66666666666667d0, -42.66666666666667d0, 0d0& /)*Lmu & + & (/ -126.3853088284307d0, -17.288496146375d0, 457.8573648571505d0, -11.376584400133861d0, & -33.026470960317d0, -29.01610383405676d0, 324.6919301289853d0, 17.477762066110003d0, & 23.805124211514354d0, -196.35241508570232d0, 20.87694875005565d0, 290.64815320800926d0, & -0.4394514401811413d0, -0.00127664405525959d0, 37.496309830013715d0, -3.1454576814270183d0, & -49.19558150692296d0, 85.96887438889961d0, 153.36042722188085d0, 62.22115690085759d0/) Coeff_q_q=Coeff_q_q+alpha*alpha*inter if(order_global>=3) then inter(1:16)=(/& 347680d0/243d0 + Lmu**3*(-7424d0/27d0 + (512d0*Nf)/27d0) - (43712d0*zeta2)/81d0 & + Nf*(-42736d0/729d0 + (3568d0*zeta2)/81d0) + Lmu**2*(-21248d0/27d0 + (512d0*Nf)/81d0 & + (10240d0*zeta2)/27d0) - (5792d0*zeta3)/3d0 + Lmu*(130672d0/81d0 - (20704d0*Nf)/243d0 & - (2048d0*zeta2)/3d0 + (3584d0*zeta3)/3d0),& 7400d0/81d0 - (8192d0*Lmu**2)/27d0 + (2048d0*Lmu**3)/27d0 + Lmu*(6656d0/27d0 & - (256d0*Nf)/27d0) - (280d0*Nf)/27d0 - (1672d0*zeta2)/27d0, & 2816d0/81d0 - (1024d0*Lmu)/27d0 - (512d0*Nf)/243d0, & 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, & 1361368d0/243d0 + (2144d0*Nf**2)/243d0 + Lmu**3*(-928d0/27d0 + (64d0*Nf)/27d0) & + Lmu**2*(920d0/27d0 - (1856d0*Nf)/81d0 + (32d0*Nf**2)/27d0 - (512d0*zeta2)/27d0) & - (265888d0*zeta2)/81d0 + Lmu*(243632d0/81d0 + (512d0*Nf**2)/81d0- (6112d0*zeta2)/9d0 & + Nf*(-69104d0/243d0 + (1216d0*zeta2)/27d0) - 224d0*zeta3) + Nf*(-467728d0/729d0 & + (39776d0*zeta2)/243d0 - (640d0*zeta3)/27d0) + (5072d0*zeta3)/81d0 + (204928d0*zeta4)/81d0,& -11464d0/9d0 - (128d0*Lmu**3)/81d0 + Lmu**2*(872d0/9d0 - (176d0*Nf)/27d0) - (592d0*Nf**2)/243d0 & + Lmu*(10976d0/27d0 + (320d0*Nf)/81d0 - (32d0*Nf**2)/27d0 - (2240d0*zeta2)/27d0) & - (640d0*zeta2)/81d0 + Nf*(23272d0/243d0 + (304d0*zeta2)/27d0) + (17440d0*zeta3)/81d0, & -75028d0/243d0 + (448d0*Lmu**2)/81d0 + (3328d0*Nf)/729d0 + (112d0*Nf**2)/243d0 & + Lmu*(-4552d0/81d0 + (304d0*Nf)/81d0) + (12512d0*zeta2)/243d0, & -422d0/243d0 - (370d0*Lmu)/81d0 - (4d0*Nf)/27d0, & 134d0/405d0/) inter(17:36)=& (/ 0.395061728395062d0, 0.395061728395062d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0 & /)*Nf**2*Lmu**3 & + & (/ 0.790123456790123d0, 0.790123456790123d0, 0d0, 2.370370370370370d0, & 0d0, 0d0, -1.185185185185185d0, 0d0, & 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0 & /)*Nf**2*Lmu**2 & + & (/ -0.658436213991770d0, -0.658436213991770d0, 0.000006646661665956256d0, 7.901252623191405d0, & -2.370369393039824d0, 0.0000001051287377209631d0, -6.320984680374406d0, 1.185183653784385d0, & -0.0000001040493847583887d0, -0.000004388019163816241d0, 0.0000005803783465894928d0, 0.0000210610298627657d0, & 0.00000005367329796056104d0, -0.0000000001165564763461417d0, 0.00000128081294438327d0, -0.00000005629717700258444d0, & 0.00001486726713632128d0, 0.00001026801319586006d0, 0.0000007726427697087596d0, 0.000004317723336688416d0 & /)*Nf**2*Lmu & + & (/ 1.649502965696999d0, 1.122753994503583d0, 0.00001823720067355565d0, 6.321034058160635d0, & -3.292178686368146d0, 0.921810927344545d0, -8.82303646597564d0, 2.436210114120259d0, & -0.460905575256123d0, -0.00001175111518140113d0, 0.000001550290154123572d0, 0.00005497828785022403d0, & 0.000000137813218278815d0, -0.0000000003001551839516394d0, 0.000003331211735256033d0, -0.0000001445675118615718d0, & 0.00003792360810804984d0, 0.00002662888660677162d0, 0.000002519834465779048d0, 0.00001122862903817708d0 & /)*Nf**2 & + & (/ -1.185185185185185d0, -20.14814814814815d0, 0d0, 9.481481481481481d0, & 0d0, 0d0, -7.111111111111111d0, 0d0, & 0d0, 0d0, 0d0, -9.481481481481481d0, & 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0 & /)*Nf*Lmu**3 & + & (/ 27.23794331294561d0, -97.6015628598939d0, 0d0, -3.950617283950617d0, & -27.25925925925926d0, 0d0, 4.740740740740741d0, 20.74074074074074d0, & 0d0, 0d0, 0d0, -7.901234567901235d0, & 0d0, 0d0, 0d0, 0d0, & -28.44444444444444d0, -28.44444444444444d0, 28.44444444444444d0, 0d0 & /)*Nf*Lmu**2 & + & (/ 180.1084175723685d0, -245.8094598286008d0, -241.0425642824332d0, -156.5582318048157d0, & -6.081364713071015d0, 21.15677343468357d0, -28.66596318600849d0, 45.75127400615632d0, & -17.3876329711481d0, 122.8797470606384d0, -12.78377412797905d0, -144.3955152674698d0, & 0.916059677415882d0, 0.001049351119511121d0, -40.19547657095027d0, 3.848957873348752d0, & 0.2375155392967963d0, -192.4660943680877d0, -27.22661741124765d0, -43.19184587535115d0 & /)*Nf*Lmu & + & (/ 224.5632837520682d0, -38.8171541898427d0, -1739.064804229186d0, 2148.88101586926d0, & 519.5338320734754d0, 135.7207359673928d0, -1864.69754582409d0, -369.5892119238029d0, & -142.8782204760399d0, 456.800692339773d0, -34.5320042240207d0, 686.07164398811d0, & -4.444420013467424d0, 1.056805481674338d0, 32.65862850323677d0, 0.977487438124628d0, & 2201.287887314699d0, 707.854792341094d0, -1024.899816578233d0, 114.5268315517728d0 & /)*Nf & + & (/ -150.7636565436621d0, 148.6590280656929d0, -21.29097314204883d0, -152.3072584481715d0, & -12.30437452642475d0, 0.1767046945230637d0, 112.0562612182513d0, 11.65293957935564d0, & -0.1758147499739741d0, 8.159427190277d0, -0.905782415992485d0, 160.0269041677232d0, & -37.94781893263169d0, 0.00004259433166843154d0, -0.527055363432896d0, 0.02286439735345148d0, & -45.11158158383627d0, -59.09630887089385d0, 23.58938336385421d0, -3.187774019456777d0 & /)*Lmu**3 & + & (/ -579.675025157712d0, 1513.187936819728d0, -2854.114915084704d0, -10442.38400870205d0, & 734.5175450719109d0, 116.4416056816371d0, 1651.708054026545d0, -428.1084737061445d0, & -110.5706118713186d0, 2038.688654819524d0, -210.1917201882055d0, -8475.06816964152d0, & 69.69984660195378d0, 0.02853693631991892d0, -1099.595361465606d0, 120.592270967213d0, & 848.007772537267d0, -3628.955404266093d0, -3890.548906092623d0, -1049.703002827976d0 & /)*Lmu**2 & + & (/ -2023.470520476187d0, 1378.804183835033d0, -20008.67622378371d0, 57978.38628205719d0, & 12181.58412298762d0, 2737.561862207436d0, -33150.70798716165d0, -10819.09037758744d0, & -2619.72349444805d0, 509.9388635163218d0, 294.8075974462912d0, 33531.54770027113d0, & -140.1473006675752d0, 18.91718762865996d0, 3864.586363669312d0, -270.7379415556374d0, & 78870.27267736225d0, 32632.89228244875d0, -33000.69051736807d0, 6629.349785184928d0 & /)*Lmu & + & (/ 241.5165309840164d0, -1938.094559073414d0, -92103.9637009004d0, 206938.7974251147d0, & 51620.75140731967d0, 14643.72991050662d0, -122316.2209010014d0, -44169.80991426136d0, & -13704.55994625964d0, 2321.777657850387d0, 1941.917129722069d0, 114823.7834678573d0, & 375.9174158027219d0, -43.68740314379325d0, 12950.02236176927d0, -358.4528971923611d0, & 398389.0709057566d0, 128964.8773491693d0, -189773.7471494758d0, 21607.05629109171d0 & /) Coeff_q_q=Coeff_q_q+alpha**3*inter end if end if end if end subroutine Set_Coeff_q_q !!!!!coefficient function q->g subroutine Set_Coeff_q_g(alpha,Nf,Lmu) real(dp),intent(in)::alpha,Nf,Lmu real(dp),dimension(36)::inter !! the Leading order is always zero, therefore calculation should be done only for order >=1 Coeff_q_g=0d0 if(order_global>=1) then !(checked 27.02.19 AV) Coeff_q_g=Coeff_q_g+alpha*(/& 0d0,0d0,0d0,0d0,0d0,& !Log[1-z], log[1-z]^2, log[1-z]^3 !exact -16d0/3d0*Lmu,32d0/3d0,0d0,0d0,0d0,0d0,& !1/z, log[z]/z, Log[z]^2/z, Log[z]^3/z !exact -32d0/3d0,0d0,0d0,0d0,0d0,& !Log[z], log[z]^2, Log[z]^3 !exact 16d0/3d0*Lmu,8d0/3d0*(1d0-Lmu), 0d0,& ! 0d0, 0d0, 0d0,& 16d0/3d0, 0d0, 0d0,& 0d0, 0d0, 0d0, 0d0, 0d0, 0d0,& 0d0, 0d0, 0d0, 0d0, 0d0/) !------The kernels are calculated in mathematica if(order_global>=2) then inter(1:16)=(/& -40d0/9d0 - 128d0*Lmu/9d0 + 208d0*(Lmu**2)/9d0 - 80d0*zeta2/3d0, & -40d0/9d0 + 80d0*Lmu/9d0, & 40d0/27d0, 0d0, 0d0,& !Log[1-z], log[1-z]^2, log[1-z]^3 !exact 12512d0/27d0 - 248d0*(Lmu**2)/3d0 + Lmu*(112d0/3d0 - 64d0*zeta2) - 352d0*zeta2/3d0 - 352d0*zeta3,& 400d0/3d0 + 992d0*Lmu/3d0 - 32d0*Lmu**2, & -848d0/3d0 + 128d0*Lmu, & -320d0/3d0, 0d0, 0d0, & !1/z, log[z]/z, Log[z]^2/z, Log[z]^3/z !exact 1144d0/3d0 - 64d0*Lmu - 224d0*(Lmu**2)/9d0, 64d0/3d0 + 224d0*Lmu/3d0, -1232d0/27d0, 0d0, 0d0/) !! adding approximate part inter(17:36)=& (/ 24.88888888888889d0, 63.1111111111111d0, -10.66666666666667d0, 0d0, & 0d0, 0d0, -35.55555555555556d0, 0d0, & 0d0, 0d0, 0d0, -23.11111111111111d0, & 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 46.22222222222222d0 & /)*Lmu**2 & + & (/ -112.0000000000000d0, 50.6925128318890d0, 1172.292645867259d0, -1634.076478411569d0, & 355.6744240132547d0, 41.95910256399803d0, 2291.78782808891d0, -339.1244317449503d0, & -41.70046206749001d0, -789.7152916122896d0, 112.7443660468996d0, 982.00128181958d0, & 31.05575175091441d0, -0.005109919714865203d0, 253.7667122771159d0, -22.28901233909695d0, & 3549.035032468401d0, 1424.375201893528d0, -1784.437635831888d0, 242.4000943500821d0 & /)*Lmu & + & (/ 848.868057025367d0, -681.035773803485d0, 10356.41248501491d0, 12093.05458031778d0, & 92.80067909259d0, -95.9817145324191d0, 8187.34804913428d0, -754.3989654812444d0, & 6.211685352625884d0, -5743.667882947058d0, 731.6907868928562d0, 18595.76351962874d0, & 73.37773229763224d0, 1.37991615985907d0, 1213.030005642114d0, -54.41561517874279d0, & 8894.02936156517d0, 8619.91197172082d0, 2818.181932623188d0, 3288.617186218982d0 /) Coeff_q_g=Coeff_q_g+alpha*alpha*inter !------The kernels are calculated in mathematica if(order_global>=3) then inter(1:16)=(/& -442792d0/729d0 + Lmu**3*(1904d0/27d0 - (544d0*Nf)/81d0) - (80272d0*zeta2)/81d0 & + Lmu**2*(7088d0/9d0 - (1696d0*Nf)/81d0 + (4160d0*zeta2)/9d0) + Lmu*(1184d0/3d0 & - (18416d0*zeta2)/27d0 + Nf*(-496d0/81d0 + (416d0*zeta2)/9d0) - (13088d0*zeta3)/27d0) & + (15824d0*zeta3)/81d0 + Nf*(82672d0/2187d0 + (2912d0*zeta2)/81d0 + (224d0*zeta3)/9d0) & + (1280d0*zeta4)/9d0, & 12484d0/243d0 - (8512d0*Lmu**3)/81d0 + Lmu**2*(1864d0/27d0 - (80d0*Nf)/27d0) - (19784d0*zeta2)/81d0 & + Nf*(1016d0/729d0 + (496d0*zeta2)/27d0) + Lmu*(9520d0/27d0 - (800d0*Nf)/81d0 + (2560d0*zeta2)/9d0) & - (10480d0*zeta3)/81d0, & 14120d0/243d0 - (2080d0*Lmu**2)/27d0 + Lmu*(1360d0/27d0 - (160d0*Nf)/81d0) - (1360d0*Nf)/729d0 & + (8000d0*zeta2)/243d0, & 1930d0/243d0 - (1840d0*Lmu)/81d0 - (100d0*Nf)/243d0, & -200d0/81d0,& -14047804d0/243d0 + (26528d0*zeta2)/27d0 + Lmu**3*(-5128d0/3d0 + (8432d0*Nf)/243d0 + (2816d0*zeta2)/9d0) & + Lmu**2*(155872d0/27d0 - (24064d0*zeta2)/9d0 + Nf*(-248d0/243d0 + (128d0*zeta2)/3d0) - (29632d0*zeta3)/27d0) & - (1396720d0*zeta3)/81d0 + (520192d0*zeta2*zeta3)/81d0 + (735304d0*zeta4)/27d0 + Nf*(-304640d0/6561d0 & + (17312d0*zeta2)/243d0 + (24704d0*zeta3)/81d0 + (2336d0*zeta4)/27d0) + Lmu*(1192312d0/243d0 & - (224576d0*zeta2)/27d0 - (153280d0*zeta3)/27d0 + Nf*(-8200d0/243d0 + (24448d0*zeta2)/81d0 + (21760d0*zeta3)/81d0) & + (37376d0*zeta4)/27d0) + (1105024d0*zeta5)/27d0, & -4469696d0/243d0 + Lmu**3*(-2048d0/3d0 + (1088d0*Nf)/81d0) + Lmu**2*(9952d0 - (10976d0*Nf)/81d0 - (6784d0*zeta2)/3d0) & + (960256d0*zeta2)/81d0 + Nf*(-343600d0/729d0 - (34624d0*zeta2)/81d0 - (26240d0*zeta3)/81d0) + Lmu*(-357616d0/27d0 & + Nf*(-1328d0/243d0 - (2432d0*zeta2)/27d0) + (59968d0*zeta2)/9d0 - (3584d0*zeta3)/27d0) + (327680d0*zeta3)/27d0 & + (1556608d0*zeta4)/81d0, & 722368d0/81d0 - 64d0*Lmu**3 + Lmu**2*(3744d0 - (1600d0*Nf)/27d0) - (117568d0*zeta2)/27d0 + Nf*(-56560d0/243d0 & + (3328d0*zeta2)/27d0) + Lmu*(-49360d0/3d0 + (11200d0*Nf)/81d0 + (12544d0*zeta2)/3d0) + (382592d0*zeta3)/81d0, & 243776d0/27d0 + 384d0*Lmu**2 - (17152d0*Nf)/243d0 + Lmu*(-19072d0/3d0 + (6272d0*Nf)/81d0) - (59648d0*zeta2)/27d0, & 31264d0/9d0 - 704d0*Lmu - (8768d0*Nf)/243d0, & 384d0,& -15084496d0/729d0 + Lmu**3*(-224d0 + (320d0*Nf)/81d0) + Lmu**2*(-42592d0/27d0 + (6272d0*Nf)/81d0 - (20992d0*zeta2)/27d0) & - (118832d0*zeta2)/27d0 + Lmu*(-488d0/9d0 - (111184d0*zeta2)/27d0 + Nf*(624d0 + (2048d0*zeta2)/9d0) & - (139520d0*zeta3)/27d0) + Nf*(-61760d0/2187d0 + (5968d0*zeta2)/9d0 - (7936d0*zeta3)/81d0) & + (640768d0*zeta3)/81d0 + (1123832d0*zeta4)/81d0, & 468728d0/81d0 + Lmu**2*(19040d0/27d0 - (320d0*Nf)/27d0) + Lmu**3*(4288d0/81d0 - (128d0*Nf)/27d0) & + Nf*(-119776d0/243d0 - (3328d0*zeta2)/9d0) + (597520d0*zeta2)/81d0 + Lmu*(-30704d0/27d0 + 160d0*Nf & + (1072d0*zeta2)/9d0) + (192320d0*zeta3)/81d0, & 275248d0/243d0 - (97408d0*Nf)/729d0 + Lmu**2*(-17152d0/81d0 + (512d0*Nf)/27d0) + Lmu*(-46064d0/81d0 & + (2464d0*Nf)/81d0) + (114160d0*zeta2)/243d0,& 12128d0/81d0 + Lmu*(20368d0/81d0 - (608d0*Nf)/27d0) - (1984d0*Nf)/81d0, & -36448d0/405d0 + (1088d0*Nf)/135d0/) !! adding approximate part inter(17:36)=(/& -39.5061728395062d0, 2.4362139917695d0, 4.477366255144033d0, 0d0, & 0d0, 0d0, 1.580246913580247d0, 2.370370370370370d0, & 0d0, 0d0, 0d0, 6.716049382716049d0, & 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, -13.43209876543210d0 & /)*Nf*Lmu**3 & + & (/ -94.7462477470832d0, 60.9925983718335d0, -402.7543369400545d0, 563.1095484979481d0, & -118.6392754103136d0, -14.06948319574519d0, -931.950506744753d0, 159.4127761086216d0, & 4.50137807217051d0, 272.6598197657955d0, -37.06742959873558d0, -294.8342388102304d0, & -10.34175381633058d0, 0.001683440133333974d0, -84.3231284596963d0, 7.41905455083984d0, & -1186.44133757814d0, -473.3843157692066d0, 600.0652595234989d0, -130.7648189212868d0 & /)*Nf*Lmu**2 & + & (/ 27.90176236251998d0, -576.314978027694d0, 52331.43664917138d0, -88937.065324927d0, & -21885.79856102572d0, -6809.973010347166d0, 69803.66296477706d0, 17054.1019453812d0, & 6411.367736631225d0, -7113.765946542411d0, -141.6033277182562d0, -32433.76530334356d0, & -157.4006898416644d0, -1.694198688767325d0, -4463.097292702729d0, 143.2982974472474d0, & -156130.5526062531d0, -47850.77816493929d0, 81021.679641728d0, -5040.586823324242d0 & /)*Nf*Lmu & + & (/ -195.2143315627602d0, -249.684211470751d0, 694813.7901407169d0, -1309002.336505629d0, & -309712.4994413114d0, -89698.1970419772d0, 915174.221890104d0, 264666.9293217459d0, & 86901.0118625728d0, -72809.89804603783d0, -4761.257131869202d0, -676975.3323359747d0, & -2489.146897906335d0, 10.18478186972605d0, -74744.89268098189d0, 2725.60563803361d0, & -2259105.919338529d0, -757087.644033478d0, 1070886.331137086d0, -120967.8965888338d0 & /)*Nf & + & (/ 1112.129085571333d0, 287.382887105342d0, 318.986340291904d0, -13688.28993954358d0, & 294.2864269281446d0, 69.4343808556498d0, 7479.523043572333d0, -274.2035482949935d0, & -69.03665413806086d0, 1723.914083675291d0, -153.6969168976626d0, -8996.15281416407d0, & -372.7296762837818d0, 0.07630795184609163d0, -2130.023194331339d0, 269.4360405606308d0, & 4611.371141068274d0, -6356.956569032511d0, -4607.710911604733d0, 460.8016544696405d0 & /)*Lmu**3 & + & (/ 88.0001806474415d0, -554.316431748592d0, -17490.16301406013d0, -105270.6320149402d0, & 14604.94414764404d0, 2498.924750897689d0, 51701.003293862d0, -15044.08508156181d0, & -1773.555203617338d0, 4265.152608840256d0, -176.8253685270781d0, -52639.63885069622d0, & 15.87994034980141d0, -75.42873607273132d0, -843.645865262513d0, -259.6765377295376d0, & 113608.0454458143d0, 4815.710614481128d0, -84233.4980240564d0, 5122.234463898707d0 & /)*Lmu**2 & + & (/ -2898.239089727381d0, 11796.74657932397d0, -6709107.101014003d0, 1251833.027398668d0, & 2129514.14143842d0, 679574.0155882386d0, -6236329.426409709d0, -1516155.858376501d0, & -640350.1890947426d0, 1876101.340282979d0, -124149.7547059303d0, -3395971.877385121d0, & -22397.67991092111d0, 472.7626249836995d0, -86163.9393799184d0, 30696.52833128749d0, & 13119779.84014492d0, 1804145.6185806d0, -9692308.64253736d0,-931258.418909355d0 & /)*Lmu & + & (/ -36247.35239293123d0, 27970.83834163821d0, -91700003.2432001d0, 173212749.874713d0, & 40397446.74699754d0, 11736754.19560485d0, -121535271.7418424d0, -34442681.04637739d0, & -11361302.82440776d0, 9878896.58697324d0, 567819.1120798423d0, 88394387.4527129d0, & 344149.9125312954d0, -997.71215944967d0, 9797815.76198555d0, -367057.3176477686d0, & 294170323.7568769d0, 98745093.9157183d0, -139306184.1703019d0, 15930197.08022237d0 /) Coeff_q_g=Coeff_q_g+alpha**3*inter end if end if end if end subroutine Set_Coeff_q_g !!!!!coefficient function g->q subroutine Set_Coeff_g_q(alpha,Nf,Lmu) real(dp),intent(in)::alpha,Nf,Lmu real(dp),dimension(36)::inter !! the Leading order is always zero, therefore calculation should be done only for order >=1 Coeff_g_q=0d0 if(order_global>=1) then Coeff_g_q=Coeff_g_q+alpha*(/& 0d0,0d0,0d0,0d0,0d0,& !Log[1-z], log[1-z]^2, log[1-z]^3 !exact 0d0,0d0,0d0,0d0,0d0,0d0,& !1/z, log[z]/z, Log[z]^2/z, Log[z]^3/z !exact 2d0,0d0,0d0,0d0,0d0,& !Log[z], log[z]^2, Log[z]^3 !exact -Lmu,0d0, 2d0*(1d0+Lmu),& ! 0d0, 0d0, 0d0,& 0d0, 0d0, 0d0,& -4d0, 0d0, 0d0, 0d0, 0d0, 0d0,& 0d0, 0d0, 0d0, 0d0, 0d0/) if(order_global>=2) then inter(1:16)=(/& -44d0/3d0 + (26d0*Lmu**2)/3d0 + (10d0*Nf)/9d0 + Lmu*(-14d0 + (4d0*Nf)/3d0) + 10d0*zeta2, & -7d0/2d0 - (10d0*Lmu)/3d0 + Nf/3d0, & -5d0/9d0, 0d0, 0d0, & -148d0/9d0 - 4d0*Lmu + 4d0*Lmu**2 + 8d0*zeta2, & 8d0 - 16d0*Lmu,& 16d0, 0d0, 0d0, 0d0,& -157d0/3d0 + 10d0*Lmu + (14d0*Lmu**2)/3d0 - (10d0*Nf)/3d0 - (100d0*zeta2)/3d0, & -73d0/3d0 - 14d0*Lmu + Nf/3d0, & 77d0/9d0, 0d0, 0d0/) !! adding approximate part inter(17:36)=& (/ 2.222222222222222d0, 0.d0, -3.111111111111111d0, 0d0, & 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, -2.666666666666667d0, 0d0, & 0d0, 0d0, 0d0, 0d0 & /)*Nf*Lmu & + & (/ -1.215794059622379d0, 0d0, 34.59854686788562d0, 172.0354591354246d0, & -1.071417919816238d0, -0.7835833535773114d0, -30.52704104632661d0, -3.489090918240755d0, & 0.7796161540187825d0, -18.67690566408815d0, 3.791306229360859d0, 146.2490968992552d0, & 0.1408593763861849d0, -0.0002670601198483139d0, 16.19730505792535d0, -0.813632333526747d0, & 15.97709186544453d0, 70.97529088501029d0, 50.23115131690548d0, 23.36316570035092d0 & /)*Nf & + & (/ 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0 & /)*Lmu**3 & + & (/ 2.333333333333333d0, -4.333333333333333d0, 31.d0, 0d0, & 0d0, 0d0, 21.33333333333333d0, 0d0, & 0d0, 5.333333333333333d0, 0d0, 0d0, & 0d0, 0d0, -17.33333333333333d0, 0d0, & 0d0, 0d0, 0d0, 0d0 & /)*Lmu**2 & + & (/ 43.6402381150449d0, -30.603816843113d0, -603.0961385139581d0, -1331.590190083019d0, & 223.9435507792411d0, 39.85022710610476d0, 61.24449633518426d0, -277.4567047122059d0, & -39.60522850745566d0, 67.0315587097388d0, -32.23080837927475d0, -762.2077398211369d0, & -3.286864777088938d0, 0.006959323156868987d0, 174.6788103055855d0, 10.11081169037133d0, & 1272.618794495229d0, 355.4663272198425d0, -1259.003777739434d0, -267.7972686439948d0 & /)*Lmu & + & (/ -112.7283628879928d0, 136.9112562789268d0, 5702.393680429243d0, -16278.82453523954d0, & 891.39771295882d0, 78.11964387865778d0, 14371.59100807822d0, -1292.469409170783d0, & -10.72150385317866d0, -2734.539871601295d0, 416.8935791015186d0,-3409.222385706619d0, & 9.56237898125257d0, 1.113929684221592d0, -278.5432441690214d0, -1.145484592787573d0, & 9853.33838060694d0, 566.5094605848551d0, -7243.97819707409d0, -396.7228493775216d0 /) Coeff_g_q=Coeff_g_q+alpha*alpha*inter if(order_global>=3) then inter(1:16)=(/& -300818d0/243d0 + Lmu**3*(238d0/9d0 - (68d0*Nf)/27d0) + Lmu**2*(1439d0/3d0 - (176d0*Nf)/9d0 & - (4d0*Nf**2)/9d0 - (3250d0*zeta2)/9d0) + (33947d0*zeta2)/27d0 + Nf**2*(-104d0/27d0 + (28d0*zeta2)/9d0) & + Lmu*(-7730d0/27d0 - (100d0*Nf**2)/27d0 + Nf*(7832d0/81d0 - (188d0*zeta2)/9d0) + (778d0*zeta2)/3d0 & - (4276d0*zeta3)/9d0) + (1196d0*zeta3)/9d0 + Nf*(119606d0/729d0 - (10070d0*zeta2)/81d0 + (104d0*zeta3)/27d0) & - (18055d0*zeta4)/27d0, & -36032d0/81d0 - (1064d0*Lmu**3)/27d0 + Lmu**2*(329d0/3d0 - (94d0*Nf)/9d0) - (50d0*Nf**2)/27d0 + Lmu*(-983d0/6d0& + (202d0*Nf)/9d0 - (10d0*Nf**2)/9d0 - (70d0*zeta2)/3d0) + Nf*(14267d0/243d0 - (187d0*zeta2)/9d0) & + (4487d0*zeta2)/18d0 + (530d0*zeta3)/27d0, & -15263d0/162d0 + (260d0*Lmu**2)/9d0 + Lmu*(-97d0/9d0 + (22d0*Nf)/27d0) + (2734d0*Nf)/243d0 - (10d0*Nf**2)/27d0 & + (2075d0*zeta2)/81d0,& -145d0/12d0 + (10d0*Lmu)/9d0 + (175d0*Nf)/162d0, & -25d0/27d0, & 77224d0/27d0 + Lmu**3*(272d0/3d0 - (136d0*Nf)/81d0) + Lmu**2*(-718d0/3d0 - (208d0*Nf)/81d0 - (52d0*zeta2)/3d0) & - (3244d0*zeta2)/27d0 + Lmu*(-128d0/3d0 + (2764d0*zeta2)/9d0 + Nf*(-4252d0/243d0 + (272d0*zeta2)/27d0) & - 208d0*zeta3) + Nf*(25856d0/2187d0 - (3200d0*zeta2)/243d0 - (16d0*zeta3)/27d0) + (4456d0*zeta3)/9d0 - 1468d0*zeta4, & 13180d0/27d0 + 16d0*Lmu**3 + Lmu**2*(-568d0 + (272d0*Nf)/27d0) + Nf*(956d0/27d0 - (1664d0*zeta2)/81d0) & - (6152d0*zeta2)/9d0 + Lmu*(760d0 + (832d0*Nf)/81d0 + (496d0*zeta2)/3d0) + 128d0*zeta3, & -1868d0/3d0 - 96d0*Lmu**2 + Lmu*(1184d0 - (544d0*Nf)/27d0) - (2368d0*Nf)/243d0 - (880d0*zeta2)/3d0, & -7328d0/9d0 + 192d0*Lmu + (3296d0*Nf)/243d0, & -368d0/3d0, 0d0, & 8459221d0/2430d0 + Lmu**3*(110d0/9d0 + (52d0*Nf)/27d0) + Nf**2*(176d0/81d0 - (20d0*zeta2)/9d0) & - (26663d0*zeta2)/27d0 + Lmu**2*(2719d0/9d0 - (68d0*Nf)/3d0 + (4d0*Nf**2)/9d0 + (134d0*zeta2)/3d0) & + Nf*(-539438d0/3645d0 + (15694d0*zeta2)/81d0 - (448d0*zeta3)/27d0) - (1996d0*zeta3)/3d0 + Lmu*(71932d0/27d0 & + (20d0*Nf**2)/9d0 + (1240d0*zeta2)/9d0 + Nf*(-31510d0/81d0 + (328d0*zeta2)/9d0) + 440d0*zeta3) + (9433d0*zeta4)/27d0, & -209393d0/81d0 + Lmu**2*(-638d0/9d0 - (52d0*Nf)/9d0) + Lmu**3*(-268d0/27d0 + (8d0*Nf)/9d0) - (50d0*Nf**2)/27d0 & + Nf*(68147d0/243d0 - (139d0*zeta2)/27d0) - (7897d0*zeta2)/9d0 + Lmu*(-1661d0/9d0 + (233d0*Nf)/27d0 & - (10d0*Nf**2)/9d0 + (2009d0*zeta2)/9d0) - (5420d0*zeta3)/27d0, & 9101d0/162d0 + Lmu**2*(1072d0/27d0 - (32d0*Nf)/9d0) + (196d0*Nf)/243d0 + (14d0*Nf**2)/27d0 & + Lmu*(2639d0/27d0 + (94d0*Nf)/27d0) - (17410d0*zeta2)/81d0, & -2098d0/81d0 + (62d0*Nf)/81d0 + Lmu*(-1273d0/27d0 + (38d0*Nf)/9d0), & 2278d0/135d0 - (68d0*Nf)/45d0/) !! adding approximate part inter(17:36)=& (/ -0.7407407407407407d0, 0d0, 1.481481481481481d0, 0d0, & 0d0, 0d0, 0d0, 0d0, & 0d0, -0.888888888888889d0, 0d0, 0d0, & 0d0, 0d0, 0.888888888888889d0, 0d0, & 0d0, 0d0, 0d0, 0d0 & /)*Nf**2*Lmu**2 & + & (/ 0.5636157928346723d0, 0d0, -23.75704876605342d0, -114.690286864508d0, & 0.7142792957647252d0, 0.5223889472233316d0, 20.35136346704535d0, 2.326059361865037d0, & -0.5197441470014602d0, 10.67348817847094d0, -0.7497591280594782d0, -97.4993763040082d0, & -0.093906196615571d0, 0.0001780399645960984d0, -6.650053954782045d0, 2.320199276547002d0, & -10.65138155864157d0, -47.31685060018418d0, -33.4874320212375d0, -15.57543933080464d0 & /)*Nf**2*Lmu & + & (/ 3.414337658359456d0, 0d0, -84.0542753273584d0, 59.3402867949691d0, & 1.144550252863812d0, 2.616212148227208d0, -74.18787088603881d0, 9.37666301787974d0, & -3.645619188886469d0, 33.53800010167387d0, -5.065153804386897d0, -20.32597740365196d0, & 4.810071812393534d0, 0.7460590508556081d0, -18.77106819710892d0, -2.083615832667d0, & 58.35585494449029d0, -17.11096422922067d0, -19.92119159550678d0, 34.5740316017998d0 & /)*Nf**2 & + & (/ 7.62962962962963d0, -6.839506172839506d0, -13.01234567901234d0, 0d0, & 0d0, 0d0, -6.518518518518518d0, -1.777777777777778d0, & 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 5.037037037037037d0, 0d0, & 0d0, 0d0, 0d0, 0d0 & /)*Nf*Lmu**3 & + & (/ 65.37346762620016d0, -42.82328556216403d0, 54.0250799787705d0, 538.8826740221667d0, & -80.4594328748953d0, -12.90823586085793d0, -80.1184834161452d0, 83.4180424302031d0, & 19.93852532723695d0, 3.653075918549408d0, -4.131464213749346d0, 300.7415243155705d0, & 1.132336463132379d0, -0.002386341489880453d0, -64.51061349772838d0, 19.70259614382838d0, & -440.6285250002892d0, -122.7291749898257d0, 444.6412720682263d0, 91.927162127918d0 & /)*Nf*Lmu**2 & + & (/ -282.3532136550358d0, 251.2577557610698d0, -49850.16949703025d0, 44419.81725877749d0, & 15863.64579819813d0, 5127.063994069841d0, -56901.1895039064d0, -11367.03247977978d0, & -4823.295108040911d0, 12417.62738281787d0, -648.1131137905126d0, -3708.334542142703d0, & 52.9965026053285d0, -1.746245639334127d0, 1152.455710490214d0, -120.0824223909658d0, & 102500.8304536954d0, 21726.86682218281d0, -63639.7071700934d0, -679.5711024908374d0 & /)*Nf*Lmu & + & (/ -88.3120589194156d0, 13.18214576331104d0, -594154.9688170928d0, -757495.2918850097d0, & -30553.60285486157d0, 12988.89283071028d0, -536170.411344867d0, 92078.6489688247d0, & -11635.14004692353d0, 337648.4408288186d0, -41377.27358694826d0, -1326520.34603877d0, & -5383.620137412952d0, 43.80641360576915d0, -93180.9129088653d0, 6205.65050968152d0, & -712064.2094648877d0, -622212.285607708d0, -184208.5930160626d0, -277733.5135167261d0 & /)*Nf & + & (/ -160.4130924335138d0, 146.5690126974587d0, -86.3858663280762d0, -2050.791921050702d0, & 3.447794295933421d0, 10.5355676880081d0, 536.9101205974475d0, 173.8535665701977d0, & -10.48419474018043d0, 450.1383327181006d0, -68.11827909917163d0, -1658.244415702145d0, & -1.631379760345229d0, 0.003107922662538578d0, -590.8330986993532d0, 80.5172202146855d0, & -178.1157935509735d0, -961.73185603907d0, -600.7909638523823d0, -302.2943696278728d0 & /)*Lmu**3 & + & (/ -657.1056632965489d0, 949.997940469449d0, -99114.8139233635d0, -282458.7034499582d0, & 7816.463195421571d0, 2175.614369254061d0, -3374.800913514458d0, -2343.918792440078d0, & -2694.849564365941d0, 53370.86916154663d0, -6053.299693276865d0, -266792.7894712356d0, & -740.1008734457068d0, -57.2908916668831d0, -11382.68271344407d0, 542.4885094921885d0, & -35731.57698749715d0, -96643.6912193701d0, -99121.3097733965d0, -52016.88503870794d0 & /)*Lmu**2 & + & (/ 2247.313081964251d0, -2064.734546962189d0, 3788065.882815681d0, -8240003.6464363d0, & -1491642.482009701d0, -480584.0737818051d0, 5805562.648971923d0, 1136368.18905364d0, & 453944.1741323838d0, -506634.6475187414d0, -10902.06808675353d0, -3237700.365394747d0, & -12567.68787680968d0, 123.3430808010683d0, -364244.1588954045d0, 14568.90754039434d0, & -10717152.81775454d0, -3608358.633786783d0, 5062152.137069569d0, -590025.9646190657d0 & /)*Lmu & + & (/ 7512.490136174404d0, -8543.44043875134d0, 64761335.97261077d0, -119463549.0408237d0, & -28239838.72543035d0, -8167133.39666084d0, 84982570.8744558d0, 24207022.0098218d0, & 7923948.548020599d0, -7308378.023412827d0, -342922.0467254429d0, -61172120.24114317d0, & -228678.0131569034d0, 603.0841688422133d0, -6749012.417939758d0, 241818.7328658158d0, & -205053697.1615032d0, -68592149.18260267d0, 97316011.9430667d0, -10988747.36681864d0 /) Coeff_g_q=Coeff_g_q+alpha**3*inter end if end if end if end subroutine Set_Coeff_g_q !!!!!coefficient function g->g subroutine Set_Coeff_g_g(alpha,Nf,Lmu) real(dp),intent(in)::alpha,Nf,Lmu real(dp),dimension(36)::inter !! the Leading order is always zero, therefore calculation should be done only for order >=1 Coeff_g_g=0d0 if(order_global>=1) then Coeff_g_g=Coeff_g_g+alpha*(/& 0d0,0d0,0d0,0d0,0d0,& !Log[1-z], log[1-z]^2, log[1-z]^3 !exact -12d0*Lmu,24d0,0d0,0d0,0d0,0d0,& !1/z, log[z]/z, Log[z]^2/z, Log[z]^3/z !exact -24d0,0d0,0d0,0d0,0d0,& !Log[z], log[z]^2, Log[z]^3 !exact 24d0*Lmu,-24d0, -12d0*Lmu,& !1 (exact), z, z^2 24d0, 0d0, 0d0, 0d0, 0d0, 0d0, & 24d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0/) if(order_global>=2) then inter(1:16)=(/& -6d0 + 432d0*Lmu - 144d0*Lmu**2 + 2d0*Nf, & 36d0, 0d0, 0d0, 0d0, & 3268d0/3d0 + Lmu**2*(-198d0 - (4d0*Nf)/9d0) + (278d0*Nf)/81d0 - 264d0*zeta2 & + Lmu*((412d0*Nf)/27d0 + 36d0*zeta2) - 792d0*zeta3, & 536d0 - 72d0*Lmu**2 - (244d0*Nf)/9d0 + Lmu*(792d0 + (16d0*Nf)/9d0) - 360d0*zeta2, & -660d0 + 288d0*Lmu - (8d0*Nf)/9d0, & -240d0, 0d0, 0d0, & 819d0 + Lmu*(-12d0 - 24d0*Nf) - 50d0*Nf + Lmu**2*(-72d0 + (16d0*Nf)/3d0) + 360d0*zeta2, & 33d0 + Lmu*(216d0 - 16d0*Nf) + (22d0*Nf)/3d0, & -132d0 + (88d0*Nf)/9d0, 0d0, 0d0/) !! adding approximate part inter(17:36)=& (/ 10.66666666666667d0, -6.222222222222222d0, -0.4444444444444445d0, 0d0, & 0d0, 0d0, 5.333333333333333d0, 0d0, & 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0 & /)*Nf*Lmu**2 & + & (/ -17.33333333333333d0, -27.25925925925926d0, 4.592592592592593d0, 16.d0, & 0d0, 0d0, 2.666666666666667d0, -16.d0, & 0d0, 16.d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0 & /)*Nf*Lmu & + & (/ -90.2222222222222d0, 91.679012345679d0, -32.5679012345679d0, -13.33333333333333d0, & -8.d0, 0d0, -82.5925925925926d0, 3.777777777777778d0, & 9.77777777777778d0, 17.92592592592593d0, -15.11111111111111d0, 0d0, & 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0 & /)*Nf & + & (/ 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0 & /)*Lmu**3 & + & (/ -60.d0, 264.d0, -198.d0, -72.d0, & 0d0, 0d0, -144.d0, 0d0, & 0d0, -72.d0, 0d0, 0d0, & 0d0, 0d0, 144.d0, 0d0, & 0d0, 0d0, 0d0, 144.d0 & /)*Lmu**2 & + & (/ -279.7410112522892d0, 574.8705056261445d0, 98500.3117249364d0, -16906.67620658853d0, & 14693.72999953235d0, 1253.195988436447d0, 144380.02002326d0, -21266.64549139968d0, & -1245.48074947182d0, -54522.79937191731d0, 7779.615507182626d0, 122371.991439455d0, & 225.8518821005868d0, -0.4323281721839349d0, 7765.831766046913d0, -235.7340903559212d0, & 188143.9958801046d0, 82572.1084425476d0, -58461.93292601423d0, 23358.23965947636d0 & /)*Lmu & + & (/ 2240.309367355737d0, -2493.806551627768d0, 466531.8131690678d0, 880470.4541782d0, & -9960.13089536834d0, -6632.598005195343d0, 219769.8177162316d0, -23264.42421391567d0, & 5847.172647610648d0, -248422.9396667846d0, 32099.77493932134d0, 1015958.806752651d0, & 1917.614798215426d0, -3.727443698054962d0, 55529.33410550031d0, -2020.392123130384d0, & 337678.9437195499d0, 411807.6388544661d0, 261739.630525951d0, 201008.9653363942d0 /) Coeff_g_g=Coeff_g_g+alpha*alpha*inter if(order_global>=3) then inter(1:16)=(/& 33412d0/3d0 - 864d0*Lmu**3 - (56d0*Nf**2)/9d0 - 4686d0*zeta2 + Nf*(-3280d0/9d0 + (758d0*zeta2)/3d0) & + Lmu**2*(-8016d0 + 416d0*Nf + 2160d0*zeta2) - 8784d0*zeta3 + Lmu*(9694d0 - (1570d0*Nf)/3d0 & - (4d0*Nf**2)/3d0 - 1296d0*zeta2 + 6048d0*zeta3), & 1432d0 - 3456d0*Lmu**2 + 864d0*Lmu**3 + Lmu*(468d0 - 48d0*Nf) - (8d0*Nf**2)/9d0 + Nf*(-164d0/3d0& - 6d0*zeta2) - 468d0*zeta2, & 176d0 - 432d0*Lmu - (32d0*Nf)/3d0, & 0d0, 0d0,& -1348136d0/9d0 - (44444d0*zeta2)/3d0 + Lmu**3*(-4270d0 + 88d0*Nf + (8d0*Nf**2)/81d0 + 864d0*zeta2) & + Lmu**2*(12532d0 - (640d0*Nf**2)/81d0 - 2178d0*zeta2 + Nf*(388d0 + 20d0*zeta2) - 3456d0*zeta3) & + Nf**2*(-13064d0/2187d0 - (32d0*zeta3)/27d0) - 43728d0*zeta3 + 14472d0*zeta2*zeta3 + Nf*(296404d0/729d0 & + (910d0*zeta2)/9d0 + (65864d0*zeta3)/81d0 - (16504d0*zeta4)/27d0) + 89892d0*zeta4 + Lmu*(16928d0/3d0 & - (3364d0*Nf**2)/243d0 - 20682d0*zeta2 - 3432d0*zeta3 + Nf*(3490d0/27d0 + (1720d0*zeta2)/3d0 + (1328d0*zeta3)/27d0) & + 3753d0*zeta4) + 117072d0*zeta5, & -369056d0/9d0 + (14960d0*Nf**2)/729d0 + Lmu**3*(-1584d0 + (256d0*Nf)/9d0) + Lmu**2*(24168d0 - (800d0*Nf)/3d0 & - 4968d0*zeta2) + 15964d0*zeta2 + Nf*(-355168d0/243d0 - (16852d0*zeta2)/27d0 - (45664d0*zeta3)/81d0) + 20592d0*zeta3 & + Lmu*(-24976d0 + (1096d0*Nf**2)/81d0 + Nf*(-38060d0/27d0 - 160d0*zeta2) + 1584d0*zeta2 + 1728d0*zeta3) + 60318d0*zeta4, & 14792d0 - 144d0*Lmu**3 + Lmu**2*(8712d0 - (368d0*Nf)/3d0) + (368d0*Nf**2)/243d0 - 1188d0*zeta2 + Nf*(30064d0/81d0 & + (2968d0*zeta2)/9d0) + Lmu*(-37548d0 - (248d0*Nf)/9d0 - (16d0*Nf**2)/27d0 + 6048d0*zeta2) + 11232d0*zeta3, & 57392d0/3d0 + 864d0*Lmu**2 + (11056d0*Nf)/81d0 + (64d0*Nf**2)/243d0 + Lmu*(-14784d0 + (1408d0*Nf)/9d0) - 1584d0*zeta2, & 8008d0 - 1584d0*Lmu - (2000d0*Nf)/27d0, & 864d0,& -358958d0/15d0 + Lmu**3*(-432d0 + (176d0*Nf)/9d0 - (32d0*Nf**2)/27d0) - 23309d0*zeta2 + Lmu**2*(-5592d0 & - (416d0*Nf**2)/27d0 - 1512d0*zeta2 + Nf*(1856d0/3d0 + (688d0*zeta2)/9d0)) + Nf**2*(106760d0/729d0 & - (224d0*zeta2)/81d0 - (256d0*zeta3)/27d0) + 22992d0*zeta3 + Lmu*(-9161d0 - 8748d0*zeta2 + Nf**2*(44d0/3d0 & + (128d0*zeta2)/9d0) - 12960d0*zeta3 + Nf*(23080d0/9d0 + 1412d0*zeta2 + (9280d0*zeta3)/9d0)) & + Nf*(-5193724d0/1215d0 + (21470d0*zeta2)/27d0 - (6176d0*zeta3)/9d0 - (36038d0*zeta4)/27d0) + 26154d0*zeta4, & 60007d0/3d0 + Lmu**3*(144d0 - (512d0*Nf)/27d0) + Lmu**2*(1296d0 - (304d0*Nf)/9d0 + (32d0*Nf**2)/9d0) & + Nf**2*(1252d0/81d0 - (160d0*zeta2)/27d0) + 18813d0*zeta2 + Lmu*(2913d0 + (476d0*Nf**2)/9d0 - 2376d0*zeta2 & + Nf*(-600d0 + (2012d0*zeta2)/9d0)) + Nf*(-74588d0/27d0 - (13850d0*zeta2)/9d0 - (20480d0*zeta3)/27d0) + 8640d0*zeta3, & 1078d0/3d0 - (6584d0*Nf**2)/243d0 + Lmu**2*(-576d0 + (2048d0*Nf)/27d0) + Lmu*(-1056d0 + (1336d0*Nf)/27d0 & - (80d0*Nf**2)/27d0) + Nf*(320d0/9d0 - (18292d0*zeta2)/81d0) + 2556d0*zeta2, & 380d0 + Lmu*(684d0 - (2432d0*Nf)/27d0) - (4880d0*Nf)/81d0 + (32d0*Nf**2)/27d0, & -1224d0/5d0 + (4352d0*Nf)/135d0/) !! adding approximate part inter(17:36)=& (/ -2.37037037037037d0, 1.382716049382716d0, 0.098770222833092d0, 0.000011159806893806d0, & 0.000001004100655547748d0, 0.000000127014851064703d0, -1.18518201034838d0, -0.000001424067177349293d0, & -0.0000001258395886513513d0, -0.000003276353875186778d0, 0.000000448835616923528d0, 0.00001471247323269422d0, & 0.00000003361801306211853d0, 0d0, 0.000000925277778956665d0, -0.00000003519234724515344d0, & 0.00001283159361429818d0, 0.000007768462488228145d0, -0.000001013017711806273d0, 0.000002923597830270614d0 & /)*Nf**2*Lmu**3 & + & (/ -14.06767929017998d0, 21.96891385808121d0, -15.89092209240415d0, -19.80088472529534d0, & 0.1264935395409149d0, 0.06630172193079419d0, -23.90510287233405d0, 3.777787519548987d0, & -0.06596785872193972d0, 7.803967793585022d0, -0.3400858432420004d0, -14.08240285264944d0, & -0.00827372171918381d0, 0.00001614242876324227d0, -4.939496071950172d0, 0.00864170053479284d0, & -2.701967817343956d0, -7.946599694773181d0, -5.380461511880785d0, -5.940168778296059d0 & /)*Nf**2*Lmu**2 & + & (/ -25.71569702237576d0, 44.00376286599716d0, 35.33369426957128d0, 56.39524651486034d0, & -4.502218081001542d0, -0.6479737557458931d0, -64.6548567877701d0, 62.90455668999473d0, & -2.318034113902678d0, -20.51728433052833d0, -9.14804719528548d0, 71.3539161983945d0, & 0.1424794032714387d0, -0.0002581820133292093d0, 20.36313136200403d0, -0.1484096854549835d0, & -21.45234664879611d0, 61.37343238352857d0, 22.74552126493332d0, -12.3532580953806d0 & /)*Nf**2*Lmu & + & (/ 141.148232736005d0, -95.3128079259175d0, 6508.50433824943d0, -11404.46853317076d0, & -2170.813705189179d0, -711.8743818845938d0, 9442.97795535667d0, 1600.933344444275d0, & 646.6908092458101d0, -1324.134349211874d0, 89.6278996146028d0, -3695.006680043618d0, & -14.64319341669314d0, 0.2239409893960292d0, -469.543301968524d0, 14.6364777640893d0, & -15338.53359030546d0, -4860.108146349047d0, 7709.271424817477d0, -627.6595290161756d0 & /)*Nf**2 & + & (/ -172.595080226752d0, 113.9284135600853d0, 29.40741319355071d0, -145.2108985942667d0, & 0.927508188584403d0, 0.4862089489718969d0, 11.75718263775316d0, 46.66696948719485d0, & -0.4837606899502576d0, 28.78561062551428d0, -2.494084831853074d0, -103.2756989946684d0, & -0.06068676645317499d0, 0.0001184067028150685d0, -36.22324912986327d0, 0.06338592485104062d0, & -19.81698577530389d0, -58.27718865537964d0, -39.45738831248227d0, -43.56223033361428d0 & /)*Nf*Lmu**3 & + & (/ -521.8440793016026d0, 12.68460676681684d0, -2846.589259287547d0, -5032.676598723855d0, & 200.0837207317805d0, 58.76703893274783d0, -2787.661707896367d0, 329.1402236175395d0, & -259.9065554890753d0, 1890.098727784896d0, -189.8173625679829d0, -6175.973123552074d0, & -10.09285565694887d0, 0.02016956184053099d0, -805.063503267903d0, 10.55151045754024d0, & -1149.241078201772d0, -2283.288294268265d0, -2084.55867202432d0, -1573.350676702808d0 & /)*Nf*Lmu**2 & + & (/ 7024.224488662514d0, -8629.35875810713d0, 1403912.626424755d0, -1542929.523541944d0, & -575117.3702890039d0, -174041.689869655d0, 1560221.036947493d0, 447074.2822628863d0, & 164046.124049478d0, -237883.8515665282d0, 3231.93244747367d0, -352846.8547015837d0, & -2066.604551414853d0, 1.326317458303211d0, -83194.9325554947d0, 2175.611858784177d0, & -3997446.679976734d0, -1054972.866721067d0, 2287986.545290107d0, -39710.18760624288d0 & /)*Nf*Lmu & + & (/ 2948.230451725987d0, -2777.32803261064d0, 21201613.35037818d0, -38252741.90918029d0, & -10061259.70280802d0, -2849410.917152781d0, 26546295.49570175d0, 8729292.82691174d0, & 2761540.787797181d0, -1975576.787447185d0, -209128.6568235917d0, -20987735.95055125d0, & -66641.06526896606d0, 156.5315324981517d0, -2296439.180040667d0, 69997.0195932957d0, & -73547416.08425741d0, -24198573.07737947d0, 35389840.45566951d0, -3656090.424819286d0 & /)*Nf & + & (/ 1244.d0, -58.44606751373521d0, 7817.024083457056d0, -15998.21389720417d0, & 820.248129924413d0, 106.3313568278863d0, 23222.4318088485d0, -2197.253583937838d0, & -105.6014781672134d0, 72.37508965017935d0, 243.4904473784848d0, -2716.346928978553d0, & -1933.286216701912d0, 0.2547664151648843d0, -1706.636246338726d0, 211.3092868543732d0, & 22530.64338919176d0, -9982.5166488381d0, -6836.213215660682d0, 7237.178285971703d0 & /)*Lmu**3 & + & (/ -3074.927441799292d0, 2980.70314781489d0, -861094.315681024d0, -7468106.30198839d0, & 613894.1657340072d0, 107292.1920072101d0, 2589972.393349052d0, -567374.431570414d0, & -100860.2800804339d0, 340017.1326768026d0, -24637.4294232969d0, -4151497.84525888d0, & -14192.867302156d0, 19.27339925711047d0, -186552.2567902433d0, 16358.08025106746d0, & 3737445.889579132d0, -540707.4102660059d0, -4217773.263974477d0, -890036.377579409d0 & /)*Lmu**2 & + & (/ -35526.50283321828d0, 66775.68102945786d0, -23915778.58198381d0, 67421634.7101927d0, & 20675707.57218081d0, 5749963.30423457d0, -28431334.71493001d0, -18158774.33909346d0, & -5450099.730722335d0, -4501877.377109695d0, 1573930.360408537d0, 49186811.91115152d0, & 135463.1757548603d0, -49.94939544939731d0, 5155946.98252893d0, -145355.929979583d0, & 163139150.4456324d0, 54590484.27248965d0, -77456050.63912585d0, 8413486.94652415d0 & /)*Lmu & + & (/ -153060.7077882481d0, 117839.1362430865d0, -708331352.1466121d0, 1313443641.284707d0, & 338138794.3452719d0, 95757922.3419418d0, -896185690.700743d0, -294966108.0876507d0, & -92944471.8651479d0, 62743651.11969659d0, 7523465.894613073d0, 733203694.7834501d0, & 2272007.263742887d0, -5120.54727691242d0, 78504896.3023709d0, -2380504.37157665d0, & 2481164166.948918d0, 824176638.482638d0, -1182178627.466786d0, 128423037.2446708d0 /) Coeff_g_g=Coeff_g_g+alpha**3*inter end if end if end if end subroutine Set_Coeff_g_g !!!!!coefficient function q->qb subroutine Set_Coeff_q_qb(alpha,Nf,Lmu) real(dp),intent(in)::alpha,Nf,Lmu real(dp),dimension(1:36)::inter !! the Leading order is always zero, therefore calculation should be done only for order >=1 Coeff_q_qb=0d0 if(order_global>=2) then inter(1:16)=(/& 0d0, 0d0, 0d0, 0d0, 0d0,& 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, & -76d0/9d0 + (16d0*Lmu)/9d0, -32d0/9d0 + (8d0*Lmu)/9d0, -4d0/3d0, 0d0, 0d0/) !! adding approximate part inter(17:36)=& (/ 0.6312283256031531d0, -0.6312283256031531d0, -4580.347899925276d0, 807.106771894687d0, & -738.4036480604117d0, -67.49444738534267d0, -6777.122844130754d0, 1092.195491192707d0, & 67.0774528348277d0, 2607.474064690944d0, -365.4074734972551d0, -5913.21970907602d0, & -10.37812662249473d0, 0.01971081422236078d0, -445.8789462154352d0, 10.82908318540305d0, & -9212.6601491564d0, -4142.949072008643d0, 2974.875729429869d0, -1043.097463614533d0 & /)*Lmu & + & (/ -11.33431535673512d0, 11.33431535673512d0, -23740.33736018912d0, -38882.63915834897d0, & 298.1657052883564d0, 299.3121742152986d0, -13657.50552870465d0, 1365.993202294593d0, & -296.0828164359113d0, 12537.23117008013d0, -1615.279077617758d0, -48138.96143497134d0, & -90.2482066088453d0, 0.1803196905087639d0, -2604.045768441197d0, 94.3488194748237d0, & -18239.5071484197d0, -19901.49348792259d0, -11097.07970830333d0, -9559.03746371398d0 /) Coeff_q_qb=Coeff_q_qb+alpha*alpha*inter if(order_global>=3) then inter(1:16)=(/& 0d0, 0d0, 0d0, 0d0, 0d0,& 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, & -105152d0/243d0 + Lmu**2*(848d0/27d0 - (32d0*Nf)/27d0 - (128d0*zeta2)/9d0) + (28336d0*zeta2)/81d0 & - (11408d0*zeta3)/81d0 + Nf*(5312d0/729d0 + (416d0*zeta2)/243d0 + (256d0*zeta3)/81d0) + & Lmu*(-304d0/9d0 + Nf*(256d0/81d0 - (32d0*zeta2)/27d0) + (2368d0*zeta2)/27d0 + (32d0*zeta3)/3d0) + (17468d0*zeta4)/81d0,& -28324d0/243d0 + Lmu**2*(296d0/27d0 - (16d0*Nf)/27d0) + Lmu*(160d0/27d0 + (80d0*Nf)/81d0 - (56d0*zeta2)/27d0) & - (1808d0*zeta2)/81d0 + Nf*(760d0/729d0 + (128d0*zeta2)/81d0) + (4640d0*zeta3)/81d0, & -14336d0/243d0 + (64d0*Lmu**2)/81d0 + (848d0*Nf)/729d0 + Lmu*(-2872d0/81d0 + (112d0*Nf)/81d0) & + (7096d0*zeta2)/243d0, & 6362d0/243d0 - (118d0*Lmu)/81d0 - (188d0*Nf)/243d0, & 38d0/135d0/) !! adding approximate part inter(17:36)=& (/ -0.4208188837354355d0, 0.4208188837354355d0, 3053.565264614416d0, -538.0711856964996d0, & 492.2690983753708d0, 44.99629821999816d0, 4518.081894813376d0, -728.1303269621786d0, & -44.71830185333048d0, -1738.316041824109d0, 243.6049821550197d0, 3942.146466941939d0, & 6.918751069491326d0, -0.01314054279106719d0, 297.2526304593152d0, -7.219388777554376d0, & 6141.773428155437d0, 2761.966045061251d0, -1983.250486143853d0, 695.3983079326106d0 & /)*Nf*Lmu**2 & + & (/ 5.287562614924223d0, -5.287562614924223d0, 40032.65009810091d0, 50162.71544064428d0, & 1013.048341009765d0, -266.6072681926599d0, 30762.4672107977d0, -3884.082264379852d0, & 263.5224172913803d0, -21514.77961744444d0, 2828.474088783589d0, 75016.90919125363d0, & 139.2563288638432d0, -0.2762652666563344d0, 4296.016405764685d0, -145.5440541830248d0, & 41619.75546532618d0, 34226.9688862601d0, 9082.46439891241d0, 14647.91143706495d0 & /)*Nf*Lmu & + & (/ 33.2280777683701d0, -33.2280777683701d0, 60268.01385435927d0, 135320.5734462089d0, & -6780.000085273504d0, -1906.207470298292d0, 13318.33571592385d0, 2653.379062497121d0, & 1869.507458305548d0, -29362.99464228428d0, 3538.082670852599d0, 132719.3048947568d0, & 249.7336284060741d0, -0.5044005567184639d0, 6277.220033015489d0, -261.1896126584982d0, & 120.0354790985032d0, 42708.81773363323d0, 61733.0610897445d0, 27206.43589638115d0 & /)*Nf & + & (/ -11.64286011500031d0, 11.64286011500031d0, 1169.041204273986d0, 187395.610866767d0, & -18688.20298521823d0, -2956.039300577861d0, -93093.7285670373d0, 19432.92223492016d0, & 2936.780588213922d0, 4147.760012435468d0, -1227.113487360397d0, 75156.23777669695d0, & 157.4791091695345d0, -0.3388026718827688d0, 1140.042138233976d0,-165.1196458503607d0, & -133537.3189552676d0, -8386.89946850796d0, 118124.9196200195d0, 17968.10619379328d0 & /)*Lmu**2 & + & (/ 182.6086062010662d0, -182.6086062010662d0, -1451218.820913149d0, -1484996.325165111d0, & -81493.6161396719d0, 1903.298322732097d0, -1298987.256057194d0, 186634.6741278595d0, & -1948.392880229407d0, 795066.426393997d0, -106006.8149508975d0, -2612881.154481631d0, & -4862.512545419921d0, 9.61041754053332d0, -156835.6856889807d0, 5081.341900324954d0, & -1853179.175259212d0, -1289630.793834574d0, -66220.62710693707d0, -503760.1845775154d0 & /)*Lmu & + & (/ 843.046836311914d0, -843.046836311914d0, -2155652.508517574d0, -7032497.666384911d0, & 136353.2818268123d0, 29268.79881259821d0, 207518.7478904591d0, 7271.359091585319d0, & -29654.04653319976d0, 1206940.57939385d0, -152692.0144403551d0, -6257567.399358766d0, & -12393.86698841608d0, 25.19921798389934d0, -316182.6631769422d0, 12966.20907828547d0, & -1159503.290196366d0, -2284563.872063856d0, -2205576.038848495d0, -1276868.421248799d0 /) Coeff_q_qb=Coeff_q_qb+alpha**3*inter end if end if ! end subroutine Set_Coeff_q_qb !!!!!coefficient function q->qp subroutine Set_Coeff_q_qp(alpha,Nf,Lmu) real(dp),intent(in)::alpha,Nf,Lmu real(dp),dimension(1:36)::inter !!! the Leading order is always zero, therefore calculation should be done only for order >=1 Coeff_q_qp=0d0 if(order_global>=2) then inter(1:16)=(/& 0d0, 0d0, 0d0, 0d0, 0d0,& -592d0/81d0 - (16d0*Lmu)/9d0 + (16d0*Lmu**2)/9d0 + (32d0*zeta2)/9d0, & 32d0/9d0 - (64d0*Lmu)/9d0, & 64d0/9d0, 0d0, 0d0, 0d0,& -48d0 + (8d0*Lmu)/3d0 + (8d0*Lmu**2)/3d0, & -22d0/3d0 - 8d0*Lmu, & 44d0/9d0, 0d0, 0d0/) !! adding approximate part inter(17:36)=& (/ 1.333333333333333d0, -3.111111111111111d0, 1.777777777777777d0, 0d0, & 0d0, 0d0, 2.666666666666667d0, 0d0, & 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0 & /)*Lmu**2 & + & (/ 18.66666666666666d0, -16.88888888888889d0, 3.555555555555555d0, 0d0, & 0d0, 0d0, 20.44444444444444d0, -8.d0, & 0d0, -7.111111111111111d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0 & /)*Lmu & + & (/ -47.43964835652387d0, 48.89963587192772d0, -23.90009978865697d0, 15.40466691328466d0, & -0.965185716254401d0, 0.07262296876282914d0, -39.37517225992031d0, -10.03914315982873d0, & 4.816460728333691d0, 8.29986892962763d0, 3.676316531404927d0, 1.974956564548119d0, & 0.001617483198892773d0, -0.000002899283277358931d0, 0.00801974542514126d0, -0.001684194761939536d0, & -4.910186558517016d0, -0.5217142411883789d0, 3.927400138406334d0, 0.4393785792553383d0 /) Coeff_q_qp=Coeff_q_qp+alpha*alpha*inter if(order_global>=3) then inter(1:16)=(/& 0d0, 0d0, 0d0, 0d0, 0d0, & 994024d0/729d0 + Lmu**3*(352d0/9d0 - (64d0*Nf)/81d0) + Nf*(-5696d0/2187d0 - (64d0*zeta2)/27d0) & - (53056d0*zeta2)/243d0 + Lmu**2*(-3160d0/27d0 + (32d0*Nf)/27d0 + (512d0*zeta2)/27d0) & + Lmu*(-1616d0/81d0 + (9472d0*zeta2)/81d0 + Nf*(-2560d0/243d0 + (128d0*zeta2)/27d0) - (832d0*zeta3)/9d0) & + (18400d0*zeta3)/81d0 - (4672d0*zeta4)/9d0, & 53536d0/243d0 + (64d0*Lmu**3)/9d0 + Lmu**2*(-736d0/3d0 + (128d0*Nf)/27d0) + Lmu*(3424d0/9d0 & - (128d0*Nf)/27d0 - (896d0*zeta2)/27d0) + Nf*(5120d0/243d0 - (256d0*zeta2)/27d0) - (21056d0*zeta2)/81d0 & + (512d0*zeta3)/9d0, & -26192d0/81d0 - (128d0*Lmu**2)/3d0 + Lmu*(512d0 - (256d0*Nf)/27d0) + (128d0*Nf)/27d0 - (640d0*zeta2)/27d0, & -28672d0/81d0 + (256d0*Lmu)/3d0 + (512d0*Nf)/81d0, & -1472d0/27d0, 0d0, & 320440d0/243d0 + Lmu**3*(176d0/9d0 - (32d0*Nf)/27d0) - 192d0*zeta2 + Lmu**2*(944d0/9d0 - (160d0*Nf)/27d0 & + (128d0*zeta2)/3d0) - (128d0*zeta3)/27d0 + Nf*(-14320d0/729d0 + (1264d0*zeta2)/81d0 & + (128d0*zeta3)/27d0) + Lmu*(632d0/27d0 + (800d0*zeta2)/9d0 + Nf*(160d0/81d0 + (160d0*zeta2)/9d0) & + 320d0*zeta3) - (13624d0*zeta4)/27d0, & -32668d0/81d0 - (80d0*Lmu**3)/27d0 + Lmu**2*(-224d0/3d0 + (32d0*Nf)/9d0) + Nf*(5224d0/243d0 & - (400d0*zeta2)/27d0) - (1768d0*zeta2)/9d0 + Lmu*(-1352d0/9d0 + (520d0*Nf)/27d0 & + (176d0*zeta2)/9d0) - (1120d0*zeta3)/9d0, & 9584d0/81d0 + (320d0*Lmu**2)/27d0 + Lmu*(2048d0/27d0 - (80d0*Nf)/27d0) - (3296d0*Nf)/243d0& - (832d0*zeta2)/27d0, & -422d0/27d0 - (400d0*Lmu)/27d0 + (64d0*Nf)/81d0, & 164d0/27d0/) !! adding approximate part inter(17:36)=& (/ -15.92272853397888d0, 14.7375433487937d0, -2.809720269950975d0, -9.90060175289378d0, & 0.06324098153010965d0, 0.03315049089280369d0, -10.17479919754452d0, 3.666682200538664d0, & -0.03298356369233423d0, 3.902022251222286d0, -0.1700479037327548d0, -7.041383253842918d0, & -0.004137301961004627d0, 0.000008072163653291d0, -2.469758695250948d0, 0.004321312746852226d0, & -1.351094070892633d0, -3.973384126962018d0, -2.690248496393016d0, -2.970121653863334d0 & /)*Nf*Lmu**2 & + & (/ -1.764899200107591d0, 4.501672677436164d0, 55.92240839009741d0, 174.36321040228d0, & 0.7003581283715121d0, -1.010624198133692d0, -40.99221308545308d0, 8.46222680166079d0, & -1.957096324638474d0, -27.6047344592595d0, 4.639760179674112d0, 177.298934581469d0, & -0.884585409737233d0, -0.0001410017335761161d0, 19.8586774740452d0, -0.007336656306480251d0, & 36.71062434080176d0, 85.733750987418d0, 50.59959337818094d0, 21.72214826255193d0 & /)*Nf*Lmu & + & (/ 23.23012666971167d0, -16.7265426722077d0, 3913.00801120321d0, -7210.791376607022d0, & -1478.843439702858d0, -474.5723509485138d0, 5611.075659742638d0, 1153.697829516259d0, & 443.4516129755076d0, -605.1719851951998d0, -6.048123478932814d0, -2573.055931690894d0, & -10.60710548985274d0, -0.0814113502401731d0, -322.0999254578696d0, 10.50613691076134d0, & -10470.65348715981d0, -3358.830630747482d0, 5258.066870968736d0, -416.3247052712856d0 & /)*Nf & + & (/ -50.62385675427538d0, 11.51274564316427d0, 16.47344760554195d0, -56.10304195996164d0, & 0.3583751236764752d0, 0.1878530573141386d0, 12.66383673548854d0, 13.66673469561347d0, & -0.1869071312030261d0, 15.00026560754666d0, -0.963594225269988d0, -39.9007699439714d0, & -0.02344362953196342d0, 0.00004573973477451334d0, -13.99527557077543d0, 0.02448630111753539d0, & -7.655981164124812d0, -22.51566249236487d0, -15.24468641154133d0, -16.83060574674116d0 & /)*Lmu**3 & + & (/ -104.7976135302622d0, 190.6418267811403d0, -844.883340500708d0, 1913.504763720097d0, & 27.55400796696418d0, 11.5375064688754d0, -2122.070322500548d0, 103.8820879199894d0, & -74.2758034399466d0, 195.8802757288241d0, -64.61177128693396d0, 659.7130409630789d0, & -1.393327540247528d0, 0.003176213463735356d0, 230.0430566399033d0, 1.464649622585899d0, & -331.7248167538847d0, 550.6351796236057d0, 296.8658875197295d0, -72.10036355567851d0 & /)*Lmu**2 & + & (/ 487.990050318583d0, -549.271697112748d0, 474648.0500092148d0, -833698.26433963d0, & -174068.1825132066d0, -55915.28244634567d0, 671496.8403907737d0, 130428.8804292405d0, & 52568.91815613066d0, -81390.4763296045d0, 2139.664641654064d0, -271531.0321249713d0, & -947.355817059136d0, 3.473600622239258d0, -35021.91661220942d0, 997.303733117554d0, & -1217059.335927853d0, -377292.6435242922d0, 621450.3196582047d0, -44529.27346166185d0 & /)*Lmu & + & (/ 2346.414276468631d0, -3062.021974179683d0, 8113925.46796676d0, -12404996.7648078d0, & -3358183.769835142d0, -980091.410785803d0, 10007230.71031073d0, 2825332.860697479d0, & 948872.619175596d0, -1157039.067459284d0, -7415.262893026673d0, -5543056.448753328d0, & -19141.28886353129d0, 32.65309901415864d0, -679686.5014862488d0, 19975.33568850041d0, & -23859288.73052914d0, -7429104.13534057d0, 12062210.27925168d0, -934221.276497916d0 /) Coeff_q_qp=Coeff_q_qp+alpha**3*inter end if end if end subroutine Set_Coeff_q_qp subroutine CheckCoefficient(as,Nf,Lmu,z) real(dp)::Lmu,as,z,Nf real(dp), dimension(1:36)::func real(dp), dimension(1:3)::func1 func=parametrizationString(z) func1=(/1d0/(1d0-z),Log(1d0-z)/(1d0-z),Log(1d0-z)**2/(1d0-z)/) ! !!Q->Q ! call Set_CoeffSing1_q_q(as,Nf,Lmu) ! call Set_Coeff_q_q(as,Nf,Lmu) ! write(*,*) SUM(Coeff_q_q*func)!+SUM(CoeffSing1_q_q*func1) ! !!Q->G ! call Set_Coeff_q_g(as,Nf,Lmu) ! write(*,*) SUM(Coeff_q_g*func) ! !!Q->Q' ! call Set_Coeff_q_qp(as,Nf,Lmu) ! write(*,*) SUM(Coeff_q_qp*func) ! ! !!Q->Qbar ! call Set_Coeff_q_qb(as,Nf,Lmu) ! write(*,*) SUM(Coeff_q_qb*func) ! ! !! G->Q ! call Set_Coeff_g_q(as,Nf,Lmu) ! write(*,*) SUM(Coeff_g_q*func) ! !!G->G ! call Set_CoeffSing1_g_g(as,Nf,Lmu) ! call Set_Coeff_g_g(as,Nf,Lmu) ! write(*,*) SUM(Coeff_g_g*func)!+SUM(CoeffSing1_g_g*func1) end subroutine CheckCoefficient
68,327
54.777959
128
f90
artemide-public
artemide-public-master/src/Code/uTMDFF/convolutions.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!! !!!!!!!!! part of uTMDFF module for artemide !!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!------------------------------------------------------------------------------------------------------- !!!-----------------------------Routines for evaluation of TMD distributions------------------------------ !!!-------------------------the actual calculation takes a place in twist2 code--------------------------- !!!------------------------------------------------------------------------------------------------------- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Convolutions!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! function xf(x,Q,hadron) real(dp) :: x,Q integer:: hadron real(dp), dimension(-5:5):: xf xf=xFF(x,Q,hadron) end function xf !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Functions for calculation of convolution!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! We evaluate the integral II=\int_z^1 dy/y C(z/y) fNP(z,y) d(z)/z^2 !! to make sure that its definition is close to PDF definition we change d(x)->xd(x)/x and evaluate !! II=1/z**3 \int_z^1 dy C(y) fNP(z,y) xd(z/y) !! where 1/z \int_z^1 dy C(y) fNP(z,y) xd(z/y) is calculated in the common code. !! so in the end I devide by extra factor z^2. !--------------------------------------------------------------------- !- This is the TMD function evaluated for all quarks simultaniously (-5..5) at x,bT,mu !-- f = -5, -4, -3, -2, -1,0,1,2,3, 4 ,5 !-- = bbar ,cbar sbar,ubar,dbar,g,d,u,s, c ,b !!---Gluon contribution is undefined !!---Base version: hadron=number of PDF !--------------------------------------------------------------------- !--------------------------------------------------------------------- function uTMDFF_base5(z,bT,hadron) real(dp),dimension(-5:5)::uTMDFF_base5 real(dp) :: z, bT integer::hadron,j !!! variables for restoration only real(dp),dimension(-5:5) :: fNP_grid,fNP_current !!!! if the coefficient function is not used at all. Just return fNP if(order_global==-50) then uTMDFF_base5=fNP(z,1d0,bT,hadron,lambdaNP) !!! in the case the greed has been calculated else if(gridReady.and. ANY(hadronsInGRID.eq.hadron)) then uTMDFF_base5=ExtractFromGrid(z,bT,hadron)/z**2 !!!!!!!!!!This is procedure of restoration of function from the initial grid !!! if fNP is z-independent then the value can be obtained by TMDFF(initial) fNP(current)/fNP(initial) if(.not.IsFnpZdependent) then fNP_grid=FNP(z,0d0,bT,hadron,lambdaNP_grid) fNP_current=FNP(z,0d0,bT,hadron,lambdaNP) do j=-5,5 if(fNP_grid(j)==0) then if(fNP_current(j)/=0 .and. ((j/=0).or.(.not.withGluon))) then if(outputLevel>0) & call Warning_Raise('error in restoration: original value is zero. TMDFF set to zero. b='//numToStr(bT),& messageCounter,messageTrigger,moduleName) end if uTMDFF_base5(j)=0 else uTMDFF_base5(j)=uTMDFF_base5(j)*fNP_current(j)/fNP_grid(j) end if end do end if !!!! finally just calculation else uTMDFF_base5=Common_lowScale5(z,bT,hadron)/z**2 end if end function uTMDFF_base5 !--------------------------------------------------------------------- !- This is the TMD function evaluated for all quarks simultaniously (-5..5) at x,bT,mu !-- f = -5, -4, -3, -2, -1,0,1,2,3, 4 ,5 !-- = bbar ,cbar sbar,ubar,dbar,g,d,u,s, c ,b !!---Base version: hadron=number of PDF !--------------------------------------------------------------------- !--------------------------------------------------------------------- function uTMDFF_base50(z,bT,hadron) real(dp),dimension(-5:5)::uTMDFF_base50 real(dp) :: z, bT integer::hadron,j !!! variables for restoration only real(dp),dimension(-5:5) :: fNP_grid,fNP_current !!!! if the coefficient function is not used at all. Just return fNP if(order_global==-50) then uTMDFF_base50=fNP(z,1d0,bT,hadron,lambdaNP) !!! in the case the greed has been calculated else if(gridReady .and. ANY(hadronsInGRID.eq.hadron)) then uTMDFF_base50=ExtractFromGrid(z,bT,hadron)/z**2 if(.not.IsFnpZdependent) then fNP_grid=FNP(z,1d0,bT,hadron,lambdaNP_grid) fNP_current=FNP(z,1d0,bT,hadron,lambdaNP) do j=-5,5 if(fNP_grid(j)==0) then if(uTMDFF_base50(j)/=0) then if(outputLevel>0) & call Warning_Raise('error in restoration: original value is zero. TMDFF set to zero. b='//numToStr(bT),& messageCounter,messageTrigger,moduleName) end if uTMDFF_base50(j)=0 else uTMDFF_base50(j)=uTMDFF_base50(j)*fNP_current(j)/fNP_grid(j) end if end do end if !!!!! finally just calculation else uTMDFF_base50=Common_lowScale50(z,bT,hadron)/z**2 end if end function uTMDFF_base50 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!OUTPUT INTERFACE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !--------------------------------------------------------------------- !- This is the TMD function evaluated for all quarks simultaniously (-5..5) at x,bT,mu !-- f = -5, -4, -3, -2, -1,0,1,2,3, 4 ,5 !-- = bbar ,cbar sbar,ubar,dbar,??,d,u,s, c ,b !!---Gluon contribution is undefined !!---Full version: hadron=number of PDF (if compositeness OFF) !!--- hadron=sum components (if compositeness ON) !--------------------------------------------------------------------- !--------------------------------------------------------------------- function uTMDFF_lowScale5(x,bT,hadron) real(dp),dimension(-5:5)::uTMDFF_lowScale5 real(dp) :: x, bT integer::hadron logical,allocatable::includeInComposition(:) real(dp),allocatable::compositionCoefficients(:) integer::j,jN if(x>1d0) then uTMDFF_lowScale5=(/0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0/) return end if if(IsComposite) then uTMDFF_lowScale5=(/0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0/) call GetCompositionArray(hadron,lambdaNP,includeInComposition,compositionCoefficients) jN=size(includeInComposition) do j=1,jN if(includeInComposition(j)) then uTMDFF_lowScale5=uTMDFF_lowScale5+compositionCoefficients(j)*uTMDFF_base5(x,bT,j) end if end do deallocate(includeInComposition,compositionCoefficients) else uTMDFF_lowScale5=uTMDFF_base5(x,bT,hadron) end if end function uTMDFF_lowScale5 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !--------------------------------------------------------------------- !- This is the TMD function evaluated for all quarks simultaniously (-5..5) at x,bT,mu the GLUON INCLUDED !-- f = -5, -4, -3, -2, -1,0,1,2,3, 4 ,5 !-- = bbar ,cbar sbar,ubar,dbar,g,d,u,s, c ,b !!---Full version: hadron=number of PDF (if compositeness OFF) !!--- hadron=sum components (if compositeness ON) !--------------------------------------------------------------------- !--------------------------------------------------------------------- function uTMDFF_lowScale50(x,bT,hadron) real(dp),dimension(-5:5)::uTMDFF_lowScale50 real(dp) :: x, bT integer::hadron logical,allocatable::includeInComposition(:) real(dp),allocatable::compositionCoefficients(:) integer::j,jN if(x>1d0) then uTMDFF_lowScale50=(/0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0/) return end if if(IsComposite) then uTMDFF_lowScale50=(/0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0/) call GetCompositionArray(hadron,lambdaNP,includeInComposition,compositionCoefficients) jN=size(includeInComposition) do j=1,jN if(includeInComposition(j)) then uTMDFF_lowScale50=uTMDFF_lowScale50+compositionCoefficients(j)*uTMDFF_base50(x,bT,j) end if end do deallocate(includeInComposition,compositionCoefficients) else uTMDFF_lowScale50=uTMDFF_base50(x,bT,hadron) end if end function uTMDFF_lowScale50
9,288
40.10177
133
f90
artemide-public
artemide-public-master/src/Code/uTMDFF/modelTest.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!! !!!!!!!!! part of uTMDPDF module for artemide !!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!------------------------------------------------------------------------------------------------------- !!!-----------------------------Routines that test the behaviour of NP model------------------------------ !!!------------------------------------------------------------------------------------------------------- !!! test FNP for z-dependance !!! the test consists in the evaluation of FNP at several random sets and NParray !!! and comparison of the values. function TestFNP() logical::TestFNP real(dp)::xR,bR real(dp),dimension(-5:5)::test1,test2 integer::h,i,j real(dp),allocatable::NPtest(:) allocate(NPtest(1:lambdaNPlength)) call RANDOM_NUMBER(NPtest) NPtest=3d0*NPtest TestFNP=.false. do h=1,numberOfHadrons do i=1,10 !! generate some random input call RANDOM_NUMBER(xR) if(xR>0.99d0) xR=xR/2d0 if(xR<0.00001d0) xR=0.0001d0+xR call RANDOM_NUMBER(bR) bR=3d0*bR test1=FNP(xR,0.9d0,bR,hadronsInGRID(h),NPtest) do j=1,10 test2=FNP(xR,0.8d0/REAL(j),bR,hadronsInGRID(h),NPtest) if(SUM(ABS(test1-test2))>1d-10) then TestFNP=.true. exit end if end do end do end do deallocate(NPtest) end function TestFNP !!! test MU for x-dependance !!! the test consists in the evaluation of FNP at several random sets and NParray !!! and comparison of the values. function TestMU() logical::TestMU real(dp)::xR,bR real(dp)::test1,test2 integer::i,j TestMU=.false. do i=1,10 call RANDOM_NUMBER(bR) bR=3d0*bR !!! generate some random input call RANDOM_NUMBER(xR) if(xR>0.99d0) xR=xR/2d0 if(xR<0.00001d0) xR=0.0001d0+xR test1=mu_OPE(xR,bR) !!! generate some random input call RANDOM_NUMBER(xR) if(xR>0.99d0) xR=xR/2d0 if(xR<0.00001d0) xR=0.0001d0+xR test2=mu_OPE(xR,bR) if(ABS(test1-test2)>1d-10) then TestMU=.true. exit end if end do end function TestMU !!! test bSTAR for lambda-dependance !!! .true. = lambda-dependent function TestbSTAR() integer::i,j,k logical::TestbSTAR real(dp)::bT,dummy1,dummy2 real(dp),allocatable::NPtest(:) allocate(NPtest(1:lambdaNPlength)) TestbSTAR=.false. do i=1,lambdaNPlength NPtest=0.5d0+0d0*NPtest do k=0,3 bT=0.1d0+k dummy1=bSTAR(bT,NPtest) do j=1,3 NPtest(i)=0.9d0*j dummy2=bSTAR(bT,NPtest) if(abs(dummy2-dummy1)>1d-10) then TestbSTAR=.true. exit end if end do end do end do end function TestbSTAR
3,129
27.198198
106
f90
artemide-public
artemide-public-master/src/Code/uTMDPDF/coeffFunc.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!! !!!!!!!!! part of uTMDPDF module for artemide !!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!------------------------------------------------------------------------------------------------------- !!!-----------------------------Routines for the mathing coefficient-------------------------------------- !!!--------------The order is accumulative pertrubative order of coefficient =0,1,2 (LO,NLO,NNLO)--------- !!!------------------------------------------------------------------------------------------------------- !!! the function which contains the functions of parameterizations pure function parametrizationString(z) real(dp),intent(in)::z real(dp)::lz,l1z,zz real(dp),dimension(1:parametrizationLength)::parametrizationString zz=1d0-z lz=Log(z) l1z=Log(1d0-z) parametrizationString=(/& l1z,l1z**2,l1z**3,l1z**4,l1z**5,& 1d0/z,lz/z,lz**2/z,& lz,lz**2,lz**3,lz**4,lz**5,& !!!<--- exact part, approximate part ---> 1d0,z,z*zz,& z*(lz/zz+1d0),z*lz**2/zz,z*lz**3/zz,& z*lz,z*lz**2,z*lz**3,z*lz**4,& z*zz*lz,z*zz*lz**2,z*zz*lz**3,& zz*l1z,zz*l1z**2,zz*l1z**3,& z*zz*l1z,z*zz*l1z**2,z*zz*l1z**3,& lz*l1z,z*lz*l1z,z*zz*lz*l1z,& l1z/zz*(1-z**2+2*lz),zz/z*(l1z+z)& /) end function parametrizationString !!! the function which contains !!! int_z^1 parameterization at values of z -> 1 !!! it is used to estimate integration error at z~1 pure function parametrizationStringAt1(z) real(dp),intent(in)::z real(dp)::lz,l1z,zz real(dp),dimension(1:parametrizationLength)::parametrizationStringAt1 zz=1d0-z l1z=Log(zz) parametrizationStringAt1=(/ & zz*(l1z-1), & !Log[1-x] zz*(2d0-2d0*l1z+l1z**2),& ! Log^2[1-x] zz*(-6d0+6d0*l1z-3d0*l1z**2+l1z**3),& !Log^3[1-x] zz*(24d0 - 24d0*l1z + 12d0*l1z**2 - 4d0*l1z**3 + l1z**4),& !Log^4[1-x] zz*(-120d0 + 120d0*l1z - 60d0*l1z**2 + 20d0*l1z**3 - 5d0*l1z**4 + l1z**5),& !Log^5[1-x] zz,& !1/x 0d0, 0d0, &! log[x]/x, log[x]^2/x 0d0,0d0,0d0,0d0,0d0,& !!log[x],Log[x]^2,Log[x]^3,Log[x]^4,Log[x]^5 zz, zz, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0 /) !!! rest end function parametrizationStringAt1 !!!!Each coefficient is split to delta, sing x->1, regular !!!!!coefficient function q<-q delta-part pure function C_q_q_delta(alpha,Nf,Lmu) real(dp),intent(in)::alpha,Nf,Lmu real(dp)::C_q_q_delta C_q_q_delta=1d0 if(order_global>=1) then !!!checked (3.12.17) AV!!! C_q_q_delta=C_q_q_delta+alpha*(-4d0/3d0*zeta2-4d0*Lmu) if(order_global>=2) then !!!checked (3.12.17) AV!!! C_q_q_delta=C_q_q_delta+alpha*alpha*(& -2416d0/81d0-134d0/3d0*zeta2+448d0/9d0*zeta3+200d0/9d0*zeta4+& Nf*(352d0/243d0+20d0/9d0*zeta2+56d0/27d0*zeta3)+& Lmu*(-14d0-140d0/3d0*zeta2+16d0/3d0*zeta3+Nf*(4d0/9d0+40d0/9d0*zeta2))+& Lmu**2*(-14d0+4d0/3d0*Nf-128d0/9d0*zeta2)) if(order_global>=3) then C_q_q_delta=C_q_q_delta+alpha**3*(& Nf**2*(2800d0/19683d0 - (496d0*zeta2)/81d0 - (3712d0*zeta3)/729d0 - (88d0*zeta4)/81d0)& +Nf*(212644d0/6561d0 + (224116d0*zeta2)/729d0 + (83452d0*zeta3)/729d0 - (5960d0*zeta2*zeta3)/81d0 & - (1988d0*zeta4)/81d0 - (8144d0*zeta5)/81d0)& -578966d0/2187d0 - (667234d0*zeta2)/243d0 + (13954d0*zeta3)/81d0 + (30212d0*zeta2*zeta3)/27d0 & -(244d0*zeta3**2)/3d0 + (12796d0*zeta4)/9d0 - (1576d0*zeta5)/3d0 - (59468d0*zeta6)/81d0& +Lmu*(& Nf**2*(428d0/729d0 - (560d0*zeta2)/81d0 - (32d0*zeta3)/81d0)& + Nf*(6496d0/243d0 + (80536d0*zeta2)/243d0 - (112d0*zeta3)/3d0 - (1064d0*zeta4)/9d0)& -5947d0/27d0 - (232612d0*zeta2)/81d0 + (35200d0*zeta3)/27d0 + (15680d0*zeta2*zeta3)/27d0& + (3364d0*zeta4)/3d0 - (4960d0*zeta5)/9d0)& +Lmu**2*(-302d0 + Nf**2*(-8d0/27d0 - (80d0*zeta2)/27d0) - (26476d0*zeta2)/27d0 & + Nf*(340d0/9d0 + (7744d0*zeta2)/81d0 - (32d0*zeta3)/9d0) + (112d0*zeta3)/3d0 + (12800d0*zeta4)/27d0)& +Lmu**3*(-84d0 - 16d0*Nf**2/27d0 - 896d0*zeta2/9d0 + Nf*(128d0/9d0 + 256d0*zeta2/27d0) - 4096d0*zeta3/81d0)& ) end if end if end if end function C_q_q_delta !!!!!coefficient function g<-g delta-part pure function C_g_g_delta(alpha,Nf,Lmu) real(dp),intent(in)::alpha,Nf,Lmu real(dp)::C_g_g_delta C_g_g_delta=1d0 if(order_global>=1) then !!!checked (20.11.17) AV!!! C_g_g_delta=C_g_g_delta+alpha*(-3d0*zeta2-(11d0-2d0/3d0*Nf)*Lmu) if(order_global>=2) then !!!checked (23.06.22) AV!!! C_g_g_delta=C_g_g_delta+alpha*alpha*(& -112d0 - 56d0*Nf**2/81d0 - 201d0*zeta2/2d0 - 72d0*Lmu**2*zeta2 +& Lmu*(-96d0 + 32d0*Nf/3d0 - 108d0*zeta3) + Nf*(548d0/27 + 5d0*zeta2 - 28d0*zeta3/3d0) + 154d0*zeta3 + 225d0*zeta4/4d0) if(order_global>=3) then C_g_g_delta=C_g_g_delta+alpha**3*(& Nf**3*(-752d0/2187d0 + (16d0*zeta3)/27d0)& + Nf**2*(-73577d0/2187d0 - (200d0*zeta2)/81d0 - (368d0*zeta3)/81d0 - (20d0*zeta4)/9d0)& + Nf*(1033259d0/1458d0 + (27305d0*zeta2)/81d0 - (17762d0*zeta3)/81d0 + (122d0*zeta2*zeta3)/3d0 & - (2767d0*zeta4)/18d0 + (556d0*zeta5)/9d0)& -698456d0/243d0 - (213865d0*zeta2)/54d0 + (1489d0*zeta3)/9d0 + 429d0*zeta2*zeta3 + 2337d0*zeta3**2& + (15395d0*zeta4)/4d0 - 2046d0*zeta5 - (28783d0*zeta6)/16d0& +Lmu*((112d0*Nf**3)/243d0& +Nf**2*(-4471d0/162d0 - (10d0*zeta2)/3d0 + (56d0*zeta3)/9d0)& +Nf*(25175d0/54d0 + (904d0*zeta2)/3d0 + (104d0*zeta3)/3d0 - (15d0*zeta4)/2d0)& -4597d0/2d0 - (8855d0*zeta2)/2d0 - 3130d0*zeta3 + 3780d0*zeta2*zeta3 + (495d0*zeta4)/4d0 + 2160d0*zeta5)& + Lmu**2*(-561d0 - (38d0*Nf**2)/9d0 - 3216d0*zeta2 + Nf*(311d0/3d0 + 160d0*zeta2) + 2700d0*zeta4)& - Lmu**3*576d0*zeta3& ) end if end if end if end function C_g_g_delta !!!!!coefficient function q<-q singular-part (1/(1-x)_+,(Log(1-x)/(1-x))_+) subroutine Set_CoeffSing1_q_q(alpha,Nf,Lmu) real(dp),intent(in)::Nf,alpha,Lmu real(dp)::s1,s2,s3 s1=0d0!!!coeff 1/(1-x) s2=0d0!!!coeff log(1-x)/(1-x) s3=0d0!!!coeff log(1-x)^2/(1-x) if(order_global>=1) then !!!checked (20.11.17) AV!!! s1=s1+alpha*(-16d0/3d0)*Lmu if(order_global>=2) then !!!checked (21.11.17) AV!!! s1=s1+alpha*alpha*(& -3232d0/27d0+112d0*zeta3+448d0/81d0*Nf+& Lmu*(-1072d0/9d0+352d0/9d0*zeta2+160d0/27d0*Nf)+& Lmu**2*(-8d0+16d0/9d0*Nf)) s2=s2+alpha*alpha*(256d0/9d0*(Lmu**2)) if(order_global>=3) then s1=s1+alpha**3*(& Nf**2*(-7424d0/2187d0 - (128d0*zeta3)/27d0)& + Nf*(332632d0/729d0 - (11680d0*zeta2)/243d0 - (15712d0*zeta3)/81d0 - (16d0*zeta4)/9d0)& -1188116d0/243d0 + (89632d0*zeta2)/81d0 + (49312d0*zeta3)/9d0 - (2560d0*zeta2*zeta3)/3d0& + 616d0*zeta4 - 2304d0*zeta5& +Lmu*(& - (1600d0*Nf**2)/243d0& + Nf*(321104d0/729d0 - (7360d0*zeta2)/81d0 - (5504d0*zeta3)/81d0)& -961208d0/243d0 + (49312d0*zeta2)/27d0 + (37760d0*zeta3)/27d0 - (34592d0*zeta4)/27d0)& +Lmu**2*(& -9280d0/9d0 - (320d0*Nf**2)/81d0 + Nf*(4112d0/27d0 - (1280d0*zeta2)/27d0) + 512d0*zeta2 - (256d0*zeta3)/9d0)& +Lmu**3*(& -208d0/9d0 + (320d0*Nf)/27d0 - (64d0*Nf**2)/81d0 + (2048d0*zeta2)/27d0)& ) s2=s2+alpha**3*(& Lmu**3*(1792d0/9d0 - (512d0*Nf)/27d0) & + Lmu**2*(34304d0/27d0 - (5120d0*Nf)/81d0 - (10240d0*zeta2)/27d0) & + Lmu*(103424d0/81d0 - (14336d0*Nf)/243d0 - (3584d0*zeta3)/3d0)& ) s3=s3+alpha**3*(-2048d0/27d0*Lmu**3) end if end if end if CoeffSing1_q_q=(/s1,s2,s3/) end subroutine Set_CoeffSing1_q_q !!!!!coefficient function g<-g singular-part (1/(1-x)_+,(Log(1-x)/(1-x))_+) subroutine Set_CoeffSing1_g_g(alpha,Nf,Lmu) real(dp),intent(in)::Nf,alpha,Lmu real(dp)::s1,s2,s3 s1=0d0!!!coeff 1/(1-x) s2=0d0!!!coeff log(1-x)/(1-x) s3=0d0!!!coeff log(1-x)^2/(1-x) if(order_global>=1) then !!!checked (20.11.17) AV!!! s1=s1+alpha*(-12d0)*Lmu if(order_global>=2) then !!!checked (23.06.22) AV!!! s1=s1+alpha*alpha*(& -808d0/3d0 + Lmu**2*(66d0 - 4d0*Nf) + 112d0*Nf/9d0 + Lmu*(-268d0 + 40d0*Nf/3d0 + 108d0*zeta2) + 252d0*zeta3) s2=s2+alpha*alpha*144d0*(Lmu**2) if(order_global>=3) then s1=s1+alpha**3*(& Nf**2*(-1856d0/243d0 - (32d0*zeta3)/3d0) & +Nf*(83158d0/81d0 - (1160d0*zeta2)/9d0 - (3928d0*zeta3)/9d0 - 4d0*zeta4) & -297029d0/27d0 + (8816d0*zeta2)/3d0 + 12328d0*zeta3 - 2340d0*zeta2*zeta3 + 1386d0*zeta4 - 5184d0*zeta5 & +Lmu*(-18086d0/3d0 + (16d0*Nf**2)/9d0 + 5226d0*zeta2 + 132d0*zeta3 + & Nf*(4484d0/9d0 - 260d0*zeta2 + 152d0*zeta3) - 3591d0*zeta4) & +Lmu**2*(540d0 + Nf*(-52d0 - 12d0*zeta2) + 198d0*zeta2 + 1296d0*zeta3) & +Lmu**3*(242d0 - (88d0*Nf)/3d0 + (8d0*Nf**2)/9d0 + 864d0*zeta2) & ) s2=s2+alpha**3*(& Lmu**2*(6432d0 - 320d0*Nf - 2160d0*zeta2) + Lmu*(6464d0 - (896d0*Nf)/3 - 6048d0*zeta3)) s3=s3+alpha**3*(-864d0*Lmu**3) end if end if end if CoeffSing1_g_g=(/s1,s2,s3/) end subroutine Set_CoeffSing1_g_g !!!!!coefficient function q<-q regular-part subroutine Set_Coeff_q_q(alpha,Nf,Lmu) real(dp),intent(in)::alpha,Nf,Lmu real(dp),dimension(1:37)::inter !! the Leading order is always zero, therefore calculation should be done only for order >=1 Coeff_q_q=0d0 if(order_global>=1) then !!! checked AV(24.06.22) !!!!! Coeff_q_q=Coeff_q_q+alpha*(/& 0d0,0d0,0d0,0d0,0d0,& !log(1-x),log(1-x)^2,log(1-x)^3,log(1-x)^4,log(1-x)^5 0d0,0d0,0d0,& !1/x, Log(x)/x,Log(x)^2/x 0d0,0d0,0d0,0d0,0d0, & !Log(x),Log^2(x),Log^3(x), Log^4(x),Log^5(x) 8d0/3d0*(1d0+Lmu),8d0/3d0*(Lmu-1d0),0d0,& !1,x,x(1-x) 0d0,0d0,0d0,& !! 0d0,0d0,0d0,& !! 0d0,0d0,0d0,& !! 0d0,0d0,0d0,& !! 0d0,0d0,0d0,& !! 0d0,0d0,0d0,& !! 0d0,0d0,0d0/) !! !------The kernels are calculated in mathematica if(order_global>=2) then !!! checked AV(24.06.22) !!!!! inter(1:13)=(/&!!!exact part 200d0/9d0 - 256d0*Lmu/9d0 - 256d0*Lmu**2/9d0, & !Log[1-x] -64d0/9d0, & !Log[1-x]^2 0d0,0d0,0d0,& !log(1-x)^3,log(1-x)^4,log(1-x)^5 0d0,0d0,0d0,& !1/x, Log(x)/x, Log[x]^2/x -8d0 - 32d0*Lmu**2/9d0 + 40d0*Nf/27d0 + Lmu*(-152d0/9d0 + 16d0*Nf/9d0), & !log[x] -2d0 - 40d0*Lmu/9d0 + 4d0*Nf/9d0, & !log[x]^2 -20d0/27d0,& !Log^3(x) 0d0,0d0/) !Log[x]^4, Log[x]^5 inter(14:37)= & !!!! approximate part computed by Mathematica (/ -0.8888888888888888d0, -0.8888888888888888d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0& /)*Nf*Lmu**2+ & (/ -1.1851851851851851d0, -8.296296296296296d0, 0d0, 3.5555555555555554d0, & 0d0, 0d0, -1.7777777777777777d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0,& 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0& /)*Nf*Lmu+ & (/ -3.654320987654321d0, -4.839506172839506d0, 0d0, 2.962962962962963d0,& 0.8888888888888888d0, 0d0, -1.4814814814814814d0, -0.4444444444444444d0,& 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0,0d0, 0d0& /)*Nf+ & (/ -3.111111111111111d0, 25.33333333333333d0, 0d0, -14.22222222222222d0, & 0d0, 0d0, 10.66666666666667d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, & 14.22222222222222d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0& /)*Lmu**2+ & (/ -10.83426619614309d0, 102.9435115816347d0, 0d0, -37.33333333333333d0,& -16.d0, 0d0, 20.44444444444444d0, 11.55555555555556d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, -14.22222222222222d0, & -14.22222222222222d0, 0d0, 14.22222222222222d0, 0d0& /)*Lmu+ & (/ -16.25120354435739d0, 16.80921296761507d0, 16.78735273864289d0, -52.22420869683257d0,& -22.69342916833946d0, -3.6302702106995186d0, 25.456722241267812d0, 13.658111372360185d0,& 2.3426085161446135d0, -0.00166793644872697d0, 15.01420012799732d0, -1.7721235693713506d0, & 0.4888403083888631d0, -35.198475130364784d0, 0.7192197295856515d0, -0.042415863348287605d0,& -4.268366809337707d0, 2.834812467714212d0, 0.042367879919478484d0, -30.03064725982577d0, & -18.74489662606933d0, -4.661172640767598d0, 17.573591314678325d0, 8.044172905206903d0/) Coeff_q_q=Coeff_q_q+alpha*alpha*inter if(order_global>=3) then inter(1:13)=(/&!!!exact part -37408d0/243d0 - (183152d0*Lmu)/81d0 - (45056d0*Lmu**2)/27d0 - (7424d0*Lmu**3)/27d0 & - (272d0*Nf)/729d0 + (26336d0*Lmu*Nf)/243d0 + (8192d0*Lmu**2*Nf)/81d0 & + (512d0*Lmu**3*Nf)/27d0 - (6976d0*zeta2)/81d0 + (8704d0*Lmu*zeta2)/27d0 & + (10240d0*Lmu**2*zeta2)/27d0 - (496d0*Nf*zeta2)/81d0 + 736d0*zeta3 + (3584d0*Lmu*zeta3)/3d0, & !Log[1-x] -7400d0/81d0 - (6656d0*Lmu)/27d0 + (4096d0*Lmu**2)/27d0 + (2048d0*Lmu**3)/27d0 & + (280d0*Nf)/27d0 + (256d0*Lmu*Nf)/27d0 + (1672d0*zeta2)/27d0, & !Log[1-x]^2 -2816d0/81d0 + (1024d0*Lmu)/27d0 + (512d0*Nf)/243d0,& !log(1-x)^3 0d0,0d0, & !log(1-x)^4,log(1-x)^5 0d0,0d0,0d0,& !1/x, Log(x)/x, Log[x]^2/x -57152d0/27d0 - (1376d0*Nf**2)/243d0 + Lmu**3*(-928d0/27d0 + (64d0*Nf)/27d0) & + (27424d0*zeta2)/81d0 + Lmu**2*(-13144d0/27d0 + (3520d0*Nf)/81d0 - (32d0*Nf**2)/27d0 & + (2560d0*zeta2)/27d0) + Nf*(64960d0/243d0 - (8096d0*zeta2)/243d0 - (1888d0*zeta3)/81d0) & + (31888d0*zeta3)/81d0 + Lmu*(-144304d0/81d0 - (512d0*Nf**2)/81d0 + Nf*(58288d0/243d0 & - (1024d0*zeta2)/27d0) + (3200d0*zeta2)/9d0 + (928d0*zeta3)/9d0) + (14240d0*zeta4)/81d0, &!log[x] -149368d0/243d0 - (128d0*Lmu**3)/81d0 - (592d0*Nf**2)/243d0 + Lmu**2*(-632d0/9d0 & + (16d0*Nf)/3d0) + Nf*(57592d0/729d0 - (1024d0*zeta2)/81d0) + (3352d0*zeta2)/27d0 & + Lmu*(-4672d0/9d0 + (1280d0*Nf)/27d0 - (32d0*Nf**2)/27d0 + (1024d0*zeta2)/9d0) + (2872d0*zeta3)/27d0, & !log[x]^2 -26932d0/243d0 - (320d0*Lmu**2)/81d0 + (8704d0*Nf)/729d0 - (80d0*Nf**2)/243d0 & + Lmu*(-3704d0/81d0 + (112d0*Nf)/27d0) + (6392d0*zeta2)/243d0, & !Log^3(x) -704d0/81d0 - 2d0*Lmu + (208d0*Nf)/243d0, & !Log[x]^4, -122d0/405d0/) !Log[x]^5 inter(14:37)= & !!!! approximate part computed by Mathematica (/ 0.395061728395062d0, 0.395061728395062d0, 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0& /)*Nf**2*Lmu**3 & + & (/ 0.790123456790123d0, 5.53086419753086d0, 0d0, -2.37037037037037d0, & 0d0, 0d0, 1.185185185185185d0, 0d0,& 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0& /)*Nf**2*Lmu**2 & + & (/ -0.65843621399177d0, 15.1440329218107d0, -2.7530687439030275d0, -4.591437087176103d0,& -2.5542591731780475d0, 0.034685452795748035d0, 1.8027809089183915d0, 1.696151011480841d0,& -0.059062892434395727d0, -0.000008147158497574798d0, 1.476735874677593d0, -0.3298337085972163d0, & 0.024136940847005385d0, -0.18821018205271628d0, 0.005887693081541277d0, 0.0009087273491762202d0, & -0.2740643029932125d0, -0.0057601059063042675d0, -0.0009037858652495371d0, -1.186794446097566d0, & -0.6687318379028852d0, 0.08996332607633727d0, 0.7347690706137007d0, 0.07745556112877952d0& /)*Nf**2*Lmu & + & (/ 1.649502965696999d0, 14.29147827433897d0, -2.394479730189019d0, -4.099623089957749d0, & -3.4460830206134943d0, -0.6273649187911713d0, 1.785780454402315d0, 2.872835875174166d0, & 0.27723408856151094d0, -0.000005411539898243856d0, 1.2859205605331552d0, -0.28433473155420436d0, & 0.020760828858175498d0, -0.24999155560607883d0, 0.0044177557960472695d0, 0.0006857392837754416d0, & -0.2377780526157309d0, -0.004320604763193867d0, -0.0006819732308017775d0, -1.0173771309697677d0, & -0.6048310050079647d0, 0.07550040216160507d0, 0.5910549413562982d0, 0.048560912112946795d0 & /)*Nf**2 & + & (/ -1.185185185185185d0, -20.14814814814815d0, 0d0, 9.481481481481481d0, & 0d0, 0d0, -7.111111111111111d0, 0d0, & 0d0, 0d0, 0d0, 0d0, 0d0, -9.481481481481481d0, 0d0, & 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0& /)*Nf*Lmu**3 & + & (/ 27.23794331294561d0, -182.9348961932272d0, 0d0, 81.38271604938272d0, & 20.14814814814815d0, 0d0, -61.62962962962963d0, -14.81481481481481d0, & 0d0, 0d0, 0d0, 0d0, & 0d0, -55.30864197530864d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 18.96296296296296d0,& 18.96296296296296d0, 0d0, -18.96296296296296d0, 0d0& /)*Nf*Lmu**2 & + & (/ 117.7080838564612d0, -542.502472387698d0, 63.070538256303884d0, 284.38142474243955d0, & 138.80849966392316d0, 16.730706941597898d0, -175.3140490629636d0, -111.59015951728095d0, & -10.638185646438437d0, 0.004140586007571197d0, -71.51667963464652d0, 16.235800797517403d0, & -1.8013451889704244d0, 112.96203439549515d0, -1.2111244108012207d0, 0.015693231995821354d0, & 17.0972148863512d0, -3.533772393665435d0, -0.015870714097628493d0, 162.40033307218977d0, & 177.02059758423033d0, 1.6973234298688649d0, -81.95340823051978d0, -13.706968345567375d0 & /)*Nf*Lmu & + & (/ 155.1398371292255d0, -494.695936261738d0, 326.28510004531756d0, 4.7138458393930955d0, & -30.781587986216383d0, 23.079319433575193d0, 100.65609243445266d0, 58.29978887659598d0, & -8.090190525801678d0, 0.8839134145556795d0, -81.9112401755307d0, 3.144079549711709d0, & -1.2946555292071331d0, -159.6059524313951d0, -5.102723115989586d0, -0.754757577251002d0, & -76.4662281529223d0, -2.555854239522789d0, -0.30081099102918335d0, -218.04753894247514d0, & -213.76810777043718d0, 22.13251041655753d0, 47.19953689289184d0, -53.73818289471319d0 & /)*Nf & + & (/ -150.7636565436621d0, 148.6590280656929d0, -96.11836489901302d0, -163.2788480925019d0, & -11.109996964893716d0, 2.1106020554139775d0, 30.83680931824303d0, 17.410291869530138d0, & -2.5031652564884084d0, 0.0017122506700585278d0, 48.488009635979964d0, -7.04696881642319d0, & 0.45233841551902204d0, 89.15375161657458d0, -38.48011439381526d0, -0.08189197920191399d0, & -4.593689633567012d0, 0.543502291303585d0, 0.08148119767339691d0, -58.153641518137846d0, & -90.19101220555473d0, -0.882026307415368d0, 1.5321370156999023d0, -16.605722037258257d0 & /)*Lmu**3 & + & (/ -579.675025157712d0, 1137.893499285246d0, 171.9564811967508d0, -1565.401894601279d0, & -483.29183367465464d0, -38.63411800349697d0, 790.3027880615474d0, 494.5928604798917d0, & 32.89146260194936d0, -0.01213769091437563d0, -101.40861393434552d0, -96.97029118550205d0, & 1.3660452995123087d0, -298.59262089257146d0, 24.27940543164731d0, 1.219131070549323d0, & -292.6273692333567d0, -62.116720558216905d0, -1.2158866108856214d0, -1347.4886356207612d0, & -959.4151598722376d0, 201.7435271589885d0, 315.19770060262334d0, -256.2120703252077d0 & /)*Lmu**2 & + & (/ -941.270119433274d0, 2642.838024657489d0, -2661.1837170736376d0, 1535.2486416935578d0, & -44.97273050972106d0, -173.23814559000638d0, -939.8338875245635d0, 150.05828291530773d0, & 72.27286285703005d0, -2.1586175629565014d0, 1952.700292936121d0, -331.5912206561213d0, & 34.42860000702732d0, 1447.134559648216d0, -66.01546761953692d0, -8.895544629861057d0, & -343.9431368657766d0, 167.94666220839483d0, -10.066418164947923d0, 3745.9110477822d0, & -727.2392818112431d0, -138.3856197720716d0, -429.18209014460245d0, 885.3601630809311d0 & /)*Lmu & + & (/ -1433.957394231969d0, 2589.033809576615d0, 21299.718269383393d0, -74113.44408116463d0, & -344.86981104896626d0, -2740.388191486285d0, 31375.8368763333d0, -13479.560536880519d0, & 2767.80244633298d0, -5.50434417968931d0, -2421.055970398775d0, 13709.204385940917d0, & -34.61979854133346d0, -41226.374533618386d0, -3800.571484308407d0, -646.1583799369932d0, & 58626.04751736368d0, 3697.8360885236484d0, 634.1178415829487d0, -80542.92378541816d0, & 29465.93024506383d0, -27786.929046325393d0, 19715.215135342984d0, -30433.16116711433d0/) Coeff_q_q=Coeff_q_q+alpha**3*inter end if end if end if end subroutine Set_Coeff_q_q !!!!!coefficient function q<-g regular-part subroutine Set_Coeff_q_g(alpha,Nf,Lmu) real(dp),intent(in)::alpha,Nf,Lmu real(dp),dimension(1:37)::inter !! the Leading order is always zero, therefore calculation should be done only for order >=1 Coeff_q_g=0d0 !!! checked AV(24.06.22) !!!!! if(order_global>=1) then Coeff_q_g=Coeff_q_g+alpha*(/& 0d0,0d0,0d0,0d0,0d0,& !log(1-x),log(1-x)^2,log(1-x)^3,log(1-x)^4,log(1-x)^5 0d0,0d0,0d0,& !1/x, Log(x)/x,Log(x)^2/x 0d0,0d0,0d0,& !Log(x),Log^2(x),Log^3(x) 0d0,0d0,& !Log^4(x),Log^5(x) -Lmu,0d0,2d0*(Lmu+1d0),& !1,x,x(1-x) 0d0,0d0,0d0,& !.. 0d0,0d0,0d0,& !.. 0d0,0d0,0d0,& !.. 0d0,0d0,0d0,& !.. 0d0,0d0,0d0,& !.. 0d0,0d0,0d0,& !.. 0d0,0d0,0d0/) !.. if(order_global>=2) then !!! checked AV(24.06.22) !!!!! inter(1:13)= (/&!!!Exact part -5d0/3d0 + 26d0*Lmu**2/3d0, 10d0*Lmu/3d0, 5d0/9d0,& !log(1-x),log(1-x)^2,log(1-x)^3 0d0,0d0,& !log(1-x)^4,log(1-x)^5 172d0/9d0 - 52d0*Lmu/3d0 + 4d0*Lmu**2 - 8d0*zeta2, 0d0, 0d0, & !1/x, Log(x)/x, Log[x]^2/x 34d0/3d0 - 22d0*Lmu/3d0 + 14d0*Lmu**2/3d0, -7d0/6d0 + 14d0*Lmu/3d0, 7d0/9d0, 0d0, 0d0/) !Log(x),Log^2(x),Log^3(x),Log^4(x),Log^5(x) inter(14:37) = &!!!! approximate part computed by Mathematica (/ 2.333333333333333d0, -4.333333333333333d0, 31.d0, 0d0, & 0d0, 0d0, 21.33333333333333d0, 0d0, & 0d0, 0d0, 5.333333333333333d0, 0d0, & 0d0, 0d0, 0d0, 0d0, & -17.33333333333333d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0& /)*Lmu**2 & + & (/ 21.63289377898818d0, -15.86960440108936d0, -1347.7655161771831d0, 4272.1636816063965d0,& 546.954456339436d0, 146.981804191587d0, -2643.3817352202545d0, -470.37233968318066d0, & -143.92662870297517d0, 0.19587862057210267d0, 146.02451238944474d0, 30.39804331455055d0, & 3.6731710504375257d0, 2722.5432534817473d0, 4.76166076807807d0, 0.5243017033328325d0, & 554.5415219819214d0, -11.405935276728773d0, -0.5236541757221975d0, 4129.44617085216d0, & 2457.7944330779314d0, -120.10810410077829d0, -1485.9990493228613d0, 322.4104334714699d0 & /)*Lmu & + & (/ 6.51093766115781d0, -27.9340423448555d0, -2226.281133930018d0, 7338.908383582605d0, & 1095.5927252702118d0, 254.4804567188687d0, -4543.853353204252d0, -1190.712146927466d0, & -234.52974763875386d0, 0.3915336374442863d0, -48.95617559974949d0, 288.57204891406667d0, & -4.1602164210475d0, 4519.396563312932d0, -18.007975333999568d0, -3.225271227613856d0, & 1695.6115053273888d0, 12.800231678813827d0, 2.0928097435234276d0, 6665.395403675886d0, & 4921.711750117209d0, -500.29279582171137d0, -2549.79132306537d0, 272.6427824324629d0/) Coeff_q_g=Coeff_q_g+alpha*alpha*inter if(order_global>=3) then inter(1:13)=(/&!!!exact part -22412d0/243d0 + Lmu**2*(910d0/3d0 - (260d0*Nf)/27d0) + Lmu**3*(238d0/9d0 - (68d0*Nf)/27d0) & - (422d0*zeta2)/27d0 + Lmu*(2708d0/9d0 - 42d0*zeta2 + Nf*(-74d0/9d0 + 4d0*zeta2) & - (1636d0*zeta3)/9d0) - 58d0*zeta3 + Nf*(5378d0/729d0 + (20d0*zeta2)/9d0 + (28d0*zeta3)/3d0) & + (730d0*zeta4)/9d0, & !log[1-x] 8821d0/162d0 - (1064d0*Lmu**3)/27d0 + Lmu**2*(35d0/3d0 - (10d0*Nf)/9d0) + Lmu*(1130d0/9d0 & - (100d0*Nf)/27d0 - (40d0*zeta2)/3d0) - (166d0*zeta2)/9d0 + Nf*(-173d0/243d0 + (4d0*zeta2)/3d0) & - (1310d0*zeta3)/27d0, & !log[1-x]^2 1870d0/81d0 - (260d0*Lmu**2)/9d0 + Lmu*(10d0 - (20d0*Nf)/27d0) - (200d0*Nf)/243d0 - (500d0*zeta2)/81d0, & !log[1-x]^3 85d0/36d0 - (230d0*Lmu)/27d0 - (25d0*Nf)/162d0, & !log[1-x]^4 -25d0/27d0, & !log[1-x]^5 -480178d0/81d0 + Lmu**3*(272d0/3d0 - (136d0*Nf)/81d0) + (35192d0*zeta2)/27d0 & + Lmu**2*(-1790d0/3d0 + (152d0*Nf)/81d0 + (128d0*zeta2)/3d0) + Lmu*(9188d0/3d0 & - (6560d0*zeta2)/9d0 + Nf*(-4208d0/243d0 + (272d0*zeta2)/27d0) - (1712d0*zeta3)/3d0) & + Nf*(66130d0/2187d0 - (304d0*zeta2)/81d0 - (272d0*zeta3)/27d0) + (11912d0*zeta3)/9d0 & + (2968d0*zeta4)/3d0, & !1/x -17152d0/27d0 - 104d0*Lmu**2 + 16d0*Lmu**3 + Lmu*(1136d0/3d0 - 96d0*zeta2) + 208d0*zeta2 + 96d0*zeta3, & !Log(x)/x 0d0,& !Log[x]^2/x -567080d0/243d0 + Lmu**3*(110d0/9d0 + (52d0*Nf)/27d0) + Lmu**2*(-3718d0/9d0 + (1360d0*Nf)/27d0 & - (1592d0*zeta2)/9d0) + (12262d0*zeta2)/27d0 + Lmu*(5416d0/9d0 + (1642d0*zeta2)/9d0 & + Nf*(4120d0/27d0 + (32d0*zeta2)/3d0) - (7816d0*zeta3)/9d0) + (164d0*zeta3)/9d0 & + Nf*(139178d0/729d0 + 8d0*zeta2 + (32d0*zeta3)/3d0) - (39473d0*zeta4)/54d0, & !log[x] 22754d0/81d0 + Lmu**3*(-268d0/27d0 + (8d0*Nf)/9d0) + Lmu**2*(40d0/3d0 + (80d0*Nf)/9d0) & + Lmu*(-10039d0/18d0 + (1567d0*Nf)/27d0 - (235d0*zeta2)/3d0) + (860d0*zeta2)/27d0 & + Nf*(14206d0/243d0 + (16d0*zeta2)/3d0) - (9748d0*zeta3)/27d0, & !log[x]^2 -13136d0/81d0 + (3466d0*Nf)/243d0 + Lmu**2*(-536d0/27d0 + (16d0*Nf)/9d0) & + Lmu*(535d0/27d0 + (190d0*Nf)/27d0) - (523d0*zeta2)/81d0, & !Log^3(x) 823d0/162d0 + (103d0*Nf)/81d0 + Lmu*(-335d0/27d0 + (10d0*Nf)/9d0), & !Log[x]^4, -268d0/135d0 + (8d0*Nf)/45d0/) !Log[x]^5 inter(14:37)= & !!!! approximate part computed by Mathematica (/ 7.62962962962963d0, -6.83950617283951d0, -13.01234567901235d0, 0d0 , & 0d0, 0d0, -6.518518518518519d0, -1.777777777777778d0, & 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, & 5.037037037037037d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0 & /)*Nf*Lmu**3 & + & (/ 72.3542498958121d0, -73.2517430468732d0, 403.2271181482173d0, -1434.7988325054466d0, & -181.52671064835621d0, -49.35514436213495d0, 881.2310465305789d0, 132.33437417267362d0, & 44.83345470060389d0, -0.06553248934010411d0, -61.21805109394673d0, -2.1446923935694344d0, & -1.2851867347038952d0, -898.0506935856612d0, -1.535932066085718d0, -0.16723907003844884d0, & -164.5038290518236d0, 3.7516600704255163d0, 0.1670604518486107d0, -1370.382743834321d0, & -813.542803053118d0, 39.96183122195952d0, 495.47028161583296d0, -105.91314096503616d0 & /)*Nf*Lmu**2 & + (/ 221.5634015749843d0, -176.1580767287682d0, 2346.8190974674635d0, -8274.57901412815d0, & -1391.7802845673993d0, -285.7476685106875d0, 5230.778545437339d0, 1667.8100012967434d0, & 226.74083248851613d0, -2.7153621424688437d0, 221.16088515407003d0, -547.4776644894898d0, & 25.53316984252233d0, -5045.1029367714145d0, 51.48436013274954d0, 8.476104165455595d0, & -2677.5170650158293d0, -41.00688839542791d0, -6.944111250733137d0, -7162.7754138193095d0, & -6415.377271481533d0, 893.4544267659736d0, 2920.1338028035907d0, 26.207942588037138d0 & /)*Nf*Lmu & + & (/ 256.9582959358714d0, -188.3999850419033d0, 1737.269021029394d0, 17218.70117301099d0, & 1347.906403068893d0, 618.2681109986735d0, -4484.153437303089d0, -1747.6176267311628d0, & -439.8642459937709d0, 10.423313125358677d0, -776.9204633933074d0, 2500.5782806749075d0, & 38.94014251614613d0, 301.41119105482386d0, -626.3704344878853d0, -190.11394983050576d0, & 11615.991429236092d0, 490.93186430839876d0, 182.14196197395714d0, 7079.497968228632d0, & 9953.04634515822d0, -5061.605998827431d0, -2844.353250784031d0, -1482.3384180170683d0 & /)*Nf & + & (/ -160.4130924335138d0, 146.5690126974587d0, 187.55460344075067d0, 78.10866100439475d0, & -9.613051684156957d0, 4.448891029160875d0, 9.4084209249648d0, 146.75953257066195d0, & -5.170368568725777d0, 0.0027281040029338613d0, 224.9836049214083d0, -27.89298529260442d0, & 0.8194126577963371d0, 35.98069945125342d0, 0.2580087238719447d0, 0.03575503491287038d0, & -370.9526743739064d0, 78.56088613209761d0, -0.03560079985387738d0, 29.227522935205304d0, & -151.56853522203528d0, -43.01718618642273d0, -14.956046600037475d0, -27.761431381845195d0 & /)*Lmu**3 & + & (/ -29.82600732368725d0, 554.835363434056d0, -34336.314598380966d0, 119029.01782078671d0, & 20408.614079876992d0, 4154.673825451728d0, -75023.63448938228d0, -24786.056055024634d0, & -3445.8544831181666d0, 7.365049784232069d0, -4657.864770234503d0, 8110.180348784133d0, & -344.27265056599504d0, 72841.79014710816d0, -866.7527821258016d0, -143.16526091870853d0, & 38317.10721907232d0, 838.4408705432135d0, 200.08862645247842d0, 102025.59562978137d0, & 92514.58297573215d0, -13160.129286516396d0, -42070.36303808866d0, -1627.999857136047d0 & /)*Lmu**2 & + & (/ -2995.073575291361d0, 1498.80862589993d0, 88114.42665895961d0, -733133.0290966288d0, & 48566.45444228208d0, -29927.71589862371d0, 286988.80942297296d0, -292814.37800907117d0, & 30289.240032065558d0, 47.547734825104044d0, 18548.179682490125d0, 234771.0705979576d0, & -817.7584235475912d0, -494751.545586673d0, -57109.49992224833d0, -14009.175482415527d0, & 1077555.5167492619d0, 48692.04856848418d0, 13434.923257675862d0, -783206.4807470617d0, & 640994.260827683d0, -483929.5043946736d0, 212137.29048399607d0, -355106.146593611d0 & /)*Lmu & + & (/ -1159.413099122895d0, 1635.363764260032d0, 291728.66383380373d0, 297685.8129714873d0, & -221915.06752085776d0, 25524.51881819133d0, 219177.47007250955d0, 788551.1237446637d0, & -9410.065343697566d0, -278.87991521235773d0, -466009.41476942756d0, -599592.6570672634d0, & -20694.71044592301d0, 389326.2660609592d0, 181813.58029501003d0, 46319.91724831932d0, & -3331360.7104325257d0, -159939.11874439236d0, -45147.96425971463d0, 252563.50461695628d0, & -2524447.0539041213d0, 1495477.2954864914d0, -45392.404861584015d0, 738745.8988557612d0/) Coeff_q_g=Coeff_q_g+alpha**3*inter end if end if end if end subroutine Set_Coeff_q_g !!!!!coefficient function g<-q regular-part subroutine Set_Coeff_g_q(alpha,Nf,Lmu) real(dp), intent(in)::alpha,Nf,Lmu real(dp),dimension(1:37)::inter !! the Leading order is always zero, therefore calculation should be done only for order >=1 Coeff_g_q=0d0 if(order_global>=1) then Coeff_g_q=Coeff_g_q+alpha*(/& 0d0,0d0,0d0,0d0,0d0,& !log(1-x),log(1-x)^2,log(1-x)^3,log(1-x)^4,log(1-x)^5 -16d0/3d0*Lmu,0d0,0d0,& !1/x, Log(x)/x,Log[x]^2/x 0d0,0d0,0d0,0d0,0d0,& !Log(x),Log^2(x),Log^3(x),Log^4(x),Log^5(x) 16d0/3d0*Lmu,8d0/3d0*(1d0-Lmu),0d0,& !1,x,x(1-x) 0d0,0d0,0d0,& !... 0d0,0d0,0d0,& !... 0d0,0d0,0d0,& !... 0d0,0d0,0d0,& !... 0d0,0d0,0d0,& !... 0d0,0d0,0d0,& !... 0d0,0d0,0d0/) !... !------The kernels are calculated in mathematica if(order_global>=2) then !!! checked AV(24.06.22) !!!!! inter(1:13)=(/ &!!Exact part -184d0/9d0 + 208d0*Lmu**2/9d0 + 32d0*Nf/27d0 + Lmu*(-208d0/3d0 + 32d0*Nf/9d0), & !log(1-x), -44d0/9d0 - 80d0*Lmu/9d0 + 8d0*Nf/9d0, &!log(1-x)^2 -40d0/27d0,& !log(1-x)^3 0d0,0d0, & !log[1-x]^4, Log[1-x]^5 -12640d0/27d0 - 248d0*Lmu**2/3d0 + 896d0*Nf/81d0 + 352d0*zeta2/3d0 + Lmu*(-16d0 + 320d0*Nf/27d0 + 16d0*zeta2)& + 192d0*zeta3, & ! 1/x -32d0*Lmu**2,& !Log(x)/x 0d0, & ! log[x]^2/x -200d0/3d0 + 448d0*Lmu/9d0 - 224d0*Lmu**2/9d0,& ! log[x] 112d0/9d0 - 224d0*Lmu/9d0, & !log[x]^2 -112d0/27d0,& !Log^3(x) 0d0, 0d0/) !log^4[x], Log^5[x] inter(14:37) = &!!!! approximate part computed by Mathematica (/ -18.96296296296296d0, 14.81481481481481d0, 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, -3.555555555555556d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 7.111111111111111d0& /)*Nf*Lmu & + & (/ -16.98765432098765d0, 8.49382716049383d0, 10.105878861256377d0, -15.683156391980615d0, & -1.1678464945686933d0, -0.3894843351990761d0, 7.8533142515878485d0, 1.9546438875445589d0, & 0.6950027212435487d0, -0.00014502220330457329d0, -20.188404362810786d0, -0.8503331335490835d0, & -0.3103147478202312d0, -4.82059155359706d0, 4.059871081452588d0, 0.16430446407329385d0, & -5.974977274813962d0, -3.155832574687199d0, -0.16373846451905985d0, -30.642601685443175d0, & 9.420630737009382d0, 8.982446076391128d0, 1.5121624860392393d0, -2.5176972873105594d0 & /)*Nf & + & (/ 24.88888888888889d0, 63.1111111111111d0, -10.66666666666667d0, 0d0, & 0d0, 0d0, -35.55555555555556d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, & -23.11111111111111d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 46.22222222222222d0& /)*Lmu**2 & + & (/ -16.03916979230256d0, -87.2458021173561d0, -2010.1488699407232d0, 6076.208632952935d0, & 564.5557445841231d0, 211.86453200951652d0, -3601.9602386229362d0, -225.32839489211293d0, & -229.9625300588414d0, 0.2136803057876804d0, 574.4207814289659d0, -255.11611757357517d0, & 25.549411842390107d0, 3907.324648052323d0, 10.584578521507195d0, 5.9544978776108115d0, & -246.27997288487478d0, -18.63107102589967d0, -5.921973413578754d0, 6363.831078614713d0, & 2158.1962023153906d0, 200.4117523356342d0, -2029.9168194481554d0, 771.5543116309995d0 & /)*Lmu & + & (/ -43.7670093177715d0, 76.9627282416364d0, -3810.7353885971775d0, 11852.342051380561d0, & 1395.2794273691215d0, 408.2878206728194d0, -7076.194549950133d0, -1105.1338760960982d0, & -419.7000512900085d0, 0.5144908962048776d0, 762.2333453342488d0, -37.910128841259684d0, & 25.841653105434336d0, 7206.145394500205d0, -47.97022791877111d0, -3.4487059407983987d0, & 1152.4124598008452d0, 26.348519296850707d0, 1.9731271688088206d0, 11838.586361348272d0, & 5670.649765218949d0, -286.7508347433035d0, -3920.619711189592d0, 1269.1159656155107d0/) Coeff_g_q=Coeff_g_q+alpha*alpha*inter if(order_global>=3) then inter(1:13)=(/ &!!Exact part -2606752d0/729d0 + Lmu**3*(1904d0/27d0 - (544d0*Nf)/81d0) - (224d0*Nf**2)/27d0 & + Lmu**2*(13096d0/9d0 - (1696d0*Nf)/27d0 - (32d0*Nf**2)/27d0 - (13520d0*zeta2)/27d0) & + (19240d0*zeta2)/81d0 + Lmu*(-186472d0/81d0 - (896d0*Nf**2)/81d0 + Nf*(87712d0/243d0 & - (832d0*zeta2)/27d0) + (7328d0*zeta2)/9d0 - (34208d0*zeta3)/27d0) + (92416d0*zeta3)/81d0 & + Nf*(872656d0/2187d0 - (3616d0*zeta2)/243d0 + (832d0*zeta3)/81d0) - (9440d0*zeta4)/81d0, & !log[1-x] -249580d0/243d0 - (8512d0*Lmu**3)/81d0 + Lmu**2*(4360d0/9d0 - (752d0*Nf)/27d0) & - (352d0*Nf**2)/81d0 + Nf*(102664d0/729d0 - (296d0*zeta2)/27d0) + (7124d0*zeta2)/81d0 & + Lmu*(-6388d0/9d0 + (2272d0*Nf)/27d0 - (80d0*Nf**2)/27d0 + 80d0*zeta2) + (4240d0*zeta3)/81d0,& ! Log^2[1-x] -56852d0/243d0 + (2080d0*Lmu**2)/27d0 + (20672d0*Nf)/729d0 - (80d0*Nf**2)/81d0 & + Lmu*(-2216d0/27d0 + (176d0*Nf)/81d0) + (4600d0*zeta2)/243d0, & ! Log^3[1-x] -7430d0/243d0 + (80d0*Lmu)/27d0 + (700d0*Nf)/243d0, &! Log[1-x]^4 -200d0/81d0, & !Log[1-x]^5 5955362d0/81d0 - (369280d0*zeta2)/27d0 + Lmu**3*(-5128d0/3d0 + (8432d0*Nf)/243d0 & + (2816d0*zeta2)/9d0) + Lmu**2*(140896d0/27d0 - (320d0*Nf**2)/81d0 - (9016d0*zeta2)/9d0 & + Nf*(62248d0/243d0 + 32d0*zeta2) - (41152d0*zeta3)/27d0) + Nf**2*(-7424d0/729d0 & - (128d0*zeta3)/9d0) - (221312d0*zeta3)/27d0 + (2240d0*zeta2*zeta3)/9d0 & - (443552d0*zeta4)/27d0 + Nf*(2586920d0/6561d0 - (77312d0*zeta2)/729d0 + (1408d0*zeta3)/81d0 & + (32d0*zeta4)/9d0) + Lmu*(-459260d0/9d0 - (704d0*Nf**2)/81d0 + (301208d0*zeta2)/27d0 & + Nf*(65728d0/81d0 - (13552d0*zeta2)/81d0 - (512d0*zeta3)/9d0) + (140576d0*zeta3)/9d0 & + (134924d0*zeta4)/27d0) - (378688d0*zeta5)/27d0, & !! 1/x 302336d0/27d0 + Lmu**3*(-2048d0/3d0 + (1088d0*Nf)/81d0) - (30016d0*zeta2)/9d0 & + Lmu**2*(-96d0 + (9056d0*Nf)/81d0 + 96d0*zeta2) - 960d0*zeta3 + Nf*(-75424d0/2187d0 & - (1024d0*zeta2)/243d0 + (2432d0*zeta3)/27d0) + Lmu*(-25280d0/3d0 + 2112d0*zeta2 + & Nf*(13376d0/243d0 + (128d0*zeta2)/27d0) + 2688d0*zeta3) - 1568d0*zeta4, & !! log[x]/x -64d0*Lmu**3 + 768d0*zeta3, & !! log^2[x]/x 51537256d0/3645d0 + Lmu**3*(-224d0 + (320d0*Nf)/81d0) - (42568d0*zeta2)/27d0 & + Lmu**2*(37568d0/27d0 - 64d0*Nf + (31072d0*zeta2)/27d0) - (357760d0*zeta3)/81d0 & + Nf*(-4044016d0/10935d0 + (8960d0*zeta2)/243d0 + (7168d0*zeta3)/81d0) & + Lmu*(-538744d0/81d0 - (19376d0*zeta2)/9d0 + Nf*(-74864d0/243d0 + (1792d0*zeta2)/27d0) & + (129536d0*zeta3)/27d0) + (108248d0*zeta4)/27d0, & ! log[x] -850448d0/243d0 + Lmu**2*(-3584d0/9d0 - (128d0*Nf)/27d0) + Lmu**3*(4288d0/81d0 - (128d0*Nf)/27d0) & - (25480d0*zeta2)/81d0 + Nf*(-89776d0/729d0 + (896d0*zeta2)/81d0) + Lmu*(55744d0/27d0 & - (7136d0*Nf)/81d0 + (19120d0*zeta2)/27d0) + 2368d0*zeta3, &! log[x]^2 63392d0/81d0 + Lmu*(-2576d0/9d0 - (928d0*Nf)/81d0) + Lmu**2*(8576d0/81d0 - (256d0*Nf)/27d0) & - (28768d0*Nf)/729d0 + (704d0*zeta2)/9d0, &! log[x]^3 -4760d0/81d0 + Lmu*(5360d0/81d0 - (160d0*Nf)/27d0) - (688d0*Nf)/243d0, & ! Log[x]^4 4288d0/405d0 - (128d0*Nf)/135d0/) ! Log^5[x] inter(14:37) = &!!!! approximate part computed by Mathematica (/ 6.32098765432099d0, -4.34567901234568d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 1.185185185185185d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, -2.37037037037037d0& /)*Nf**2*Lmu**2& + & (/ 28.44444444444444d0, -26.07407407407407d0, -35.29801594148292d0, 50.210681300740426d0, & 3.9707199283758614d0, 1.3464464832492478d0, -27.19869670520337d0, -6.455517820141844d0, & -2.3702122249252056d0, 0.00053022408146142d0, 68.20567217451166d0, 2.7190857878029586d0, & 1.0413774239525115d0, 20.42366025291231d0, -13.550951108316838d0, -0.5503472280851305d0, & 19.773262092818616d0, 10.537142073153895d0, 0.548447214403684d0, 101.9066259658048d0, & -32.504970113632204d0, -29.972529920634813d0, -6.084967086246976d0, 7.861438161737242d0 & /)*Nf**2*Lmu & + & (/ 47.82294372010792d0, -36.4217599258976d0, -103.18220793431355d0, 95.41364528968354d0, & 10.640108345284865d0, 0.1984641329559921d0, -16.097961598654987d0, -32.866408953777416d0, & -2.2640980754442563d0, -0.0012035375030404777d0, 100.32122537445532d0, 21.57302915613261d0, & 2.021097157042704d0, -49.528355132988594d0, -19.122018202371205d0, -3.5146883820099273d0, & 150.62392188914674d0, 13.52730996944557d0, 2.524623417995718d0, 161.74164765160825d0, & 31.414413375305013d0, -83.38479001415207d0, 11.201148680760982d0, 101.61702932792713d0 & /)*Nf**2 & + & (/ -39.5061728395062d0, 2.4362139917695d0, 4.477366255144033d0, 0d0, & 0d0, 0d0, 1.580246913580247d0, 2.37037037037037d0, & 0d0, 0d0, 0d0, 0d0, & 0d0, 6.716049382716049d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, -13.4320987654321d0 & /)*Nf*Lmu**3 & + & (/ -229.3672608276712d0, 3.094116146469d0, 302.87500057394493d0, -1476.8599548104532d0, & -151.65103037754028d0, -56.53130889162675d0, 992.5078345472483d0, 3.3720340940756395d0, & 56.32635747311797d0, -0.06642330242133421d0, 533.3268936849769d0, 107.5511745395276d0, & 2.62146090002572d0, -1156.6359941205324d0, -143.6056477916958d0, -7.585782583188262d0, & 294.738650265751d0, 114.95945865518577d0, 7.555764576563168d0, -1158.9918299959888d0, & -1033.4419732743704d0, -374.23960883667604d0, 628.6343039811965d0, -80.71875196679441d0 & /)*Nf*Lmu**2 & + & (/ -439.388901878674d0, 388.023803539541d0, 2766.5687673568d0, -5899.707009905244d0, & 89.70584115153471d0, -180.69227606213542d0, 3319.997454029521d0, -936.777865731949d0, & 296.3374377405848d0, 3.0317599471048746d0, -4010.8392770616574d0, 914.6812915345051d0, & -110.38068168721452d0, -3558.5416821860476d0, 365.25511104815257d0, 8.831521819958427d0, & 2101.265774497295d0, -271.91164419649505d0, -6.695985690695591d0, -9707.647884296195d0, & 2795.039769977866d0, -20.8401481568141d0, 1447.9744888698085d0, -2302.6378340767164d0 & /)*Nf*Lmu & + & (/ -67.9829145503743d0, 219.158749725915d0, -1928174.3675232043d0, 13660230.992231071d0, & 1438555.6389498522d0, 527788.3832247681d0, -6342633.943314056d0, -1110066.3713385295d0, & -445647.2310416044d0, 1664.058961721363d0, -984268.7617930577d0, 294152.4814036452d0, & -31933.408010414198d0, 5951974.557720204d0, 47164.00667140128d0, 6327.7953033340145d0, & 677862.4552121769d0, -47164.64607858405d0, -6333.491225375449d0, 10232448.271520196d0, & 5019923.443771398d0, 18417.09719771348d0, -3817819.5892725224d0, 989192.3011421486d0 & /)*Nf & + & (/ 1112.129085571333d0, 287.382887105342d0, -1042.843709978051d0, 1613.9057618736701d0, & 130.48491144849456d0, 36.913444663260776d0, -790.498229787766d0, -396.43165363819736d0, & -70.72319060762437d0, 0.009931176068876455d0, 2109.6101843219603d0, 126.19201394067828d0, & 34.126778528541784d0, 292.793009287879d0, -473.6178477019335d0, -18.516766946510426d0, & 810.6843828683268d0, 366.85190013429116d0, 18.454110884783805d0, 3122.599517294824d0, & -773.6648331833818d0, -1043.3921068516167d0, -120.29583752037485d0, 1269.610749445055d0 & /)*Lmu**3 & + & (/ -1921.906789307857d0, -372.58274178472d0, -69084.97566902386d0, 244673.44841537002d0, & 31442.57661294567d0, 8863.188624207041d0, -152060.14889377757d0, -24968.341519618167d0, & -8640.416151791425d0, 12.211611200230898d0, -8963.798397351113d0, -423.0287842908501d0, & 42.76369773990685d0, 162725.2684433645d0, 2276.826077880327d0, 369.31081528383714d0, & 18550.888533023717d0, -1963.9725079078212d0, -291.8319896027318d0, 223028.74722121123d0, & 142501.98489448125d0, 2856.3848645639023d0, -88325.37887887648d0, 8394.365797443907d0 & /)*Lmu**2 & + & (/ 11921.71434155528d0, -6781.34908416411d0, -158148.2209543558d0, 538674.8944284564d0, & 171737.3261600601d0, 19039.382679251597d0, -409325.72973033605d0, -310181.0747300033d0, & -12976.794025064213d0, -34.58232150902785d0, -69520.34345877795d0, 161761.49969193127d0, & -4070.8041299190677d0, 311686.00215086143d0, -32574.15349767234d0, -5589.677387248409d0, & 714494.0770862179d0, 29772.452884385068d0, 5467.081025636136d0, 335003.4033512359d0, & 940478.2101984358d0, -289448.1823897888d0, -214692.0268137817d0, -196438.11603672872d0 & /)*Lmu & + & (/ -7169.29235586346d0, -4588.1011723863d0, 702617.0793999566d0, -3344355.0256354054d0, & -103204.8841595639d0, -130444.4124037771d0, 1454326.4688116042d0, -433210.44889358024d0, & 124681.21137203537d0, 187.0287189883803d0, 143306.48429574308d0, 483117.5387530173d0, & 3802.697957047535d0, -1867008.6648047518d0, -138642.599018635d0, -28982.28358193084d0, & 2271353.975985237d0, 133169.94967082897d0, 28841.22591650202d0, -3198342.1864987523d0, & 779457.2094747808d0, -1090149.6774086975d0, 941888.7159622173d0, -994158.7838174688d0/) Coeff_g_q=Coeff_g_q+alpha**3*inter end if end if end if end subroutine Set_Coeff_g_q !!!!!coefficient function g<-g regular-part subroutine Set_Coeff_g_g(alpha,Nf,Lmu) real(dp),intent(in)::alpha,Nf,Lmu real(dp),dimension(1:37)::inter !! the Leading order is always zero, therefore calculation should be done only for order >=1 Coeff_g_g=0d0 if(order_global>=1) then Coeff_g_g=Coeff_g_g+alpha*Lmu*(/& 0d0,0d0,0d0,0d0,0d0,& !log(1-x),log(1-x)^2,log(1-x)^3,log(1-x)^4,log(1-x)^5 -12d0,0d0,0d0,& !1/x, Log(x)/x,Log[x]^2/x 0d0,0d0,0d0,0d0,0d0,& !Log(x),Log^2(x),Log^3(x),Log^4(x),Log^5(x) 24d0, 0d0,-12d0,& !1,x,x(1-x) 0d0,0d0,0d0,& !.. 0d0,0d0,0d0,& !.. 0d0,0d0,0d0,& !.. 0d0,0d0,0d0,& !.. 0d0,0d0,0d0,& !.. 0d0,0d0,0d0,& !.. 0d0,0d0,0d0/) !.. if(order_global>=2) then !!! checked AV(24.06.22) !!! inter(1:13)=(/ &!!Exact part 6d0 - 144d0*Lmu - 144d0*Lmu**2 - 2d0*Nf, & !log(1-x), -36d0, &!log(1-x)^2 0d0, 0d0,0d0, & !log[1-x]^3, log[1-x]^4, Log[1-x]^5 -3160d0/3d0 + Lmu**2*(-198d0 - (4d0*Nf)/9d0) + (226d0*Nf)/9d0 + 264d0*zeta2 + & Lmu*((244d0*Nf)/9d0 + 36d0*zeta2) + 432d0*zeta3, & ! 1/x -72d0*Lmu**2,& !Log(x)/x 0d0, & ! log[x]^2/x -293d0 + (74d0*Nf)/3d0 + Lmu**2*(-72d0 + (16d0*Nf)/3d0) + Lmu*(12d0 + 24d0*Nf),& ! log[x] 3d0 + 6d0*Nf + Lmu*(-72d0 + (16d0*Nf)/3d0), & !log[x]^2 -12d0 + (8d0*Nf)/9d0,& !Log^3(x) 0d0, 0d0/) !log^4[x], Log^5[x] inter(14:37) = & (/ 10.66666666666667d0, -6.22222222222222d0, -0.4444444444444444d0, 0d0, & 0d0, 0d0, 5.333333333333333d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0 & /)*Nf*Lmu**2 & + & (/ -1.333333333333333d0, -39.1111111111111d0, 37.77777777777778d0, 0d0, & 0d0, 0d0, 24.d0, 5.333333333333333d0, & 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0 & /)*Nf*Lmu & + & (/ 5.77777777777778d0, -47.33333333333333d0, 29.11111111111111d0, 0d0, & 0d0, 0d0, 22.66666666666667d0, 3.333333333333333d0, & 0.8888888888888889d0, 0d0, 0d0, 0d0, 0d0, 2.d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0 & /)*Nf & + & (/ -60.d0, 264.d0, -198.d0, -72.d0, 0d0, 0d0, -144.d0, 0d0, 0d0, 0d0, -72.d0,& 0d0, 0d0, 0d0, 0d0, 0d0, 144.d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 144.d0 & /)*Lmu**2 & + & (/ -279.7410112522892d0, 310.8705056261446d0, -76116.72957522413d0, 227435.0426425998d0, & 14694.948622119973d0, 7852.982835926467d0, -126287.08683080797d0, 7681.9523265155985d0, & -8787.429745152553d0, 6.185373636685077d0, 23141.842469436266d0, -19380.192645494557d0, & 1155.442799035533d0, 141976.8483303002d0, 3519.441399895187d0, 534.3309563046148d0, & -51718.27724334603d0, -3446.5407125396396d0, -531.5164360812116d0, 247552.22667564978d0, & 36865.788952674775d0, 27062.399526573845d0, -72096.79062441169d0, 50707.86861234319d0 & /)*Lmu & + & (/ -437.3941105612035d0, 634.026514631848d0, -108148.8778338832d0, 335894.17252322356d0, & 28631.91754486051d0, 11693.126422797315d0, -190633.32403480247d0, -4486.984018390231d0, & -12511.948840348732d0, 11.66555510600327d0, 24455.47310680199d0, -18479.39608475271d0, & 1203.1211921227507d0, 207544.7184684116d0, 3550.179717964366d0, 542.2298125036455d0, & -39719.99391154532d0, -3459.316434977435d0, -539.4220461167924d0, 349237.40838496963d0, & 93903.92860129807d0, 24720.14896600743d0, -108434.67427803481d0, 59112.06208671693d0/) Coeff_g_g=Coeff_g_g+alpha*alpha*inter if(order_global>=3) then inter(1:13)=(/ &!!Exact part -14020d0/3d0 - 864d0*Lmu**3 + (56d0*Nf**2)/9d0 + Nf*(592d0/9d0 - (182d0*zeta2)/3d0) & + 1518d0*zeta2 + Lmu**2*(-6432d0 + 320d0*Nf + 2160d0*zeta2) + 2736d0*zeta3 & + Lmu*(-12974d0 + (1922d0*Nf)/3d0 + (4d0*Nf**2)/3d0 + 432d0*zeta2 + 6048d0*zeta3), & !log(1-x), -1432d0 + 1728d0*Lmu**2 + 864d0*Lmu**3 + (8d0*Nf**2)/9d0 + Lmu*(-468d0 + 48d0*Nf) & + 468d0*zeta2 + Nf*(164d0/3d0 + 6d0*zeta2),& !log(1-x)^2 -176d0 + 432d0*Lmu + (32d0*Nf)/3d0, & !log[1-x]^3, 0d0, 0d0, & !log[1-x]^4, Log[1-x]^5 1572769d0/9d0 - (103448d0*zeta2)/3d0 + Lmu**3*(-4270d0 + 88d0*Nf + (8d0*Nf**2)/81d0 & + 864d0*zeta2) + Lmu**2*(12532d0 - (640d0*Nf**2)/81d0 - 2178d0*zeta2 + Nf*(5924d0/9d0 & + 20d0*zeta2) - 3456d0*zeta3) + Nf**2*(-54584d0/2187d0 - (800d0*zeta3)/27d0) & - 16128d0*zeta3 + 2160d0*zeta2*zeta3 - 41184d0*zeta4 + Nf*(743104d0/729d0 & - (17254d0*zeta2)/81d0 - (23296d0*zeta3)/81d0 + (25544d0*zeta4)/81d0) + Lmu*(-354278d0/3d0 & - (1652d0*Nf**2)/81d0 + 25686d0*zeta2 + Nf*(15230d0/9d0 - 360d0*zeta2 - (6496d0*zeta3)/27d0) & + 38544d0*zeta3 + 8937d0*zeta4) - 33264d0*zeta5, & ! 1/x 75584d0/3d0 + Lmu**3*(-1584d0 + (256d0*Nf)/9d0) - 7504d0*zeta2 + Lmu**2*((2288d0*Nf)/9d0 & + 216d0*zeta2) - 1584d0*zeta3 + Nf*(-18640d0/243d0 - (256d0*zeta2)/27d0 + 224d0*zeta3) & + Lmu*(-18960d0 + 4752d0*zeta2 + Nf*(3416d0/27d0+ (32d0*zeta2)/3d0) + 6048d0*zeta3) & - 3528d0*zeta4, & ! log[x]/x -144d0*Lmu**3 + 1728d0*zeta3, & ! log[x]^2/x 164484d0/5d0 + Lmu**3*(-432d0 + (176d0*Nf)/9d0 - (32d0*Nf**2)/27d0) + 3343d0*zeta2 & + Lmu**2*(3984d0 - (512d0*Nf**2)/27d0 + Nf*(-2080d0/9d0 - (2128d0*zeta2)/9d0) & + 3672d0*zeta2) + Nf**2*(-30316d0/729d0 - (1888d0*zeta2)/81d0 - (512d0*zeta3)/27d0) & - 3888d0*zeta3 + Lmu*(-13945d0 + Nf**2*(-364d0/9d0 - (128d0*zeta2)/9d0) + 324d0*zeta2 & + Nf*(-7568d0/9d0 - (5788d0*zeta2)/9d0 - (5824d0*zeta3)/9d0) + 12096d0*zeta3) & + Nf*(-2047364d0/1215d0 - (766d0*zeta2)/3d0 - (23968d0*zeta3)/27d0 - (19546d0*zeta4)/27d0) & + 11448d0*zeta4, & ! Log[x] -6667d0 + Lmu**2*(-504d0 - (656d0*Nf)/9d0) + Lmu**3*(144d0 - (512d0*Nf)/27d0) & + Nf**2*(-3724d0/243d0 - (64d0*zeta2)/27d0) + 927d0*zeta2 + Lmu*(6483d0 - (404d0*Nf**2)/27d0 & + Nf*(-528d0 - (1444d0*zeta2)/9d0) + 2808d0*zeta2) + Nf*(-38672d0/81d0 - (6592d0*zeta2)/27d0 & - (10432d0*zeta3)/27d0) + 6336d0*zeta3, & ! Log^2[x] 7034d0/3d0 + Lmu**2*(288d0 - (1024d0*Nf)/27d0) - (296d0*Nf**2)/243d0 + Lmu*(-288d0 & - (280d0*Nf)/3d0 + (16d0*Nf**2)/27d0) + Nf*(-17968d0/81d0 - (1844d0*zeta2)/81d0) + 468d0*zeta2, & ! Log^3[x] -62d0 + Lmu*(180d0 - (640d0*Nf)/27d0) - (1568d0*Nf)/81d0 + (8d0*Nf**2)/81d0, & ! Log^4[x] 144d0/5d0 - (512d0*Nf)/135d0 /) ! Log^5[x] inter(14:37) = &!!!! approximate part computed by Mathematica (/ -2.37037037037037d0, 1.382716049382716d0, 0.09876543209876543d0, 0d0, & 0d0, 0d0, -1.185185185185185d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0 & /)*Nf**2*Lmu**3 & + & (/ -14.06767929017998d0, 21.96891385808122d0, -0.4183597841221291d0, -10.123439983450782d0, & 0.4186297605669643d0, -0.21664784284161404d0, -6.181913462447272d0, -1.7481662020531836d0, & 0.30796469565463613d0, -0.00008052725820166228d0, -1.1918315476653107d0, 1.2876876210499666d0, & -0.0942231431841472d0, 6.013190755987933d0, 0.05432647731543677d0, 0.0077842716068921465d0, & -2.419233143228511d0, -0.05336961603267109d0, -0.00774774545216196d0, 3.599106241151542d0, & 2.7120858036419553d0, -0.36825531632688485d0, -0.9241890362625219d0, -2.6778132221507063d0 & /)*Nf**2*Lmu**2 & + & (/ -93.8382660349475d0, 115.1222166522315d0, -22.303597652885507d0, -40.21338245665678d0, & 1.1354830591710579d0, -1.1769008324493675d0, -23.41070799332935d0, -27.818818398578536d0, & 2.396266223974132d0, -0.00035695401617199575d0, -25.92344077903917d0, 9.758389806818519d0, & -0.6396062122015982d0, 16.656644979192006d0, 0.2593645206016529d0, 0.037446160884602245d0, & -2.614939451493282d0, -0.25469881516546633d0, -0.03726780577538688d0, 17.999107117426796d0, & 10.600267537403617d0, -3.1728342768020217d0, -0.6727225093261171d0, -1.1889482577656703d0 & /)*Nf**2*Lmu & + & (/ -80.3831871276814d0, 169.9911535600553d0, -55.0116181826182d0, -74.25396724742407d0, & 1.400134563968624d0, -2.5827478882047696d0, -21.952914745699974d0, -39.31327050332188d0, & 1.4650514160902537d0, 0.09753675482999398d0, -28.818057067036392d0, 11.911127239042397d0, & -0.5390546384537974d0, 16.67779351522091d0, -2.650240121234823d0, 0.16034365274369056d0, & 8.995889716464315d0, -0.6202620246492179d0, 0.03724224125466998d0, 23.906829321526043d0, & 9.687315349036552d0, -6.71643150603122d0, 5.345088379088654d0, 0.7269062355233182d0 & /)*Nf**2 & + & (/ -172.595080226752d0, 113.9284135600853d0, 54.72970663340388d0, -17.95512876659481d0, & -0.5119537977728488d0, -0.13142462686241485d0, -8.844891010000145d0, 45.607817409146406d0, & 0.13120451120777019d0, -0.00020952843080140242d0, 10.668650507791332d0, -0.15392688571611104d0, & -0.006837243639087208d0, 5.240811474559813d0, 0.32088370313714926d0, 0.04661760421956784d0, & -26.31388527333646d0, -0.3149994850022332d0, -0.04639230851446269d0, -5.870214501378134d0, & -10.35184462591085d0, -0.8538506750299095d0, -1.567253393897597d0, -24.30307137641227d0 & /)*Nf*Lmu**3 & + & (/ -1257.974111216652d0, 478.592416459644d0, -70.40565975959595d0, 3331.224276483943d0, & 580.9779120083d0, 105.09591416647865d0, -2079.6191411233626d0, -512.8408392515436d0, & -15.235130397163633d0, 0.19857298330395556d0, 200.01040292709916d0, 277.13765156003933d0, & -14.394339544514498d0, 1730.9215036774444d0, -31.75121754778609d0, -5.051908774367486d0, & 892.477503662088d0, 31.004432456500158d0, 5.022821568607085d0, 2593.3337307481193d0, & 2683.1788333461377d0, -504.9761790276198d0, -1112.5531691510164d0, -533.4676992641519d0 & /)*Nf*Lmu**2 & + & (/ -3497.98349876396d0, 2090.12292711375d0, 224637.60847624866d0, -674762.360510647d0, & -46501.010853960666d0, -23431.73002359432d0, 376125.7320257752d0, -15677.238140561289d0, & 26259.68007623272d0, 17.361869702751893d0, -63879.12286282953d0, 53141.51834222993d0, & -3271.6312486015217d0, -420595.0589062043d0, -9636.491462033977d0, -1467.0038916272879d0, & 137026.76020897328d0, 9410.13458106331d0, 1456.3511666781703d0, -726695.6568771134d0, & -126616.3488864514d0, -73555.0402288353d0, 214814.51945746905d0, -142740.21125535117d0 & /)*Nf*Lmu & + & (/ -5106.91113556904d0, 3242.03774067862d0, -131459.9761206949d0, 2260157.9179418124d0, & 273164.80175895116d0, 93319.1013274207d0, -948136.9756587398d0, -287826.4996675914d0, & -69728.5153847615d0, 274.12418923594026d0, -355479.5627864812d0, 140469.61640415108d0, & -13870.888819228723d0, 801162.4217650415d0, 2147.7827035809023d0, 475.67469649576157d0, & 282010.17968242837d0, -1882.5825444216928d0, -461.4238376413187d0, 1367356.0166587536d0, & 941988.6809300713d0, -66365.76667587527d0, -590159.488724148d0, 47987.58650937422d0 & /)*Nf & + & (/ 1244.d0, -58.446067513735d0, -5216.856603562426d0, 6017.507101300683d0, & 463.4409894570864d0, 156.2738849088021d0, -3064.4824289595404d0, -2029.3631616267785d0, & -291.56494801395803d0, 0.05609466903813764d0, 7109.357162418047d0, 437.4717030369035d0, & 137.1081545288258d0, 1107.8333994939396d0, -2394.65365570667d0, -78.38641093781266d0, & 5994.683350137116d0, 659.4648682049817d0, 78.11795289383987d0, 12384.683029773765d0, & -3393.5030664165656d0, -3458.226179623217d0, -369.6185947175731d0, 4969.237574661922d0 & /)*Lmu**3 & + & (/ -3074.927441799293d0, -5546.63505472632d0, -3612960.133389416d0, 11753160.913383693d0, & 1378492.2082445452d0, 414754.8398099961d0, -6946497.684580832d0, -1033191.3015051303d0, & -416483.1470880283d0, 536.6859165534612d0, 281064.03362685716d0, -94757.88812547995d0, & 19013.383372631353d0, 7217843.562271608d0, 46693.34761617414d0, 6190.8170843601365d0, & 727420.2930883368d0, -46845.183517555284d0, -6163.899782781849d0, 11319613.202597812d0, & 5668002.636683398d0, 32215.496287084487d0, -3939100.4730418706d0, 1182411.1376309213d0 & /)*Lmu**2 & + & (/ 46690.9449936092d0, -24991.7519522712d0, -11727221.755060362d0, 41927416.57626116d0, & 7012877.193730939d0, 1518220.926867407d0, -26302663.21687959d0, -8570036.965322932d0, & -1366099.8597695287d0, 2031.6145109953145d0, -1962477.923479717d0, 2775049.484470149d0, & -63326.100095429254d0, 25438312.464124486d0, -348030.0016889494d0, -55469.80990964071d0, & 14306111.510047743d0, 339113.78142936d0, 54920.137859771945d0, 35451432.57335606d0, & 33083144.020927094d0, -4684849.293127669d0, -14809006.60121325d0, -900995.9816314322d0 & /)*Lmu & + & (/ 10071.26376885732d0, -26382.03920419378d0, 5902362.259911467d0, -55207749.23142851d0, & -3064162.3794858526d0, -2187131.724776452d0, 21107857.300875414d0, -1429513.9072325323d0, & 1919039.0859595556d0, -5319.677805355966d0, 2685156.614970081d0, 2035351.5122670475d0, & 78531.16993579347d0, -20823454.86009278d0, -854391.060484691d0, -133043.62182469876d0, & 12803895.946836378d0, 835429.123218491d0, 132111.5844099395d0, -43027963.51892143d0, & -1379746.8890004286d0, -6318383.538237535d0, 13323182.55528821d0, -9914427.904937435d0/) Coeff_g_g=Coeff_g_g+alpha**3*inter end if end if end if end subroutine Set_Coeff_g_g !!!!!coefficient function q<-qb regular-part subroutine Set_Coeff_q_qb(alpha,Nf,Lmu) real(dp), intent(in) ::alpha,Nf,Lmu real(dp),dimension(1:37)::inter ! the LO and NLO are zero, therefore calculation should be done only for order >=2 Coeff_q_qb=0d0 if(order_global>=2) then !!! checked AV(24.06.22) !!! inter(1:13)=(/ &!!Exact part 0d0, 0d0, 0d0, 0d0, 0d0, & !log(1-x), log(1-x)^2, log[1-x]^3, log[1-x]^4, Log[1-x]^5 0d0, 0d0, 0d0, & ! 1/x, Log(x)/x, log[x]^2/x -4d0/3d0 + 16d0*Lmu/9d0,& ! log[x] 8d0*Lmu/9d0, & !log[x]^2 4d0/27d0,& !Log^3(x) 0d0, 0d0/) !log^4[x], Log^5[x] inter(14:37) = &!!!! approximate part computed by Mathematica (/ 0.631228325603153d0, -0.631228325603153d0, 3942.529581486256d0, -11850.261412231383d0, & -827.4590575503554d0, -408.404722864862d0, 6629.091487489141d0, -262.50389028854295d0, & 452.0671507296439d0, -0.3399093126032732d0, -1142.847497410903d0, 918.0680132938099d0, & -55.7470005177331d0, -7389.33921793817d0, -169.5326415952526d0, -25.69939765518913d0, & 2353.6235491505718d0, 166.03617583231753d0, 25.56445089746481d0, -12776.285572478779d0, & -2298.83622137161d0, -1264.9377358848137d0, 3778.325387326013d0, -2514.899544740347d0& /)*Lmu & + & (/ -3.348670846768813d0, 3.348670846768813d0, 5397.706006552403d0, -16828.78761110459d0, & -1508.619112415608d0, -585.799858610073d0, 9582.778304158983d0, 391.3917345296116d0, & 619.6649793848344d0, -0.6059653892685178d0, -1110.5104219580835d0, 821.7274847481704d0, & -55.169591667418906d0, -10370.833023230267d0, -169.627665732229d0, -25.453051086253883d0, & 1624.4184400879947d0, 166.23015697183678d0, 25.322217832496175d0, -17317.17331275877d0, & -5122.288348120117d0, -1099.449659019894d0, 5451.427375012384d0, -2821.4902017469344d0/) Coeff_q_qb=Coeff_q_qb+alpha*alpha*inter if(order_global>=3) then inter(1:13)=(/ &!!Exact part 0d0, 0d0, 0d0, 0d0, 0d0, & !log(1-x), log(1-x)^2, log[1-x]^3, log[1-x]^4, Log[1-x]^5 0d0, 0d0, 0d0, & ! 1/x, Log(x)/x, log[x]^2/x 54976d0/243d0 + Lmu**2*(848d0/27d0 - (32d0*Nf)/27d0 - (128d0*zeta2)/9d0) & - (3344d0*zeta2)/81d0 + Lmu*(5744d0/27d0 + Nf*(-512d0/81d0 - (32d0*zeta2)/27d0) & + (1216d0*zeta2)/27d0 - (1376d0*zeta3)/27d0) + Nf*(704d0/729d0 - (736d0*zeta2)/243d0 & - (32d0*zeta3)/81d0) - (6448d0*zeta3)/81d0 + (1484d0*zeta4)/27d0, & !log[x] 18620d0/243d0 + Lmu**2*(296d0/27d0 - (16d0*Nf)/27d0) + Lmu*(3488d0/27d0 - (304d0*Nf)/81d0 & - (1336d0*zeta2)/27d0) + Nf*(-1544d0/729d0 - (64d0*zeta2)/81d0) + (2672d0*zeta2)/81d0 & - (7432d0*zeta3)/81d0, & !log^2[x] 6544d0/243d0 + (64d0*Lmu**2)/81d0 + Lmu*(184d0/81d0 - (16d0*Nf)/27d0) & - (688d0*Nf)/729d0 - (2240d0*zeta2)/243d0, & !log^3[x] 28d0/81d0 + (122d0*Lmu)/81d0 - (32d0*Nf)/243d0, & !log^4[x] 38d0/135d0/) !Log^5[x] inter(14:37) = &!!!! approximate part computed by Mathematica (/ -0.420818883735435d0, 0.420818883735435d0, -2628.3530413513986d0, 7900.174226179467d0, & 551.6393679057725d0, 272.2698134826626d0, -4419.3943012587915d0, 175.00259320736896d0, & -301.3780987848556d0, 0.22660620603373544d0, 761.8983306794843d0, -612.045339191858d0, & 37.16466698976035d0, 4926.226119446405d0, 113.02176016151641d0, 17.132931627758513d0, & -1569.0823543972272d0, -110.69078300713133d0, -17.042967123424216d0, 8517.52366831298d0, & 1532.5574752264667d0, 843.2918177173582d0, -2518.8835775375555d0, 1676.599686110977d0 & /)*Nf*Lmu**2 & + & (/ -5.35996339836418d0, 5.35996339836418d0, -14805.161604623514d0, 45440.189026283726d0, & 3665.348823735255d0, 1574.4336406463633d0, -25641.152262748794d0, -118.96997505961468d0, & -1698.9086270678636d0, 1.487177716971577d0, 3614.0688502149733d0, -2810.7462596099863d0, & 177.3688731646266d0, 28122.97415772642d0, 546.9015504990884d0, 82.53079856027551d0, & -6534.226468065827d0, -535.7668916672405d0, -82.10147655556435d0, 47750.03685019893d0, & 11489.322320793888d0, 3839.056840073771d0, -14601.242591681132d0, 8550.581997541578d0 & /)*Nf*Lmu & + & (/ 1.485884839629099d0, -1.485884839629099d0, -22994.341565343188d0, 71751.65215591916d0, & 6335.087188821391d0, 2500.4097568023412d0, -40705.60745489642d0, -1437.2641312254184d0, & -2649.8122810074865d0, 2.7005693572703215d0, 4841.363855026909d0, -3643.2836235552572d0, & 239.99662073010091d0, 44133.036313448996d0, 746.7408141905988d0, 112.15083499804393d0, & -7548.638476250211d0, -731.7460894190867d0, -111.57330056937465d0, 73977.38612458899d0, & 21080.169147515815d0, 4932.1492687421205d0, -23168.047798120224d0, 12275.564785646236d0 & /)*Nf & + & (/ -11.64286011500031d0, 11.64286011500031d0, 107752.36705045619d0, -345549.48458220554d0, & -37628.78624273229d0, -12119.719764778662d0, 202053.24899377595d0, 23549.2704298831d0, & 12337.138215870556d0, -14.704585990530498d0, -13387.144820630327d0, 7077.3950605701975d0, & -725.6157125000607d0, -212527.8857723942d0, -1923.761085812927d0, -280.15739409464777d0, & -4262.906074784453d0, 1888.516866167127d0, 278.8100157376913d0, -340428.577762145d0, & -147088.65697607037d0, -7364.503788872913d0, 114576.43891555582d0, -41900.35475008881d0 & /)*Lmu**2 & + & (/ 330.8644482622595d0, -330.8644482622595d0, 203799.95755766265d0, -627776.6397155327d0, & -50448.469097114095d0, -21777.585983741916d0, 352793.0656816167d0, 980.0035386346508d0, & 23451.39638408572d0, -20.674244294554626d0, -49531.46168335397d0, 39206.64181817516d0, & -2407.5498908330223d0, -387113.454716415d0, -7698.846483369285d0, -1162.765647178553d0, & 93677.66636436332d0, 7541.732993294718d0, 1156.7067229191632d0, -659129.0169248356d0, & -154174.4971070573d0, -54380.54227904041d0, 201008.28302119556d0, -119291.66525922473d0 & /)*Lmu & + & (/ 121.0074075176244d0, -121.0074075176244d0, 186589.00311887404d0, -569994.4923939075d0, & -42051.932248569574d0, -19673.026862332146d0, 316062.8250434273d0, -8185.794307328427d0, & 21368.77761981082d0, -19.40466434228386d0, -49831.13490861227d0, 41437.97994454532d0, & -2347.7073177020015d0, -350582.39077280846d0, -8042.389009653743d0, -1221.037528027165d0, & 109204.71700366706d0, 7876.214076894238d0, 1214.6050948781424d0, -606430.380966919d0, & -112765.1374329637d0, -59211.74145105641d0, 180432.8596727076d0, -118492.80482198505d0/) Coeff_q_qb=Coeff_q_qb+alpha**3*inter end if end if end subroutine Set_Coeff_q_qb !!!!!coefficient function q<-qp regular-part subroutine Set_Coeff_q_qp(alpha,Nf,Lmu) real(dp),intent(in)::alpha,Nf,Lmu real(dp),dimension(1:37)::inter ! the LO and NLO are zero, therefore calculation should be done only for order >=2 Coeff_q_qp=0d0 !------The kernels are calculated in mathematica if(order_global>=2) then !!! checked AV(24.06.22) !!! inter(1:13)=(/ &!!Exact part 0d0, 0d0, 0d0, 0d0, 0d0, & !log(1-x), log(1-x)^2, log[1-x]^3, log[1-x]^4, Log[1-x]^5 688d0/81d0 - 208d0*Lmu/27d0 + 16d0*Lmu**2/9d0 - 32d0*zeta2/9d0, 0d0, 0d0, & ! 1/x, Log(x)/x, log[x]^2/x 8d0/3d0 - 8d0*Lmu/3d0 + 8d0*Lmu**2/3d0, &! log[x] -2d0/3d0 + 8d0*Lmu/3d0, & !log[x]^2 4d0/9d0,& !Log^3(x) 0d0, 0d0/) !log^4[x], Log^5[x] inter(14:37) = &!!!! approximate part computed by Mathematica (/ 1.333333333333333d0, -3.111111111111111d0, 1.777777777777778d0, 0d0, & 0d0, 0d0, 2.666666666666667d0, 0d0, & 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0 & /)*Lmu**2 & + & (/ 10.66666666666667d0, -2.96296296296296d0, -13.03703703703704d0, 0d0, & 0d0, 0d0, -15.11111111111111d0, 2.666666666666667d0, & 0d0, 0d0, 7.111111111111111d0, 0d0, & 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0 & /)*Lmu & + & (/ -3.227018310142792d0, 0.58184560955377d0, 0.12542507033692735d0, -1.07181185106891d0, & 0.12046794593765435d0, -0.011732578381194772d0, -0.9478751341693092d0, -3.162642880410607d0, & 0.36474315015100084d0, -0.00011477503707994981d0, -3.449118717407772d0, 2.3200949718842585d0, & 0.08744322026774756d0, -0.2833666908091895d0, 0.021551416183886923d0, 0.0033218762064403337d0, & -0.6834343481246384d0, -0.0210860129627325d0, -0.0033038547215126697d0, -0.1819525104954756d0, & -0.9790941516231819d0, 0.25627829419410336d0, 0.20543357146845326d0, 0.22088733720695408d0/) Coeff_q_qp=Coeff_q_qp+alpha*alpha*inter if(order_global>=3) then !!! checked AV(24.06.22) !!! inter(1:13)=(/ &!!Exact part 0d0, 0d0, 0d0, 0d0, 0d0, & !log(1-x), log(1-x)^2, log[1-x]^3, log[1-x]^4, Log[1-x]^5 -1863800d0/729d0 + Lmu**3*(352d0/9d0 - (64d0*Nf)/81d0) + (134432d0*zeta2)/243d0 & + Lmu**2*(-6808d0/27d0 + (32d0*Nf)/27d0 + (512d0*zeta2)/27d0) + Lmu*(106112d0/81d0 & - (25664d0*zeta2)/81d0 + Nf*(-2176d0/243d0 + (128d0*zeta2)/27d0) - (6848d0*zeta3)/27d0) & + Nf*(33856d0/2187d0 - (64d0*zeta2)/27d0 - (128d0*zeta3)/27d0) + (47072d0*zeta3)/81d0 & + (11872d0*zeta4)/27d0, & ! 1/x, -68608d0/243d0 - (416d0*Lmu**2)/9d0 + (64d0*Lmu**3)/9d0 + Lmu*(4544d0/27d0 - (128d0*zeta2)/3d0) & + (832d0*zeta2)/9d0 + (128d0*zeta3)/3d0, & ! Log(x)/x 0d0, & ! Log^2(x)/x -150656d0/243d0 + Lmu**3*(176d0/9d0 - (32d0*Nf)/27d0) + Lmu**2*(-152d0/9d0 - (208d0*Nf)/27d0 & - (704d0*zeta2)/9d0) + (6304d0*zeta2)/27d0 + Lmu*(16352d0/27d0 + Nf*(-1472d0/81d0 & - (64d0*zeta2)/9d0) + (256d0*zeta2)/3d0 - (1184d0*zeta3)/3d0) + Nf*(-15760d0/729d0 & - (320d0*zeta2)/81d0 - (64d0*zeta3)/27d0) + 80d0*zeta3 - (9808d0*zeta4)/27d0, & !log[x] 22244d0/81d0 - (80d0*Lmu**3)/27d0 + Lmu**2*(344d0/9d0 - (16d0*Nf)/9d0) + Lmu*(-908d0/9d0 & - (208d0*Nf)/27d0 - (352d0*zeta2)/9d0) + Nf*(-1616d0/243d0 - (64d0*zeta2)/27d0) & - (272d0*zeta2)/27d0 - (3856d0*zeta3)/27d0, & !log^2[x] -3044d0/81d0 - (160d0*Lmu**2)/27d0 + Lmu*(920d0/27d0 - (32d0*Nf)/27d0) - (392d0*Nf)/243d0 & - (512d0*zeta2)/81d0, & !log^3[x] 580d0/81d0 - (40d0*Lmu)/9d0 - (20d0*Nf)/81d0, & !log^4[x] -20d0/27d0/) !log^5[x] inter(14:37) = &!!!! approximate part computed by Mathematica (/ -0.592592592592593d0, 1.382716049382716d0, -0.7901234567901235d0, 0d0, & 0d0, 0d0, -1.185185185185185d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, & 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0, 0d0 & /)*Nf*Lmu**3 & + & (/ -15.92272853397888d0, 14.73754334879369d0, 1.0252538396533557d0, -2.549529895855797d0, & 0.04980677724263695d0, -0.04396025340935776d0, -2.0913130128550312d0, -2.0578851054039844d0, & 0.05992354701341488d0, -0.00002366416919235366d0, -3.218893648958056d0, 0.21862710712005565d0, & -0.01679450111497901d0, 1.3006945991391052d0, 0.023857503055877093d0, 0.003447652486971469d0, & -1.589350533850617d0, -0.023426671052609524d0, -0.0034311752963447d0, 0.36937006205051987d0, & 0.021153615797440857d0, -0.1018603242093906d0, -0.2238522602731073d0, -1.542308577721926d0 & /)*Nf*Lmu**2 & + & (/ -47.8425032432307d0, 48.9990298069791d0, -1.8872796188149785d0, 1.5979813182566829d0, & 0.8961507765025266d0, -0.2536807645991519d0, -3.7613469447595915d0, -9.395680537818867d0, & -1.06752606587877d0, -0.0003301284548967919d0, -0.5161127774724069d0, 0.6294186686322646d0, & 0.12428449454682541d0, -8.791796770765814d0, -1.5262861816211084d0, -0.07275739525832361d0, & 18.155129594957362d0, 0.6311901392456124d0, 0.07252751340283625d0, 10.325641973958374d0, & 6.143450578411127d0, -12.94536882717889d0, 2.4717646097444574d0, 9.027005665514377d0 & /)*Nf*Lmu & + & (/ -59.0986813840636d0, 53.215857504091d0, 24.140580816241688d0, -81.72866050674769d0, & 1.3206302292644807d0, -4.074416991895965d0, 39.15910709887204d0, -27.58896765759569d0, & 4.609495225201512d0, -0.24899651372285408d0, -40.266596115858064d0, 16.43634624395365d0, & -2.2226721800736526d0, -65.72164767822024d0, 0.3345481347358888d0, -0.12896414486625019d0, & 90.3254995412478d0, -0.8348484413196592d0, 0.029945831270512233d0, -112.47085193301878d0, & 72.84118484216567d0, -35.67902958276407d0, 24.391166281810015d0, -19.72387321689641d0 & /)*Nf & + & (/ -50.6238567542754d0, 11.5127456431643d0, 22.124749485703727d0, -3.8947324435674817d0, & -0.38514171215422927d0, 0.014489141250248194d0, -1.297568437191498d0, 13.909716176015246d0, & -0.04691064777364909d0, -0.00006867864638985566d0, 10.240064284050815d0, -0.516961266144533d0, & 0.030172101859048134d0, 0.470069521401996d0, 0.12238108465767968d0, 0.01782118827051471d0, & -10.56834322168105d0, -0.12012179896512673d0, -0.017734642854523096d0, -3.833777027185487d0, & -5.345033831305193d0, -0.23584027284081305d0, -0.20877074496690337d0, -9.551238269214487d0 & /)*Lmu**3 & + & (/ 263.2674024272627d0, -42.312078065274d0, -571.6921420329305d0, 1498.7651660590557d0, & 302.2922211381266d0, 48.5627349393934d0, -1032.637861681827d0, -462.2666059625852d0, & -21.69974555994333d0, 0.09742244515098d0, -68.17724526126959d0, 190.28115151756995d0, & -8.161096717422804d0, 946.3762152458621d0, -16.538325077968015d0, -2.6222429252654256d0, & 792.3098169309293d0, 16.15282334739656d0, 2.607236141852663d0, 1346.214237066315d0, & 1486.5364674893049d0, -285.1373664296378d0, -553.1143081841441d0, 11.875251597455774d0 & /)*Lmu**2 & + & (/ -786.575347190271d0, 302.608000401427d0, 5366.1863325109825d0, -14997.200488514503d0, & -1298.3365715143016d0, -524.0546539255815d0, 9089.629389906473d0, 305.1539111618705d0, & 570.9216205522708d0, 7.81103796325521d0, -1731.926657876008d0, 808.7962711676832d0, & -69.44538624583392d0, -9904.852499705194d0, -64.16765612518256d0, -9.968135847410316d0, & 196.85796755082856d0, 72.02113171222993d0, 11.392872964214373d0, -16086.156630396485d0, & -6131.562800017792d0, -418.3470137766061d0, 5135.296977075216d0, -2229.4721657228165d0 & /)*Lmu & + & (/ 383.2125465551824d0, 88.97325459697d0, -2269.143315786094d0, -127490.23219337668d0, & -10003.736291069717d0, -4837.284462832547d0, 46632.83638353811d0, 2307.260465798782d0, & 3327.0726897549885d0, -52.71914150605516d0, 16174.623029027776d0, -2349.811027529514d0, & 506.6983717307881d0, -40608.98157324396d0, -772.3222874172269d0, -191.4272992139688d0, & 2588.140813926824d0, 662.2086466156652d0, 183.51086095936924d0, -74499.37187804801d0, & -31743.10247894145d0, -3511.1266352060857d0, 31106.518414717415d0, -6721.7208256652975d0/) Coeff_q_qp=Coeff_q_qp+alpha**3*inter end if end if end subroutine Set_Coeff_q_qp !!! This function has been used during debuging subroutine CheckCoefficient(as,Nf,Lmu,z) real(dp)::Lmu,as,z,Nf,lz,l1z real(dp), dimension(1:37)::func real(dp), dimension(1:3)::func1 func=parametrizationString(z) func1=(/1d0/(1d0-z),Log(1d0-z)/(1d0-z),Log(1d0-z)**2/(1d0-z)/) !!Q->Q ! call Set_CoeffSing1_q_q(as,Nf,Lmu) ! call Set_Coeff_q_q(as,Nf,Lmu) ! write(*,*) SUM(Coeff_q_q*func)!+SUM(CoeffSing1_q_q*func1) !!Q->G ! ! call Set_Coeff_q_g(as,Nf,Lmu) ! ! write(*,*) SUM(Coeff_q_g*func) ! !!Q->Q' ! call Set_Coeff_q_qp(as,Nf,Lmu) ! write(*,*) SUM(Coeff_q_qp*func) !!Q->Qbar ! call Set_Coeff_q_qb(as,Nf,Lmu) ! write(*,*) SUM(Coeff_q_qb*func) ! !! G->Q ! call Set_Coeff_g_q(as,Nf,Lmu) ! write(*,*) SUM(Coeff_g_q*func) ! !!G->G call Set_CoeffSing1_g_g(as,Nf,Lmu) call Set_Coeff_g_g(as,Nf,Lmu) write(*,*) SUM(Coeff_g_g*func)!+SUM(CoeffSing1_g_g*func1) end subroutine CheckCoefficient
72,350
55.30428
137
f90
artemide-public
artemide-public-master/src/Code/uTMDPDF/convolutions.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!! !!!!!!!!! part of uTMDPDF module for artemide !!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!------------------------------------------------------------------------------------------------------- !!!-----------------------------Routines for evaluation of TMD distributions------------------------------ !!!-------------------------the actual calculation takes a place in twist2 code--------------------------- !!!------------------------------------------------------------------------------------------------------- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Convolutions!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !------------------------------------------------- !!!!array of x times PDF(x,Q) for hadron 'hadron' !!!! array is (-5:5) (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function xf(x,Q,hadron) real(dp) :: x,Q integer:: hadron real(dp), dimension(-5:5):: xf xf=xPDF(x,Q,hadron) end function xf !--------------------------------------------------------------------- !- This is the TMD function evaluated for all quarks simultaniously (-5..5) at x,bT,mu !-- f = -5, -4, -3, -2, -1,0,1,2,3, 4 ,5 !-- = bbar ,cbar sbar,ubar,dbar,??,d,u,s, c ,b !!---Gluon contribution is undefined !!---Base version: hadron=number of PDF !--------------------------------------------------------------------- !--------------------------------------------------------------------- function uTMDPDF_base5(x,bT,hadron) real(dp),dimension(-5:5)::uTMDPDF_base5 real(dp) :: x, bT integer::hadron !!! variables for restoration only real(dp),dimension(-5:5) :: fNP_grid,fNP_current integer::j !!!! if the coefficient function is not used at all. Just return fNP if(order_global==-50) then uTMDPDF_base5=fNP(x,1d0,bT,hadron,lambdaNP) !!! in the case the greed has been calculated AND the hadron is in the grid else if(gridReady .and. ANY(hadronsInGRID.eq.hadron)) then uTMDPDF_base5=ExtractFromGrid(x,bT,hadron) !!!!!!!!!!This is procedure of restoration of function from the initial grid !!! if fNP is x-independent then the value can be obtained by TMDPDF(initial) fNP(current)/fNP(initial) if(.not.IsFnpZdependent) then fNP_grid=FNP(x,0d0,bT,hadron,lambdaNP_grid) fNP_current=FNP(x,0d0,bT,hadron,lambdaNP) do j=-5,5 if(fNP_grid(j)==0) then if(fNP_current(j)/=0 .and. ((j/=0).or.(.not.withGluon))) then if(outputLevel>0) & call Warning_Raise('error in restoration: original value is zero. TMDPDF set to zero. b='& //numToStr(bT)//' x='//numToStr(x)//' f='//numToStr(j),& messageCounter,messageTrigger,moduleName) end if uTMDPDF_base5(j)=0!!!! this is case then 0/0 else uTMDPDF_base5(j)=uTMDPDF_base5(j)*fNP_current(j)/fNP_grid(j) end if end do end if !!!! finally just calculation else uTMDPDF_base5=Common_lowScale5(x,bT,hadron) end if end function uTMDPDF_base5 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !--------------------------------------------------------------------- !- This is the TMD function evaluated for all quarks simultaniously (-5..5) at x,bT,mu the GLUON INCLUDED !-- f = -5, -4, -3, -2, -1,0,1,2,3, 4 ,5 !-- = bbar ,cbar sbar,ubar,dbar,g,d,u,s, c ,b !!---Base version: hadron=number of PDF !--------------------------------------------------------------------- !--------------------------------------------------------------------- function uTMDPDF_base50(x,bT,hadron) real(dp),dimension(-5:5)::uTMDPDF_base50 real(dp) :: x, bT integer::hadron !!! variables for restoration only real(dp),dimension(-5:5) :: fNP_grid,fNP_current integer::j !!!! if the coefficient function is not used at all. Just return fNP if(order_global==-50) then uTMDPDF_base50=fNP(x,1d0,bT,hadron,lambdaNP) !!! in the case the greed has been calculated FOR THIS HADRON else if(gridReady .and. ANY(hadronsInGRID.eq.hadron)) then uTMDPDF_base50=ExtractFromGrid(x,bT,hadron) !!!!!!!!!!This is procedure of restoration of function from the initial grid !!! if fNP is x-independent then the value can be obtained by TMDPDF(initial) fNP(current)/fNP(initial) if(.not.IsFnpZdependent) then fNP_grid=FNP(x,0d0,bT,hadron,lambdaNP_grid) fNP_current=FNP(x,0d0,bT,hadron,lambdaNP) do j=-5,5 if(fNP_grid(j)==0) then if(uTMDPDF_base50(j)/=0.and.j/=0) then if(outputLevel>0) & call Warning_Raise('error in restoration: original value is zero. TMDPDF set to zero. b='//numToStr(bT),& messageCounter,messageTrigger,moduleName) end if uTMDPDF_base50(j)=0 else uTMDPDF_base50(j)=uTMDPDF_base50(j)*fNP_current(j)/fNP_grid(j) end if end do end if !!!! finally just calculation else uTMDPDF_base50=Common_lowScale50(x,bT,hadron) end if end function uTMDPDF_base50 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!OUTPUT INTERFACE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !--------------------------------------------------------------------- !- This is the TMD function evaluated for all quarks simultaniously (-5..5) at x,bT,mu !-- f = -5, -4, -3, -2, -1,0,1,2,3, 4 ,5 !-- = bbar ,cbar sbar,ubar,dbar,??,d,u,s, c ,b !!---Gluon contribution is undefined !!---Full version: hadron=number of PDF (if compositeness OFF) !!--- hadron=sum components (if compositeness ON) !--------------------------------------------------------------------- !--------------------------------------------------------------------- function uTMDPDF_lowScale5(x,bT,hadron) real(dp),dimension(-5:5)::uTMDPDF_lowScale5 real(dp) :: x, bT integer::hadron logical,allocatable::includeInComposition(:) real(dp),allocatable::compositionCoefficients(:) integer::j,jN if(x>1d0) then uTMDPDF_lowScale5=(/0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0/) return end if if(IsComposite) then uTMDPDF_lowScale5=(/0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0/) call GetCompositionArray(hadron,lambdaNP,includeInComposition,compositionCoefficients) jN=size(includeInComposition) do j=1,jN if(includeInComposition(j)) then uTMDPDF_lowScale5=uTMDPDF_lowScale5+compositionCoefficients(j)*uTMDPDF_base5(x,bT,j) end if end do deallocate(includeInComposition,compositionCoefficients) else uTMDPDF_lowScale5=uTMDPDF_base5(x,bT,hadron) end if end function uTMDPDF_lowScale5 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !--------------------------------------------------------------------- !- This is the TMD function evaluated for all quarks simultaniously (-5..5) at x,bT,mu the GLUON INCLUDED !-- f = -5, -4, -3, -2, -1,0,1,2,3, 4 ,5 !-- = bbar ,cbar sbar,ubar,dbar,g,d,u,s, c ,b !!---Full version: hadron=number of PDF (if compositeness OFF) !!--- hadron=sum components (if compositeness ON) !--------------------------------------------------------------------- !--------------------------------------------------------------------- function uTMDPDF_lowScale50(x,bT,hadron) real(dp),dimension(-5:5)::uTMDPDF_lowScale50 real(dp) :: x, bT integer::hadron logical,allocatable::includeInComposition(:) real(dp),allocatable::compositionCoefficients(:) integer::j,jN if(x>1d0) then uTMDPDF_lowScale50=(/0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0/) return end if if(IsComposite) then uTMDPDF_lowScale50=(/0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0/) call GetCompositionArray(hadron,lambdaNP,includeInComposition,compositionCoefficients) jN=size(includeInComposition) do j=1,jN if(includeInComposition(j)) then uTMDPDF_lowScale50=uTMDPDF_lowScale50+compositionCoefficients(j)*uTMDPDF_base50(x,bT,j) end if end do deallocate(includeInComposition,compositionCoefficients) else uTMDPDF_lowScale50=uTMDPDF_base50(x,bT,hadron) end if end function uTMDPDF_lowScale50
9,271
40.026549
125
f90
artemide-public
artemide-public-master/src/Code/uTMDPDF/modelTest.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!! !!!!!!!!! part of uTMDPDF module for artemide !!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!------------------------------------------------------------------------------------------------------- !!!-----------------------------Routines that test the behaviour of NP model------------------------------ !!!------------------------------------------------------------------------------------------------------- !!! test FNP for z-dependance !!! the test consists in the evaluation of FNP at several random sets and NParray !!! and comparison of the values. function TestFNP() logical::TestFNP real(dp)::xR,bR real(dp),dimension(-5:5)::test1,test2 integer::h,i,j real(dp),allocatable::NPtest(:) allocate(NPtest(1:lambdaNPlength)) call RANDOM_NUMBER(NPtest) NPtest=3d0*NPtest TestFNP=.false. do h=1,numberOfHadrons do i=1,10 !! generate some random input call RANDOM_NUMBER(xR) if(xR>0.99d0) xR=xR/2d0 if(xR<0.00001d0) xR=0.0001d0+xR call RANDOM_NUMBER(bR) bR=3d0*bR test1=FNP(xR,0.9d0,bR,hadronsInGRID(h),NPtest) do j=1,10 test2=FNP(xR,0.8d0/REAL(j),bR,hadronsInGRID(h),NPtest) if(SUM(ABS(test1-test2))>1d-10) then TestFNP=.true. exit end if end do end do end do deallocate(NPtest) end function TestFNP !!! test MU for x-dependance !!! the test consists in the evaluation of FNP at several random sets and NParray !!! and comparison of the values. function TestMU() logical::TestMU real(dp)::xR,bR real(dp)::test1,test2 integer::i,j TestMU=.false. do i=1,10 call RANDOM_NUMBER(bR) bR=3d0*bR !!! generate some random input call RANDOM_NUMBER(xR) if(xR>0.99d0) xR=xR/2d0 if(xR<0.00001d0) xR=0.0001d0+xR test1=mu_OPE(xR,bR) !!! generate some random input call RANDOM_NUMBER(xR) if(xR>0.99d0) xR=xR/2d0 if(xR<0.00001d0) xR=0.0001d0+xR test2=mu_OPE(xR,bR) if(ABS(test1-test2)>1d-10) then TestMU=.true. exit end if end do end function TestMU !!! test bSTAR for lambda-dependance !!! .true. = lambda-dependent function TestbSTAR() integer::i,j,k logical::TestbSTAR real(dp)::bT,dummy1,dummy2 real(dp),allocatable::NPtest(:) allocate(NPtest(1:lambdaNPlength)) TestbSTAR=.false. do i=1,lambdaNPlength NPtest=0.5d0+0d0*NPtest do k=0,3 bT=0.1d0+k dummy1=bSTAR(bT,NPtest) do j=1,3 NPtest(i)=0.9d0*j dummy2=bSTAR(bT,NPtest) if(abs(dummy2-dummy1)>1d-10) then TestbSTAR=.true. exit end if end do end do end do end function TestbSTAR
3,133
26.734513
106
f90
artemide-public
artemide-public-master/src/Code/wgtTMDPDF/coeffFunc.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!! !!!!!!!!! part of wgtTMDPDF module for artemide !!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!------------------------------------------------------------------------------------------------------- !!!-----------------------------Routines for the mathing coefficient-------------------------------------- !!!--------------The order is accumulative pertrubative order of coefficient =1,2,3 (LO,NLO,NNLO)--------- !!!------------------------------------------------------------------------------------------------------- !!! the function which contains the functions of parameterizations pure function parametrizationString(z) real(dp),intent(in)::z real(dp),dimension(1:parametrizationLength)::parametrizationString !lz=Log(z) !l1z=Log(1d0-z) parametrizationString=(/1d0,z,Log(z),Log(1d0-z)/) end function parametrizationString !!! the function which contains !!! int_z^1 parameterization at values of z -> 1 !!! it is used to estimate integration error at z~1 pure function parametrizationStringAt1(z) real(dp), intent(in)::z real(dp),dimension(1:parametrizationLength)::parametrizationStringAt1 real(dp)::zz zz=(1d0-z) parametrizationStringAt1=(/zz,zz,0d0,zz*(Log(zz)-1d0)/) end function parametrizationStringAt1 !!!!Each coefficient is split to delta, sing x->1, regular !!!!!coefficient function q<-q delta-part pure function C_q_q_delta(alpha,Nf,Lmu) real(dp), intent(in)::Nf,alpha,Lmu real(dp)::C_q_q_delta C_q_q_delta=0d0 end function C_q_q_delta !!!!!coefficient function g<-g delta-part pure function C_g_g_delta(alpha,Nf,Lmu) real(dp), intent(in)::Nf,alpha,Lmu real(dp)::C_g_g_delta C_g_g_delta=0d0 end function C_g_g_delta !!!!!coefficient function q<-q singular-part (1/(1-x)_+,(Log(1-x)/(1-x))_+) subroutine Set_CoeffSing1_q_q(alpha,Nf,Lmu) real(dp)::Nf,alpha,Lmu CoeffSing1_q_q=(/0d0, 0d0, 0d0/) end subroutine Set_CoeffSing1_q_q !!!!!coefficient function g<-g singular-part (1/(1-x)_+,(Log(1-x)/(1-x))_+) subroutine Set_CoeffSing1_g_g(alpha,Nf,Lmu) real(dp)::Nf,alpha,Lmu CoeffSing1_g_g=(/0d0, 0d0, 0d0/) end subroutine Set_CoeffSing1_g_g !!!!!coefficient function q<-q regular-part !!!!! note that the order counting starts from 1=LO, 2=NLO etc. Because 0=delta contribution only[in Twist2Convolution] subroutine Set_Coeff_q_q(alpha,Nf,Lmu) real(dp)::alpha,Nf,Lmu !! the Leading order is 1, it is WW-part of worm-gear function Coeff_q_q=(/1d0,0d0,0d0,0d0/) !1 if(order_global>=2) then Coeff_q_q=Coeff_q_q+alpha*4d0/3d0*(/& -Lmu-2d0-zeta2, -2d0*Lmu+2d0, 2d0*Lmu-2d0, -4d0*Lmu/) ! ! write(*,*) 'regularPart=', regularPart/x end if end subroutine Set_Coeff_q_q !!!!!coefficient function q<-g regular-part !!!!! note that the order counting starts from 1=LO, 2=NLO etc. Because 0=delta contribution only[in Twist2Convolution] subroutine Set_Coeff_q_g(alpha,Nf,Lmu) real(dp)::alpha,Nf,Lmu !! the Leading order is always zero, therefore calculation should be done only for order >=1 Coeff_q_g=(/0d0,0d0,0d0,0d0/) if(order_global>=2) then Coeff_q_g=Coeff_q_g+alpha*(/-2d0*Lmu+1d0, 2d0*Lmu-1d0, -Lmu+0.5d0, 0d0/) end if end subroutine Set_Coeff_q_g !!!!!coefficient function g<-q regular-part subroutine Set_Coeff_g_q(alpha,Nf,Lmu) real(dp)::alpha,Nf,Lmu !! the Leading order is always zero, therefore calculation should be done only for order >=1 Coeff_g_q=(/0d0,0d0,0d0,0d0/) ! if(order_global>=1) then ! Coeff_g_q=Coeff_g_q+alpha*(/0d0/)! ! ! end if end subroutine Set_Coeff_g_q !!!!!coefficient function g<-g regular-part subroutine Set_Coeff_g_g(alpha,Nf,Lmu) real(dp)::alpha,Nf,Lmu !! the Leading order is always zero, therefore calculation should be done only for order >=1 Coeff_g_g=(/1d0,0d0,0d0,0d0/) if(outputLevel>0) write(*,*) & WarningString('gluon part of worm-gear T function is not known. Set alike quark.',moduleName) end subroutine Set_Coeff_g_g !!!!!coefficient function q<-qb regular-part subroutine Set_Coeff_q_qb(alpha,Nf,Lmu) real(dp)::alpha,Nf,Lmu !! the Leading order is always zero, therefore calculation should be done only for order >=1 Coeff_q_qb=(/0d0,0d0,0d0,0d0/)! end subroutine Set_Coeff_q_qb !!!!!coefficient function q<-qp regular-part subroutine Set_Coeff_q_qp(alpha,Nf,Lmu) real(dp)::alpha,Nf,Lmu !! the Leading order is always zero, therefore calculation should be done only for order >=1 Coeff_q_qp=(/0d0,0d0,0d0,0d0/) end subroutine Set_Coeff_q_qp !!! This function has been used during debuging subroutine CheckCoefficient(as,Nf,Lmu,z) real(dp)::Lmu,as,z,Nf,lz,l1z real(dp), dimension(1:23)::func real(dp), dimension(1:2)::func1 ! lz=Log(z) ! l1z=Log(1d0-z) ! func=(/l1z,l1z**2,l1z**3,& ! 1d0/z,lz/z,& ! lz,lz**2,lz**3,& ! 1d0,z,z**2,& ! z/(1d0-z)*lz, z*lz, (z**2)*lz,& ! z/(1d0-z)*lz**2,z*lz**2,& ! (lz/(1d0-z)+1d0)*l1z,lz*l1z,z*lz*l1z,& ! (1d0-z)/z*l1z, (1d0-z)*l1z, ((1d0-z)**2)*l1z,(1d0-z)*l1z**2/) ! ! func1=(/1d0/(1d0-z),Log(1d0-z)/(1d0-z)/) ! !!Q->Q ! call Set_CoeffSing1_q_q(as,Nf,Lmu) ! call Set_Coeff_q_q(as,Nf,Lmu) ! write(*,*) SUM(Coeff_q_q*func)+SUM(CoeffSing1_q_q*func1) ! !!Q->G ! call Set_Coeff_q_g(as,Nf,Lmu) ! write(*,*) SUM(Coeff_q_g*func) ! !!Q->Q' ! call Set_Coeff_q_qp(as,Nf,Lmu) ! write(*,*) SUM(Coeff_q_qp*func) !!Q->Qbar ! call Set_Coeff_q_qb(as,Nf,Lmu) ! write(*,*) SUM(Coeff_q_qb*func) ! !! G->Q ! call Set_Coeff_g_q(as,Nf,Lmu) ! write(*,*) SUM(Coeff_g_q*func) ! !!G->G call Set_CoeffSing1_g_g(as,Nf,Lmu) call Set_Coeff_g_g(as,Nf,Lmu) !write(*,*) SUM(Coeff_g_g*func)+SUM(CoeffSing1_g_g*func1) end subroutine CheckCoefficient
6,196
32.317204
119
f90
artemide-public
artemide-public-master/src/Code/wgtTMDPDF/convolutions.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!! !!!!!!!!! part of wgtTMDPDF module for artemide !!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!------------------------------------------------------------------------------------------------------- !!!-----------------------------Routines for evaluation of TMD distributions------------------------------ !!!-------------------------the actual calculation takes a place in twist2 code--------------------------- !!!------------------------------------------------------------------------------------------------------- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Convolutions!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !------------------------------------------------- !!!!array of x times PDF(x,Q) for hadron 'hadron' !!!! array is (-5:5) (bbar,cbar,sbar,ubar,dbar,g,d,u,s,c,b) function xf(x,Q,hadron) real(dp) :: x,Q integer:: hadron real(dp), dimension(-5:5):: xf !!! helicity times x xf=x_hPDF(x,Q,hadron) !xf=(/x,x,x,x,x,x,x**2,x,x,x,x/) end function xf !--------------------------------------------------------------------- !- This is the TMD function evaluated for all quarks simultaniously (-5..5) at x,bT,mu !-- f = -5, -4, -3, -2, -1,0,1,2,3, 4 ,5 !-- = bbar ,cbar sbar,ubar,dbar,??,d,u,s, c ,b !!---Gluon contribution is undefined !!---Base version: hadron=number of PDF !--------------------------------------------------------------------- !--------------------------------------------------------------------- function wgtTMDPDF_base5(x,bT,hadron) real(dp),dimension(-5:5)::wgtTMDPDF_base5 real(dp) :: x, bT integer::hadron !!! variables for restoration only real(dp),dimension(-5:5) :: fNP_grid,fNP_current integer::j !!!! if the coefficient function is not used at all. Just return fNP if(order_global<0) then wgtTMDPDF_base5=fNP(x,1d0,bT,hadron,lambdaNP) !!! in the case the greed has been calculated AND the hadron is in the grid else if(gridReady .and. ANY(hadronsInGRID.eq.hadron)) then wgtTMDPDF_base5=x*ExtractFromGrid(x,bT,hadron) !!!!!!!!!!This is procedure of restoration of function from the initial grid !!! if fNP is x-independent then the value can be obtained by TMDPDF(initial) fNP(current)/fNP(initial) if(.not.IsFnpZdependent) then fNP_grid=FNP(x,0d0,bT,hadron,lambdaNP_grid) fNP_current=FNP(x,0d0,bT,hadron,lambdaNP) do j=-5,5 if(fNP_grid(j)==0) then if(fNP_current(j)/=0 .and. ((j/=0).or.(.not.withGluon))) then if(outputLevel>0) & call Warning_Raise('error in restoration: original value is zero. TMDPDF set to zero. b='& //numToStr(bT)//' x='//numToStr(x)//' f='//numToStr(j),& messageCounter,messageTrigger,moduleName) end if wgtTMDPDF_base5(j)=0!!!! this is case then 0/0 else wgtTMDPDF_base5(j)=wgtTMDPDF_base5(j)*fNP_current(j)/fNP_grid(j) end if end do !!!! only (tw-2 part)*fNP is saved in grid. Therefore, we add tw3*fNP wgtTMDPDF_base5=wgtTMDPDF_base5+g1T_tw3NP(x,hadron,lambdaNP)*FNP(x,0d0,bT,hadron,lambdaNP) end if !!!! finally just calculation else !!!! only (tw-2 part)*fNP is computed by convolution. Therefore, we add tw3*fNP !!!! the factor x is the part of definition of convolution for WW wgtTMDPDF_base5=x*Common_lowScale5(x,bT,hadron)+g1T_tw3NP(x,hadron,lambdaNP)*FNP(x,0d0,bT,hadron,lambdaNP) end if end function wgtTMDPDF_base5 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !--------------------------------------------------------------------- !- This is the TMD function evaluated for all quarks simultaniously (-5..5) at x,bT,mu the GLUON INCLUDED !-- f = -5, -4, -3, -2, -1,0,1,2,3, 4 ,5 !-- = bbar ,cbar sbar,ubar,dbar,g,d,u,s, c ,b !!---Base version: hadron=number of PDF !--------------------------------------------------------------------- !--------------------------------------------------------------------- function wgtTMDPDF_base50(x,bT,hadron) real(dp),dimension(-5:5)::wgtTMDPDF_base50 real(dp) :: x, bT integer::hadron !!! variables for restoration only real(dp),dimension(-5:5) :: fNP_grid,fNP_current integer::j !!!! if the coefficient function is not used at all. Just return fNP if(order_global<0) then wgtTMDPDF_base50=fNP(x,1d0,bT,hadron,lambdaNP) !!! in the case the greed has been calculated FOR THIS HADRON else if(gridReady .and. ANY(hadronsInGRID.eq.hadron)) then wgtTMDPDF_base50=x*ExtractFromGrid(x,bT,hadron) !!!!!!!!!!This is procedure of restoration of function from the initial grid !!! if fNP is x-independent then the value can be obtained by TMDPDF(initial) fNP(current)/fNP(initial) if(.not.IsFnpZdependent) then fNP_grid=FNP(x,0d0,bT,hadron,lambdaNP_grid) fNP_current=FNP(x,0d0,bT,hadron,lambdaNP) do j=-5,5 if(fNP_grid(j)==0) then if(wgtTMDPDF_base50(j)/=0.and.j/=0) then if(outputLevel>0) & call Warning_Raise('error in restoration: original value is zero. TMDPDF set to zero. b='//numToStr(bT),& messageCounter,messageTrigger,moduleName) end if wgtTMDPDF_base50(j)=0 else wgtTMDPDF_base50(j)=wgtTMDPDF_base50(j)*fNP_current(j)/fNP_grid(j) end if end do !!!! only (tw-2 part)*fNP is saved in grid. Therefore, we add tw3*fNP !!!! the factor x is the part of definition of convolution for WW wgtTMDPDF_base50=wgtTMDPDF_base50+g1T_tw3NP(x,hadron,lambdaNP)*FNP(x,0d0,bT,hadron,lambdaNP) end if !!!! finally just calculation else !!!! only (tw-2 part)*fNP is computed by convolution. Therefore, we add tw3*fNP wgtTMDPDF_base50=x*Common_lowScale50(x,bT,hadron)+g1T_tw3NP(x,hadron,lambdaNP)*FNP(x,0d0,bT,hadron,lambdaNP) end if end function wgtTMDPDF_base50 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!OUTPUT INTERFACE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !--------------------------------------------------------------------- !- This is the TMD function evaluated for all quarks simultaniously (-5..5) at x,bT,mu !-- f = -5, -4, -3, -2, -1,0,1,2,3, 4 ,5 !-- = bbar ,cbar sbar,ubar,dbar,??,d,u,s, c ,b !!---Gluon contribution is undefined !!---Full version: hadron=number of PDF (if compositeness OFF) !!--- hadron=sum components (if compositeness ON) !--------------------------------------------------------------------- !--------------------------------------------------------------------- function wgtTMDPDF_lowScale5(x,bT,hadron) real(dp),dimension(-5:5)::wgtTMDPDF_lowScale5 real(dp) :: x, bT integer::hadron logical,allocatable::includeInComposition(:) real(dp),allocatable::compositionCoefficients(:) integer::j,jN if(x>1d0) then wgtTMDPDF_lowScale5=(/0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0/) return end if if(IsComposite) then wgtTMDPDF_lowScale5=(/0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0/) call GetCompositionArray(hadron,lambdaNP,includeInComposition,compositionCoefficients) jN=size(includeInComposition) do j=1,jN if(includeInComposition(j)) then wgtTMDPDF_lowScale5=wgtTMDPDF_lowScale5+compositionCoefficients(j)*wgtTMDPDF_base5(x,bT,j) end if end do deallocate(includeInComposition,compositionCoefficients) else wgtTMDPDF_lowScale5=wgtTMDPDF_base5(x,bT,hadron) end if end function wgtTMDPDF_lowScale5 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !--------------------------------------------------------------------- !- This is the TMD function evaluated for all quarks simultaniously (-5..5) at x,bT,mu the GLUON INCLUDED !-- f = -5, -4, -3, -2, -1,0,1,2,3, 4 ,5 !-- = bbar ,cbar sbar,ubar,dbar,g,d,u,s, c ,b !!---Full version: hadron=number of PDF (if compositeness OFF) !!--- hadron=sum components (if compositeness ON) !--------------------------------------------------------------------- !--------------------------------------------------------------------- function wgtTMDPDF_lowScale50(x,bT,hadron) real(dp),dimension(-5:5)::wgtTMDPDF_lowScale50 real(dp) :: x, bT integer::hadron logical,allocatable::includeInComposition(:) real(dp),allocatable::compositionCoefficients(:) integer::j,jN if(x>1d0) then wgtTMDPDF_lowScale50=(/0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0/) return end if if(IsComposite) then wgtTMDPDF_lowScale50=(/0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0,0d0/) call GetCompositionArray(hadron,lambdaNP,includeInComposition,compositionCoefficients) jN=size(includeInComposition) do j=1,jN if(includeInComposition(j)) then wgtTMDPDF_lowScale50=wgtTMDPDF_lowScale50+compositionCoefficients(j)*wgtTMDPDF_base50(x,bT,j) end if end do deallocate(includeInComposition,compositionCoefficients) else wgtTMDPDF_lowScale50=wgtTMDPDF_base50(x,bT,hadron) end if end function wgtTMDPDF_lowScale50
10,305
41.941667
125
f90
artemide-public
artemide-public-master/src/Code/wgtTMDPDF/modelTest.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!! !!!!!!!!! part of wgtTMDPDF module for artemide !!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!------------------------------------------------------------------------------------------------------- !!!-----------------------------Routines that test the behaviour of NP model------------------------------ !!!------------------------------------------------------------------------------------------------------- !!! test FNP for z-dependance !!! the test consists in the evaluation of FNP at several random sets and NParray !!! and comparison of the values. function TestFNP() logical::TestFNP real(dp)::xR,bR real(dp),dimension(-5:5)::test1,test2 integer::h,i,j real(dp),allocatable::NPtest(:) allocate(NPtest(1:lambdaNPlength)) call RANDOM_NUMBER(NPtest) NPtest=3d0*NPtest TestFNP=.false. do h=1,numberOfHadrons do i=1,10 !! generate some random input call RANDOM_NUMBER(xR) if(xR>0.99d0) xR=xR/2d0 if(xR<0.00001d0) xR=0.0001d0+xR call RANDOM_NUMBER(bR) bR=3d0*bR test1=FNP(xR,0.9d0,bR,hadronsInGRID(h),NPtest) do j=1,10 test2=FNP(xR,0.8d0/REAL(j),bR,hadronsInGRID(h),NPtest) if(SUM(ABS(test1-test2))>1d-10) then TestFNP=.true. exit end if end do end do end do deallocate(NPtest) end function TestFNP !!! test MU for x-dependance !!! the test consists in the evaluation of FNP at several random sets and NParray !!! and comparison of the values. function TestMU() logical::TestMU real(dp)::xR,bR real(dp)::test1,test2 integer::i,j TestMU=.false. do i=1,10 call RANDOM_NUMBER(bR) bR=3d0*bR !!! generate some random input call RANDOM_NUMBER(xR) if(xR>0.99d0) xR=xR/2d0 if(xR<0.00001d0) xR=0.0001d0+xR test1=mu_OPE(xR,bR) !!! generate some random input call RANDOM_NUMBER(xR) if(xR>0.99d0) xR=xR/2d0 if(xR<0.00001d0) xR=0.0001d0+xR test2=mu_OPE(xR,bR) if(ABS(test1-test2)>1d-10) then TestMU=.true. exit end if end do end function TestMU !!! test bSTAR for lambda-dependance !!! .true. = lambda-dependent function TestbSTAR() integer::i,j,k logical::TestbSTAR real(dp)::bT,dummy1,dummy2 real(dp),allocatable::NPtest(:) allocate(NPtest(1:lambdaNPlength)) TestbSTAR=.false. do i=1,lambdaNPlength NPtest=0.5d0+0d0*NPtest do k=0,3 bT=0.1d0+k dummy1=bSTAR(bT,NPtest) do j=1,3 NPtest(i)=0.9d0*j dummy2=bSTAR(bT,NPtest) if(abs(dummy2-dummy1)>1d-10) then TestbSTAR=.true. exit end if end do end do end do end function TestbSTAR
3,135
26.752212
106
f90
artemide-public
artemide-public-master/src/Model/SiversTMDPDF_model.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! Model for Sivers TMD PDF [20??.????] ! ! A.Vladimirov (21.05.2020) ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! module SiversTMDPDF_model use aTMDe_Numerics use IO_functions implicit none private !!!!!------------------------------------------------------------------------------------ !!!!! These functions MUST defined in module !! !!!!! !!!!! 1) The subroutine is called during the initialization of TMD-module !!!!! arg=array of initial NP-parameters public:: ModelInitialization !!!!! 2) The subroutine that is called on reset of NP-parameters in TMD-module !!!!! arg=array of new NP-parameters public:: ModelUpdate !!!!! 3) Function which returns FNP function !!!!! arg=(x,b,hadron,lambdaNP) with x=x_Bj for TMD (real_dp), !!!!! b=transverse distance(real_dp), hadron=number of the hadron in grid(integer) !!!!! lambdaNP = array of NP parameters (real_dp(:)) real(dp),public,dimension(-5:5):: FNP !!!!! 4) Function which returns the value of b used as argument of convolution integrals !!!!! arg=(b,lambdaNP) with b=transverse distance(real_dp), lambdaNP = array of NP parameters (real_dp(:)) real(dp),public:: bSTAR !!!!! 5) Function which returns the scale of matching (OPE scale) !!!!! arg=(bt) with b=transverse distance(real_dp) real(dp),public:: mu_OPE !!!!! 6) Subroutine which returns the array of parameters CA which compose the TMDs into a single one !!!!! i.e. the TMD for hardon=h is build as TMD(h)=Sum_c CA(h,c) TMD(c) !!!!! it is used only if the option UseComposite TMD is ON, !!!!! arg=(h,lambdaNP,includeArray,CA) with h=hadron(integer),lambdaNP = array of NP parameters (real_dp(:)) !!!!! includeArray=logical array with .true. for terms included in the sum (logical(:),allocatable,intent(out)) !!!!! CA=coefficient CA (real_dp(:),allocatable,intent(out)) public:: GetCompositionArray !!!!! 7) Subroutine which returns the array of NP-parameters corresponding to certain integer (replica) !!!!! arg=rep input integer, NParray (real_dp(:), allocatable, intent(out)) returned array public:: GetReplicaParameters !!!!!------------------------------------------------------------------------------------ real(dp),allocatable::NPparam(:) contains !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! USER DEFINED FUNCTIONS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!! Write nessecery model intitialization. subroutine ModelInitialization(NPstart) real(dp),intent(in)::NPstart(:) allocate(NPparam(1:size(NPstart))) NPparam=NPstart write(*,*) color(">>> The model for Sivers function is BPV20. Please, cite [20??.????] <<<",c_cyan) end subroutine ModelInitialization !!!!!! Write nessecery model update (e.g. save current NP-parameters) !!!!!! newNPParams is the new NP-array subroutine ModelUpdate(newNPParams) real(dp),intent(in):: newNPParams(:) NPparam=newNPParams !! save new vector of NP-parameters end subroutine ModelUpdate !!! This is non-pertrubative function !!! non=pertrubative parameters are lambdaNP() !!! x-- is the bjorken variable of TMD function FNP(x,bT,hadron,lambdaNP) real(dp),intent(in)::x,bT integer,intent(in)::hadron real(dp),intent(in)::lambdaNP(:) real(dp)::bProfile real(dp)::FNPu,FNPd,FNPs,FNPsea,Normu,Normd,Normsea,YY !!! profile in b is common for all (5 parameters) YY=(lambdaNP(1)+x*lambdaNP(2))*(bT**2)/sqrt(1d0+Abs(lambdaNP(3))*x**2*bT**2) bProfile=exp(-YY) !bProfile=1d0/cosh((lambdaNP(1)+x**2*lambdaNP(2))*bT) !!! u-quark(3 parameters) Normu=(3d0+lambdaNP(7)+lambdaNP(8)*(1+lambdaNP(7)))/((lambdaNP(7)+1d0)*(lambdaNP(7)+2d0)*(lambdaNP(7)+3d0)) FNPu=lambdaNP(6)*(1-x)*x**lambdaNP(7)*(1+lambdaNP(8)*x)/Normu !!! d-quark(3 parameters) Normd=(3d0+lambdaNP(10)+lambdaNP(11)*(1+lambdaNP(10)))/((lambdaNP(10)+1d0)*(lambdaNP(10)+2d0)*(lambdaNP(10)+3d0)) FNPd=lambdaNP(9)*(1-x)*x**lambdaNP(10)*(1+lambdaNP(11)*x)/Normd !!! sea-quark(3 parameters) Normsea=1d0/((lambdaNP(13)+1d0)*(lambdaNP(13)+2d0)) FNPs=lambdaNP(12)*(1-x)*x**lambdaNP(13)/Normsea FNPsea=lambdaNP(14)*(1-x)*x**lambdaNP(13)/Normsea FNP=bProfile*(/0d0,0d0,FNPsea,FNPsea,FNPsea,0d0,FNPd,FNPu,FNPs,0d0,0d0/) end function FNP !!!! This is the function b* that enter the logarithms of coefficient function !!!! at small-b it should be ~b to match the collinear regime !!!! at large-b it is a part of model !!!! NOTE: if it is lambda-dependent, the grid will be recalculate each reset of lambdaNP pure function bSTAR(bT,lambdaNP) real(dp),intent(in)::bT real(dp),intent(in)::lambdaNP(:) bSTAR=bT/sqrt(1d0+(bT/500d0)**2) end function bSTAR !!!!This function is the mu(x,b), which is used inside the OPE pure function mu_OPE(bt) real(dp),intent(in)::bt mu_OPE=C0_const*1d0/bT+2d0 if(mu_OPE>1000d0) then mu_OPE=1000d0 end if end function mu_OPE !!!! if the option UseComposite TMD is OFF, this function is ignored !!!! If the option UseComposite TMD is ON, !!!! than the TMD for hardon is build as TMD(hadron)=Sum_c CA(h,c) TMD(c) !!!! where h=hadron, CA=coefficientArray !!!! coefficientArray real(dp) list of coefficeints !!!! includeArray is logical array list (true=TMD(c) is computed, false TMD(c) ignored) subroutine GetCompositionArray(hadron,lambdaNP,includeArray,coefficientArray) real(dp),intent(in)::lambdaNP(:) integer::hadron logical,allocatable,intent(out)::includeArray(:) real(dp),allocatable,intent(out)::coefficientArray(:) allocate(includeArray(1:1)) allocate(coefficientArray(1:1)) end subroutine GetCompositionArray !!! In SV19 model the replica parameters are stored in separate file. subroutine GetReplicaParameters(rep,NParray) integer,intent(in)::rep real(dp),allocatable,intent(out)::NParray(:) integer::i allocate(NParray(1:size(NPparam))) write(*,*) warningstring("set model replica via artemide-control module","Sivers") write(*,*) warningstring("some generic NP values returned","Sivers") NParray(1)=1d0 do i=2,size(NPparam) NParray(1)=0.001d0 end do end subroutine GetReplicaParameters end module SiversTMDPDF_model
6,556
39.726708
121
f90
artemide-public
artemide-public-master/src/Model/TMDR_model.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! Model for unpolarized TMD evolution for SV19 ! ! corresponds to bb* model ! DNP=Dpert(b*)+g bb* ! zeta=zetaPert(b) exp[-b2/BB]+zetaSL(b)(1-exp(-b2/BB) ! ! Requres two NP parameters (initated by best values) ! ! A.Vladimirov (11.07.2019) ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! module TMDR_model use aTMDe_Numerics use IO_functions use TMD_AD, only : Dresum,Dpert,zetaMUpert,zetaSL,RADEvolution implicit none private !!!!!------------------------------------------------------------------------------------ !!!!! These functions MUST defined in module !! !!!!! !!!!! 1) The subroutine is called during the initialization of TMDR !!!!! arg=array of initial NP-parameters public:: ModelInitialization !!!!! 2) The subroutine that is called on reset of NP-parameters in TMDR !!!!! arg=array of new NP-parameters public:: ModelUpdate !!!!! 3) Function which returns RAD function !!!!! arg=(mu,b,f) with mu=scale(real_dp), b=transverse distance(real_dp), f=flavor(integer) real(dp),public:: DNP !!!!! 4) Function which returns special equi-potential line, which is used in the evolution solutions !!!!! arg=(mu,b,f) with mu=scale(real_dp), b=transverse distance(real_dp), f=flavor(integer) real(dp),public:: zetaNP !!!!! 5) Subroutine which returns the array of NP-parameters corresponding to certain integer (replica) !!!!! arg=rep input integer, NParray (real_dp(:), allocatable, intent(out)) returned array public:: GetReplicaParameters !!!!!------------------------------------------------------------------------------------ real(dp),allocatable::NPparam(:) contains !!!!!! Write nessecery model intitialization. !!!!!! InitialNPParams is the initial NP-array (in principle, any non-pathological NP-array) subroutine ModelInitialization(InitialNPParams) real(dp),intent(in):: InitialNPParams(:) if(size(InitialNPParams)<3) then write(*,*) color('ART23-model: Number NP parameters for TMDR is less then 3',c_red) write(*,*) 'Evaluation STOP' stop end if allocate(NPparam(1:size(InitialNPParams))) NPparam=InitialNPParams write(*,*) & color(">>> The model for TMD evolution is ART23. Please, cite [1907.10356]&[2305.????] <<<",c_cyan) end subroutine ModelInitialization !!!!!! Write nessecery model update (e.g. save current NP-parameters) !!!!!! newNPParams is the new NP-array subroutine ModelUpdate(newNPParams) real(dp),intent(in):: newNPParams(:) NPparam=newNPParams !! save new vector of NP-parameters end subroutine ModelUpdate !!! This is the rapidity anomalous dimension non-perturbative model !!! In your evaluation take care that the saddle point is inside the pertrubative regeme !!! Use function Dpert(mu,b,f) for D perturbative, use Dresum for D resum function DNP(mu,b,f) real(dp),intent(in)::mu,b integer,intent(in)::f real(dp)::bSTAR bSTAR=b/SQRT(1_dp+b**2/NPparam(1)**2) DNP=Dpert(C0_const/bSTAR*NPparam(4),bSTAR,1)+RADEvolution(C0_const/bSTAR*NPparam(4),mu,1)& +NPparam(2)*b*bSTAR+NPparam(3)*b*bSTAR*Log(bSTAR/NPparam(1)) end function DNP !! This is the non-pertrubative shape of zeta_mu line. !! It MUST follow the equipotential line in perturbative regime (at small-b), at the level pf PT accuracy. !! Otherwice, your evolution is completely broken. !! Use zetaMUpert for perturbative values, use zetaSL for exact values function zetaNP(mu,b,f) real(dp),intent(in)::mu,b integer,intent(in)::f real(dp)::zz,rad,w1,w2 rad=DNP(mu,b,f) !! this ofset is required to guaranty a good numerical bahavior at b->0. !! In principle, zz=0 also works zz=Exp(-b**2/0.01d0) zetaNP=zetaMUpert(mu,b,f)*zz+zetaSL(mu,rad,f)*(1d0-zz) end function zetaNP !!! In SV19 model the replica parameters are stored in separate file. subroutine GetReplicaParameters(rep,NParray) integer,intent(in)::rep real(dp),allocatable,intent(out)::NParray(:) real(dp),parameter,dimension(1:3)::replica=(/2.2824d0, 0.025d0,0d0/) allocate(NParray(1:3)) NParray=replica end subroutine GetReplicaParameters end module TMDR_model
4,296
34.512397
106
f90
artemide-public
artemide-public-master/src/Model/TMDs_model.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! Model for TMD defining scales ! used only in the case of evolution types 1 and 2 ! ! mu_low=C0/b+2 ! mu0=C0/b+2 ! ! A.Vladimirov (25.04.2018) ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!USER DEFINED FUNCTION!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!This function is the mu(b) ! it is used for solutions with variable lower evolution scale (EvolutionTYpe=1,2) function mu_LOW(bt) real*8::bt,mu_LOW real*8, parameter :: C0_const=1.1229189671337703d0 mu_LOW=10d0!C0_const*1d0/bT+2d0 if(mu_LOW>1000d0) then mu_LOW=1000d0 end if end function mu_LOW !!!!This function is the mu0(b) ! it is used for solutions within improved D solution (EvolutionTYpe=1) function mu0(bt) real*8::bt,mu0 mu0=mu_LOW(bt) end function mu0
1,199
31.432432
110
f90
artemide-public
artemide-public-master/src/Model/lpTMDPDF_model.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! Model for linearly polarized gluons ! ! corresponds to nothing ! A.Vladimirov (13.06.2019) ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! module lpTMDPDF_model use aTMDe_Numerics use IO_functions implicit none private !!!!!------------------------------------------------------------------------------------ !!!!! These functions MUST defined in module !! !!!!! !!!!! 1) The subroutine is called during the initialization of TMD-module !!!!! arg=array of initial NP-parameters public:: ModelInitialization !!!!! 2) The subroutine that is called on reset of NP-parameters in TMD-module !!!!! arg=array of new NP-parameters public:: ModelUpdate !!!!! 3) Function which returns FNP function !!!!! arg=(x,z,b,hadron,lambdaNP) with x=x_Bj for TMD (real_dp), z=convolution variable(real_dp), !!!!! b=transverse distance(real_dp), hadron=number of the hadron in grid(integer) !!!!! lambdaNP = array of NP parameters (real_dp(:)) real(dp),public,dimension(-5:5):: FNP !!!!! 4) Function which returns the value of b used as argument of convolution integrals !!!!! arg=(b,lambdaNP) with b=transverse distance(real_dp), lambdaNP = array of NP parameters (real_dp(:)) real(dp),public:: bSTAR !!!!! 5) Function which returns the scale of matching (OPE scale) !!!!! arg=(z,bt) with z=convolution variable(real_dp), b=transverse distance(real_dp) real(dp),public:: mu_OPE !!!!! 6) Subroutine which returns the array of parameters CA which compose the TMDs into a single one !!!!! i.e. the TMD for hardon=h is build as TMD(h)=Sum_c CA(h,c) TMD(c) !!!!! it is used only if the option UseComposite TMD is ON, !!!!! arg=(h,lambdaNP,includeArray,CA) with h=hadron(integer),lambdaNP = array of NP parameters (real_dp(:)) !!!!! includeArray=logical array with .true. for terms included in the sum (logical(:),allocatable,intent(out)) !!!!! CA=coefficient CA (real_dp(:),allocatable,intent(out)) public:: GetCompositionArray !!!!! 7) Subroutine which returns the array of NP-parameters corresponding to certain integer (replica) !!!!! arg=rep input integer, NParray (real_dp(:), allocatable, intent(out)) returned array public:: GetReplicaParameters !!!!!------------------------------------------------------------------------------------ real(dp),allocatable::NPparam(:) contains !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! USER DEFINED FUNCTIONS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!! Write nessecery model intitialization. subroutine ModelInitialization(NPstart) real(dp),intent(in)::NPstart(:) allocate(NPparam(1:size(NPstart))) NPparam=NPstart write(*,*) color(">>> The model for lpTMDPDF is NONAME. Please, just cite me... <<<",c_cyan) end subroutine ModelInitialization !!!!!! Write nessecery model update (e.g. save current NP-parameters) !!!!!! newNPParams is the new NP-array subroutine ModelUpdate(newNPParams) real(dp),intent(in):: newNPParams(:) NPparam=newNPParams !! save new vector of NP-parameters end subroutine ModelUpdate !!! This is non-pertrubative function !!! non=pertrubative parameters are lambdaNP() !!! x-- is the bjorken variable of TMD !!! z-- is convolution variable function FNP(x,z,bT,hadron,lambdaNP) real(dp),intent(in)::x,z,bT integer,intent(in)::hadron real(dp),intent(in)::lambdaNP(:) real(dp)::FNP0 FNP0=Exp(-0.5d0*bT**2) FNP=FNP0*(/1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0/) end function FNP !!!! This is the function b* that enter the logarithms of coefficient function !!!! at small-b it should be ~b to match the collinear regime !!!! at large-b it is a part of model !!!! NOTE: if it is lambda-dependent, the grid will be recalculate each reset of lambdaNP pure function bSTAR(bT,lambdaNP) real(dp),intent(in)::bT real(dp),intent(in)::lambdaNP(:) bSTAR=bT/sqrt(1d0+(bT/500d0)**2) end function bSTAR !!!!This function is the mu(x,b), which is used inside the OPE pure function mu_OPE(z,bt,c4) real(dp),intent(in)::z,bt real(dp),intent(in),optional::c4 if(present(c4)) then mu_OPE=C0_const*c4/bT+2d0 !mu_OPE=C0_const/bT*sqrt(1+(bT/1.)**2) else mu_OPE=C0_const/bT+2d0 end if if(mu_OPE>1000d0) then mu_OPE=1000d0 end if end function mu_OPE !!!! if the option UseComposite TMD is OFF, this function is ignored !!!! If the option UseComposite TMD is ON, !!!! than the TMD for hardon is build as TMD(hadron)=Sum_c CA(h,c) TMD(c) !!!! where h=hadron, CA=coefficientArray !!!! coefficientArray real(dp) list of coefficeints !!!! includeArray is logical array list (true=TMD(c) is computed, false TMD(c) ignored) subroutine GetCompositionArray(hadron,lambdaNP,includeArray,coefficientArray) real(dp),intent(in)::lambdaNP(:) integer::hadron logical,allocatable,intent(out)::includeArray(:) real(dp),allocatable,intent(out)::coefficientArray(:) allocate(includeArray(1:1)) allocate(coefficientArray(1:1)) end subroutine GetCompositionArray !!! In SV19 model the replica parameters are stored in separate file. subroutine GetReplicaParameters(rep,NParray) integer,intent(in)::rep real(dp),allocatable,intent(out)::NParray(:) integer::i allocate(NParray(1:size(NPparam))) write(*,*) warningstring("THERE IS NOT YET FIT OF LINEARLY POLARIZED GLUONS","NONAME") write(*,*) warningstring("some generic NP values returned","SV19") NParray(1)=1d0 do i=2,size(NPparam) NParray(1)=0.001d0 end do end subroutine GetReplicaParameters end module lpTMDPDF_model
5,940
37.083333
114
f90
artemide-public
artemide-public-master/src/Model/uTMDFF_model.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! Model for unpolarized TMD FF SV19 [1912.06532] ! ! A.Vladimirov (11.07.2019) ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! module uTMDFF_model use aTMDe_Numerics use IO_functions implicit none private !!!!!------------------------------------------------------------------------------------ !!!!! These functions MUST defined in module !! !!!!! !!!!! 1) The subroutine is called during the initialization of TMD-module !!!!! arg=array of initial NP-parameters public:: ModelInitialization !!!!! 2) The subroutine that is called on reset of NP-parameters in TMD-module !!!!! arg=array of new NP-parameters public:: ModelUpdate !!!!! 3) Function which returns FNP function !!!!! arg=(x,z,b,hadron,lambdaNP) with x=x_Bj for TMD (real_dp), z=convolution variable(real_dp), !!!!! b=transverse distance(real_dp), hadron=number of the hadron in grid(integer) !!!!! lambdaNP = array of NP parameters (real_dp(:)) real(dp),public,dimension(-5:5):: FNP !!!!! 4) Function which returns the value of b used as argument of convolution integrals !!!!! arg=(b,lambdaNP) with b=transverse distance(real_dp), lambdaNP = array of NP parameters (real_dp(:)) real(dp),public:: bSTAR !!!!! 5) Function which returns the scale of matching (OPE scale) !!!!! arg=(z,bt) with z=convolution variable(real_dp), b=transverse distance(real_dp) real(dp),public:: mu_OPE !!!!! 6) Subroutine which returns the array of parameters CA which compose the TMDs into a single one !!!!! i.e. the TMD for hardon=h is build as TMD(h)=Sum_c CA(h,c) TMD(c) !!!!! it is used only if the option UseComposite TMD is ON, !!!!! arg=(h,lambdaNP,includeArray,CA) with h=hadron(integer),lambdaNP = array of NP parameters (real_dp(:)) !!!!! includeArray=logical array with .true. for terms included in the sum (logical(:),allocatable,intent(out)) !!!!! CA=coefficient CA (real_dp(:),allocatable,intent(out)) public:: GetCompositionArray !!!!! 7) Subroutine which returns the array of NP-parameters corresponding to certain integer (replica) !!!!! arg=rep input integer, NParray (real_dp(:), allocatable, intent(out)) returned array public:: GetReplicaParameters !!!!!------------------------------------------------------------------------------------ real(dp),allocatable::NPparam(:) contains !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! USER DEFINED FUNCTIONS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!! Write nessecery model intitialization. subroutine ModelInitialization(NPstart) real(dp),intent(in)::NPstart(:) allocate(NPparam(1:size(NPstart))) NPparam=NPstart write(*,*) color(">>> The model for uTMDFF is SV19. Please, cite [1912.06532] <<<",c_cyan) end subroutine ModelInitialization !!!!!! Write nessecery model update (e.g. save current NP-parameters) !!!!!! newNPParams is the new NP-array subroutine ModelUpdate(newNPParams) real(dp),intent(in):: newNPParams(:) NPparam=newNPParams !! save new vector of NP-parameters end subroutine ModelUpdate !!! This is non-pertrubative function !!! non=pertrubative parameters are lambdaNP() !!! x-- is the bjorken variable of TMD !!! z-- is convolution variable function FNP(x,z,bT,hadron,lambdaNP) real(dp),intent(in)::x,z,bT integer,intent(in)::hadron real(dp),intent(in)::lambdaNP(:) real(dp)::FNP0 real(dp)::bb,w1,w2,M bb=bT**2/x**2 ! if(hadron==1) then w1=lambdaNP(1)*x+lambdaNP(2)*(1d0-x) w2=lambdaNP(3) FNP0=Exp(-bb*w1/sqrt(1d0+w2*bb))*(1+lambdaNP(4)*bb) ! else ! w1=lambdaNP(5)*x+lambdaNP(6)*(1d0-x) ! w2=lambdaNP(7) ! FNP0=Exp(-bb*w1/sqrt(1d0+w2*bb))*(1+lambdaNP(8)*bb) ! end if FNP=FNP0*(/1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0/) end function FNP !!!! This is the function b* that enter the logarithms of coefficient function !!!! at small-b it should be ~b to match the collinear regime !!!! at large-b it is a part of model !!!! NOTE: if it is lambda-dependent, the grid will be recalculate each reset of lambdaNP pure function bSTAR(bT,lambdaNP) real(dp),intent(in)::bT real(dp),intent(in)::lambdaNP(:) bSTAR=bT/sqrt(1d0+(bT/500d0)**2) end function bSTAR !!!!This function is the mu(x,b), which is used inside the OPE pure function mu_OPE(z,bt,c4) real(dp),intent(in)::z,bt real(dp),intent(in),optional::c4 if(present(c4)) then mu_OPE=C0_const*c4*z/bT+2d0 !mu_OPE=C0_const/bT*sqrt(1+(bT/1.)**2) else mu_OPE=C0_const*z/bT+2d0 end if if(mu_OPE>1000d0) then mu_OPE=1000d0 end if end function mu_OPE !!!! if the option UseComposite TMD is OFF, this function is ignored !!!! If the option UseComposite TMD is ON, !!!! than the TMD for hardon is build as TMD(hadron)=Sum_c CA(h,c) TMD(c) !!!! where h=hadron, CA=coefficientArray !!!! coefficientArray real(dp) list of coefficeints !!!! includeArray is logical array list (true=TMD(c) is computed, false TMD(c) ignored) subroutine GetCompositionArray(hadron,lambdaNP,includeArray,coefficientArray) real(dp),intent(in)::lambdaNP(:) integer::hadron logical,allocatable,intent(out)::includeArray(:) real(dp),allocatable,intent(out)::coefficientArray(:) allocate(includeArray(1:1)) allocate(coefficientArray(1:1)) end subroutine GetCompositionArray !!! In SV19 model the replica parameters are stored in separate file. subroutine GetReplicaParameters(rep,NParray) integer,intent(in)::rep real(dp),allocatable,intent(out)::NParray(:) integer::i allocate(NParray(1:size(NPparam))) write(*,*) warningstring("set model replica via artemide-control module","SV19") write(*,*) warningstring("some generic NP values returned","SV19") NParray(1)=1d0 do i=2,size(NPparam) NParray(1)=0.001d0 end do end subroutine GetReplicaParameters end module uTMDFF_model
6,260
36.716867
114
f90
artemide-public
artemide-public-master/src/Model/uTMDPDF_model.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! Model for unpolarized TMD PDF Vpion19.bFIT [1907.10356] ! ! proton uTMDPDF is from BSV19.HERA set (h=1) ! pion uTMDPDF is here (h=2) ! ! Requres 6 (proton)+3 (pion)=9 NP parameters ! Uses HERAPDF20_NNLO_VAR and JAM18PionPDFnlo ! A.Vladimirov (11.07.2019) ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! module uTMDPDF_model use aTMDe_Numerics use IO_functions implicit none private !!!!!------------------------------------------------------------------------------------ !!!!! These functions MUST defined in module !! !!!!! !!!!! 1) The subroutine is called during the initialization of TMD-module !!!!! arg=array of initial NP-parameters public:: ModelInitialization !!!!! 2) The subroutine that is called on reset of NP-parameters in TMD-module !!!!! arg=array of new NP-parameters public:: ModelUpdate !!!!! 3) Function which returns FNP function !!!!! arg=(x,z,b,hadron,lambdaNP) with x=x_Bj for TMD (real_dp), z=convolution variable(real_dp), !!!!! b=transverse distance(real_dp), hadron=number of the hadron in grid(integer) !!!!! lambdaNP = array of NP parameters (real_dp(:)) real(dp),public,dimension(-5:5):: FNP !!!!! 4) Function which returns the value of b used as argument of convolution integrals !!!!! arg=(b,lambdaNP) with b=transverse distance(real_dp), lambdaNP = array of NP parameters (real_dp(:)) real(dp),public:: bSTAR !!!!! 5) Function which returns the scale of matching (OPE scale) !!!!! arg=(z,bt) with z=convolution variable(real_dp), b=transverse distance(real_dp) real(dp),public:: mu_OPE !!!!! 6) Subroutine which returns the array of parameters CA which compose the TMDs into a single one !!!!! i.e. the TMD for hardon=h is build as TMD(h)=Sum_c CA(h,c) TMD(c) !!!!! it is used only if the option UseComposite TMD is ON, !!!!! arg=(h,lambdaNP,includeArray,CA) with h=hadron(integer),lambdaNP = array of NP parameters (real_dp(:)) !!!!! includeArray=logical array with .true. for terms included in the sum (logical(:),allocatable,intent(out)) !!!!! CA=coefficient CA (real_dp(:),allocatable,intent(out)) public:: GetCompositionArray !!!!! 7) Subroutine which returns the array of NP-parameters corresponding to certain integer (replica) !!!!! arg=rep input integer, NParray (real_dp(:), allocatable, intent(out)) returned array public:: GetReplicaParameters !!!!!------------------------------------------------------------------------------------ real(dp),allocatable::NPparam(:) contains !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! USER DEFINED FUNCTIONS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!! Write nessecery model intitialization. subroutine ModelInitialization(NPstart) real(dp),intent(in)::NPstart(:) allocate(NPparam(1:size(NPstart))) NPparam=NPstart write(*,*) color(">>> The model for uTMDPDF for ART23 <<<",c_cyan) end subroutine ModelInitialization !!!!!! Write nessecery model update (e.g. save current NP-parameters) !!!!!! newNPParams is the new NP-array subroutine ModelUpdate(newNPParams) real(dp),intent(in):: newNPParams(:) NPparam=newNPParams !! save new vector of NP-parameters end subroutine ModelUpdate !!! This is non-pertrubative function !!! non=pertrubative parameters are lambdaNP() !!! x-- is the bjorken variable of TMD !!! z-- is convolution variable function FNP(x,z,bT,hadron,lambdaNP) real(dp),intent(in)::x,z,bT integer,intent(in)::hadron real(dp),intent(in)::lambdaNP(:) real*8::FNP0,FNPu,FNPd,FNPubar,FNPdbar,FNPr real*8::bb,w1,w2,w3,wu,wd,wubar,wdbar,wr,wcommon if(hadron==1) then bb=bT**2 wu=lambdaNP(1)*(1-x)+x*lambdaNP(2) wd=lambdaNP(3)*(1-x)+x*lambdaNP(4) wubar=lambdaNP(5)*(1-x)+x*lambdaNP(6) wdbar=lambdaNP(7)*(1-x)+x*lambdaNP(8) wr=lambdaNP(9)*(1-x)+x*lambdaNP(10) !wcommon=(lambdaNP(11)*x**2+lambdaNP(12)) if(wu<0d0 .or. wd<0d0 .or. wubar<0d0 .or. wdbar<0d0 .or. wr<0d0 .or. wcommon<0d0) then FNPu=Exp(-10d0*bb) FNPd=Exp(-10d0*bb) FNPubar=Exp(-10d0*bb) FNPdbar=Exp(-10d0*bb) FNPr=Exp(-10d0*bb) else FNPu=1d0/cosh(wu*bT) FNPd=1d0/cosh(wd*bT) FNPubar=1d0/cosh(wubar*bT) FNPdbar=1d0/cosh(wdbar*bT) FNPr=1d0/cosh(wr*bT) end if FNP=(/& FNPr,FNPr,FNPr,FNPubar,FNPdbar,& 0d0,& FNPd,FNPu,FNPr,FNPr,FNPr/) else bb=bT**2 w1=(lambdaNP(7)+(1-x)**2*lambdaNP(8)) w2=lambdaNP(9) if(w2<0d0 .or. w1<0d0) then FNP0=-1d0 else FNP0=Exp(-w1*bb/sqrt(1+w2*bb)) end if FNP=FNP0*(/1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0/) end if end function FNP !!!! This is the function b* that enter the logarithms of coefficient function !!!! at small-b it should be ~b to match the collinear regime !!!! at large-b it is a part of model !!!! NOTE: if it is lambda-dependent, the grid will be recalculate each reset of lambdaNP pure function bSTAR(bT,lambdaNP) real(dp),intent(in)::bT real(dp),intent(in)::lambdaNP(:) bSTAR=bT/sqrt(1d0+(bT/500d0)**2) !bSTAR=bT/(1d0+bT*2/C0_const) !bSTAR=bT/sqrt(1+(bT/1.)**2) end function bSTAR !!!!This function is the mu(x,b), which is used inside the OPE pure function mu_OPE(z,bt,c4) real(dp),intent(in)::z,bt real(dp),intent(in),optional::c4 if(present(c4)) then mu_OPE=C0_const*c4/bT+2d0 !mu_OPE=C0_const/bT*sqrt(1+(bT/1.)**2) else mu_OPE=C0_const/bT+2d0 end if if(mu_OPE>1000d0) then mu_OPE=1000d0 end if end function mu_OPE !!!! if the option UseComposite TMD is OFF, this function is ignored !!!! If the option UseComposite TMD is ON, !!!! than the TMD for hardon is build as TMD(hadron)=Sum_c CA(h,c) TMD(c) !!!! where h=hadron, CA=coefficientArray !!!! coefficientArray real(dp) list of coefficeints !!!! includeArray is logical array list (true=TMD(c) is computed, false TMD(c) ignored) subroutine GetCompositionArray(hadron,lambdaNP,includeArray,coefficientArray) real(dp),intent(in)::lambdaNP(:) integer::hadron logical,allocatable,intent(out)::includeArray(:) real(dp),allocatable,intent(out)::coefficientArray(:) allocate(includeArray(1:1)) allocate(coefficientArray(1:1)) end subroutine GetCompositionArray !!! In SV19 model the replica parameters are stored in separate file. subroutine GetReplicaParameters(rep,NParray) integer,intent(in)::rep real(dp),allocatable,intent(out)::NParray(:) real*8,parameter,dimension(1:6):: protonNP=(/0.3204d0, 11.8747d0, 298.593d0, 1.8738d0, -9.0685d0, 0.0d0/) real,parameter,dimension(1:309)::replicas=(/& 0.173426, 0.482789, 2.15172, & 0.093, 0.264, 0.377,& 0.173426, 0.482789, 2.15172, & 0.249541, 0.634629, 3.09413, & 0.105834, 0.156929, 0.385113, & 0.0978039, 0.281598, 0.449822, & 0.154557, 0.350553, 1.10694, & 0.261972, 0.676967, 3.37234, & 0.183507, 0.520334, 1.87893, & 0.0785418, 0.356815, 0.41225, & 0.355825, 0.846914, 5.60176, & 0.223488, 0.553231, 2.8377, & 0.629039, 1.61353, 16.4577, & 0.0818166, 0.360383, 0.435636, & 0.222895, 0.629612, 2.65102, & 0.0965146, 0.178813, 0.219953, & 0.491635, 1.15167, 10.0341, & 0.153072, 0.319388, 1.10683, & 0.161597, 0.382618, 1.2612, & 0.128724, 0.373911, 0.736818, & 0.152192, 0.290414, 0.823574, & 0.0954244, 0.278245, 0.356441, & 0.165523, 0.345776, 1.29734, & 0.176371, 0.421179, 1.6543, & 0.198816, 0.340405, 1.68137, & 0.0894031, 0.322207, 0.387982, & 0.163753, 0.473674, 1.29232, & 0.0947285, 0.198516, 0.326766, & 0.0814235, 0.329594, 0.422357, & 0.149341, 0.366549, 0.914248, & 0.0942002, 0.266578, 0.368842, & 0.133111, 0.572628, 1.31634, & 0.180704, 0.41721, 1.62999, & 0.065896, 0.316252, 0.250545, & 0.10734, 0.247779, 0.362931, & 0.139521, 0.471966, 1.31441, & 0.366519, 1.25787, 8.21266, & 0.0790098, 0.241259, 0.230682, & 0.581215, 2.27234, 21.0271, & 0.0954821, 0.261137, 0.374515, & 0.115915, 0.368228, 0.786806, & 0.273399, 0.749383, 4.03135, & 0.465171, 1.07553, 9.80427, & 0.0903598, 0.263619, 0.406335, & 0.123613, 0.374445, 0.849558, & 0.285171, 0.418185, 3.34914, & 0.269755, 0.553625, 3.96405, & 0.259095, 1.16033, 4.84876, & 0.0899398, 0.248281, 0.399757, & 0.259753, 0.814591, 4.63706, & 0.0947479, 0.272567, 0.365655, & 0.108101, 0.256952, 0.452232, & 0.0914599, 0.304369, 0.38939, & 0.170683, 0.272946, 1.06934, & 0.118159, 0.279235, 0.604779, & 0.264408, 0.762043, 3.82065, & 0.0784105, 0.316828, 0.458274, & 0.360117, 1.33631, 9.64109, & 0.105368, 0.225053, 0.322375, & 0.0987314, 0.303631, 0.477949, & 0.150731, 0.437147, 1.11623, & 0.238012, 0.87718, 2.98115, & 0.278189, 0.492043, 3.65615, & 0.0804673, 0.2964, 0.289875, & 0.0837756, 0.328657, 0.428778, & 0.100518, 0.276298, 0.456033, & 0.104566, 0.200711, 0.347386, & 0.132109, 0.380439, 1.01348, & 0.113121, 0.188703, 0.36785, & 0.103887, 0.26594, 0.400361, & 0.0936283, 0.272979, 0.366824, & 0.112749, 0.393731, 0.670924, & 0.12597, 0.491501, 1.02126, & 0.184632, 0.567039, 1.97799, & 0.0897044, 0.244245, 0.395551, & 0.101595, 0.265109, 0.38515, & 0.247302, 0.471764, 2.98563, & 0.284248, 0.821081, 4.66352, & 0.18231, 1.03437, 3.07118, & 0.108571, 0.375484, 0.727352, & 0.140538, 0.270434, 0.67072, & 0.233778, 0.496306, 3.07228, & 0.120892, 0.378347, 0.696918, & 0.322058, 0.91204, 6.34466, & 0.134719, 0.352275, 0.759533, & 0.157389, 0.4007, 1.20728, & 0.0814492, 0.37148, 0.442985, & 0.239761, 0.604956, 2.83285, & 0.104431, 0.216468, 0.423611, & 0.113135, 0.307468, 0.522409, & 0.128644, 0.357123, 0.837743, & 0.136476, 0.292455, 0.815463, & 0.143915, 0.468419, 1.26521, & 0.0938552, 0.272222, 0.374274, & 0.17918, 0.457854, 1.82332, & 0.0827782, 0.270842, 0.342522, & 0.167811, 0.298295, 1.05922, & 0.170454, 0.315802, 1.18806, & 0.0885638, 0.321581, 0.444846, & 0.33685, 1.1168, 6.69006, & 0.131763, 0.302245, 0.888346, & 0.117674, 0.38926, 0.906957, & 0.391747, 0.989056, 7.27382/) allocate(NParray(1:9)) if(rep>100) then write(*,*) color('ERROR in Vpion19 model. It has only 100 replicas. Central replica is set',c_red) NParray=(/protonNP(1),protonNP(2),protonNP(3),protonNP(4),protonNP(5),protonNP(6),& 1d0*replicas((0+2)*3+1),1d0*replicas((0+2)*3+2),1d0*replicas((0+2)*3+3)/) else NParray=(/protonNP(1),protonNP(2),protonNP(3),protonNP(4),protonNP(5),protonNP(6),& 1d0*replicas((rep+2)*3+1),1d0*replicas((rep+2)*3+2),1d0*replicas((rep+2)*3+3)/) end if end subroutine GetReplicaParameters end module uTMDPDF_model
11,216
35.067524
114
f90
artemide-public
artemide-public-master/src/Model/wgtTMDPDF_model.f90
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! Model for worm gear T TMD PDF ! ! A.Vladimirov (09.11.2021) ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! module wgtTMDPDF_model use aTMDe_Numerics use IO_functions implicit none private !!!!!------------------------------------------------------------------------------------ !!!!! These functions MUST defined in module !! !!!!! !!!!! 1) The subroutine is called during the initialization of TMD-module !!!!! arg=array of initial NP-parameters public:: ModelInitialization !!!!! 2) The subroutine that is called on reset of NP-parameters in TMD-module !!!!! arg=array of new NP-parameters public:: ModelUpdate !!!!! 3) Function which returns FNP function !!!!! arg=(x,z,b,hadron,lambdaNP) with x=x_Bj for TMD (real_dp), z=convolution variable(real_dp), !!!!! b=transverse distance(real_dp), hadron=number of the hadron in grid(integer) !!!!! lambdaNP = array of NP parameters (real_dp(:)) real(dp),public,dimension(-5:5):: FNP !!!!! 3.5) Function which returns g1T_tw3NP function !!!!! arg=(x,hadron,lambdaNP) with x=x_Bj for TMD (real_dp), hadron=number of the hadron in grid(integer) !!!!! lambdaNP = array of NP parameters (real_dp(:)) real(dp),public,dimension(-5:5):: g1T_tw3NP !!!!! 4) Function which returns the value of b used as argument of convolution integrals !!!!! arg=(b,lambdaNP) with b=transverse distance(real_dp), lambdaNP = array of NP parameters (real_dp(:)) real(dp),public:: bSTAR !!!!! 5) Function which returns the scale of matching (OPE scale) !!!!! arg=(z,bt) with z=convolution variable(real_dp), b=transverse distance(real_dp) real(dp),public:: mu_OPE !!!!! 6) Subroutine which returns the array of parameters CA which compose the TMDs into a single one !!!!! i.e. the TMD for hardon=h is build as TMD(h)=Sum_c CA(h,c) TMD(c) !!!!! it is used only if the option UseComposite TMD is ON, !!!!! arg=(h,lambdaNP,includeArray,CA) with h=hadron(integer),lambdaNP = array of NP parameters (real_dp(:)) !!!!! includeArray=logical array with .true. for terms included in the sum (logical(:),allocatable,intent(out)) !!!!! CA=coefficient CA (real_dp(:),allocatable,intent(out)) public:: GetCompositionArray !!!!! 7) Subroutine which returns the array of NP-parameters corresponding to certain integer (replica) !!!!! arg=rep input integer, NParray (real_dp(:), allocatable, intent(out)) returned array public:: GetReplicaParameters !!!!!------------------------------------------------------------------------------------ real(dp),allocatable::NPparam(:) contains !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! USER DEFINED FUNCTIONS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!! Write nessecery model intitialization. subroutine ModelInitialization(NPstart) real(dp),intent(in)::NPstart(:) allocate(NPparam(1:size(NPstart))) NPparam=NPstart write(*,*) color(">>> The model for uTMDPDF is Vpion19 & BSV19. Please, cite [1902.08474]&[1907.10356] <<<",c_cyan) end subroutine ModelInitialization !!!!!! Write nessecery model update (e.g. save current NP-parameters) !!!!!! newNPParams is the new NP-array subroutine ModelUpdate(newNPParams) real(dp),intent(in):: newNPParams(:) NPparam=newNPParams !! save new vector of NP-parameters end subroutine ModelUpdate !!! This is non-pertrubative function !!! non=pertrubative parameters are lambdaNP() !!! x-- is the bjorken variable of TMD !!! z-- is convolution variable !!! ------------------------------- !!! lambdaNP is same as for g1T_tw3NP !! !!! ------------------------------- function FNP(x,z,bT,hadron,lambdaNP) real(dp),intent(in)::x,z,bT integer,intent(in)::hadron real(dp),intent(in)::lambdaNP(:) real*8::FNP0 !FNP0=lambdaNP(2)/cosh(lambdaNP(1)*bT) !FNP=FNP0*(/1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0/) FNP0=1/cosh(lambdaNP(1)*bT) FNP=FNP0*(/1d0,1d0,lambdaNP(4),lambdaNP(4),lambdaNP(4),0d0,lambdaNP(3),lambdaNP(2),lambdaNP(4),1d0,1d0/) end function FNP !!! This is non-perturbative function for twist-3 part of small-b limit of worm-gear T TMDPDF !!! non=pertrubative parameters are lambdaNP() !!! x-- is the bjorken variable of TMD !!! ------------------------------- !!! lambdaNP is same as for fNP !! !!! ------------------------------- function g1T_tw3NP(x,hadron,lambdaNP) real(dp),intent(in)::x integer,intent(in)::hadron real(dp),intent(in)::lambdaNP(:) real*8::f0 f0=0d0 g1T_tw3NP=f0*(/1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0/) end function g1T_tw3NP !!!! This is the function b* that enter the logarithms of coefficient function !!!! at small-b it should be ~b to match the collinear regime !!!! at large-b it is a part of model !!!! NOTE: if it is lambda-dependent, the grid will be recalculate each reset of lambdaNP pure function bSTAR(bT,lambdaNP) real(dp),intent(in)::bT real(dp),intent(in)::lambdaNP(:) bSTAR=bT/sqrt(1d0+(bT/500d0)**2) end function bSTAR !!!!This function is the mu(x,b), which is used inside the OPE pure function mu_OPE(z,bt,c4) real(dp),intent(in)::z,bt real(dp),intent(in),optional::c4 if(present(c4)) then mu_OPE=C0_const*c4/bT+2d0 !mu_OPE=C0_const/bT*sqrt(1+(bT/1.)**2) else mu_OPE=C0_const/bT+2d0 end if if(mu_OPE>1000d0) then mu_OPE=1000d0 end if end function mu_OPE !!!! if the option UseComposite TMD is OFF, this function is ignored !!!! If the option UseComposite TMD is ON, !!!! than the TMD for hardon is build as TMD(hadron)=Sum_c CA(h,c) TMD(c) !!!! where h=hadron, CA=coefficientArray !!!! coefficientArray real(dp) list of coefficeints !!!! includeArray is logical array list (true=TMD(c) is computed, false TMD(c) ignored) subroutine GetCompositionArray(hadron,lambdaNP,includeArray,coefficientArray) real(dp),intent(in)::lambdaNP(:) integer::hadron logical,allocatable,intent(out)::includeArray(:) real(dp),allocatable,intent(out)::coefficientArray(:) allocate(includeArray(1:1)) allocate(coefficientArray(1:1)) end subroutine GetCompositionArray !!! In SV19 model the replica parameters are stored in separate file. subroutine GetReplicaParameters(rep,NParray) integer,intent(in)::rep real(dp),allocatable,intent(out)::NParray(:) integer::i allocate(NParray(1:size(NPparam))) write(*,*) warningstring("set model replica via artemide-control module","wgT") write(*,*) warningstring("some generic NP values returned","wgT") NParray(1)=1d0 do i=2,size(NPparam) NParray(1)=0.001d0 end do end subroutine GetReplicaParameters end module wgtTMDPDF_model
6,991
38.280899
122
f90
artemide-public
artemide-public-master/src/Tables/BesselZero.f90
!!!!This is table of zeros of bessel function J0,..,J3 up to 200 !!!! !!!! the table is j0,j1,j2,j3(1-root),j0,j1,j2,j3(2-root) !!!! udated for v1.41 (12.03.2019) (A.Vladimirov) real(dp),dimension(0:3,1:Nmax),parameter::JZero=reshape((/& 2.4048255576957727686216318793265_dp, 3.8317059702075123156144358863082_dp, & 5.1356223018406825563014016901378_dp, 6.3801618959239835062366146419427_dp, & 5.5200781102863106495966041128130_dp, 7.0155866698156187535370499814765_dp, & 8.4172441403998648577836136761580_dp, 9.7610231299816696785453885000862_dp, & 8.6537279129110122169541987126609_dp, 10.173468135062722077185711776776_dp, & 11.619841172149059427094144986755_dp, 13.015200721698434419832684382879_dp, & 11.791534439014281613743044911925_dp, 13.323691936314223032393684126948_dp, & 14.795951782351260746661471320228_dp, 16.223466160318768122228024524950_dp, & 14.930917708487785947762593997389_dp, 16.470630050877632812552460470990_dp, & 17.959819494987826455115142077254_dp, 19.409415226435011553575420295721_dp, & 18.071063967910922543147882975618_dp, 19.615858510468242021125065884138_dp, & 21.116997053021845590962817082798_dp, 22.582729593104442027928009075353_dp, & 21.211636629879258959078393350526_dp, 22.760084380592771898053005152182_dp, & 24.270112313573102609583152428183_dp, 25.748166699294977635022331629115_dp, & 24.352471530749302737057944763179_dp, 25.903672087618382625495855445980_dp, & 27.420573549984557330570488191395_dp, 28.908350780921757858342340445134_dp, & 27.493479132040254795877288234607_dp, 29.046828534916855066647819883532_dp, & 30.569204495516397036604063539306_dp, 32.064852407097709482952251363775_dp, & 30.634606468431975117549578926854_dp, 32.189679910974403626622984104460_dp, & 33.716519509222699921959198425218_dp, 35.218670738610114657374842953082_dp, & 33.775820213573568684238546346715_dp, 35.332307550083865102634479022519_dp, & 36.862856511283809817518162941366_dp, 38.370472434756944364117735272543_dp, & 36.917098353664043979769493063273_dp, 38.474766234771615112052197557717_dp, & 40.008446733478192227261895006566_dp, 41.520719670406775549033549967527_dp, & 40.058425764628239294799307373994_dp, 41.617094212814450885863516805060_dp, & 43.153453778371463269900135114779_dp, 44.669743116617253070620026027512_dp, & 43.199791713176730357524072728743_dp, 44.759318997652821732779352713212_dp, & 46.297996677236919185152545485014_dp, 47.817785691533301888365414155942_dp, & 46.341188371661814018685788879113_dp, 47.901460887185447121274008722508_dp, & 49.442164110416872731070543201950_dp, 50.965029906205183304270065697431_dp, & 49.482609897397817173602761533178_dp, 51.043535183571509468733034633224_dp, & 52.586023506815963631762235503007_dp, 54.111615569821873930296229138608_dp, & 52.624051841114996029251285380392_dp, 54.185553641061320532099966214534_dp, & 55.729627053201144085573014119284_dp, 57.257651604499014080869205598496_dp, & 55.765510755019979311683492773462_dp, 57.327525437901010745090504243751_dp, & 58.873015772612164650109120458626_dp, 60.403224138472121535278996039731_dp, & 58.906983926080942132834406634616_dp, 60.469457845347491559398749808383_dp, & 62.016222359217653701902244080246_dp, 63.548402178567206488006135509057_dp, & 62.048469190227169882852500264651_dp, 63.611356698481232631039762417874_dp, & 65.159273190757797829068965281770_dp, 66.693241667372679460213432049015_dp, & 65.189964800206860440636033742512_dp, 66.753226734098493415305259750042_dp, & 68.302189784183460399289978944662_dp, 69.837788437904339776270219439729_dp, & 68.331469329856798270992303839984_dp, 69.895071837495773969730536435500_dp, & 71.444989866357852114065026538824_dp, 72.982080400432005140350940880054_dp, & 71.472981603593732825063073856130_dp, 73.036895225573834826506117569092_dp, & 74.587688173602402406057514474156_dp, 76.126149184774095573068427472748_dp, & 74.614500643701837883820540469336_dp, 76.178699584641457572852614623535_dp, & 77.730297056978903231600858137201_dp, 79.270021390055860364887771141645_dp, & 77.756025630388055037739371891234_dp, 79.320487175476299391184484872488_dp, & 80.872826946244764614635062206873_dp, 82.413719547267878630106355566440_dp, & 80.897555871137627863772143490873_dp, 82.462259914373556453986610648781_dp, & 84.015286709546167263026969007688_dp, 85.557262868829996929821182055237_dp, & 84.039090776938190157879638347998_dp, 85.604019436350230965949425493380_dp, & 87.157683935203351467159591745092_dp, 88.700667838222059270991158022861_dp, & 87.180629843641153651261805069049_dp, 88.745767144926306903735916434854_dp, & 90.300025154592920389847956637937_dp, 91.843948678147085097922584903141_dp, & 90.322172637210480055717766777628_dp, 91.887504251694985280553622214490_dp, & 93.442316020011125815745154163878_dp, 94.987117725465609446165244167644_dp, & 93.463718781944774171190591543981_dp, 95.029231808044695268050998187174_dp, & 96.584561447783203643969032670587_dp, 98.130185733874888293649043241741_dp, & 96.605267950996268778121617323928_dp, 98.170950730790781973537759160851_dp, & 99.726765734292801706949183732458_dp, 101.27316212007975484359733766047_dp, & 99.746819858680596470279979000135_dp, 101.31266182303873013714105638865_dp, & 102.86893265072788228312581201716_dp, 104.41605516539675324251803335537_dp, & 102.88837425419479459642003427256_dp, 104.45436579128276007136342813961_dp, & 106.01106552096340500241740284879_dp, 107.55887218193252115317370474093_dp, & 106.02993091645161551017691719188_dp, 107.59606325950917218267036427761_dp, & 109.15316728598199715341434725018_dp, 110.70161965039489504918138861441_dp, & 109.17148964980538355206597701275_dp, 110.73775478089921510860865288827_dp, & 112.29524055747167142084675582857_dp, 113.84430333503185636635239771113_dp, & 112.31305028049490962749450612218_dp, 113.87944084759499813488417492843_dp, & 115.43728766266442337825491222667_dp, 116.98692838000925682886566203595_dp, & 115.45461265366693962811775669403_dp, 117.02112189889242502757649460146_dp, & 118.57931068204164170314345284022_dp, 120.12949939063372411801804080652_dp, & 118.59617663087253171562938447524_dp, 120.16279832814900375811940782917_dp, & 121.72131148119620217155159586287_dp, 123.27202050213073457899726797977_dp, & 121.73774208795096296523436348334_dp, 123.30447048863571801676003206877_dp, & 124.86329173788123742704895117889_dp, 126.41449543814765238831277161191_dp, & 124.87930891323294604525912836690_dp, 126.44613869851659569779448049584_dp, & 128.00525296507315884050917189087_dp, 129.55692756072957066323761728614_dp, & 128.02087700600832407976355939230_dp, 129.58780324510399675374141784136_dp, & 131.14719653071777382494964322504_dp, 132.69931991318397587079464043915_dp, & 131.16244627521391460789611499153_dp, 132.72946438850961588677459735175_dp, & 134.28912367470306158692192054100_dp, 135.84167525698768375801650091083_dp, & 134.30401663830546609935289683410_dp, 135.87112236478900059180156821946_dp, & 137.43103552350268765265495857649_dp, 138.98399610368046877046922631908_dp, & 137.44558802028427778778266148333_dp, 139.01277738865970417843354613596_dp, & 140.57293310285488161908524452670_dp, 142.12628474252246251335124863269_dp, & 140.58716035285429654848890334006_dp, 142.15442965585902903270090809976_dp, & 143.71481734877749157675431306544_dp, 145.26854326455769404920935138894_dp, & 143.72873357368973253395071800477_dp, 145.29607934519590723242215085501_dp, & 146.85668911716851279429215974319_dp, 148.41077358361715918552628207145_dp, & 146.87030762579664959413270485825_dp, 148.43772662034223039593927702627_dp, & 149.99854919219959026033487531708_dp, 151.55297745470619425910946713021_dp, & 150.01188245695475749088047297407_dp, 151.57937163140142799278350422223_dp, & 153.14039829367591937514162398332_dp, 154.69515649014854564745980747983_dp, & 153.15345801922789248759162561015_dp, 154.72101451628595352476655565184_dp, & 156.28223708350806285468484002218_dp, 157.83731217380013269173444016131_dp, & 156.29503426853352381954949527314_dp, 157.86265540193029780509466960866_dp, & 159.42406617141824818502551091100_dp, 160.97944587359655862041370180815_dp, & 159.43661116426314632349103791000_dp, 161.00429440536199346389341540909_dp, & 162.56588611998475099193119357346_dp, 164.12155885265792716178798609166_dp, & 162.57818866894667751905980896294_dp, 164.14593163464963540213252677998_dp, & 165.70769744911224760350632309686_dp, 167.26365227914088251029066499668_dp, & 165.71976674795502086669042673820_dp, 167.28756718974408380356484785789_dp, & 168.84950064000293223708446704493_dp, 170.40572723499974079179898675768_dp, & 168.86134536923582568745633745233_dp, 170.42920116322663234774549741975_dp, & 171.99129613869225916262814009258_dp, 173.54778472379510842543776999768_dp, & 172.00292450307820021540043150733_dp, 173.57083364097592863036704086285_dp, & 175.13308435920400147926225509553_dp, 176.68982567766867170379650251274_dp, & 175.14450412190274306537279785910_dp, 176.71246470276375745529773734105_dp, & 178.27486568637160433594225530690_dp, 179.83185096358623431932355491251_dp, & 178.28608420007377068148397419125_dp, 179.85409442278838484508490290633_dp, & 181.41664047836629944316922231606_dp, 182.97386138893704178200809052576_dp, & 181.42766471373105079421219958705_dp, 182.99572287015296608408437309503_dp, & 184.55840906896693470225193679081_dp, 186.11585770656552928487302725475_dp, & 184.56924564063871814111541224792_dp, 186.13735010929550802023984809489_dp, & 187.70017176960179060238592959524_dp, 189.25784061930150760949313492291_dp, & 187.71082696004935978007526572080_dp, 189.27897620037601409322580067878_dp, & 190.84192887118866686315225053587_dp, 192.39981078404616900835795855060_dp, & 190.85240865258152232178079894960_dp, 192.42060119962570542177113155478_dp, & 193.98368064579611618122256984019_dp, 195.54176881546391206282492352567_dp, & 193.99399070010911978994039672749_dp, 195.56222515966258243078293560412_dp, & 197.12542734814578414897129245527_dp, 198.68371528932365343515750007754_dp, & 197.13557308566141473621200268072_dp, 198.70384812977705212611810657899_dp, & 200.26716921697330873188443250775_dp, 201.82565074552785127633895305746_dp, & 200.27715579333241178336208747127_dp, 201.84547015619088230499981743498_dp, & 203.40890647626307544373381162524_dp, 204.96757569086277355982436901628_dp, & 203.41873880819864617124882021532_dp, 204.98709128229234414435873423006_dp, & 206.55063933637026252485108007674_dp, 208.10949060149949118249942978029_dp, & 206.56032211624447365545724492840_dp, 208.12871154885005908148724652235_dp, & 209.69236799504199973243008130056_dp, 211.25139592527156531215171526552_dp, & 209.70190570429407519748244666580_dp, 211.27033099420776661446279140998_dp, & 212.83409263834806770795013143726_dp, 214.39329208375235150073883784403_dp, & 212.84348955994948275074556567747_dp, 214.41194965446196982870027084972_dp, & 215.97581344153035114724030572916_dp, 217.53517947415219253010819975753_dp, & 215.98507367153401315699563788314_dp, 217.55356756362418940178479050986_dp, & 219.11753056977920192962108991282_dp, 220.67705847105346132021825525104_dp, & 219.12665802804056746518913097823_dp, 220.69518475376935974481291028342_dp, & 222.25924417894394581075623230546_dp, 223.81892942799939674987674551727_dp, & 222.26824261908431434128452437947_dp, 223.83680125517172874029155350983_dp, & 225.40095441618395949389559487906_dp, 226.96079267895090843688276538084_dp, & 225.40982743485932989851318199627_dp, 226.97841709642947178848018795482_dp, & 228.54266142056603794772465364330_dp, 230.10264853962397700429726401840_dp, & 228.55141246609881330119784069023_dp, 230.12003230457909864762476955681_dp, & 231.68436532361315119292774653975_dp, 233.24449730871891482942593709843_dp, & 231.69299770403853878097379619250_dp, 233.26164690520061535434630624102_dp, & 234.82606624980914388445040560170_dp, 236.38633926905155372563356498292_dp, & 234.83458314038324101980802326656_dp, 236.40326092251430120867342295121_dp, & 237.96776431706345000072541224276_dp, 239.52817468859536904919545679263_dp, & 237.97616876727566285555756332329_dp, 239.54487437946987058125885716413_dp, & 241.10945963713947035857377502433_dp, 242.67000382144261600854168920639_dp, & 241.11775457726802251499697108991_dp, 242.68648729782870958512982035565_dp, & 244.25115231604988524368994625031_dp, 245.81182690869172771743311116100_dp, & 244.25934056329568255880657617787_dp, 245.82809969823980710755206208514_dp, & 247.39284245442184193652948689308_dp, 248.95364417926749220296021091813_dp, & 247.40092671865282484808794068947_dp, 248.96971160030993716235251663274_dp, & 250.53453014783466193868018651301_dp, 252.09545585067987544224305062167_dp, & 250.54251303696995547044636528300_dp, 252.11132302266859400103494537894_dp, & 253.67621548713245061564203942971_dp, 255.23726212972677943380416775924_dp, & 253.68409951219308100469280850439_dp, 255.25293398302813204908059941444_dp, & 256.81789855871375874445886809100_dp, 258.37906321314550954150070629103_dp, & 256.82568613856441302431773328637_dp, 258.39454449823951876423115058767_dp, & 259.95957944480023759999835817978_dp, 261.52085928821726627105891693651_dp, & 259.96727291060447157306477756920_dp, 261.53615458434406929738025260711_dp, & 263.10125822368604370141033032485_dp, 264.66265053332856663645009330327_dp, & 263.10885982309547069270400257634_dp, 264.67776425662149680975435257908_dp, & 266.24293496996958353340177528394_dp, 267.80443711849313358465678996965_dp, & 266.25044687106588011884095423401_dp, 267.81937352963458097094305971233_dp, & 269.38460975476904015682357830195_dp, 270.94621920583746354719449714936_dp, & 269.39203404977606713817339613835_dp, 270.96098241727072910231536052812_dp, & 272.52628264592299062259364725822_dp, 274.08799695005298768356825189267_dp, & 272.53362135470493145351434896935_dp, 274.10259093278067926475235338893_dp, & 275.66795370817730374678071276906_dp, 277.22977049881747793195092855525_dp, & 275.67520878153745384789779496895_dp, 277.24419908881457199046364002186_dp, & 278.80962300335940055497041545462_dp, 280.37153999318811121615426154559_dp, & 278.81679632615308657846177386448_dp, 280.38580689745559703837918028193_dp, & 281.95129059054086321158311860143_dp, 283.51330556796839111681109960377_dp, & 281.95838398461491985431670967679_dp, 283.52741437025140325871518171186_dp, & 285.09295652618929132895242448108_dp, 286.65506735205093339689430067060_dp, & 285.09997175315956453913058774305_dp, 286.66902151824344316273414799617_dp, & 288.23462086431022615823259687789_dp, 289.79682546873794768600784465162_dp, & 288.24155962818769643811739502072_dp, 289.81062835199440891286756060626_dp, & 291.37628365657989237989547890585_dp, 292.93858003604109035351027729328_dp, & 291.38314760625521224168905006922_dp, 292.95223488161390300372865411839_dp, & 294.51794495246944322395320026470_dp, 296.08033116696222135268663582483_dp, & 294.52473568406495145823317711092_dp, 296.09384111678247474373053592233_dp, & 297.65960479936133674161512741844_dp, 299.22207896975646901834143040219_dp, & 297.66632385845894252404919067485_dp, 299.23544706677414263525740915856_dp, & 300.80126324265841858581554211855_dp, 302.36382354817889005033022619019_dp, & 300.80791212641113477166896885132_dp, 302.37705274047751276923355940137_dp, & 303.94292032588623907510965155034_dp, 305.50556500171590597589821871719_dp, & 303.94950048502058110605777975398_dp, 305.51865814641559429161879469395_dp, & 307.08457609078908911435693374716_dp, 308.64730342580260115335877496016_dp, & 307.09108893150503911477379700033_dp, 308.66026329276440477080676352875_dp, & 310.22623057742020028256958830748_dp, 311.78903891202687987981778232419_dp, & 310.23267746319496095259609304361_dp, 311.80186818737045081251124166656_dp, & 313.36788382422651867843064886724_dp, 314.93077154832140052498881028024_dp, & 313.37426607752784471969024510190_dp, 314.94347283776716245806560024561_dp, & 316.50953586812842958553328723681_dp, 318.07250141914413205502656886887_dp, & 316.51585477204292221847752267426_dp, 318.08507725119035369678887043577_dp, & 319.65118674459478036864693416130_dp, 321.21422860564831214170496507367_dp, & 319.65744354437615994888734721776_dp, 321.22668143459277576398185970052_dp, & 322.79283648771352195915574942034_dp, 324.35595318584252565402859897630_dp, & 322.79903239225555200324754484870_dp, 324.36828539465782473031004693385_dp, & 325.93448513025826458182497801267_dp, 327.49767523474156714770599658189_dp, & 325.94062131349668516737048895576_dp, 327.50988913781246016848946995186_dp, & 329.07613270375102079211694614517_dp, 330.63939482450870050695127519744_dp, & 329.08221030599855803834301990803_dp, 330.65149267023938736694571149975_dp, & 332.21777923852138823260359568620_dp, 333.78111202458988270830513106440_dp, & 332.22379936773963734548991829834_dp, 333.79309599788855160947927876751_dp, & 335.35942476376240559850423015267_dp, 336.92282690184047636867737439636_dp, & 335.36538849677413592094340034522_dp, 336.93469912648798942085392774415_dp, & 338.50106930758329796430299133439_dp, 340.06453952064493695126821197760_dp, & 338.50697769122849792097948562312_dp, 340.07630206155407836000258777784_dp, & 341.64271289705931172041806930062_dp, 343.20624994302992491117877405364_dp, & 341.64856694929807795845225875692_dp, 343.21790480840122389767679916703_dp, & 344.78435555827882477022230381234_dp, 346.34795822877126037729473782213_dp, & 344.79015626924400177897536108638_dp, 346.35950737215101911905619929617_dp, & 347.92599731638790422556306572463_dp, 349.48966443549510792703760407329_dp, & 347.93174564939019700680817750012_dp, 349.50110975774091042174229738227_dp, & 351.06763819563247150710502332862_dp, 352.63136861877375138006984141446_dp, & 351.07333508812058330777196349076_dp, 352.64271196993240001553271133374_dp, & 354.20927821939822340849157197490_dp, 355.77307083221629310316591648917_dp, & 354.21492458387641207232872856146_dp, 355.78431401331881385421278889280_dp, & 357.35091741024844723392702877577_dp, 358.91477112755458888887651923342_dp, & 357.35651413515374641796625372799_dp, 358.92591589233266162486753080935_dp, & 360.49255578995985848905913164480_dp, 362.05646955472470787133981542131_dp, & 360.49810374050107295145694339569_dp, 362.06751761125261357203384974096_dp, & 363.63419337955658072416561799977_dp, 365.19816616194418701612268115169_dp, & 363.63969339851703732311190421565_dp, 365.20911917421011722891474429215_dp, & 366.77583019934237893246938740930_dp, 368.33986099578533132458120847131_dp, & 366.78128310784829615110604419025_dp, 368.35072058519567555365964472364_dp, & 369.91746626893125033676740942249_dp, 371.48155410124479389747028888845_dp, & 369.92287286718747839817743556216_dp, 371.49232184806480651431088109188_dp, & 373.05910160727646940169051482251_dp, 374.62324552180965428990892084295_dp, & 373.06446267527124974901834601149_dp, 374.63392296654370282137777405554_dp, & 376.20073623269817743889384584016_dp, 377.76493529952019905357579498768_dp, & 376.20605253087847396766713604931_dp, 377.77552394423460926299916148267_dp, & 379.34237016290960118475646589816_dp, 380.90662347502959490511140436787_dp, & 379.34764243282846561307989991618_dp, 380.91712478462093394599226955820_dp, & 382.48400341504197918512455591172_dp, 384.04831008766063249381772002414_dp, & 382.48923237997932886044652575980_dp, 384.05872549107210867920755913257_dp, & 385.62563600566826968319774083531_dp, 387.18999517545970718643929948266_dp, & 385.63082237122637751811959420588_dp, 387.20032606684821274663648221367_dp, & 388.76726795082570894197088107353_dp, 390.33167877524819256876920441226_dp, & 388.77241240550063164743456431331_dp, 390.34192651510437340038193225809_dp, & 391.90889926603728451174062113900_dp, 393.47336092267135241617886899006_dp, & 391.91400248176738648721140418523_dp, 393.48352683889495555218018693149_dp, & 395.05052996633218384872502326683_dp, 396.61504165224492764688113144802_dp, & 395.05559259902484965816206392402_dp, 396.62512704117755235143726453709_dp, & 398.19216006626527487785683778802_dp, 399.75672099739952618703668555202_dp, & 398.19718275630284287644780017479_dp, 399.76672712481678760294211364755_dp, & 401.33378957993567154847773178575_dp, 402.89839899052293569472741556235_dp, & 401.33877295266156464175501052545_dp, 402.90832709258794029418329572893_dp, & 404.47541852100443413511327597731_dp, 406.04007566300047166370677811200_dp, & 404.48036318719041058487775971258_dp, 406.04992694718040086653528484852_dp, & 407.61704690271145096764729227479_dp, 409.18175104525346651499904999973_dp, & 407.62195345900684836418159264619_dp, 409.19152669120096827284260411609_dp, & 410.75867473789154541854693950495_dp, 412.32342516677599884573709311686_dp, & 410.76354376725534419064153695412_dp, 412.33312632717699631276827318737_dp, & 413.90030203898984931328495298017_dp, 415.46509805616995600423834057144_dp, & 413.90513411110633823846514189925_dp, 415.47472585755939722361932706783_dp, & 417.04192881807648144905963501712_dp, 418.60676974117851756531862631931_dp, & 417.04672448975526636360825131454_dp, 418.61632528472551002540163342770_dp, & 420.18355508686056759283277138241_dp, 421.74844024871814206002769247514_dp, & 420.18831490242162570666570138590_dp, 421.75792461098184067200467198691_dp, & 423.32518085670363617019853647750_dp, 424.89010960490913444161057157190_dp, & 423.32990534834808190049664257125_dp, 424.89952383856668064330030883474_dp, & 426.46680613863242184027482488806_dp, 428.03177783510486721904833423854_dp, & 426.47149582679961573728320348173_dp, 428.04112296965261022337552890653_dp, & 429.60843094335110726820061284128_dp, 431.17344496391972393754762266650_dp, & 429.61308633706270727521922826792_dp, 431.18272200634889234610011637412_dp, & 432.75005528125303164629352377238_dp, 434.31511101525582971023603401203_dp, & 432.75467687844455548232461790851_dp, 434.32432095070376254890865583875_dp, & 435.89167916243189286859933253537_dp, 437.45677601232862978719124824109_dp, & 435.89626745027233162457130126956_dp, 437.46591980470662025735018824749_dp, & 439.03330259669246872327664084080_dp, 440.59843997769137366845763131468_dp, & 439.03785805189246470813345549591_dp, 440.60751857029012632506008799161_dp, & 442.17492559356088102547115569463_dp, 443.74010293325855900998445068373_dp, & 442.17944868266995738163914409412_dp, 443.74911724933221147489105840256_dp, & 445.31654816229442526309539590722_dp, 446.88176490032838651986164357590_dp, & 445.32103934198773079426595862781_dp, 446.89071584365800002566922874413_dp, & 448.45817031189098706282730188682_dp, 450.02342589960427418243682855289_dp, & 448.46263002924599698981678026028_dp, 450.03231435504165304418529595956_dp, & 451.59979205109806559775205000260_dp, 453.16508595121547646657355018211_dp, & 451.60422074386165749592797226988_dp, 453.17391278520813483245154659234_dp, & 454.74141338842142294592245294531_dp, 456.30674507473685165916550790880_dp, & 454.74581148526772684166574391328_dp, 456.31551113583490644490165392626_dp, & 457.88303433213337736564483205898_dp, 459.44840328920781810468928996469_dp, & 457.88740225291277980629414575823_dp, 459.45710940855354972810871473972_dp, & 461.02465489028075747382865618541_dp, 462.59006061315053791554271800584_dp, & 461.02899304626042126726195909105_dp, 462.59870760495132518584807147061_dp, & 464.16627507069253339393753294595_dp, 465.73171706458736463644161211600_dp, & 464.17058386478877757674420737417_dp, 465.74030572657266679410184004945_dp, & 467.30789488098714007593467338116_dp, 468.87337266105758939021663885188_dp, & 467.31217470799000845365438654062_dp, 468.88190377492061672311992174413_dp, & 470.44951432857950717841079628673_dp, 472.01502741963351819360632458211_dp, & 470.45376557536983843216339407594_dp, 472.02350175145820276620231462156_dp, & 473.59113342068780913937090565927_dp, 475.15668135693591140233269851166_dp, & 473.59535646644710695865007811949_dp, 475.16509965760976112678647418229_dp, & 476.73275216433994834374256759857_dp, 478.29833448914881461768281655744_dp, & 476.73694738075333627687923248126_dp, 478.30669749476220707609594260286_dp, & 479.87437056637978361958650334904_dp, 481.43998683203380885532923144171_dp, & 479.87853831783231628625330535432_dp, 481.44829526426625586246128036777_dp, & 483.01598863347311565848697575205_dp, 484.58163840094370633500795217885_dp, & 483.02012927723970560039750756503_dp, 484.58989296743759612993103455921_dp, & 486.15760637211344035611679476316_dp, 487.72328921083571689117542417820_dp, & 486.16172025854264807328480056416_dp, 487.73149060555801798745619105586_dp, & 489.29922378862748050413268319910_dp, 490.86493927628410872453387646830_dp, & 489.30331126131940409774578087143_dp, 490.87308817987649776029810792137_dp, & 492.44084088918050573215093578311_dp, 494.00658861149238600736886244892_dp, & 492.44490228515899601668600916307_dp, 494.01468569161024135195118921542_dp, & 495.58245767978145009652462015859_dp, 497.14823723030500471735191605723_dp, & 495.58649332966086702078684377096_dp, 497.15628314194568804739102719151_dp, & 498.72407416628783623907834073729_dp, 500.28988514621864700051293358375_dp, & 498.72808439443455293802282359755_dp, 500.29788053203947649648729923581_dp, & 501.86569035441051459207292941869_dp, 503.43153237239307335046520579454_dp, & 501.86967547909936635010781928003_dp, 503.43947786301937452961457396779_dp, & 505.00730624971822568381039884347_dp, 506.57317892166157093392901722051_dp, & 505.01126658328409249909412547840_dp, 506.58107513598517437553303026734_dp, & 508.14892185764199320090204692967_dp, 509.71482480654101548865919843997_dp, & 508.15285770662669647389647235679_dp, 509.72267235200955477419631233361_dp, & 511.29053718347935508686725969205_dp, 512.85647003924156336578485257014_dp, & 511.29444884877404119159269543381_dp, 512.86426951213891140399684269620_dp, & 514.43215223239843960106175331363_dp, 515.99811463167598948128047976195_dp, & 514.43604000938161571205416906272_dp, 516.00586661739415697382005362706_dp, & 517.57376700944189292569600445745_dp, 519.13975859546868617797377737599_dp, & 517.57763118811327344686574343389_dp, 519.14746366877149226490563227176_dp, & 520.71538151953066459072506062518_dp, 522.28140194196433727751087638128_dp, & 520.71922238464097984468493957250_dp, 522.28906066724314934567951059920_dp, & 523.85699576746765668557476500276_dp, 525.42304468223628091857310212258_dp, & 523.86081359864456915523651010798_dp, 525.43065761375810812421336904650_dp, & 526.99860975794124254199344868463_dp, 528.56468682709457413106055820725_dp, & 527.00240482981150989310934034999_dp, 528.57225450924278734759109766163_dp, & 530.14022349552866030282581745422_dp, 531.70632838709377148376712491865_dp, & 530.14399607783667864048177529477_dp, 531.71385135460171110502905899327_dp, & 533.28183698469928653630255862275_dp, 534.84796937254042956324861178604_dp, & 533.28558734242214184490841475993_dp, 534.85544815071815184193615858403_dp, & 536.42345022981779481368821541602_dp, 537.98960979350034849224037321966_dp, & 536.42717862327694528441198256460_dp, 537.99704489845475084504879742006_dp, & 539.56506323514720393904782613463_dp, 541.13124965980556117534299988932_dp, & 539.56876992011691088739023694450_dp, 541.13864159865411711418323790003_dp, & 542.70667600485182030274628744461_dp, 544.27288898106108046610743291827_dp, & 542.71036123266444060931891545414_dp, 544.28023825213940549387186281104_dp, & 545.84828854300007862439639564009_dp, 547.41452776665141398156135080503_dp, & 545.85195256064832708195317202468_dp, 547.42183485971487489805730510754_dp, & 548.98990085356728515567831289652_dp, 550.55616602574685584617176312320_dp, & 548.99354390380357076374475894474_dp, 550.56343142216642742298487896041_dp, & 552.13151294043826722816135708667_dp, 553.69780376730956422587006042251_dp, & 552.13513526187120333254054012990_dp, 553.70502794026212910734232974018_dp, & 555.27312480740993285540264088154_dp, 556.83944100009943311279565240274_dp, & 555.27672663459811707334749969882_dp, 556.84662441475271306443707221683_dp, & 558.41473645819374393164532763571_dp, 559.98107773267976644164209619733_dp, & 558.41831802173690002507560380059_dp, 559.98822084637206567867199386789_dp, & 561.55634789641810641089393752878_dp, 563.12271397342276225778828848423_dp, & 561.55990942304567666073587936129_dp, 563.12981723583769652768506436366_dp, & 564.69795912563068069953752647869_dp, 566.26434973051481431470867214230_dp, & 564.70150083828795388560805507539_dp, 566.27141358385119266216480261678_dp, & 567.83957014930061535258443632037_dp, 569.40598501196163815248652619987_dp, & 567.84309226723247214742933517053_dp, 569.41300989109865784745799791542_dp, & 570.98118097082070702755202697267_dp, 572.54761982559322839966930555602_dp, & 570.98468370965306146172084152242_dp, 572.55460615825113734456798730395_dp, & 574.12279159350948952073353876413_dp, 575.68925417906865374632678587594_dp, & 574.12627516532850216398680588732_dp, 575.69620238596502878292608385656_dp, & 577.26440202061325458757740206936_dp, 578.83088807988069575617598081289_dp, & 577.26786663404239020871801572242_dp, 578.83779857488247965333474410491_dp, & 580.40601225530800713191902746592_dp, 581.97252153536033741924498884399_dp, & 580.40945811558300684292816220180_dp, 581.97939472563177192666226917909_dp, & 583.54762230070135723747879494646_dp, 585.11415455268110709303051582553_dp, & 583.55104960974319248937110251939_dp, 585.12099083882769428215269157557_dp, & 586.68923215983435140907903922404_dp, 588.25578713886328323877315213745_dp, & 586.69264111632022468164885924335_dp, 588.26258691507190240854212142507_dp, & 589.83084183568324529015151090910_dp, 591.39741930077796512968309348244_dp, & 589.83423263511569990014348104066_dp, 591.40418295495326782148876714716_dp, & 592.97245133116122002703594761214_dp, 594.53905104515101448908705503353_dp, & 592.97582416593541916410861541134_dp, 594.54577895904821562207588261377_dp, & 596.11406064912004435905648494630_dp, 597.68068237856687280796007768572_dp, & 596.11741570858927724135568942286_dp, 597.68737492792105160328582301949_dp, & 599.25566979235168442616676626069_dp, 600.82231330747225889261225256994_dp, & 599.25900726289115534278087885822_dp, 600.82897086212427909432284117923_dp, & 602.39727876358986320285156913324_dp, 603.96394383817975100390957414879_dp, & 602.40059882865881717451757647370_dp, 603.97056676219890591643850490212_dp, & 605.53888756551157138775020635397_dp, 607.10557397687125776883871547376_dp, & 605.54219040571380822577899659059_dp, 607.11216262867474180844543296837_dp, & 608.68049620073853150292458616842_dp, 610.24720372960138187302331206177_dp, & 608.68378199388135817549022304874_dp, 610.25375846207068666535353545962_dp, & 611.82210467183861688464365148236_dp, 613.38883310230068037853574586897_dp, & 611.82537359299028630561101379444_dp, 613.39535426289500991949139851409_dp, & 614.96371298132722717881760122762_dp, 616.53046210077882535461886741812_dp, & 614.96696520287290981363190358388_dp, 616.53695003164562138004922610462_dp, & 618.10532113166862188862144217887_dp, 619.67209073072766835935457663156_dp, & 618.10855682336495492109781748806_dp, 619.67854576881033383416612648018_dp, & 621.24692912527721345923900638066_dp, 622.81371899772421216752989457500_dp, & 621.25014845430547067918611895253_dp, 622.82014147486711770045260801923_dp, & 624.38853696451882132488537974688_dp, 625.95534690723349300361521432272_dp, & 624.39174009553674537634977748250_dp, 625.96173715028434801415973388679_dp, & 627.53014465171188828618577586881_dp, 629.09697446461137640856166265604_dp, & 627.53333174690422545684061172594_dp, 629.10333279552104401205188622690_dp, & 630.67175218912866053146808838837_dp, 632.23860167510726974474038952138_dp& /),(/4,Nmax/))
31,452
76.090686
77
f90
artemide-public
artemide-public-master/src/Tables/BesselZero1000.f90
!!!!This is table of zeros of bessel function J0,..,J3 up to 1000 !!!! !!!! the table is j0,j1,j2,j3(1-root),j0,j1,j2,j3(2-root) !!!! udated for v1.41 (12.03.2019) (A.Vladimirov) real(dp),dimension(0:3,1:Nmax),parameter::JZero=reshape((/& 2.4048255576957727686216318793265_dp, 3.8317059702075123156144358863082_dp, & 5.1356223018406825563014016901378_dp, 6.3801618959239835062366146419427_dp, & 5.5200781102863106495966041128130_dp, 7.0155866698156187535370499814765_dp, & 8.4172441403998648577836136761580_dp, 9.7610231299816696785453885000862_dp, & 8.6537279129110122169541987126609_dp, 10.173468135062722077185711776776_dp, & 11.619841172149059427094144986755_dp, 13.015200721698434419832684382879_dp, & 11.791534439014281613743044911925_dp, 13.323691936314223032393684126948_dp, & 14.795951782351260746661471320228_dp, 16.223466160318768122228024524950_dp, & 14.930917708487785947762593997389_dp, 16.470630050877632812552460470990_dp, & 17.959819494987826455115142077254_dp, 19.409415226435011553575420295721_dp, & 18.071063967910922543147882975618_dp, 19.615858510468242021125065884138_dp, & 21.116997053021845590962817082798_dp, 22.582729593104442027928009075353_dp, & 21.211636629879258959078393350526_dp, 22.760084380592771898053005152182_dp, & 24.270112313573102609583152428183_dp, 25.748166699294977635022331629115_dp, & 24.352471530749302737057944763179_dp, 25.903672087618382625495855445980_dp, & 27.420573549984557330570488191395_dp, 28.908350780921757858342340445134_dp, & 27.493479132040254795877288234607_dp, 29.046828534916855066647819883532_dp, & 30.569204495516397036604063539306_dp, 32.064852407097709482952251363775_dp, & 30.634606468431975117549578926854_dp, 32.189679910974403626622984104460_dp, & 33.716519509222699921959198425218_dp, 35.218670738610114657374842953082_dp, & 33.775820213573568684238546346715_dp, 35.332307550083865102634479022519_dp, & 36.862856511283809817518162941366_dp, 38.370472434756944364117735272543_dp, & 36.917098353664043979769493063273_dp, 38.474766234771615112052197557717_dp, & 40.008446733478192227261895006566_dp, 41.520719670406775549033549967527_dp, & 40.058425764628239294799307373994_dp, 41.617094212814450885863516805060_dp, & 43.153453778371463269900135114779_dp, 44.669743116617253070620026027512_dp, & 43.199791713176730357524072728743_dp, 44.759318997652821732779352713212_dp, & 46.297996677236919185152545485014_dp, 47.817785691533301888365414155942_dp, & 46.341188371661814018685788879113_dp, 47.901460887185447121274008722508_dp, & 49.442164110416872731070543201950_dp, 50.965029906205183304270065697431_dp, & 49.482609897397817173602761533178_dp, 51.043535183571509468733034633224_dp, & 52.586023506815963631762235503007_dp, 54.111615569821873930296229138608_dp, & 52.624051841114996029251285380392_dp, 54.185553641061320532099966214534_dp, & 55.729627053201144085573014119284_dp, 57.257651604499014080869205598496_dp, & 55.765510755019979311683492773462_dp, 57.327525437901010745090504243751_dp, & 58.873015772612164650109120458626_dp, 60.403224138472121535278996039731_dp, & 58.906983926080942132834406634616_dp, 60.469457845347491559398749808383_dp, & 62.016222359217653701902244080246_dp, 63.548402178567206488006135509057_dp, & 62.048469190227169882852500264651_dp, 63.611356698481232631039762417874_dp, & 65.159273190757797829068965281770_dp, 66.693241667372679460213432049015_dp, & 65.189964800206860440636033742512_dp, 66.753226734098493415305259750042_dp, & 68.302189784183460399289978944662_dp, 69.837788437904339776270219439729_dp, & 68.331469329856798270992303839984_dp, 69.895071837495773969730536435500_dp, & 71.444989866357852114065026538824_dp, 72.982080400432005140350940880054_dp, & 71.472981603593732825063073856130_dp, 73.036895225573834826506117569092_dp, & 74.587688173602402406057514474156_dp, 76.126149184774095573068427472748_dp, & 74.614500643701837883820540469336_dp, 76.178699584641457572852614623535_dp, & 77.730297056978903231600858137201_dp, 79.270021390055860364887771141645_dp, & 77.756025630388055037739371891234_dp, 79.320487175476299391184484872488_dp, & 80.872826946244764614635062206873_dp, 82.413719547267878630106355566440_dp, & 80.897555871137627863772143490873_dp, 82.462259914373556453986610648781_dp, & 84.015286709546167263026969007688_dp, 85.557262868829996929821182055237_dp, & 84.039090776938190157879638347998_dp, 85.604019436350230965949425493380_dp, & 87.157683935203351467159591745092_dp, 88.700667838222059270991158022861_dp, & 87.180629843641153651261805069049_dp, 88.745767144926306903735916434854_dp, & 90.300025154592920389847956637937_dp, 91.843948678147085097922584903141_dp, & 90.322172637210480055717766777628_dp, 91.887504251694985280553622214490_dp, & 93.442316020011125815745154163878_dp, 94.987117725465609446165244167644_dp, & 93.463718781944774171190591543981_dp, 95.029231808044695268050998187174_dp, & 96.584561447783203643969032670587_dp, 98.130185733874888293649043241741_dp, & 96.605267950996268778121617323928_dp, 98.170950730790781973537759160851_dp, & 99.726765734292801706949183732458_dp, 101.27316212007975484359733766047_dp, & 99.746819858680596470279979000135_dp, 101.31266182303873013714105638865_dp, & 102.86893265072788228312581201716_dp, 104.41605516539675324251803335537_dp, & 102.88837425419479459642003427256_dp, 104.45436579128276007136342813961_dp, & 106.01106552096340500241740284879_dp, 107.55887218193252115317370474093_dp, & 106.02993091645161551017691719188_dp, 107.59606325950917218267036427761_dp, & 109.15316728598199715341434725018_dp, 110.70161965039489504918138861441_dp, & 109.17148964980538355206597701275_dp, 110.73775478089921510860865288827_dp, & 112.29524055747167142084675582857_dp, 113.84430333503185636635239771113_dp, & 112.31305028049490962749450612218_dp, 113.87944084759499813488417492843_dp, & 115.43728766266442337825491222667_dp, 116.98692838000925682886566203595_dp, & 115.45461265366693962811775669403_dp, 117.02112189889242502757649460146_dp, & 118.57931068204164170314345284022_dp, 120.12949939063372411801804080652_dp, & 118.59617663087253171562938447524_dp, 120.16279832814900375811940782917_dp, & 121.72131148119620217155159586287_dp, 123.27202050213073457899726797977_dp, & 121.73774208795096296523436348334_dp, 123.30447048863571801676003206877_dp, & 124.86329173788123742704895117889_dp, 126.41449543814765238831277161191_dp, & 124.87930891323294604525912836690_dp, 126.44613869851659569779448049584_dp, & 128.00525296507315884050917189087_dp, 129.55692756072957066323761728614_dp, & 128.02087700600832407976355939230_dp, 129.58780324510399675374141784136_dp, & 131.14719653071777382494964322504_dp, 132.69931991318397587079464043915_dp, & 131.16244627521391460789611499153_dp, 132.72946438850961588677459735175_dp, & 134.28912367470306158692192054100_dp, 135.84167525698768375801650091083_dp, & 134.30401663830546609935289683410_dp, 135.87112236478900059180156821946_dp, & 137.43103552350268765265495857649_dp, 138.98399610368046877046922631908_dp, & 137.44558802028427778778266148333_dp, 139.01277738865970417843354613596_dp, & 140.57293310285488161908524452670_dp, 142.12628474252246251335124863269_dp, & 140.58716035285429654848890334006_dp, 142.15442965585902903270090809976_dp, & 143.71481734877749157675431306544_dp, 145.26854326455769404920935138894_dp, & 143.72873357368973253395071800477_dp, 145.29607934519590723242215085501_dp, & 146.85668911716851279429215974319_dp, 148.41077358361715918552628207145_dp, & 146.87030762579664959413270485825_dp, 148.43772662034223039593927702627_dp, & 149.99854919219959026033487531708_dp, 151.55297745470619425910946713021_dp, & 150.01188245695475749088047297407_dp, 151.57937163140142799278350422223_dp, & 153.14039829367591937514162398332_dp, 154.69515649014854564745980747983_dp, & 153.15345801922789248759162561015_dp, 154.72101451628595352476655565184_dp, & 156.28223708350806285468484002218_dp, 157.83731217380013269173444016131_dp, & 156.29503426853352381954949527314_dp, 157.86265540193029780509466960866_dp, & 159.42406617141824818502551091100_dp, 160.97944587359655862041370180815_dp, & 159.43661116426314632349103791000_dp, 161.00429440536199346389341540909_dp, & 162.56588611998475099193119357346_dp, 164.12155885265792716178798609166_dp, & 162.57818866894667751905980896294_dp, 164.14593163464963540213252677998_dp, & 165.70769744911224760350632309686_dp, 167.26365227914088251029066499668_dp, & 165.71976674795502086669042673820_dp, 167.28756718974408380356484785789_dp, & 168.84950064000293223708446704493_dp, 170.40572723499974079179898675768_dp, & 168.86134536923582568745633745233_dp, 170.42920116322663234774549741975_dp, & 171.99129613869225916262814009258_dp, 173.54778472379510842543776999768_dp, & 172.00292450307820021540043150733_dp, 173.57083364097592863036704086285_dp, & 175.13308435920400147926225509553_dp, 176.68982567766867170379650251274_dp, & 175.14450412190274306537279785910_dp, 176.71246470276375745529773734105_dp, & 178.27486568637160433594225530690_dp, 179.83185096358623431932355491251_dp, & 178.28608420007377068148397419125_dp, 179.85409442278838484508490290633_dp, & 181.41664047836629944316922231606_dp, 182.97386138893704178200809052576_dp, & 181.42766471373105079421219958705_dp, 182.99572287015296608408437309503_dp, & 184.55840906896693470225193679081_dp, 186.11585770656552928487302725475_dp, & 184.56924564063871814111541224792_dp, 186.13735010929550802023984809489_dp, & 187.70017176960179060238592959524_dp, 189.25784061930150760949313492291_dp, & 187.71082696004935978007526572080_dp, 189.27897620037601409322580067878_dp, & 190.84192887118866686315225053587_dp, 192.39981078404616900835795855060_dp, & 190.85240865258152232178079894960_dp, 192.42060119962570542177113155478_dp, & 193.98368064579611618122256984019_dp, 195.54176881546391206282492352567_dp, & 193.99399070010911978994039672749_dp, 195.56222515966258243078293560412_dp, & 197.12542734814578414897129245527_dp, 198.68371528932365343515750007754_dp, & 197.13557308566141473621200268072_dp, 198.70384812977705212611810657899_dp, & 200.26716921697330873188443250775_dp, 201.82565074552785127633895305746_dp, & 200.27715579333241178336208747127_dp, 201.84547015619088230499981743498_dp, & 203.40890647626307544373381162524_dp, 204.96757569086277355982436901628_dp, & 203.41873880819864617124882021532_dp, 204.98709128229234414435873423006_dp, & 206.55063933637026252485108007674_dp, 208.10949060149949118249942978029_dp, & 206.56032211624447365545724492840_dp, 208.12871154885005908148724652235_dp, & 209.69236799504199973243008130056_dp, 211.25139592527156531215171526552_dp, & 209.70190570429407519748244666580_dp, 211.27033099420776661446279140998_dp, & 212.83409263834806770795013143726_dp, 214.39329208375235150073883784403_dp, & 212.84348955994948275074556567747_dp, 214.41194965446196982870027084972_dp, & 215.97581344153035114724030572916_dp, 217.53517947415219253010819975753_dp, & 215.98507367153401315699563788314_dp, 217.55356756362418940178479050986_dp, & 219.11753056977920192962108991282_dp, 220.67705847105346132021825525104_dp, & 219.12665802804056746518913097823_dp, 220.69518475376935974481291028342_dp, & 222.25924417894394581075623230546_dp, 223.81892942799939674987674551727_dp, & 222.26824261908431434128452437947_dp, 223.83680125517172874029155350983_dp, & 225.40095441618395949389559487906_dp, 226.96079267895090843688276538084_dp, & 225.40982743485932989851318199627_dp, 226.97841709642947178848018795482_dp, & 228.54266142056603794772465364330_dp, 230.10264853962397700429726401840_dp, & 228.55141246609881330119784069023_dp, 230.12003230457909864762476955681_dp, & 231.68436532361315119292774653975_dp, 233.24449730871891482942593709843_dp, & 231.69299770403853878097379619250_dp, 233.26164690520061535434630624102_dp, & 234.82606624980914388445040560170_dp, 236.38633926905155372563356498292_dp, & 234.83458314038324101980802326656_dp, 236.40326092251430120867342295121_dp, & 237.96776431706345000072541224276_dp, 239.52817468859536904919545679263_dp, & 237.97616876727566285555756332329_dp, 239.54487437946987058125885716413_dp, & 241.10945963713947035857377502433_dp, 242.67000382144261600854168920639_dp, & 241.11775457726802251499697108991_dp, 242.68648729782870958512982035565_dp, & 244.25115231604988524368994625031_dp, 245.81182690869172771743311116100_dp, & 244.25934056329568255880657617787_dp, 245.82809969823980710755206208514_dp, & 247.39284245442184193652948689308_dp, 248.95364417926749220296021091813_dp, & 247.40092671865282484808794068947_dp, 248.96971160030993716235251663274_dp, & 250.53453014783466193868018651301_dp, 252.09545585067987544224305062167_dp, & 250.54251303696995547044636528300_dp, 252.11132302266859400103494537894_dp, & 253.67621548713245061564203942971_dp, 255.23726212972677943380416775924_dp, & 253.68409951219308100469280850439_dp, 255.25293398302813204908059941444_dp, & 256.81789855871375874445886809100_dp, 258.37906321314550954150070629103_dp, & 256.82568613856441302431773328637_dp, 258.39454449823951876423115058767_dp, & 259.95957944480023759999835817978_dp, 261.52085928821726627105891693651_dp, & 259.96727291060447157306477756920_dp, 261.53615458434406929738025260711_dp, & 263.10125822368604370141033032485_dp, 264.66265053332856663645009330327_dp, & 263.10885982309547069270400257634_dp, 264.67776425662149680975435257908_dp, & 266.24293496996958353340177528394_dp, 267.80443711849313358465678996965_dp, & 266.25044687106588011884095423401_dp, 267.81937352963458097094305971233_dp, & 269.38460975476904015682357830195_dp, 270.94621920583746354719449714936_dp, & 269.39203404977606713817339613835_dp, 270.96098241727072910231536052812_dp, & 272.52628264592299062259364725822_dp, 274.08799695005298768356825189267_dp, & 272.53362135470493145351434896935_dp, 274.10259093278067926475235338893_dp, & 275.66795370817730374678071276906_dp, 277.22977049881747793195092855525_dp, & 275.67520878153745384789779496895_dp, 277.24419908881457199046364002186_dp, & 278.80962300335940055497041545462_dp, 280.37153999318811121615426154559_dp, & 278.81679632615308657846177386448_dp, 280.38580689745559703837918028193_dp, & 281.95129059054086321158311860143_dp, 283.51330556796839111681109960377_dp, & 281.95838398461491985431670967679_dp, 283.52741437025140325871518171186_dp, & 285.09295652618929132895242448108_dp, 286.65506735205093339689430067060_dp, & 285.09997175315956453913058774305_dp, 286.66902151824344316273414799617_dp, & 288.23462086431022615823259687789_dp, 289.79682546873794768600784465162_dp, & 288.24155962818769643811739502072_dp, 289.81062835199440891286756060626_dp, & 291.37628365657989237989547890585_dp, 292.93858003604109035351027729328_dp, & 291.38314760625521224168905006922_dp, 292.95223488161390300372865411839_dp, & 294.51794495246944322395320026470_dp, 296.08033116696222135268663582483_dp, & 294.52473568406495145823317711092_dp, 296.09384111678247474373053592233_dp, & 297.65960479936133674161512741844_dp, 299.22207896975646901834143040219_dp, & 297.66632385845894252404919067485_dp, 299.23544706677414263525740915856_dp, & 300.80126324265841858581554211855_dp, 302.36382354817889005033022619019_dp, & 300.80791212641113477166896885132_dp, 302.37705274047751276923355940137_dp, & 303.94292032588623907510965155034_dp, 305.50556500171590597589821871719_dp, & 303.94950048502058110605777975398_dp, 305.51865814641559429161879469395_dp, & 307.08457609078908911435693374716_dp, 308.64730342580260115335877496016_dp, & 307.09108893150503911477379700033_dp, 308.66026329276440477080676352875_dp, & 310.22623057742020028256958830748_dp, 311.78903891202687987981778232419_dp, & 310.23267746319496095259609304361_dp, 311.80186818737045081251124166656_dp, & 313.36788382422651867843064886724_dp, 314.93077154832140052498881028024_dp, & 313.37426607752784471969024510190_dp, 314.94347283776716245806560024561_dp, & 316.50953586812842958553328723681_dp, 318.07250141914413205502656886887_dp, & 316.51585477204292221847752267426_dp, 318.08507725119035369678887043577_dp, & 319.65118674459478036864693416130_dp, 321.21422860564831214170496507367_dp, & 319.65744354437615994888734721776_dp, 321.22668143459277576398185970052_dp, & 322.79283648771352195915574942034_dp, 324.35595318584252565402859897630_dp, & 322.79903239225555200324754484870_dp, 324.36828539465782473031004693385_dp, & 325.93448513025826458182497801267_dp, 327.49767523474156714770599658189_dp, & 325.94062131349668516737048895576_dp, 327.50988913781246016848946995186_dp, & 329.07613270375102079211694614517_dp, 330.63939482450870050695127519744_dp, & 329.08221030599855803834301990803_dp, 330.65149267023938736694571149975_dp, & 332.21777923852138823260359568620_dp, 333.78111202458988270830513106440_dp, & 332.22379936773963734548991829834_dp, 333.79309599788855160947927876751_dp, & 335.35942476376240559850423015267_dp, 336.92282690184047636867737439636_dp, & 335.36538849677413592094340034522_dp, 336.93469912648798942085392774415_dp, & 338.50106930758329796430299133439_dp, 340.06453952064493695126821197760_dp, & 338.50697769122849792097948562312_dp, 340.07630206155407836000258777784_dp, & 341.64271289705931172041806930062_dp, 343.20624994302992491117877405364_dp, & 341.64856694929807795845225875692_dp, 343.21790480840122389767679916703_dp, & 344.78435555827882477022230381234_dp, 346.34795822877126037729473782213_dp, & 344.79015626924400177897536108638_dp, 346.35950737215101911905619929617_dp, & 347.92599731638790422556306572463_dp, 349.48966443549510792703760407329_dp, & 347.93174564939019700680817750012_dp, 349.50110975774091042174229738227_dp, & 351.06763819563247150710502332862_dp, 352.63136861877375138006984141446_dp, & 351.07333508812058330777196349076_dp, 352.64271196993240001553271133374_dp, & 354.20927821939822340849157197490_dp, 355.77307083221629310316591648917_dp, & 354.21492458387641207232872856146_dp, 355.78431401331881385421278889280_dp, & 357.35091741024844723392702877577_dp, 358.91477112755458888887651923342_dp, & 357.35651413515374641796625372799_dp, 358.92591589233266162486753080935_dp, & 360.49255578995985848905913164480_dp, 362.05646955472470787133981542131_dp, & 360.49810374050107295145694339569_dp, 362.06751761125261357203384974096_dp, & 363.63419337955658072416561799977_dp, 365.19816616194418701612268115169_dp, & 363.63969339851703732311190421565_dp, 365.20911917421011722891474429215_dp, & 366.77583019934237893246938740930_dp, 368.33986099578533132458120847131_dp, & 366.78128310784829615110604419025_dp, 368.35072058519567555365964472364_dp, & 369.91746626893125033676740942249_dp, 371.48155410124479389747028888845_dp, & 369.92287286718747839817743556216_dp, 371.49232184806480651431088109188_dp, & 373.05910160727646940169051482251_dp, 374.62324552180965428990892084295_dp, & 373.06446267527124974901834601149_dp, 374.63392296654370282137777405554_dp, & 376.20073623269817743889384584016_dp, 377.76493529952019905357579498768_dp, & 376.20605253087847396766713604931_dp, 377.77552394423460926299916148267_dp, & 379.34237016290960118475646589816_dp, 380.90662347502959490511140436787_dp, & 379.34764243282846561307989991618_dp, 380.91712478462093394599226955820_dp, & 382.48400341504197918512455591172_dp, 384.04831008766063249381772002414_dp, & 382.48923237997932886044652575980_dp, 384.05872549107210867920755913257_dp, & 385.62563600566826968319774083531_dp, 387.18999517545970718643929948266_dp, & 385.63082237122637751811959420588_dp, 387.20032606684821274663648221367_dp, & 388.76726795082570894197088107353_dp, 390.33167877524819256876920441226_dp, & 388.77241240550063164743456431331_dp, 390.34192651510437340038193225809_dp, & 391.90889926603728451174062113900_dp, 393.47336092267135241617886899006_dp, & 391.91400248176738648721140418523_dp, 393.48352683889495555218018693149_dp, & 395.05052996633218384872502326683_dp, 396.61504165224492764688113144802_dp, & 395.05559259902484965816206392402_dp, 396.62512704117755235143726453709_dp, & 398.19216006626527487785683778802_dp, 399.75672099739952618703668555202_dp, & 398.19718275630284287644780017479_dp, 399.76672712481678760294211364755_dp, & 401.33378957993567154847773178575_dp, 402.89839899052293569472741556235_dp, & 401.33877295266156464175501052545_dp, 402.90832709258794029418329572893_dp, & 404.47541852100443413511327597731_dp, 406.04007566300047166370677811200_dp, & 404.48036318719041058487775971258_dp, 406.04992694718040086653528484852_dp, & 407.61704690271145096764729227479_dp, 409.18175104525346651499904999973_dp, & 407.62195345900684836418159264619_dp, 409.19152669120096827284260411609_dp, & 410.75867473789154541854693950495_dp, 412.32342516677599884573709311686_dp, & 410.76354376725534419064153695412_dp, 412.33312632717699631276827318737_dp, & 413.90030203898984931328495298017_dp, 415.46509805616995600423834057144_dp, & 413.90513411110633823846514189925_dp, 415.47472585755939722361932706783_dp, & 417.04192881807648144905963501712_dp, 418.60676974117851756531862631931_dp, & 417.04672448975526636360825131454_dp, 418.61632528472551002540163342770_dp, & 420.18355508686056759283277138241_dp, 421.74844024871814206002769247514_dp, & 420.18831490242162570666570138590_dp, 421.75792461098184067200467198691_dp, & 423.32518085670363617019853647750_dp, 424.89010960490913444161057157190_dp, & 423.32990534834808190049664257125_dp, 424.89952383856668064330030883474_dp, & 426.46680613863242184027482488806_dp, 428.03177783510486721904833423854_dp, & 426.47149582679961573728320348173_dp, 428.04112296965261022337552890653_dp, & 429.60843094335110726820061284128_dp, 431.17344496391972393754762266650_dp, & 429.61308633706270727521922826792_dp, 431.18272200634889234610011637412_dp, & 432.75005528125303164629352377238_dp, 434.31511101525582971023603401203_dp, & 432.75467687844455548232461790851_dp, 434.32432095070376254890865583875_dp, & 435.89167916243189286859933253537_dp, 437.45677601232862978719124824109_dp, & 435.89626745027233162457130126956_dp, 437.46591980470662025735018824749_dp, & 439.03330259669246872327664084080_dp, 440.59843997769137366845763131468_dp, & 439.03785805189246470813345549591_dp, 440.60751857029012632506008799161_dp, & 442.17492559356088102547115569463_dp, 443.74010293325855900998445068373_dp, & 442.17944868266995738163914409412_dp, 443.74911724933221147489105840256_dp, & 445.31654816229442526309539590722_dp, 446.88176490032838651986164357590_dp, & 445.32103934198773079426595862781_dp, 446.89071584365800002566922874413_dp, & 448.45817031189098706282730188682_dp, 450.02342589960427418243682855289_dp, & 448.46263002924599698981678026028_dp, 450.03231435504165304418529595956_dp, & 451.59979205109806559775205000260_dp, 453.16508595121547646657355018211_dp, & 451.60422074386165749592797226988_dp, 453.17391278520813483245154659234_dp, & 454.74141338842142294592245294531_dp, 456.30674507473685165916550790880_dp, & 454.74581148526772684166574391328_dp, 456.31551113583490644490165392626_dp, & 457.88303433213337736564483205898_dp, 459.44840328920781810468928996469_dp, & 457.88740225291277980629414575823_dp, 459.45710940855354972810871473972_dp, & 461.02465489028075747382865618541_dp, 462.59006061315053791554271800584_dp, & 461.02899304626042126726195909105_dp, 462.59870760495132518584807147061_dp, & 464.16627507069253339393753294595_dp, 465.73171706458736463644161211600_dp, & 464.17058386478877757674420737417_dp, 465.74030572657266679410184004945_dp, & 467.30789488098714007593467338116_dp, 468.87337266105758939021663885188_dp, & 467.31217470799000845365438654062_dp, 468.88190377492061672311992174413_dp, & 470.44951432857950717841079628673_dp, 472.01502741963351819360632458211_dp, & 470.45376557536983843216339407594_dp, 472.02350175145820276620231462156_dp, & 473.59113342068780913937090565927_dp, 475.15668135693591140233269851166_dp, & 473.59535646644710695865007811949_dp, 475.16509965760976112678647418229_dp, & 476.73275216433994834374256759857_dp, 478.29833448914881461768281655744_dp, & 476.73694738075333627687923248126_dp, 478.30669749476220707609594260286_dp, & 479.87437056637978361958650334904_dp, 481.43998683203380885532923144171_dp, & 479.87853831783231628625330535432_dp, 481.44829526426625586246128036777_dp, & 483.01598863347311565848697575205_dp, 484.58163840094370633500795217885_dp, & 483.02012927723970560039750756503_dp, 484.58989296743759612993103455921_dp, & 486.15760637211344035611679476316_dp, 487.72328921083571689117542417820_dp, & 486.16172025854264807328480056416_dp, 487.73149060555801798745619105586_dp, & 489.29922378862748050413268319910_dp, 490.86493927628410872453387646830_dp, & 489.30331126131940409774578087143_dp, 490.87308817987649776029810792137_dp, & 492.44084088918050573215093578311_dp, 494.00658861149238600736886244892_dp, & 492.44490228515899601668600916307_dp, 494.01468569161024135195118921542_dp, & 495.58245767978145009652462015859_dp, 497.14823723030500471735191605723_dp, & 495.58649332966086702078684377096_dp, 497.15628314194568804739102719151_dp, & 498.72407416628783623907834073729_dp, 500.28988514621864700051293358375_dp, & 498.72808439443455293802282359755_dp, 500.29788053203947649648729923581_dp, & 501.86569035441051459207292941869_dp, 503.43153237239307335046520579454_dp, & 501.86967547909936635010781928003_dp, 503.43947786301937452961457396779_dp, & 505.00730624971822568381039884347_dp, 506.57317892166157093392901722051_dp, & 505.01126658328409249909412547840_dp, 506.58107513598517437553303026734_dp, & 508.14892185764199320090204692967_dp, 509.71482480654101548865919843997_dp, & 508.15285770662669647389647235679_dp, 509.72267235200955477419631233361_dp, & 511.29053718347935508686725969205_dp, 512.85647003924156336578485257014_dp, & 511.29444884877404119159269543381_dp, 512.86426951213891140399684269620_dp, & 514.43215223239843960106175331363_dp, 515.99811463167598948128047976195_dp, & 514.43604000938161571205416906272_dp, 516.00586661739415697382005362706_dp, & 517.57376700944189292569600445745_dp, 519.13975859546868617797377737599_dp, & 517.57763118811327344686574343389_dp, 519.14746366877149226490563227176_dp, & 520.71538151953066459072506062518_dp, 522.28140194196433727751087638128_dp, & 520.71922238464097984468493957250_dp, 522.28906066724314934567951059920_dp, & 523.85699576746765668557476500276_dp, 525.42304468223628091857310212258_dp, & 523.86081359864456915523651010798_dp, 525.43065761375810812421336904650_dp, & 526.99860975794124254199344868463_dp, 528.56468682709457413106055820725_dp, & 527.00240482981150989310934034999_dp, 528.57225450924278734759109766163_dp, & 530.14022349552866030282581745422_dp, 531.70632838709377148376712491865_dp, & 530.14399607783667864048177529477_dp, 531.71385135460171110502905899327_dp, & 533.28183698469928653630255862275_dp, 534.84796937254042956324861178604_dp, & 533.28558734242214184490841475993_dp, 534.85544815071815184193615858403_dp, & 536.42345022981779481368821541602_dp, 537.98960979350034849224037321966_dp, & 536.42717862327694528441198256460_dp, 537.99704489845475084504879742006_dp, & 539.56506323514720393904782613463_dp, 541.13124965980556117534299988932_dp, & 539.56876992011691088739023694450_dp, 541.13864159865411711418323790003_dp, & 542.70667600485182030274628744461_dp, 544.27288898106108046610743291827_dp, & 542.71036123266444060931891545414_dp, 544.28023825213940549387186281104_dp, & 545.84828854300007862439639564009_dp, 547.41452776665141398156135080503_dp, & 545.85195256064832708195317202468_dp, 547.42183485971487489805730510754_dp, & 548.98990085356728515567831289652_dp, 550.55616602574685584617176312320_dp, & 548.99354390380357076374475894474_dp, 550.56343142216642742298487896041_dp, & 552.13151294043826722816135708667_dp, 553.69780376730956422587006042251_dp, & 552.13513526187120333254054012990_dp, 553.70502794026212910734232974018_dp, & 555.27312480740993285540264088154_dp, 556.83944100009943311279565240274_dp, & 555.27672663459811707334749969882_dp, 556.84662441475271306443707221683_dp, & 558.41473645819374393164532763571_dp, 559.98107773267976644164209619733_dp, & 558.41831802173690002507560380059_dp, 559.98822084637206567867199386789_dp, & 561.55634789641810641089393752878_dp, 563.12271397342276225778828848423_dp, & 561.55990942304567666073587936129_dp, 563.12981723583769652768506436366_dp, & 564.69795912563068069953752647869_dp, 566.26434973051481431470867214230_dp, & 564.70150083828795388560805507539_dp, 566.27141358385119266216480261678_dp, & 567.83957014930061535258443632037_dp, 569.40598501196163815248652619987_dp, & 567.84309226723247214742933517053_dp, 569.41300989109865784745799791542_dp, & 570.98118097082070702755202697267_dp, 572.54761982559322839966930555602_dp, & 570.98468370965306146172084152242_dp, 572.55460615825113734456798730395_dp, & 574.12279159350948952073353876413_dp, 575.68925417906865374632678587594_dp, & 574.12627516532850216398680588732_dp, 575.69620238596502878292608385656_dp, & 577.26440202061325458757740206936_dp, 578.83088807988069575617598081289_dp, & 577.26786663404239020871801572242_dp, 578.83779857488247965333474410491_dp, & 580.40601225530800713191902746592_dp, 581.97252153536033741924498884399_dp, & 580.40945811558300684292816220180_dp, 581.97939472563177192666226917909_dp, & 583.54762230070135723747879494646_dp, 585.11415455268110709303051582553_dp, & 583.55104960974319248937110251939_dp, 585.12099083882769428215269157557_dp, & 586.68923215983435140907903922404_dp, 588.25578713886328323877315213745_dp, & 586.69264111632022468164885924335_dp, 588.26258691507190240854212142507_dp, & 589.83084183568324529015151090910_dp, 591.39741930077796512968309348244_dp, & 589.83423263511569990014348104066_dp, 591.40418295495326782148876714716_dp, & 592.97245133116122002703594761214_dp, 594.53905104515101448908705503353_dp, & 592.97582416593541916410861541134_dp, 594.54577895904821562207588261377_dp, & 596.11406064912004435905648494630_dp, 597.68068237856687280796007768572_dp, & 596.11741570858927724135568942286_dp, 597.68737492792105160328582301949_dp, & 599.25566979235168442616676626069_dp, 600.82231330747225889261225256994_dp, & 599.25900726289115534278087885822_dp, 600.82897086212427909432284117923_dp, & 602.39727876358986320285156913324_dp, 603.96394383817975100390957414879_dp, & 602.40059882865881717451757647370_dp, 603.97056676219890591643850490212_dp, & 605.53888756551157138775020635397_dp, 607.10557397687125776883871547376_dp, & 605.54219040571380822577899659059_dp, 607.11216262867474180844543296837_dp, & 608.68049620073853150292458616842_dp, 610.24720372960138187302331206177_dp, & 608.68378199388135817549022304874_dp, 610.25375846207068666535353545962_dp, & 611.82210467183861688464365148236_dp, 613.38883310230068037853574586897_dp, & 611.82537359299028630561101379444_dp, 613.39535426289500991949139851409_dp, & 614.96371298132722717881760122762_dp, 616.53046210077882535461886741812_dp, & 614.96696520287290981363190358388_dp, 616.53695003164562138004922610462_dp, & 618.10532113166862188862144217887_dp, 619.67209073072766835935457663156_dp, & 618.10855682336495492109781748806_dp, 619.67854576881033383416612648018_dp, & 621.24692912527721345923900638066_dp, 622.81371899772421216752989457500_dp, & 621.25014845430547067918611895253_dp, 622.82014147486711770045260801923_dp, & 624.38853696451882132488537974688_dp, 625.95534690723349300361521432272_dp, & 624.39174009553674537634977748250_dp, 625.96173715028434801415973388679_dp, & 627.53014465171188828618577586881_dp, 629.09697446461137640856166265604_dp, & 627.53333174690422545684061172594_dp, 629.10333279552104401205188622690_dp, & 630.67175218912866053146808838837_dp, 632.23860167510726974474038952138_dp, & 630.67492340825643686256128465378_dp, 632.24492841102710157438442588726_dp, & 633.81335957899633256343781380722_dp, 635.38022854386675422449814932863_dp, & 633.81651507944490871416635205328_dp, 635.38652399724351877120603868222_dp, & 636.95496682349815824292778521848_dp, 638.52185507593413923421835528217_dp, & 636.95810676032409925065018840599_dp, 638.52811955460261475047490461002_dp, & 640.09657392477452911383770426336_dp, 641.66348127625494161719715487317_dp, & 640.09969845075132394983059855272_dp, 641.66971508352824219617593931805_dp, & 643.23818088492402112789240928002_dp, 644.80510714967829247482608521629_dp, & 643.24129015058668575516852617629_dp, 644.81131058443599357573234748136_dp, & 646.37978770600441084435151967769_dp, 647.94673270095927394628562497154_dp, & 646.38288185969300733726326526562_dp, 647.95290605773340138749881977839_dp, & 649.52139439003366213820030620972_dp, 651.08835793476118833197882571863_dp, & 649.52447357793576532113538215483_dp, 651.09450150382013261098717259096_dp, & 652.66300093899088441055120639713_dp, 654.22998285565776183506409072648_dp, & 652.66606530518302641306223766165_dp, 654.23609692308817755469033533475_dp, & 655.80460735481726325690098945624_dp, 657.37160746813528510848487179923_dp, & 655.80765704130538536326931541032_dp, 657.37769231592203328892052977248_dp, & 658.94621363941696451243835970450_dp, 660.51323177659469271165564032121_dp, & 658.94924878617590470320996598477_dp, 660.51928768269888184394633329605_dp, & 662.08781979465801255870322610654_dp, 663.65485578535358350127170487470_dp, & 662.09084053967005619849183490937_dp, 663.66088302378876334688597776725_dp, & 665.22942582237314374248844144826_dp, 666.79647949864818390439817851162_dp, & 665.23243230166566396073505493567_dp, 666.80247833955474426427639322665_dp, & 668.37103172436063572587781195022_dp, 669.93810292063525594890214896410_dp, & 668.37402407204284916377989575285_dp, 669.94407363035308091097558611120_dp, & 671.51263750238511355566446918244_dp, 673.07972605539395185627151826829_dp, & 671.51561585068397631170438397707_dp, 673.08566889653337838005706604896_dp, & 674.65424315817833321102854052570_dp, 676.22134890692761693477138261808_dp, & 674.65720763747360100806961431793_dp, 676.22726413843874504260698344227_dp, & 677.79584869343994336021291070305_dp, 679.36297147916554244658880511323_dp, & 677.79879943229841917768603720513_dp, 679.36885935640594276082581314313_dp, & 680.93745410983822602996421549115_dp, 682.50459377596467006098083699655_dp, & 680.94039123504721769399169554449_dp, 682.51045455076553295255580607643_dp, & 684.07905940901081686564938533046_dp, 685.64621580111124944634659070377_dp, & 684.08198304561082636685677004608_dp, 685.65204972184201864029257417992_dp, & 687.22066459256540563516509557000_dp, 688.78783755832245049747610972321_dp, & 687.22357486388207124728127527487_dp, 688.79364486995398261288414261389_dp, & 690.36226966208041760597996717935_dp, 691.92945905124793163987655666962_dp, & 690.36516668975572920703755374559_dp, 691.93523999541422182346416099381_dp, & 693.50387461910567640184129520953_dp, 695.07108028347136560093517039531_dp, & 693.50675852312848375282940877246_dp, 695.07683509852987814269874568159_dp, & 696.64547946516304892379574238546_dp, 698.21270125851192398764902536597_dp, & 696.64835036389888203599821206875_dp, 698.21843017960256558214010500404_dp, & 699.78708420174707289917526136006_dp, 701.35432197982572196263926503671_dp, & 699.78994221196729302020588906647_dp, 701.36002523892849409836657565689_dp, & 702.92868883032556760204598403163_dp, 704.49594245080722426408221942538_dp, & 702.93153406723586677086795722137_dp, 704.50162027679859008464026597967_dp, & 706.07029335234022826927135679159_dp, 707.63756267479061377094609281851_dp, & 706.07312592960849483139927491518_dp, 707.64321529349861365302283102392_dp, & 709.21189776920720471776565486449_dp, 710.77918265505112377243831830180_dp, & 709.21471779899077165257323365336_dp, 710.78481028930927280625002249794_dp, & 712.35350208231766465067615970919_dp, 713.92080239480633505976776002614_dp, & 712.35630967528995704248406118385_dp, 713.92640526450633459516992838760_dp, & 715.49510629303834212309935650498_dp, 717.06242189721743891913397374194_dp, & 715.49790155841493960574385553550_dp, 717.06800021936073335419192673432_dp, & 718.63671040271207162147768664476_dp, 720.20404116539046706720252114873_dp, & 718.63949344827620114164299364808_dp, 720.20959515413867610396731314492_dp, & 721.77831441265830819500933102991_dp, 723.34566020237748953414403763133_dp, & 721.78108534478578197205660875776_dp, 723.35119006910174520742259680546_dp, & 724.91991832417363406220626074445_dp, 726.48727901117778146454171919476_dp, & 724.92267724785724717089277031509_dp, 726.49278496450699836228714210078_dp, & 728.06152213853225210112875567806_dp, 729.62889759473895977304648135226_dp, & 728.06426915740565366785160285286_dp, 729.63437984060706601039296770268_dp, & 731.20312585698646661778240015320_dp, 732.77051595595809055952346898857_dp, & 731.20586107334751820020053596281_dp, 732.77597469765024624127115245719_dp, & 734.34472948076715177366205226911_dp, 735.91213409768276815753279404071_dp, & 734.34745299560078608717079692298_dp, 735.91756953588059726492172028586_dp, & 737.48633301108420804044341757563_dp, 739.05375202271216666026885460437_dp, & 737.48904492408480080244567561650_dp, 739.05916435553802752608758789775_dp, & 740.62793644912700703733467965012_dp, 742.19536973379806473949629653266_dp, & 740.63063685872027432104347164772_dp, 742.20075915685838352991387204255_dp, & 743.76953979606482509458721226018_dp, 745.33698723364584454551888919308_dp, & 743.77222879942925821769877144703_dp, 745.34235394007353544651747875415_dp, & 746.91114305304726587510575091382_dp, 748.47860452491546544975477704127_dp, & 746.91382074613511549461612955574_dp, 748.48394870541146055972453574073_dp, & 750.05274622120467237497548666578_dp, 751.62022161022241336602430756301_dp, & 750.05541269876249311721161276923_dp, 751.62554345309632462305116027640_dp, & 753.19434930164852861301818702721_dp, 754.76183849213862636214348212670_dp, & 753.19700465723729523717121971876_dp, 754.76713818334856118390272848831_dp, & 756.33595229547185130918430313631_dp, 757.90345517319339724981747733631_dp, & 756.33859662148665708284206776812_dp, 757.90873289638494893494483953300_dp, & 759.47755520374957184166653364390_dp, 761.04507165587425381810688467631_dp, & 759.48018859143891949763354717518_dp, 761.05032759241868714965231539074_dp, & 762.61915802753890876306667892171_dp, 764.18668794262781735385826721807_dp, & 762.62178056702360410774243270291_dp, 764.19192227165946925716775571474_dp, & 765.76076076787973114674674236736_dp, 767.32830403586064007141590915804_dp, & 765.76337254817138910112922110851_dp, 767.33351693431355460979542826800_dp, & 768.90236342579491302563270521966_dp, 770.46991993794002205363035639925_dp, & 768.90496453481408560026368983366_dp, 770.47511158058383849471680215432_dp, & 772.04396600229067917720144906208_dp, 773.61153565119480828662010260543_dp, & 772.04655652688461461172676540690_dp, 773.61670621066992043983813231461_dp, & 775.18556849835694250015477153520_dp, 776.75315117791616635189555110177_dp, & 775.18814852431698453630412628614_dp, 776.75830082476817086206560835273_dp, & 778.32717091496763322035676523560_dp, 779.89476652035834532129049467031_dp, & 778.32974052704626922373538192410_dp, 779.89989542307179610474723134319_dp, & 781.46877325308102015596999277999_dp, 783.03638168073941638263838470498_dp, & 781.47133253500858655679196849359_dp, 783.04149000577090190952042997363_dp, & 784.61037551364002426436040717830_dp, 786.17799666124199570725239565846_dp, & 784.61292454814107754984784745460_dp, 786.18308457305255536635822655119_dp, & 787.75197769757252468623985447191_dp, 789.31961146401395005399466526638_dp, & 787.75451656638188594758041789444_dp, 789.32467912510084538421236673346_dp, & 790.89357980579165749566775337636_dp, 792.46122609116908558902713382419_dp, & 790.89610858967013830989545725599_dp, 792.46627366209694172330718065189_dp, & 794.03518183919610735793012981047_dp, 795.60284054478782038520118629214_dp, & 794.03770061794592456961005716043_dp, 795.60786818421915262884108289829_dp, & 797.17678379867039229094498352714_dp, 798.74445482691784105044388084979_dp, & 797.17929265115027904985206197696_dp, 798.74946269164298110460166515830_dp, & 800.31838568508514171969878535202_dp, 801.88606893957474392041393386745_dp, & 800.32088468922516192854406039024_dp, 801.89105718454117986379348960835_dp, & 803.45998749929736800729094801285_dp, 805.02768288474266123711073249777_dp, & 803.46247673211344113773511090464_dp, 805.03265166308380499321323225846_dp, & 806.60158924215073164044295941554_dp, 808.16929666437487272200522979475_dp, & 806.60406877975887468592466231812_dp, 808.17424612743826836578310553769_dp, & 809.74319091447580024180845212824_dp, 811.31091028039440293960423028307_dp, & 809.74566083210609339189109705644_dp, 811.31584057776938883536893107855_dp, & 812.88479251709030157609208717013_dp, 814.45252373469460483514166441015_dp, & 812.88725288910058401889249339670_dp, 814.45743501423944224676232629411_dp, & 816.02639405079937071184136128395_dp, 817.59413702913972981829509180408_dp, & 816.02884495068867279845006475427_dp, 817.59902943700821029269576523221_dp, & 819.16799551639579149580922389903_dp, 820.73575016556548475343669029437_dp, & 819.17043701681750933325576230019_dp, 820.74062384623302824878338953095_dp, & 822.30959691466023249198992973791_dp, 823.87736314577957620592988331815_dp, & 822.31202908743505086906517332497_dp, 823.88221824206883161633805140491_dp, & 825.45119824636147753279935624875_dp, 827.01897597156224228336068332085_dp, & 825.45362116249004692574554515024_dp, 827.02381262466820170210489526339_dp, & 828.59279951225665102539785358502_dp, 830.16058864466677240033255194171_dp, & 828.59521324193202427794692812600_dp, 830.16540699418141016307260855248_dp, & 831.73440071309143815183259931417_dp, 833.30220116682001528554145824254_dp, & 831.73680532571127227615245920686_dp, 833.30700135075646254367412704287_dp, & 834.87600184960030009750167811855_dp, 836.44381353972287554027077669800_dp, & 834.87839741377882849914208117262_dp, 836.44859569453914083186794465496_dp, & 838.01760292250668443840821213783_dp, 839.58542576505079904819116812703_dp, & 838.01998950608646472917287742034_dp, 839.59019002567304505979817873907_dp, & 841.15920393252323081377456937333_dp, 842.72703784445424752740660443753_dp, & 841.16158160258667324143904905351_dp, 842.73178434429963397396514828245_dp, & 844.30080488035197200681893015112_dp, 845.86864977955916250704269851320_dp, & 844.30317370323265339962570602650_dp, 845.87337865055826479909744665308_dp, & 847.44240576668453055285445519811_dp, 849.01026157196741900231641980685_dp, & 847.44476580797829854961340995194_dp, 849.01497294458623211920038429393_dp, & 850.58400659220231099035033023825_dp, 852.15187322325726915394649894881_dp, & 850.58635791677818320362510232270_dp, 852.15656722651880589856333076971_dp, & 853.72560735757668786718960593122_dp, 855.29348473498377608995116459232_dp, & 853.72795002958755050733397528846_dp, 855.29816149648926866483902700765_dp, & 856.86720806346918961106673290644_dp, 858.43509610867923826032453655643_dp, & 856.86954214636229998267027773469_dp, 858.43975575462895187566052986526_dp, & 860.00880871053167836978390585049_dp, 861.57670734585360448777563699591_dp, & 860.01113426705897553927727076209_dp, 861.58135000106727148963528829544_dp, & 863.15040929940652592412583864938_dp, 864.71831844799487997064556678266_dp, & 863.15272639163475374777181633051_dp, 864.72294423593176276195016148936_dp, & 866.29200983072678577301361218533_dp, 867.85992941656952346728027723806_dp, & 866.29431852004743236816365291114_dp, 867.86453845934811428423523332197_dp, & 869.43361030511636148775613559575_dp, 871.00154025302283588452024075380_dp, & 869.43591065225541912697952456332_dp, 871.00613267144020128776734246968_dp, & 872.57521072319017142942905251924_dp, 874.14315095877934048656620904817_dp, & 872.57750278821772073682421740838_dp, 874.14772687233011822854565011770_dp, & 875.71681108555430992071225562822_dp, 877.28476153524315493428448050478_dp, & 875.71909492789393215229044332985_dp, 877.28932106213821067224065055735_dp, & 878.85841139280620496090532687648_dp, 880.42637198379835535901831476248_dp, & 878.86068707124422605630360942312_dp, 880.43091524098310649650416329594_dp, & 882.00001164553477257031210478169_dp, 883.56798230580933266916725801410_dp, & 882.00227921822934257115602937785_dp, 883.57250940898174642763042234433_dp, & 885.14161184432056784773822187182_dp, 886.70959250262114128217637664073_dp, & 885.14387136881057918864826768686_dp, 886.71410356624941392807681651695_dp, & 888.28321198973593282247599892170_dp, 889.85120257555984046913620425559_dp, & 888.28546352294978091391324971186_dp, 889.85569771289976445088657390618_dp, & 891.42481208234514117985678229239_dp, 892.99281252593282849392530528963_dp, & 891.42705568060933061765170319588_dp, 892.99729184904485407660418587959_dp, & 894.56641212270453993722902712552_dp, 896.13442235502916972372470654565_dp, & 894.56864784175213959165559572245_dp, 896.13888597479516754783711345342_dp, & 897.70801211136268814506862450725_dp, 899.27603206411991488279123843999_dp, & 897.71024000634163830263966703642_dp, 899.28048009025964571619381406680_dp, & 900.84961204886049268584370453128_dp, 902.41764165445841461658947413972_dp, & 900.85183217434176733954008772866_dp, 902.42207419554571241591789102247_dp, & 903.99121193573134124123707227851_dp, 905.55925112728062652874408486223_dp, & 903.99342434571696854957386299304_dp, 905.56366829075930077814074083989_dp, & 907.13281177250123249637329233600_dp, 908.70086048380541584878087494035_dp, & 907.13501652043217635848299247781_dp, 908.70526237600487899929001266044_dp, & 910.27441155968890364780205755553_dp, 911.84246972523484988427054845814_dp, & 910.27660869845280927051373945028_dp, 911.84685645138547557681807260783_dp, & 913.41601129780595528015276943676_dp, 914.98407885275448640676960573135_dp, & 913.41820087974476154380379387026_dp, 914.98845051700270402505307468855_dp, & 916.55761098735697367459520974358_dp, 918.12568786753365611686306814398_dp, & 916.55979306427439503696876857047_dp, 918.13004457295678708362478389457_dp, & 919.69921062883965061051586022265_dp, 921.26729677072573932964955208627_dp, & 919.70138525200853122279447458044_dp, 921.27163861934658043057759692010_dp, & 922.84081022274490072014696656935_dp, 924.40890556346843701816629088680_dp, & 922.84297744291444336505290488147_dp, 924.41323265626959591195389579875_dp, & 925.98240976955697645426405058662_dp, 927.55051424688403634852593055463_dp, & 925.98456963695984885456793508935_dp, 927.55482668382202429931159789570_dp, & 929.12400926975358071549552402168_dp, 930.69212282207967083692434622325_dp, & 929.12616183411290170076153982484_dp, 930.69642070209875758633019321030_dp, & 932.26560872380597721426368607094_dp, 933.83373129014757525517553314644_dp, & 932.26775403434218517501293568215_dp, 933.83801471119341083535936055199_dp, & 935.40720813217909860089809267174_dp, 936.97533965216533540803215113023_dp, & 935.40934623761670460226160247841_dp, 936.97960871119834358447311357893_dp, & 938.54880749533165242602852706956_dp, 940.11694790919613290225501142255_dp, & 938.55093844390588029738070667004_dp, 940.12120270220468082531004321609_dp, & 941.69040681371622497997409198428_dp, 943.25855606228898502419828679104_dp, & 941.69253065317954064294015348826_dp, 943.26279668430233356170630297132_dp, & 944.83200608777938306049585256472_dp, 946.40016411247897983957621955537_dp, & 944.83412286540791530506842288867_dp, 946.40439065758001895886224716625_dp, & 947.97360531796177371697160696507_dp, 949.54177206078750662606843880959_dp, & 947.97571508056162858420959076117_dp, 949.54598462212528009252580834050_dp, & 951.11520450469822201778141866446_dp, 952.68337990822248174650163170717_dp, & 951.11730729861169289765658960187_dp, 952.68757857802450530742552814250_dp, & 954.25680364841782688646023057812_dp, 955.82498765577857006751230932804_dp, & 954.25889951952950239082390739149_dp, 955.82917252536294719394338439026_dp, & 957.39840274954405505097796081280_dp, 958.96659530443740202584593592176_dp, & 957.40049174328682667430264205964_dp, 958.97076646422474119178194323630_dp, & 960.54000180849483314934676326040_dp, 962.10820285516778644177902347738_dp, & 960.54208396985580468381820098269_dp, 962.11236039469292382915167577619_dp, & 963.68160082568263803362847544997_dp, 965.24981030892591917656030152276_dp, & 963.68367619920893866028603696272_dp, 965.25395431684945060578228764150_dp, & 966.82319980151458531332156455785_dp, 968.39141766665558772825221858161_dp, & 966.82526843131908824723371782768_dp, 968.39554823077521352784640079730_dp, & 969.96479873639251617804505300465_dp, 971.53302492928837185791237080996_dp, & 969.96686066615946470292840731511_dp, 971.53714213655005830267468933632_dp, & 973.10639763071308253840592834346_dp, 974.67463209774384033568362571964_dp, & 973.10845290370362522461755886048_dp, 974.67873603425280120093840336954_dp, & 976.24799648486783052293542529708_dp, 977.81623917292974389405943868344_dp, & 976.25004514392546738235735748790_dp, 977.82032992396124559377792214528_dp, & 979.38959529924328236800735300062_dp, 980.95784615574220447335495139403_dp, & 979.39163738679922365996825203992_dp, 980.96192380575219817216437114392_dp, & 982.53119407422101673670740360515_dp, 984.09945304706590084224279601497_dp, & 982.53322963229945610071986208395_dp, 984.10351767970148485559523655916_dp, & 985.67279281017774750170522765411_dp, 987.24105984777425067410306197719_dp, & 985.67482188040105105540868043528_dp, 987.24511154588396639704413910757_dp, & 988.81439150748540102629013648082_dp, 990.38266655872958915788764114222_dp, & 988.81641413107921403055138070377_dp, 990.38670540437355369090931843935_dp, & 991.95599016651119197686576169481_dp, 993.52427318078334422020824690714_dp, & 991.95800638430946463447423496611_dp, 993.52829925524322279053476636709_dp, & 995.09758878761769769935806487625_dp, 996.66587971477620843342296534144_dp, & 995.09959864006763161913520303080_dp, 996.66989309856502964171217415633_dp, & 998.23918737116293119117397288681_dp, 999.80748616153830768261646673876_dp, & 998.24119089832984801556972338923_dp, 999.81148693441012453841077414893_dp, & 1001.3807859175004126995538684465_dp, 1002.9490925218893666625422703184_dp, & 1001.3827831590725463609041666450_dp, 1002.9530807628487663068256121718_dp, & 1004.5223844269792399763894702445_dp, 1006.0906987966388712738200583633_dp, & 1004.5243754222724540149323530819_dp, 1006.0946745839503362236826427211_dp, & 1007.6639828999441572188285950191_dp, 1009.2323049865862279859553806495_dp, & 1007.6659676879065885643005335184_dp, 1009.2362683977833516745911568599_dp, & 1010.8055813367356227242592327493_dp, 1012.3739110925209202330716319677_dp, & 1010.8075599559522533123948315579_dp, 1012.3778622044154795580903008539_dp, & 1013.9471797376898752875566352874_dp, 1015.5155171152226619066134337732_dp, & 1013.9491522263870328530723891224_dp, 1015.5194560039135494408966940289_dp, & 1017.0887781031389993677880904384_dp, 1018.6571230554615480076950650018_dp, & 1017.0907444991887887264233875918_dp, 1018.6610497963435664697242837301_dp, & 1020.2303764334109890509001209609_dp, 1021.7987289139982025202259750729_dp, & 1020.2323367743356551547957744270_dp, 1021.8026435817707240449154643314_dp, & 1023.3719747288298108342614249976_dp, 1024.9403346915839235644463292030_dp, & 1023.3739290518060348573579488865_dp, 1024.9442373602594162609940207541_dp, & 1026.5135729897154652583013945543_dp, 1028.0819403889608258890476827190_dp, & 1026.5155213315785949415168881246_dp, 1028.0858311318732501191255235332_dp, & 1029.6551712163840474098679643773_dp, 1031.2235460068619807586360009890_dp, & 1029.6571136136322628695502630774_dp, 1031.2274248966750575163492944886_dp, & 1032.7967694091478063213293257521_dp, 1034.3651515460115532919151207533_dp, & 1032.7987058979462224988510373658_dp, 1034.3690186547269070163278754770_dp, & 1035.9383675683152032888611768868_dp, 1037.5067570071249373046272133424_dp, & 1035.9402981844999101942218960726_dp, 1037.5106124060901154062449669471_dp, & 1039.0799656941909691327941791406_dp, 1040.6483623909088877099817258099_dp, & 1039.0818904732730110106946476450_dp, 1040.6522061508252590443709608681_dp, & 1042.2215637870761604223446683326_dp, 1043.7899676980616505280345452332_dp, & 1042.2234827642454549453865132003_dp, 1043.7937998889921850027063800222_dp, & 1045.3631618472682146865149704209_dp, 1046.9315729292730905542436934292_dp, & 1045.3650750573974132569409939839_dp, 1046.9353936206500220090076617540_dp, & 1048.5047598750610046324274439330_dp, 1050.0731780852248167362256880775_dp, & 1048.5066673527092948511358194526_dp, 1050.0769873458571911923967011234_dp, & 1051.6463578707448913918481852879_dp, 1053.2147831665903053065668094023_dp, & 1051.6482596501617427312743542428_dp, 1053.2185810646714166366553109770_dp, & 1054.7879558346067768161617693890_dp, 1056.3563881740350207184049292538_dp, & 1054.7898519497356305120098100108_dp, 1056.3601747771497357452081825011_dp, & 1057.9295537669301548395770520459_dp, 1059.4979931082165344293893630906_dp, & 1057.9314442514120589952836947761_dp, 1059.5017684833485094217029597560_dp, & 1061.0711516679951619298755415451_dp, 1062.6395979697846415785474966140_dp, & 1061.0730365551723528070911640236_dp, 1062.6433621833234320700035985533_dp, & 1064.2127495380786266455577753821_dp, 1065.7812027593814755995368484145_dp, & 1064.2146288609980570938163396946_dp, 1065.7849558771295414173231893295_dp, & 1067.3543473774541183177991484019_dp, 1068.9228074776416208127389168248_dp, & 1067.3562211688709342769102597153_dp, 1068.9265495648212281641348133170_dp, & 1070.4959451863919948751943758055_dp, 1072.0644121251922230376558091999_dp, & 1070.4978134787729608647129355303_dp, 1072.0681432464522454644137015629_dp, & 1073.6375429651594498288488955196_dp, 1075.2060167026530982661014772214_dp, & 1073.6394057906863243202490510879_dp, 1075.2097369220757182396809096835_dp, & 1076.7791407140205584349656871494_dp, 1078.3476212106368394357356199328_dp, & 1076.7809981045934199838541560087_dp, 1078.3513305917441523302378423234_dp, & 1079.9207384332363230516768876492_dp, 1081.4892256497489213425692288200_dp, & 1079.9225904204768480495148096902_dp, 1081.4929242555094434869021968459_dp, & 1083.0623361230647177064809056763_dp, 1084.6308300205878037301756216394_dp, & 1083.0641827383194105938320426025_dp, 1084.6345179134228862064791845790_dp, & 1086.2039337837607318902671760191_dp, 1087.7724343237450325924689518588_dp, & 1086.2057750581041086565427361043_dp, 1087.7761115655351824141271706706_dp, & 1089.3455314155764135935419607032_dp, 1090.9140385598053397260629184210_dp, & 1089.3473673798141393715581021994_dp, 1090.9177052118964499957040928552_dp, & 1092.4871290187609116001094118316_dp, 1094.0556427293467405673950871522_dp, & 1092.4889597034328931475023886024_dp, 1094.0592988525562311831101195914_dp, & 1095.6287265935605170531121892589_dp, 1097.1972468329406303489962420299_dp, & 1095.6305520289439508967582605232_dp, 1097.2008924875635007955729352357_dp, & 1098.7703241402187043079950087949_dp, 1100.3388508711518786084989029627_dp, & 1098.7721443563310813120480363866_dp, 1100.3424861169666743397547420178_dp, & 1101.9119216589761710866223270527_dp, 1103.4804548445389220832139870330_dp, & 1101.9137366855782381896020973785_dp, 1103.4840797408136159714944950396_dp, & 1105.0535191500708779464576986090_dp, 1106.6220587536538560223589810548_dp, & 1105.0553290166695577979873668448_dp, 1106.6256733591516463219349883777_dp, & 1108.1951166137380870783969288728_dp, 1109.7636625990425239482943813332_dp, & 1108.1969213495893562916897812142_dp, 1109.7672669720275501907221402125_dp, & 1111.3367140502104004465397585297_dp, 1112.9052663812446058974170053839_dp, & 1111.3385136843221271685651648328_dp, 1112.9088605794875841089031367638_dp, & 1114.4783114597177972828852264169_dp, 1116.0468701007937051706685704141_dp, & 1114.4801060208525387702928919766_dp, 1116.0504541815774837740909441629_dp, & 1117.6199088424876709496438479810_dp, 1119.1884737582174336229451609366_dp, & 1117.6216983591654318249861849426_dp, 1119.1920477783424713604050410745_dp, & 1120.7615061987448651815751036125_dp, 1122.3300773540374955200373848704_dp, & 1120.7632906992458170311318716916_dp, 1122.3336413698272627056420210607_dp, & 1123.9031035287117097204812492209_dp, 1125.4716808887697699910916707322_dp, & 1123.9048830410788726820509237350_dp, 1125.4752349560760743780749218260_dp, & 1127.0447008326080553537179407913_dp, 1128.6132843629243921039598294021_dp, & 1127.0464753846499423300891281434_dp, 1128.6168285371326306252267192757_dp, & 1130.1862981106513083683184118515_dp, 1131.7548877770058325901962477999_dp, & 1130.1880677299445324897648295967_dp, 1131.7584221130401702069113396739_dp, & 1133.3278953630564644320707701638_dp, 1134.8964911315129762458694675469_dp, & 1133.3296600769483103791178218030_dp, 1134.9000156838414531147847561431_dp, & 1136.4694925900361419126372056365_dp, 1138.0380944269391990337770112860_dp, & 1136.4712524256471016985201845126_dp, 1138.0416092495787671805992105017_dp, & 1139.6110897918006146455593490488_dp, 1141.1796976637724439120887474475_dp, & 1139.6128447760268884462261644976_dp, 1141.1832028102939345753053032327_dp, & 1142.7526869685578441617555196326_dp, 1144.3213008424952954138944377618_dp, & 1142.7544371280738067699540976650_dp, 1144.3247963660283182010995895500_dp, & 1145.8942841205135113848829829826_dp, 1147.4629039635850530015950094668_dp, & 1145.8960294817741448538088759752_dp, 1147.4663899168228279784693753878_dp, & 1149.0358812478710478087114482492_dp, 1150.6045070275138032195541661121_dp, & 1149.0376218371143408398685877738_dp, 1150.6079834627179270302415920023_dp, & 1152.1774783508316661644327090396_dp, 1153.7461100347484906679168383841_dp, & 1152.1792141940809807837737139230_dp, 1153.7495770037536377645989110022_dp, & 1155.3190754295943905876154245074_dp, 1156.8877129857509878200033314421_dp, & 1155.3208065526607966436716548221_dp, 1156.8911705399695478589836131806_dp, & 1158.4606724843560862943033988386_dp, 1160.0293158809781637052025102027_dp, & 1158.4623989128406643018834048367_dp, 1160.0327640714048161467681155863_dp, & 1161.6022695153114887755502062430_dp, 1163.1709187208819514788136512162_dp, & 1161.6039912746076016186728903047_dp, 1163.1743575980981784085304637572_dp, & 1164.7438665226532325194824863258_dp, 1166.3125215059094148998243613241_dp, & 1164.7455836379487665175128543822_dp, 1166.3159511200879530697334827079_dp, & 1167.8854635065718792697885671459_dp, 1169.4541242365028137371609106508_dp, & 1167.8871760028514551012542154658_dp, 1169.4575446374120468065676246760_dp, & 1171.0270604672559458293381301292_dp, 1172.5957269130996681245071512313_dp, & 1171.0287683693030997986185544786_dp, 1172.5991381501079600616798281258_dp, & 1174.1686574048919314174522858849_dp, 1175.7373295361328218833586020851_dp, & 1174.1703607372912675404458083462_dp, 1175.7407316582127924714738861805_dp, & 1177.3102543196643445891615601718_dp, 1178.8789321060305048335589947006_dp, & 1177.3119531068036579651413707053_dp, 1178.8823251617632482066318893327_dp, & 1180.4518512117557297246117756801_dp, 1182.0205346232163941101573158402_dp, & 1180.4535454778281016527786342129_dp, 1182.0239186607956412274712334898_dp, & 1183.5934480813466930966045422994_dp, 1185.1621370881096745050238914281_dp, & 1183.5951378503525583873245594761_dp, 1185.1655121553459004557174473739_dp, & 1186.7350449286159285240899238768_dp, 1188.3037395011250978512740679072_dp, & 1186.7367302243651154464671310710_dp, 1188.3071056454495748642396708824_dp, & 1189.8766417537402426192637241302_dp, 1191.4453418626730414681673151900_dp, & 1189.8783225998539859185345686438_dp, 1191.4486991311418384862629867545_dp, & 1193.0182385568945796357606225275_dp, 1194.5869441731595656837778547699_dp, & 1193.0199149768075070460069077335_dp, 1194.5902926124574953455399509153_dp, & 1196.1598353382520459252769897900_dp, 1197.7285464329864704523699713350_dp, & 1196.1615073552141385951310575783_dp, 1197.7318860894309843089325619283_dp, & 1199.3014320979839340098035223990_dp, 1200.8701486425513510830567667466_dp, & 1199.3030997350624612511606884244_dp, 1200.8734795620963838628255374093_dp, & 1202.4430288362597462764977591297_dp, 1204.0117508022476530959750385272_dp, & 1202.4446921163411750387523052018_dp, 1204.0150730304874168147621059209_dp, & 1205.5846255532472183020799860322_dp, 1207.1533529124647262218709944406_dp, & 1205.5862844990390977670586341536_dp, 1207.1566664946374549216645582278_dp, & 1208.7262222491123418134929079330_dp, 1210.2949549735878775606614399157_dp, & 1208.7278768831451634990699901929_dp, 1210.2982599545795234459735138049_dp, & 1211.8678189240193872914256755803_dp, 1213.4365569859984239142126915474_dp, & 1211.8694692686484210447636113453_dp, 1213.4398534103463056410122296399_dp, & 1215.0094155781309262231663216508_dp, 1216.5781589500737433082645790730_dp, & 1215.0110616555380324776300483671_dp, 1216.5814468619701471668552916419_dp, & 1218.1510122116078530111132920749_dp, 1219.7197608661873257181193070808_dp, & 1218.1526540438032716741545881059_dp, 1219.7230403094830604379546678102_dp, & 1221.2926088246094065431464800081_dp, 1222.8613627347088230124144687256_dp, & 1221.2942464334335228758403738181_dp, 1222.8646337529167289037503506681_dp, & 1224.4342054172931914309308990435_dp, 1226.0029645560040981290059546424_dp, & 1224.4358388244182792733683697709_dp, 1226.0062271923025112634676587067_dp, & 1227.5758019898151989221017929500_dp, 1229.1445663304352734966997039439_dp, & 1227.5774312167471416124976061501_dp, 1229.1478206276714456162786875307_dp, & 1230.7173985423298274921584964849_dp, 1232.2861680583607787162910284950_dp, & 1230.7190236104098168213172385743_dp, 1232.2894140590542535479813862988_dp, & 1233.8589950749899031217756629479_dp, 1235.4277697401353975140964392332_dp, & 1233.8606160053961166584698692150_dp, 1235.4310074864813441553262695710_dp, & 1237.0005915879466992651244884081_dp, 1238.5693713761103139808953514774_dp, & 1237.0022084016959563819733083655_dp, 1238.5726009099828180090978448628_dp, & 1240.1421880813499565146832212165_dp, 1241.7109729666331581089375867801_dp, & 1240.1438007992993534382755108603_dp, 1241.7141943295884710570354285188_dp, & 1243.2837845553479019679054816912_dp, 1244.8525745120480506394170681886_dp, & 1243.2853931981964261711848054856_dp, 1244.8557877453277984676561237710_dp, & 1246.4253810100872683010066657654_dp, 1247.9941760126956472325623742662_dp, & 1246.4269855983773925503247517615_dp, 1247.9973811572299984160213322383_dp, & 1249.5669774457133125550229047430_dp, 1251.1357774689131819722507295437_dp, & 1249.5685779998325689187700114369_dp, 1251.1389745653239758124672511805_dp, & 1252.7085738623698346391936396893_dp, 1254.2773788810345102168134238271_dp, & 1252.7101704025523687595265158083_dp, 1254.2805679696383459752993614489_dp, & 1255.8501702601991955566177836534_dp, 1257.4189802493901508074674325289_dp, & 1255.8517628065273014805259485365_dp, 1257.4221613702014382484309234687_dp, & 1258.9917666393423353570346297727_dp, 1260.5605815743073276455800211868_dp, & 1258.9933552117479712178111508696_dp, 1260.5637547670412995649259593164_dp, & 1262.1333629999387908214840618494_dp, 1263.7021828561100106497502295392_dp, & 1262.1349476182050756565954958402_dp, 1263.7053481601856979573880968449_dp, & 1265.2749593421267128835061812367_dp, 1266.8437840951189561034732174359_dp, & 1265.2765400258894048698855737726_dp, 1266.8469415496621260161179760390_dp, & 1268.4165556660428837914481263726_dp, 1269.9853852916517464039403934051_dp, & 1268.4181324347918401743626868542_dp, 1269.9885349354978042959436578009_dp, & 1271.5581519718227340163555770317_dp, 1273.1269864460228292223199171601_dp, & 1271.5597248449033530032246690801_dp, 1273.1301283177196846726106209044_dp, & 1274.6997482596003589098381537265_dp, 1276.2685875585435560856584532170_dp, & 1274.7013172562150037956954329354_dp, 1276.2717216963544536496004739448_dp, & 1277.8413445295085351162115944447_dp, 1279.4101886295222203903458407872_dp, & 1277.8429096687179409029153990160_dp, 1279.4133150714285356162304360326_dp, & 1280.9829407816787367431351681546_dp, 1282.5517896592640948568895249092_dp, & 1280.9845020824033995099315926078_dp, 1282.5549084429680960578689432747_dp, & 1284.1245370162411512948802206190_dp, 1285.6933906480714684355550580931_dp, & 1284.1260944972627005735116951432_dp, 1285.6965018109990447190864085768_dp, & 1287.2661332333246953722849976739_dp, 1288.8349915962436826722426261079_dp, & 1287.2676869132872497755117214680_dp, 1288.8380951755470387205441910165_dp, & 1290.4077294330570301433719100946_dp, 1291.9765925040771675437872743237_dp, & 1290.4092793304685364915322589132_dp, 1291.9796885366374856304092092798_dp, & 1293.5493256155645765885261495128_dp, 1295.1181933718654767716922132726_dp, & 1293.5508717487981327746033541471_dp, 1295.1212818942955464910663529414_dp, & 1296.6909217809725305240589947478_dp, 1298.2597941998993226231301675316_dp, & 1296.6924641682676923536431714716_dp, 1298.2628752485461388018858974486_dp, & 1299.8325179294048774079052216481_dp, 1301.4013949884666102078771068991_dp, & 1299.8340565888689496464404743290_dp, 1301.4044685994139394587885055057_dp, & 1302.9741140609844069311317074746_dp, 1304.5429957378524712796757718918_dp, & 1302.9756490105937187869158029538_dp, 1304.5460619469233876513360913334_dp, & 1306.1157101758327273988635644138_dp, 1307.6845964483392975503630879640_dp, & 1306.1172414334338926664209379049_dp, 1307.6876552910986877180628273749_dp, & 1309.2573062740702799041649084071_dp, 1310.8261971202067735249357680562_dp, & 1309.2588338573814419888408541513_dp, 1310.8292486319638119607468780326_dp, & 1312.3989023558163522983436325585_dp, 1313.9677977537319088655720468812_dp, & 1312.4004262824284143392668858983_dp, 1313.9708419695425034183100447181_dp, & 1315.5404984211890929610832733067_dp, 1317.1093983491890702924744907204_dp, & 1315.5420187085669332660142408079_dp, 1317.1124353038582786010193938654_dp, & 1318.6820944703055243737401976405_dp, 1320.2509989068500130292491035836_dp, & 1318.6836111357891973757613259928_dp, 1320.2540286349344301856521077376_dp, & 1321.8236905032815564990808671251_dp, 1323.3925994269839118003894265637_dp, & 1321.8252035640874794415925794065_dp, 1323.3956219627940296722722401911_dp, & 1324.9652865202319999706718164824_dp, 1326.5341999098573913882909263591_dp, & 1324.9667959934541255237306412008_dp, 1326.5372152874599300032557695551_dp, & 1328.1068825212705790950741889064_dp, 1329.6758003557345567570806174351_dp, & 1328.1083884238815541027477524119_dp, 1329.6788086089547681451883121104_dp, & 1331.2484785065099446699351659724_dp, 1332.8174007648770227504094882704_dp, & 1331.2499808553622552250502350554_dp, 1332.8204019273009676342480861549_dp, & 1334.3900744760616866210103865263_dp, 1335.9590011375439433702208355836_dp, & 1334.3915732878887896604337903704_dp, 1335.9619952425207410856751923205_dp, & 1337.5316704300363464610944366924_dp, 1339.1006014739920406433759831197_dp, & 1337.5331657214537880715111525463_dp, 1339.1035885546360926679169948097_dp, & 1340.6732663685434295737806832763_dp, 1342.2422017744756330828900070691_dp, & 1340.6747581560499501948173556998_dp, 1342.2451818636688205420283448634_dp, & 1343.8148622916914173249170872390_dp, 1345.3838020392466637504039437195_dp, & 1343.8163505916700440334015140268_dp, 1345.3867751696405192668945764911_dp, & 1346.9564581995877790045711452044_dp, 1348.5254022685547279263964534315_dp, & 1346.9579430283069050607175807596_dp, 1348.5283684725725821708346198992_dp, & 1350.0980540923389836022647384358_dp, 1351.6670024626471003945169969933_dp, & 1350.0995354659534354356300425883_dp, 1351.6699617724862036901312148625_dp, & 1353.2396499700505114181883943855_dp, 1354.8086026217687623463041859492_dp, & 1353.2411279046026032283539242952_dp, 1354.8115550694023816750250593712_dp, & 1356.3812458328268655130542604230_dp, 1357.9502027461624279124370392202_dp, & 1356.3827203442474416571518251901_dp, 1357.9531483633419196636997932422_dp, & 1359.5228416807715829991979280046_dp, 1361.0918028360685703265533573466_dp, & 1359.5243127848810483356139861653_dp, 1361.0947416543254291247749871386_dp, & 1362.6644375139872461754911042679_dp, 1364.2334028917254477275582575142_dp, & 1362.6659052264965845303505954265_dp, 1364.2363349423733316688147798338_dp, & 1365.8060333325754935085799833688_dp, 1367.3750029133691286062370431342_dp, & 1365.8074976690872744289286837501_dp, 1367.3779282275058612293504759650_dp, & 1368.9476291366370304629179989462_dp, 1370.5166029012335169018799584140_dp, & 1368.9490901126464044178890380050_dp, 1370.5195215097430662139062784165_dp, & 1372.0892249262716401820164196126_dp, 1373.6582028555503767545219497412_dp, & 1372.0906825571673223706815761388_dp, 1373.6611147891048116255083794651_dp, & 1375.2308207015781940232919595830_dp, 1376.7998027765493569182982716928_dp, & 1375.2322750026434369453605793125_dp, 1376.8027080656107811551488686084_dp, & 1378.3724164626546619488471952931_dp, 1379.9414026644580148413165872861_dp, & 1378.3738674490682168918840687912_dp, 1379.9443013392804792456673283992_dp, & 1381.5140122095981227744770854432_dp, 1383.0830025195018404173480720648_dp, & 1381.5154598964351903688644479300_dp, 1383.0858946101332331275045785530_dp, & 1384.6556079425047742791532662105_dp, 1386.2246023419042794145438933768_dp, & 1384.6570523447379442696203044909_dp, 1386.2274878781881948267747890852_dp, & 1387.7972036614699431771970157421_dp, 1389.3662021318867565862892544603_dp, & 1387.7986447939701235573819868796_dp, 1389.3690811434643431460941114156_dp, & 1390.9387993665880949553118333289_dp, 1392.5078018896686984692149235823_dp, & 1390.9402372441254306095062309944_dp, 1392.5106744059804856185960684412_dp, & 1394.0803950579528435766074401790_dp, 1395.6494016154675558732957684236_dp, & 1394.0818296951976245705577234668_dp, 1395.6522676657552604355561968564_dp, & 1397.2219907356569610537086622501_dp, 1398.7910013094988260688772431781_dp, & 1397.2234221471805207141180433632_dp, 1398.7938609228071383480408438794_dp, & 1400.3635863997923868930050833818_dp, 1401.9326009719760746753839894978_dp, & 1400.3650146000679898131849290975_dp, 1401.9354541771544245429875825257_dp, & 1403.5051820504502374120605416756_dp, 1405.0742006031109572563796725174_dp, & 1403.5066070538539575190272715216_dp, 1405.0770474288152604941174212244_dp, & 1406.6467776877208149321654667836_dp, 1408.2158002031132406255638407693_dp, & 1406.6481995085324037483636390511_dp, 1408.2186406778076257880718415626_dp, & 1409.7883733116936168479797040045_dp, 1411.3573997721908238682099358518_dp, & 1409.7897919640973620787344973409_dp, 1411.3602339241493399261606990152_dp, & 1412.9299689224573445761788267572_dp, 1414.4989993105497590824685471510_dp, & 1412.9313844205429191519405955235_dp, 1414.5018271678580641021001624877_dp, & 1416.0715645200999123849829864130_dp, 1417.6405988183942718448815725719_dp, & 1416.0729768778632140854222544080_dp, 1417.6434204089513029561131462683_dp, & 1419.2131601047084561064140723051_dp, 1420.7821982959267814043760728065_dp, & 1419.2145693360524378914565103311_dp, 1420.7850136474464063057580995360_dp, & 1422.3547556763693417330943400595_dp, 1423.9237977433479206089312597172_dp, & 1422.3561617951048329040512425478_dp, 1423.9266068833605708538455609404_dp, & 1425.4963512351681739013676986214_dp, 1427.0653971608565555690382053399_dp, & 1425.4977542550146922134175431225_dp, 1427.0682001167108418737955560835_dp, & 1428.6379467811898042624935112703_dp, 1430.2069965486498050619994640182_dp, & 1428.6393467157763591079036771769_dp, 1430.2097933475141148727827111843_dp, & 1431.7795423145183397436320496263_dp, 1433.3485959069230596810448342644_dp, & 1431.7809391773842265232760289973_dp, 1433.3513865757871372330098740473_dp, & 1434.9211378352371507003106286229_dp, 1436.4901952358700007331699178717_dp, & 1434.9225316398327364992344368016_dp, 1436.4929798015465098314450710070_dp, & 1438.0627333434288789620299314118_dp, 1439.6317945356826188895359310973_dp, & 1438.0641241031163796430512867972_dp, 1439.6345730248086886383507831830_dp, & 1441.2043288391754457726410932925_dp, 1442.7733938065512325922023566365_dp, & 1441.2057165672296946002256663898_dp, 1442.7761662455899862949287945818_dp, & 1444.3459243225580596270957404010_dp, 1445.9149930486645062208984665800_dp, & 1444.3473090321672675320457678596_dp, 1445.9177594639065736703982458610_dp, & 1447.4875197936572240061433597772_dp, 1449.0565922622094680234754672364_dp, & 1447.4889014979237315999545883374_dp, 1449.0593526797744813988190184692_dp, & 1450.6291152525527450105231005351_dp, 1452.1981914473715278136179889352_dp, & 1450.6304939644937664566157902785_dp, 1452.2009458932096013959671720492_dp, & 1453.7707106993237388961703594827_dp, 1455.3397906043344944393318406909_dp, & 1453.7720864318720977435783696358_dp, 1455.3425391042276883565638611023_dp, & 1456.9123061340486395119322772270_dp, 1458.4813897332805930256643445172_dp, & 1456.9136789000534965954405273313_dp, 1458.4841323128443612321539627121_dp, & 1460.0539015568052056412605513940_dp, 1461.6229888343904819950541314931_dp, & 1460.0552713690327791504148541667_dp, 1461.6257255190751046899255534068_dp, & 1463.1954969676705282493247511847_dp, 1464.7645879078432698686489962410_dp, & 1463.1968638388048060671986207252_dp, 1464.7673187229352705527563778384_dp, & 1466.3370923667210376369645814282_dp, 1467.9061869538165318518732437355_dp, & 1466.3384563093644820480546128028_dp, 1467.9089119244400792207685527831_dp, & 1469.4786877540325105028752841823_dp, 1471.0477859724863262074698983398_dp, & 1469.4800487807067553680095701708_dp, 1471.0505051236046210746679449517_dp, & 1472.6202831296800769153965716249_dp, 1474.1893849640272104191881562479_dp, & 1472.6216412528266174100788726776_dp, 1474.1920983204438578611399482432_dp, & 1475.7618784937382271952521455461_dp, 1477.3309839286122571492325262351_dp, & 1475.7632337257191022064276735204_dp, 1477.3336915149726240605687634197_dp, & 1478.9034738462808187105639665241_dp, 1480.4725828664130699925371974406_dp, & 1478.9048261993792859853802055866_dp, 1480.4752847072056282373427488059_dp, & 1482.0450691873810825854429803709_dp, 1483.6141817775997990308772750287_dp, & 1482.0464186738022867241904837307_dp, 1483.6168778971574543730039626595_dp, & 1485.1866645171116303234359814466_dp, 1486.7557806623411561897776136723_dp, & 1485.1880111489832637074890943092_dp, 1486.7584710848425631824956544872_dp, & 1488.3282598355444603470866829220_dp, 1489.8973795208044304011300340817_dp, & 1488.3296036249174170913222038635_dp, 1489.9000642702752934137571820203_dp, & 1491.4698551427509644548478642221_dp, 1493.0389783531555025743807089193_dp, & 1491.4711961015999874727003320955_dp, 1493.0416574534698631309116310575_dp, & 1494.6114504388019341965606670759_dp, 1496.1805771595588603791014315405_dp, & 1494.6127885790262554645758208018_dp, 1496.1832506344403709812872952461_dp, & 1497.7530457237675671686967054412_dp, 1499.3221759401776128417113146849_dp, & 1497.7543810571915412761692907771_dp, 1499.3248438132007974465101304249_dp, & 1500.8946409977174732305386328264_dp, 1502.4637746951735047590691875409_dp, & 1500.8959735360912042985667134187_dp, 1502.4664369897650060779003317864_dp, & 1504.0362362607206806424551651843_dp, 1505.6053734247069309316115500163_dp, & 1504.0375660157206426955100333907_dp, 1505.6080301641467447164022902282_dp, & 1507.1778315128456421274072807441_dp, 1508.7469721289369502186663844509_dp, & 1507.1791584960752929993055637676_dp, 1508.7496233363596466972733653154_dp, & 1510.3194267541602408568034022214_dp, 1511.8885708080212994185293997421_dp, & 1510.3207509771506297117756360782_dp, 1511.8912165064172320397531647455_dp, & 1513.4610219847317963618028043066_dp, 1515.0301694621164069758463736180_dp, & 1513.4623434589421649101802251193_dp, 1515.0328096743329086219313426154_dp, & 1516.6026172046270703711482728613_dp, 1518.1717680913774065188031487208_dp, & 1516.6039359414454478580364827774_dp, 1518.1744028401199733410283196885_dp, & 1519.7442124139122725765911646918_dp, 1521.3133666959581502285835107315_dp, & 1519.7455284246560646207653068867_dp, 1521.3159960037916132592997868376_dp, & 1522.8858076126530663269544711358_dp, 1524.4549652760112220435146158644_dp, & 1522.8871209085696376860952407994_dp, 1524.4575891653609067357723765070_dp, & 1526.0274028009145742518622681476_dp, 1527.5965638316879507002798249074_dp, & 1526.0287133931818255891551473338_dp, 1527.5991823248408245440144750536_dp, & 1529.1689979787613838161470334332_dp, 1530.7381623631384226145397261860_dp, & 1529.1703058784883225421882275196_dp, 1530.7407754822442309761427998617_dp, & 1532.3105931462575528059297209273_dp, 1533.8797608705114946032637753107_dp, & 1532.3118983644848580688210605298_dp, 1533.8823686375838849332620778936_dp, & 1535.4521883034666147473511981532_dp, 1537.0213593539548064510373306227_dp, & 1535.4534908511671966428224267858_dp, 1537.0239617908724410025319355814_dp, & 1538.5937834504515842589176665109_dp, 1540.1629578136147933225719054696_dp, & 1538.5950833385311373312877418789_dp, 1540.1655549421224505210519424342_dp, & 1541.7353785872749623384069922115_dp, 1543.3045562496366980236101777739_dp, & 1541.7366758265725134421859750544_dp, 1543.3071480913463626267526412480_dp, & 1544.8769737139987415852674704523_dp, 1546.4461546621645831123816800229_dp, & 1544.8782683152871921762069529702_dp, 1546.4487412385565252964773451598_dp, & 1548.0185688306844113594254216732_dp, 1549.5877530513413428637301253816_dp, & 1548.0198608046710742828479576465_dp, 1549.5903343837651863714364848473_dp, & 1551.1601639373929628774031706621_dp, 1552.7293514173087150879989949465_dp, & 1551.1614532947200937206795173499_dp, 1552.7319275269844945702133468070_dp, & 1554.3017590341848942466343813014_dp, 1555.8709497602072928067283043691_dp, & 1554.3030457854302173217312609781_dp, 1555.8735206682265004894971547415_dp, & 1557.4433541211202154388494064346_dp, 1559.0125480801765357871823726016_dp, & 1557.4446382767974444599396606905_dp, 1559.0151138075031575927166095858_dp, & 1560.5849491982584532033892583360_dp, 1562.1541463773547819376959190755_dp, & 1560.5862307688178067236004244203_dp, 1562.1567069448263231867442185317_dp, & 1563.7265442656586559212930053992_dp, 1565.2957446518792585657939061723_dp, & 1563.7278232614873675917692198580_dp, 1565.2983000802077593868390085553_dp, & 1566.8681393233793984009898498041_dp, 1568.4373429038860935010092096454_dp, & 1566.8694157548022221145553148436_dp, 1568.4398932136591340699925343962_dp, & 1570.0097343714787866164138341125_dp, 1571.5789411335103260842914291956_dp, & 1570.0110082487584965972536061896_dp, 1571.5814863451920218168404536949_dp, & 1573.1513294100144623883460570954_dp, 1574.7205393408859180258699334390_dp, & 1573.1526007433523482882613800950_dp, 1574.7230794748179048422993521101_dp, & 1576.2929244390436080097764458459_dp, 1577.8621375261457641334045570445_dp, & 1576.2941932385799650707270028229_dp, 1577.8646726025481739150859577577_dp, & 1579.4345194586229508160645277230_dp, 1581.0037356894217029122282220907_dp, & 1579.4357857344375651578785805149_dp, 1581.0062657283941292662733863185_dp, & 1582.5761144688087677006662673318_dp, 1584.1453338308445270394571301735_dp, & 1582.5773782309213967919814521986_dp, 1584.1478588523669814870366047597_dp, & 1585.7177094696568895771818761308_dp, 1587.2869319505439937137160561958_dp, & 1585.7189707280277379468741905224_dp, 1587.2894519744778524157368919059_dp, & 1588.8593044612227057884675609809_dp, 1590.4285300486488348821986590122_dp, & 1588.8605632257528960340335808005_dp, 1590.4310450947377760144927072329_dp, & 1592.0008994435611684635424487666_dp, 1593.5701281252867673467555983258_dp, & 1592.0021557240932076121198308637_dp, 1593.5726382131576992353820543853_dp, & 1595.1424944167267968230104029327_dp, 1596.7117261805845027506766018148_dp, & 1595.1437482230450380999540322673_dp, 1596.7142313297484828764191422170_dp, & 1598.2840893807736814337051303139_dp, 1599.8533242146677574478064519516_dp, & 1598.2853407226047814928806478705_dp, 1599.8558244445209024274459028110_dp, & 1601.4256843357554884132558589869_dp, 1602.9949222276612622556091491563_dp, & 1601.4269332227688600824685419506_dp, 1602.9974175574856489060767221620_dp, & 1604.5672792817254635852599461344_dp, 1606.1365202196887720937692477525_dp, & 1604.5685257235337241795047970981_dp, 1606.1390106686533296838325742267_dp, & 1607.7088742187364365857380452478_dp, 1609.2781181908730755098945448430_dp, & 1607.7101182248958518402362774234_dp, 1609.2806037780344693025986221041_dp, & 1610.8504691468408249215369206673_dp, 1612.4197161413360040938599210382_dp, & 1610.8517107268517485958146003287_dp, 1612.4221968856395102815372604685_dp, & 1613.9920640660906379813346407949_dp, 1615.5613140711984417823081774976_dp, & 1613.9933032293979471849008695176_dp, 1615.5637899914788139145865202987_dp, & 1617.1336589765374809998927057332_dp, 1618.7029119805803340548001776948_dp, & 1617.1348957325310072893872002570_dp, 1618.7053830955626610586717397418_dp, & 1620.2752538782325589761896670890_dp, 1621.8445098696006970230834765893_dp, & 1620.2764882362475152731927344152_dp, 1621.8469761979012529127564229010_dp, & 1623.4168487712266805460609737954_dp, 1624.9861077383776264149258965491_dp, & 1623.4180807405440839240924976973_dp, 1624.9885692985047117878562607811_dp, & 1626.5584436555702618099601246960_dp, 1628.1277055870283064539381806521_dp, & 1626.5596732454173521985380950162_dp, 1628.1301623973830818681383748903_dp, & 1629.7000385313133301164467229940_dp, 1631.2693034156690186367879123018_dp, & 1629.7012657508639849694298722844_dp, 1631.2717554945463299632259634286_dp, & 1632.8416333985055278019977062887_dp, 1634.4109012244151504091853279835_dp, & 1632.8428582568806727768007943170_dp, 1634.4133485900043462518266819628_dp, & 1635.9832282571961158877288656380_dp, 1637.5524990133812037420004601837_dp, & 1635.9844507634641315813728991935_dp, 1637.5549416837669450168012743620_dp, & 1639.1248231074339777336047648171_dp, 1640.6940967826808036088502228577_dp, & 1639.1260432706111025209477895556_dp, 1640.6965347758438653717871849388_dp, & 1642.2664179492676226507063236619_dp, 1643.8356945324267063664735853939_dp, & 1642.2676357783183516695932111132_dp, 1643.8381278662447719794901286177_dp, & 1645.4080127827451894721166341387_dp, 1646.9772922627308080391928659438_dp, & 1645.4092282865826697995883482910_dp, 1646.9797209549792557617548719336_dp, & 1648.5496076079144500829770316628_dp, 1650.1188899737041525087394045790_dp, & 1648.5508207954008721460910366661_dp, 1650.1213140420568346015247831928_dp, & 1651.6912024248228129102570443714_dp, 1653.2604876654569396107024444537_dp, & 1651.6924133047697981744906518160_dp, 1653.2629071274869540367980446330_dp, & 1654.8327972335173263727735867567_dp, 1656.4020853380985331388409485718_dp, & 1654.8340058146863113504109845902_dp, 1656.4045002112789879466867823545_dp, & 1657.9743920340446822919866485624_dp, 1659.5436829917374687584793046155_dp, & 1657.9755983251472989123279538354_dp, 1659.5460932934422392296837606205_dp, & 1661.1159868264512192640907524879_dp, 1662.6852806264814618301894144226_dp, & 1661.1171908361496716467675394056_dp, 1662.6876863739859404742397053152_dp, & 1664.2575816107829259939136124079_dp, 1665.8268782424374151449435220936_dp, & 1664.2587833476903636660498410578_dp, 1665.8292794529192546217527663878_dp, & 1667.3991763870854445911257149573_dp, 1668.9684758397114265719042994664_dp, & 1667.4003758597663321885456827373_dp, 1668.9708725302512756220701004918_dp, & 1670.5407711554040738292569689531_dp, 1672.1100734184087966200011740356_dp, & 1670.5419683723745573214126869650_dp, 1672.1124656059910290816000522585_dp, & 1673.6823659157837723680091167616_dp, 1675.2516709786340359144246466702_dp, & 1673.6835608855120418457782407079_dp, 1675.2540586801474729041319352360_dp, & 1676.8239606682691619393452769969_dp, 1678.3932685204908725891533991492_dp, & 1676.8251533991758110043372624127_dp, 1678.3956517527294979244589610085_dp, & 1679.9655554129045304978307864802_dp, 1681.5348660440822595966123291665_dp, & 1679.9667459133629122913331599599_dp, 1681.5372448237459285348984369126_dp, & 1683.1071501497338353356924289204_dp, 1684.6764635495103819355432677437_dp, & 1683.1083384280704152448908413103_dp, 1684.6788378932055233048019486421_dp, & 1686.2487448788007061630561760195_dp, 1687.8180610368766637981540257227_dp, & 1686.2499309432954112416711037158_dp, 1687.8204309611169755931468634273_dp, & 1689.3903396001484481538167214780_dp, 1690.9596585062817756375955770902_dp, & 1689.3915234590350132938161836955_dp, 1690.9620240274889141542991319525_dp, & 1692.5319343138200449575853574864_dp, 1694.1012559578256411568016123228_dp, & 1692.5331159752863558481566986904_dp, 1694.1036170923299037370360323160_dp, & 1695.6735290198581616781561246436_dp, 1697.2428533916074442197093798356_dp, & 1695.6747084920465945876506525361_dp, 1697.2452101556484456769161867055_dp, & 1698.8151237183051478189236577515_dp, 1700.3844508077256356858656731781_dp, & 1698.8163010093129062350256107730_dp, 1700.3868032174529784820828906669_dp, & 1701.9567184092030401956797495700_dp, 1703.5260482062779401694070111547_dp, & 1701.9578935270824883585955784943_dp, 1703.5283962777518784125855254656_dp, & 1705.0983130925935658172093603835_dp, 1706.6676455873613627233884929437_dp, & 1705.0994860453525591802245330273_dp, 1706.6699893365534600533025756956_dp, & 1708.2399077685181447341006111798_dp, 1709.8092429510721954504214860504_dp, & 1708.2410785641203573854089764016_dp, 1709.8115823938659768805485465888_dp, & 1711.3815024370178928561772104589_dp, 1712.9508402975060240405662171305_dp, & 1711.3826710833831419354522783935_dp, 1712.9531754496976218224458680380_dp, & 1714.5230970981336247389557772994_dp, 1716.0924376267577342374114800365_dp, & 1714.5242636031381918817039800816_dp, 1716.0947685040565278131416848038_dp, & 1717.6646917519058563395246344837_dp, 1719.2340349389215182332600476272_dp, & 1717.6658561233828061818376204234_dp, 1719.2363615569507683409482643624_dp, & 1720.8062863983748077422348534090_dp, 1722.3756322340908809943249697836_dp, & 1720.8074486441143035181410344846_dp, 1722.3779546083883579904846050096_dp, & 1723.9478810375804058545886354377_dp, 1725.5172295123586465168287556230_dp, & 1723.9490411653300221177934517480_dp, 1725.5195476583772529788956968218_dp, & 1727.0894756695622870737045105341_dp, 1728.6588267738169640148844690991_dp, & 1727.0906336870273195751040964981_dp, 1728.6611407069253516862247765441_dp, & 1730.2310702943597999237333217995_dp, 1731.8004240185573140410250101107_dp, & 1730.2322262092035726756873597517_dp, 1731.8027337540404951800128240869_dp, & 1733.3726649120120076645935422020_dp, 1734.9420212466705145402343040874_dp, & 1733.3738187318561772225499736752_dp, 1734.9443267997304677341984727515_dp, & 1736.5142595225576908723891357633_dp, 1738.0836184582467268383217780015_dp, & 1736.5154112549825478640659750211_dp, 1738.0859198440029973423904472300_dp, & 1739.6558541260353499918679281332_dp, 1741.2252156533754615654693562134_dp, & 1739.6570037785801179238155939271_dp, 1741.2275128868657562255836025425_dp, & 1742.7974487224832078612732892701_dp, 1744.3668128321455845157682618556_dp, & 1742.7985963026463392322645485543_dp, 1744.3691059283263613343886130531_dp, & 1745.9390433119392122099368523436_dp, 1747.5084099946453224435511550827_dp, & 1745.9401888271786819602605646034_dp, 1747.5106989683923748458443532617_dp, & 1749.0806378944410381289549964635_dp, 1750.6500071409622687973135749756_dp, & 1749.0817813521746344543242718385_dp, 1750.6522920070713046548810208890_dp, & 1752.2222324700260905152869049553_dp, 1753.7916042711833893920072737943_dp, & 1752.2233738776317030737119574600_dp, 1753.7938850443706048605010775756_dp, & 1755.3638270387315064896071741994_dp, 1756.9332013853950280204768372936_dp, & 1755.3649664035474120292279786056_dp, 1756.9354780802976762467441230133_dp, & 1758.5054216005941577882411891200_dp, 1760.0747984836829120047999696707_dp, & 1758.5065589299193032237649535085_dp, 1760.0770711148598667585008742331_dp, & 1761.6470161556506531295067988539_dp, 1763.2163955661321576882809832144_dp, & 1761.6481514567449360945501630018_dp, 1763.2186641480644719722404928295_dp, & 1764.7886107039373405547812185986_dp, 1766.3579926328272758688363677136_dp, & 1764.7897439840218874570769012179_dp, 1766.3602571799187355617145888128_dp, & 1767.9302052454903097446075497955_dp, 1769.4995896838521771745008200936_dp, & 1767.9313365117477513506998165737_dp, 1769.5018502104298497587003303104_dp, & 1771.0717997803453943101508493424_dp, 1772.6411867192901773817717875479_dp, & 1771.0729290399201388858735815578_dp, 1772.6434432396049558088442032087_dp, & 1774.2133943085381740603092881638_dp, 1775.7827837392240026775004146738_dp, & 1774.2145215685366780930145225142_dp, 1775.7850362674511444226670937912_dp, & 1777.3549888301039772447816189508_dp, 1778.9243807437357948650267838812_dp, & 1777.3561140975950137729651286415_dp, 1778.9266292939754562217905102376_dp, & 1780.4965833450778827733879209677_dp, 1782.0659777329071165152474957958_dp, & 1780.4977066270928073490416428801_dp, 1782.0682223191848821804429152590_dp, & 1783.6381778534947224119364053186_dp, 1785.2075747068189560632939497154_dp, & 1783.6392991570277367206452163161_dp, 1785.2098153430863640623043119133_dp, & 1786.7797723553890829549249457710_dp, 1788.3491716655517328514901506633_dp, & 1786.7808916873974961184173822734_dp, 1788.3514083656867948527464075424_dp, & 1789.9213668507953083753619470020_dp, 1791.4907686091853021192494865426_dp, & 1789.9224842181997959609208764760_dp, 1791.4930013869930191865248765632_dp, & 1793.0629613397475019519871728037_dp, 1794.6323655377989599405606836737_dp, & 1793.0640767494323627128270956029_dp, 1794.6345944070118337709794513093_dp, & 1796.2045558222795283741692302654_dp, 1797.7739624514714481097040590379_dp, & 1796.2056692810929387445917483234_dp, 1797.7761874257499878047967910296_dp, & 1799.3461502984250158247525411194_dp, 1800.9155593502809589758302402912_dp, & 1799.3472618131792821936005105435_dp, 1800.9177804432141833923903122945_dp, & 1802.4877447682173580411228272423_dp, 1804.0571562343051402270247175918_dp, & 1802.4888543456891668267667502000_dp, 1804.0593734594110759539504092206_dp, & 1805.6293392316897163547563926691_dp, 1807.1987531036210996244729220527_dp, & 1805.6304468786203819045636365731_dp, 1807.2009664743472746312177488976_dp, & 1808.7709336888750217095147983869_dp, 1810.3403499583054096873319917951_dp, & 1808.7720394119707320464731948203_dp, 1810.3425594880293426890315959769_dp, & 1811.9125281398059766589428975986_dp, 1813.4819467984341123289069858041_dp, & 1811.9136319457380370978351083305_dp, 1813.4841525004637979127044003593_dp, & 1815.0541225845150573428246271007_dp, 1816.6235436240827234447210357580_dp, & 1815.0552244799201319980783096258_dp, 1816.6257455116571130012731731099_dp, & 1818.1957170230345154432474339166_dp, 1819.7651404353262374530607844791_dp, & 1818.1968170145148666503186349665_dp, 1819.7673385216157159566774779229_dp, & 1821.3373114553963801204227544180_dp, 1822.9067372322391317885704443995_dp, & 1821.3384095495201057923060485988_dp, 1822.9089315303459904689131784855_dp, & 1824.4789058816324599285065549080_dp, 1826.0483340148953713494599183031_dp, & 1824.4800020849337288687051697960_dp, 1826.0505245378542762972104057483_dp, & 1827.6205003017743447116605871050_dp, 1829.1899307833684128988846554369_dp, & 1827.6215946207536299046930595393_dp, 1829.1921175441468696472835432235_dp, & 1830.7620947158534074805917082602_dp, 1832.3315275377312094210472668143_dp, & 1830.7631871569777173808584439238_dp, 1832.3337105492300235447003728235_dp, & 1833.9036891239008062698033628663_dp, 1835.4731242780562144325633920865_dp, & 1833.9047796936039141093867682203_dp, 1835.4753035531099482044168782378_dp, & 1837.0452835259474859757901202068_dp, 1838.6147210044153862496268947386_dp, & 1837.0463722306301571115156890311_dp, 1838.6168965557928113965235672653_dp, & 1840.1868779220241801764030084966_dp, 1841.7563177168801922115021605910_dp, & 1840.1879647680543974962458222034_dp, 1841.7584895572847388082485486885_dp, & 1843.3284723121614129316102812328_dp, 1844.8979144155216128608640847131_dp, & 1843.3295573058746003402917711689_dp, 1844.9000825575918144022619830425_dp, & 1846.4700666963895005658751937987_dp, 1848.0395111004101460814992519924_dp, & 1846.4711498440887445692586642055_dp, 1848.0416755567200807713259198214_dp, & 1849.6116610747385534323693575187_dp, 1851.1811077716158111938748448690_dp, & 1849.6127423826948228400296298394_dp, 1851.1832685546755394893329361269_dp, & 1852.7532554472384776592372734740_dp, 1854.3227044292081530090749463243_dp, & 1852.7543349216908414243498372551_dp, 1854.3248615514641514587764033354_dp, & 1855.8948498139189768781247286624_dp, 1857.4643010732562458415971452888_dp, & 1855.8959274610748200935929232235_dp, 1857.4664545470918372546946288862_dp, & 1859.0364441748095539351808617715_dp, 1860.6058977038286974814956934630_dp, & 1859.0375200008447920046958187431_dp, 1860.6080475415644774651305496294_dp, & 1862.1780385299395125847408741767_dp, 1863.7474943209936531263509053767_dp, & 1862.1791125409988035872481773556_dp, 1863.7496405348879130281480911642_dp, & 1865.3196328793379591658935730371_dp, 1866.8890909248187992735380356561_dp, & 1865.3207050815349144317227930125_dp, 1866.8912335270679455654457541004_dp, & 1868.4612272230338042621351868293_dp, 1870.0306875153713675732625072571_dp, & 1868.4622976224511971788335784628_dp, 1870.0328265181103377126074430480_dp, & 1871.6028215610557643443081886121_dp, 1873.1722840927181386428221002131_dp, & 1871.6038901637457374100078554635_dp, 1873.1744195080208134460300172409_dp, & 1874.7444158934323633970211980725_dp, 1876.3138806569254458425505406338_dp, & 1874.7454827054166335389598857264_dp, 1876.3160124968050584065665128921_dp, & 1877.8860102201919345287434092660_dp, 1879.4554772080591790138908526986_dp, & 1877.8870752474619967043527464501_dp, 1879.4576054844687202199234665220_dp, & 1881.0276045413626215657644062812_dp, 1882.5970737461847881800408506681_dp, & 1881.0286677898799506635358265952_dp, 1882.5991984710174088138502554727_dp, & 1884.1691988569723806302076831533_dp, 1885.7386702713672872096072519599_dp, & 1884.1702603326686316873453897811_dp, 1885.7407914564566967321578664810_dp, & 1887.3107931670489817022836765923_dp, 1888.8802667836712574436990846247_dp, & 1887.3118528758261884559558168625_dp, 1888.8823844407921194456040054086_dp, & 1890.4523874716200101669656498384_dp, 1892.0218632831608512868853416281_dp, & 1890.4534454193507819557693059216_dp, 1892.0239774240291756596809708919_dp, & 1893.5939817707128683452693325896_dp, 1895.1634597698997957624361987768_dp, & 1893.5950379632405853773319696328_dp, 1895.1655704061733276193422316542_dp, & 1896.7355760643547770103148248492_dp, 1898.3050562439513960322615614928_dp, & 1896.7366305074937840142644297574_dp, 1898.3071633872300014107031713962_dp, & 1899.8771703525727768883469111246_dp, 1901.4466527053785388819552365617_dp, & 1899.8782230521085751631951659495_dp, 1901.4487563672045872597509964300_dp, & 1903.0187646353937301448876050717_dp, 1904.5882491542436961713476370942_dp, & 1903.0198155970831680246850311388_dp, 1904.5903493461024398280983394319_dp, & 1906.1603589128443218561924528508_dp, 1907.7298455906089282509646209073_dp, & 1906.1614081424157836051314985400_dp, 1907.7319423239288785058146377381_dp, & 1909.3019531849510614661798655725_dp, 1910.8714420145358873447848330392_dp, & 1909.3030006881046546196413558598_dp, 1910.8735353006891877013689163955_dp, & 1912.4435474517402842290005267049_dp, 1914.0130384260858208996827708762_dp, & 1912.4445932341480253958607105691_dp, 1914.0151282763886171287171645816_dp, & 1915.5851417132381526374117286391_dp, 1917.1546348253195749019397141131_dp, & 1915.5861857805441517787513162144_dp, 1917.1567212510323820915670589280_dp, & 1918.7267359694706578371193332353_dp, 1920.2962312122975971611996602643_dp, & 1918.7277783272913010363023736988_dp, 1920.2983142246256637648523586032_dp, & 1921.8683302204636210272479235640_dp, 1923.4378275870799405622424784534_dp, & 1921.8693708743877517661671032955_dp, 1923.4399071971736094734488746390_dp, & 1925.0099244662426948470976176980_dp, 1926.5794239497262662849416385460_dp, & 1925.0109634218317938032135229152_dp, 1926.5815001686813329681634998066_dp, & 1928.1515187068333647493439497961_dp, 1929.7210203002958469927690881759_dp, & 1928.1525559696217281279790058469_dp, 1929.7230931391539146990273752706_dp, & 1931.2931129422609503598351883434_dp, 1932.8626166388475699902051356861_dp, & 1931.2941485177558667760183268842_dp, 1932.8646861085964020859238661718_dp, & 1934.4347071725506068241394557870_dp, 1936.0042129654399403494065513322_dp, & 1934.4357410662325327481350394508_dp, 1936.0062790770138097865816201098_dp, & 1937.5763013977273261409920374485_dp, 1939.1458092801310840064815211638_dp, & 1937.5773336150500599214861580937_dp, 1939.1478720444111199619625901240_dp, & 1940.7178956178159384827913200301_dp, 1942.2874055829787508277155767056_dp, & 1940.7189261642067929615502505457_dp, 1942.2894650107932825390745171136_dp, & 1943.8594898328411135032898807946_dp, 1945.4290018740403176460881778341_dp, & 1943.8605187137010872349491715063_dp, 1945.4310579761652154712369855938_dp, & 1947.0010840428273616326253571346_dp, 1948.5705981533727912684152450341_dp, & 1947.0021112635313087231137963734_dp, 1948.5726509405318049958297911750_dp, & 1950.1426782477990353598338623053_dp, 1951.7121944210328114534486194688_dp, & 1950.1437038136958339367842374236_dp, 1951.7142439038979058895519880802_dp, & 1953.2842724477803305029868761311_dp, 1954.8537906770766538612591740088_dp, & 1953.2852963641930498313351473925_dp, 1954.8558368662683417212196202962_dp, & 1956.4258666427952874670907290850_dp, 1957.9953869215602329742261045185_dp, & 1956.4268889150213537229168361045_dp, 1957.9974298276479051021297805014_dp, & 1959.5674608328677924898860138477_dp, 1961.1369831545391049899507973178_dp, & 1959.5684814661791532054030447448_dp, 1961.1390227880413579340182866442_dp, & 1962.7090550180215788756824998666_dp, 1964.2785793760684706864095948576_dp, & 1962.7100740176648660681363396061_dp, 1964.2806157474534316546379168740_dp, & 1965.8506491982802282173633931404_dp, 1967.4201755862031782596557663097_dp, & 1965.8516665694769202144622026917_dp, 1967.4222087058888274809837993746_dp, & 1968.9922433736671716066910750533_dp, 1970.5617717849977261343770320526_dp, & 1968.9932591216137535810430104445_dp, 1970.5638016633522166501922144359_dp, & 1972.1338375442056908330447701700_dp, 1973.7033679725062657476110900120_dp, & 1972.1348516740738140579432041331_dp, 1973.7053946198482406581387317430_dp, & 1975.2754317099189195707189330982_dp, 1976.8449641487826043059177465843_dp, & 1975.2764442268555594094770660739_dp, 1976.8469875753815114957612762909_dp, & 1978.4170258708298445549095084383_dp, 1979.9865603138802075163024645580_dp, & 1978.4180367799574571958106249382_dp, 1979.9885805299566118831333914639_dp, & 1981.5586200269613067465136050999_dp, 1983.1281564678522022911824041686_dp, & 1981.5596293333779846953093209073_dp, 1983.1301734835780955013126475869_dp, & 1984.7002141783360024858665365005_dp, 1986.2697526107513794276823503352_dp, & 1984.7012218871156288276231674195_dp, 1986.2717664362504872219888285756_dp, & 1987.8418083249764846355386110069_dp, 1989.4113487426301962615442883808_dp, & 1987.8428144411688860775012507259_dp, 1989.4133593879782833349562181266_dp, & 1990.9834024669051637123125120845_dp, 1992.5529448635407792959308113159_dp, & 1990.9844069955362624193275114654_dp, 1992.5549523387659517734340001110_dp, & 1994.1249966041443090084605846263_dp, 1995.6945409735349268053990132537_dp, & 1994.1259995502162732423698539949_dp, 1995.6965452886179323372584854097_dp, & 1997.2665907367160497024398425014_dp, 1998.8361370726641114153180449203_dp, & 1997.2675921052074432767347293077_dp, 1998.8381382375386369139705792773_dp, & 2000.4081848646423759591210321526_dp, 2001.9777331609794826570000777570_dp, & 2000.4091846605083065200194360485_dp, 2001.9797311855324496978216093828_dp, & 2003.5497789879451400196666277518_dp, 2005.1193292385318694988110419962_dp, & 2003.5507772161174061646544814201_dp, 2005.1213241326037274067203448805_dp, & 2006.6913731066460572811711946612_dp, 2008.2609253053717828535241705874_dp, & 2006.6923697720332945259284396921_dp, 2008.2629170787567994971437511529_dp, & 2009.8329672207667073661761394315_dp, 2011.4025213615494180621760941999_dp, & 2009.8339623282545329706878405846_dp, 2011.4045100239959683770337431645_dp, & 2012.9745613303285351821694659718_dp, 2014.5441174071146573546819920082_dp, & 2012.9755548847796918467047130415_dp, 2014.5461029683255096167019226266_dp, & 2016.1161554353528519711797785480_dp, 2017.6857134421170722874631078605_dp, & 2016.1171474416073504127045018335_dp, 2017.6876959117496721577640103178_dp, & 2019.2577495358608363495724125946_dp, 2020.8273094666059261583367910226_dp, & 2019.2587399987360967690471650755_dp, 2020.8292888542726785201254148839_dp, & 2022.3993436318735353381542336615_dp, 2023.9689054806301763989161142988_dp, & 2022.4003325561645277890543501176_dp, 2023.9708817958987250070391131959_dp, & 2025.5409377234118653826923228733_dp, 2027.1105014842384769447630592656_dp, & 2025.5419251138912490509756333970_dp, 2027.1124747366319819082567548050_dp, & 2028.6825318104966133649504637513_dp, 2030.2520974774791805835362379493_dp, & 2028.6835176719148747705868967356_dp, 2030.2540676764765937012936441601_dp, & 2031.8241258931484376043460598680_dp, 2033.3936934604003412813711418673_dp, & 2031.8251102302340277344139982616_dp, 2033.3956606154366792508279989697_dp, & 2034.9657199713878688503288452769_dp, 2036.5352894330497164877279723025_dp, & 2034.9667027888473392335749806284_dp, 2036.5372535535163320062546313590_dp, & 2038.1073140452353112655814997233_dp, 2039.6768853954747694189392093345_dp, & 2038.1082953477534489982341425352_dp, 2039.6788464907196201974129502255_dp, & 2041.2489081147110434001410480136_dp, 2042.8184813477226713206862208983_dp, & 2041.2498879069510051326613817247_dp, 2042.8204394270505870285089383881_dp, & 2044.3905021798352191565387073415_dp, 2045.9600772898403037096313963638_dp, & 2044.3914804664386640508902986702_dp, 2045.9620323625132508702505166993_dp, & 2047.5320962406278687460546475783_dp, 2049.1016732218742605944295112112_dp, & 2047.5330730262150904129686300811_dp, 2049.1036252971116054502154691926_dp, & 2050.6736902971088996361829472696_dp, 2052.2432691438708506763392897409_dp, & 2050.6746655862789570617946601745_dp, 2052.2452182308496200414708685272_dp, & 2053.8152843492980974894008620914_dp, 2055.3848650558760995296534308004_dp, & 2053.8162581466289449605333353861_dp, 2055.3868111637312396494627094026_dp, & 2056.9568783972151270933353725606_dp, 2058.5264609579357517621626966717_dp, & 2056.9578507072637431306058848602_dp, 2058.5284040957603851971942292165_dp, & 2060.0984724408795332824188436144_dp, 2061.6680568500952731558670369667_dp, & 2060.0994432681820485902468246675_dp, 2061.6699970269409537087111699662_dp, & 2063.2400664803107418511245100406_dp, 2064.8096527323998527881441270763_dp, & 2063.2410358293825662936222982703_dp, 2064.8115899572768184909120132073_dp, & 2066.3816605155280604588713984095_dp, 2067.9512486048944051335831438582_dp, & 2066.3826283908640090705037793128_dp, 2067.9531828867718293137010007355_dp, & 2069.5232545465506795266872079059_dp, 2071.0928444676235721466890792958_dp, & 2069.5242209526250975664912353589_dp, 2071.0947758154298125885015375009_dp, & 2072.6648485733976731257165990492_dp, 2074.2344403206317253256604052851_dp, & 2072.6658135146645601837799227607_dp, 2074.2363687432545715451473600539_dp, & 2075.8064425960879998576612805005_dp, 2077.3760361639629677574404489875_dp, & 2075.8074060769811330224650534245_dp, 2077.3779616702498864071686435120_dp, & 2078.9480366146405037272372397700_dp, 2080.5176319976611361442404178176_dp, & 2078.9489986395735598223786438651_dp, 2080.5195545964195145654900125885_dp, & 2082.0896306290739150067334334284_dp, 2083.6592278217698028117296256040_dp, & 2082.0905912024405919054529256179_dp, 2083.6611475217671907505572175888_dp, & 2085.2312246394068510927552361927_dp, 2086.8008236363322776990861162859_dp, & 2085.2321837655809881186047638271_dp, 2086.8027404462966272029090344155_dp, & 2088.3728186456578173552349457758_dp, 2089.9424194413916103310985581897_dp, & 2088.3737763289935147771355976560_dp, 2089.9443333700115138422107484942_dp, & 2091.5144126478452079787906514661_dp, 2093.0840152369905917725079900020_dp, & 2091.5153688926769456086414820937_dp, 2093.0859262929155184347653860878_dp, & 2094.6560066459873067965137988234_dp, 2096.2256110231717565647757385370_dp, & 2094.6569614566300616974278757713_dp, 2096.2275192150122867595186626787_dp, & 2097.7976006401022881162648204525_dp, 2099.3672067999773846454615978319_dp, & 2097.7985540208516514294238835558_dp, 2099.3691121363054427725734269113_dp, & 2100.9391946302082175395552533367_dp, 2102.5088025674495032503941585358_dp, & 2100.9401465853405104375907259929_dp, 2102.5107050567985887702291899809_dp, & 2104.0807886163230527730938265004_dp, 2105.6503983256298887988130055399_dp, & 2104.0817391500954415478192701117_dp, 2105.6522979764953055505621442734_dp, & 2107.2223825984646444330730786186_dp, 2108.7919940745600687616603598849_dp, & 2107.2233317151152547253115177140_dp, 2108.7938908953991525735608914786_dp, & 2110.3639765766507368422721534271_dp, 2111.9335898142813235131976277495_dp, & 2110.3649242803987670214410080555_dp, 2111.9354838135136681198329192730_dp, & 2113.5055705508989688200505212169_dp, 2115.0751855448346881661202343373_dp, & 2113.5065168459448025210871517938_dp, 2115.0770767308423694478966869643_dp, & 2116.6471645212268744653064871459_dp, 2118.2167812662609543903420633299_dp, & 2116.6481094117521922904385722472_dp, 2118.2186696473887529500740041706_dp, & 2119.7887584876518839324734713846_dp, 2121.3583769786006722156187928360_dp, & 2119.7897019778197743252605883893_dp, 2121.3602625631562943069972126379_dp, & 2122.9303524501913242006261820640_dp, 2124.4999726818941518181774160485_dp, & 2122.9312945441463934996220316049_dp, 2124.5018554781484486407455096467_dp, & 2126.0719464088624198357679494351_dp, 2127.6415683761814652915172587137_dp, & 2126.0728871107309015150766450695_dp, 2127.6434483923686506666245820843_dp, & 2129.2135403636822937463696484074_dp, 2130.7831640615024484015458556321_dp, & 2129.2144796775721568502943706955_dp, 2130.7850413058203148436035531361_dp, & 2132.3551343146679679322298065550_dp, 2133.9247597378967023262111243641_dp, & 2132.3560722446690247111378839251_dp, 2133.9266342185068355234230786382_dp, & 2135.4967282618363642267246755819_dp, 2137.0663554054035953797893757196_dp, & 2135.4976648120203769811797912581_dp, 2137.0682271304315870983882674022_dp, & 2138.6383222052043050325162359769_dp, 2140.2079510640622647219868271035_dp, & 2138.6392573796250921726559592805_dp, 2140.2098200415979241478599392484_dp, & 2141.7799161447885140507853069918_dp, 2143.3495467139116180520104359914_dp, & 2141.7808499474820553778504971359_dp, 2143.3514129520091815834575760191_dp, & 2144.9215100806056170040561469991_dp, 2146.4911423549903352877620463726_dp, & 2144.9224425155901582209079668517_dp, 2146.4930058616686747929871644717_dp, & 2148.0631040126721423526781525645_dp, 2149.6327379873368702303080405508_dp, & 2148.0640350839482988100684477098_dp, 2149.6345987705796997831069756346_dp, & 2151.2046979410045220050294980577_dp, 2152.7743336109894522137749118956_dp, & 2151.2056276525553816903211319539_dp, 2152.7761916787455333207441729198_dp, & 2154.3462918656190920215068011758_dp, 2155.9159292259860877408194206460_dp, & 2154.3472202214103177964721795532_dp, 2155.9177845861694330732749909910_dp, & 2157.4878857865320933123641532140_dp, 2159.0575248323645621038202643343_dp, & 2157.4888127905120244066226095103_dp, 2159.0593774928546377474810790647_dp, & 2160.6294797037596723294641161522_dp, 2162.1991204301624409919364864968_dp, & 2160.6304053598594250960520543175_dp, 2162.2009703988043672272944559336_dp, & 2163.7710736173178817520025614827_dp, 2165.3407160194170720841761617407_dp, & 2163.7719979294514496915042526425_dp, 2165.3425633040218227103433795323_dp, & 2166.9126675272226811662685080549_dp, 2168.4823116001655866286172316119_dp, & 2166.9135904992870342258702031641_dp, 2168.4841562085101868433112912705_dp, & 2170.0542614334899377394994079069_dp, 2171.6239071724449010079207237498_dp, & 2170.0551830693651208932649496998_dp, 2171.6257491122726238561208546301_dp, & 2173.1958553361354268878916299698_dp, 2174.7655027362917182912749662006_dp, & 2173.1967756396846580044940143714_dp, 2174.7673420153122796949549686180_dp, & 2176.3374492351748329388252015254_dp, 2177.9070982917425297729078091854_dp, & 2176.3383682102445999429055415530_dp, 2177.9089349176322821541264995629_dp, & 2179.4790431306237497873611862430_dp, 2181.0486938388336164973022877848_dp, & 2179.4799607810439071206242607503_dp, 2181.0505278192357410068083394281_dp, & 2182.6206370224976815470694053938_dp, 2184.1902893776010507712496005989_dp, & 2182.6215533520815459351634213722_dp, 2184.1921207201257481346352652332_dp, & 2185.7622309108120431952435453045_dp, 2187.3318849080806976628717411901_dp, & 2185.7631459233564887264108965913_dp, 2187.3337136203053776561889423407_dp, & 2188.9038247955821612125600391473_dp, 2190.4734804303082164877446007141_dp, & 2188.9047384948677137339856971551_dp, 2190.4753065197776860543772842153_dp, & 2192.0454186768232742172364646518_dp, 2193.6150759443190622822508613197_dp, & 2192.0463310666142050549611791057_dp, 2193.6168994185457123027192528001_dp, & 2195.1870125545505335937445611307_dp, 2196.7566714501484872642905203606_dp, & 2195.1879236385949526019512719141_dp, 2196.7584923166124779905460568441_dp, & 2198.3286064287790041161323392352_dp, 2199.8982669478315422814754249420_dp, & 2198.3295162108089520615560955324_dp, 2199.9000852139809874471295803300_dp, & 2201.4702002995236645660091349658_dp, 2203.0398624374030782469327545508_dp, & 2201.4711087832552048531633763244_dp, 2203.0416781106542278647487495789_dp, & 2204.6117941667994083452468455504_dp, 2206.1814579188977475628409662205_dp, & 2204.6127013559327180881021127617_dp, 2206.1832710066351694207044256149_dp, & 2207.7533880306210440834499787509_dp, 2209.3230533923500055318203115977_dp, & 2207.7542939288405045291449821780_dp, 2209.3248639019267653982932879435_dp, & 2210.8949818910032962402465488609_dp, 2212.4646488577941117562986481560_dp, & 2210.8958865019775825503560197541_dp, 2212.4664567965319523067510570062_dp, & 2214.0365757479608057024512619951_dp, 2215.6062443152641315259718973740_dp, & 2214.0374790753429760972801402902_dp, 2215.6080496904536500001752851988_dp, & 2217.1781696015081303761518501443_dp, 2218.7478397647939371934771507248_dp, & 2217.1790716489357146474711121889_dp, 2218.7496425836947617954378304628_dp, & 2220.3197634516597457737688377705_dp, 2221.8894352064172095383950895564_dp, & 2220.3206642227548331713546314575_dp, 2221.8912354762581745890970120571_dp, & 2223.4613572984300455961384563326_dp, 2225.0310306401674391196970671331_dp, & 2223.4622567967993720934231814257_dp, 2225.0328283681467589733193351645_dp, & 2226.6029511418333423096678609729_dp, 2228.1726260660779276167509000277_dp, & 2226.6038493710683772537594012865_dp, 2228.1744212593633693508205594726_dp, & 2229.7445449818838677186112495448_dp, 2231.3142214841817891589981314533_dp, & 2229.7454419455608998698847235037_dp, 2231.3160141499108440488357767648_dp, & 2232.8861388185957735325149371338_dp, 2234.4558168945119516444142607846_dp, & 2232.8870345202759964989300765969_dp, 2234.4576070397920054321280538473_dp, & 2236.0277326519831319288788991059_dp, 2237.5974122971011580468621812020_dp, & 2236.0286270952127290001254858219_dp, 2237.5991999290096600150450897979_dp, & 2239.1693264820599361110817624263_dp, 2240.7390076919819677124478308785_dp, & 2239.1702196703701644976054398176_dp, 2240.7407928175665985726332305461_dp, & 2242.3109203088401008616156984202_dp, 2243.8806030791867576449858421990_dp, & 2242.3118122457473753435269263918_dp, 2243.8823857054655962508180791410_dp, & 2245.4525141323374630906771502078_dp, 2247.0221984587477237806817679322_dp, & 2245.4534048213434390814970752837_dp, 2247.0239785927094126756608367373_dp, & 2248.5941079525657823801588146472_dp, 2250.1637938306968822521362728543_dp, & 2248.5949973971574384103073799638_dp, 2250.1655714793007920616994072963_dp, & 2251.7357017695387415230877916597_dp, 2253.3053891950660706417755038425_dp, & 2251.7365899731884611479715043308_dp, 2253.3071643652424633193831982484_dp, & 2254.8772955832699470585543132181_dp, 2256.4469845518869492248106907030_dp, & 2254.8781825494356001960637135343_dp, 2256.4487572505371401616104498724_dp, & 2258.0188893937729298021749699480_dp, 2259.5885799011910022018288837677_dp, & 2258.0197751258979535043550011113_dp, 2259.5903501351875212093768279072_dp, & 2261.1604832010611453721338651425_dp, 2262.7301752430095389211156023922_dp, & 2261.1613677025746240357440171616_dp, 2262.7319430191962900965439168889_dp, & 2264.3020770051479747108446439399_dp, 2265.8717705773736950908090507016_dp, & 2264.3029602794647197314799344292_dp, 2265.8735359025661155737361559070_dp, & 2267.4436708060467246022758693717_dp, 2269.0133659043144339809844530838_dp, & 2267.4445528565673534766744208862_dp, 2269.0151287852996516113746638562_dp, & 2270.5852646037706281849817468744_dp, 2272.1549612238625476157659718090_dp, & 2270.5861454338816430660999187616_dp, 2272.1567216673995375018563078281_dp, & 2273.7268583983328454608797345905_dp, 2275.2965565360486579555625925893_dp, & 2273.7277380114067111702714609040_dp, 2275.2983145488683979608862760138_dp, & 2276.8684521897464637998161182836_dp, 2278.4381518409032180695233006791_dp, & 2276.8693305891416853018092859347_dp, 2278.4399074297088432279723253587_dp, & 2280.0100459780244984399601768730_dp, 2281.5797471384565132983058200854_dp, & 2280.0109231670856977820795438360_dp, 2281.5815003099234691660887842116_dp, & 2283.1516397631798929840671173876_dp, 2284.7213424287386624072521514190_dp, & 2283.1525157452378857081104134303_dp, 2284.7230931895148573605183013263_dp, & 2286.2932335452255198916495164582_dp, 2287.8629377117796187300631196913_dp, & 2286.2941083235973909197809826530_dp, 2287.8646860684855752168792447846_dp, & 2289.4348273241741809670965692448_dp, 2291.0045329876091713030631317834_dp, & 2289.4357009021633599672802716007_dp, 2291.0062789468381760583465677090_dp, & 2292.5764211000386078437800158527_dp, 2294.1461282562569459901453441970_dp, & 2292.5772934809349440788338070604_dp, 2294.1478718245751992220738719949_dp, & 2295.7180148728314624641851897519_dp, 2297.2877235177524065984864548795_dp, & 2295.7188860599112991286951855931_dp, 2297.2894647016991701548243167143_dp, & 2298.8596086425653375561052124133_dp, 2300.4293187721248559851193582251_dp, & 2298.8604786390915856054000902646_dp, 2300.4310575782126005078179343000_dp, & 2302.0012024092527571049359432321_dp, 2303.5709140194034371544509396329_dp, & 2302.0020712184749685802802537924_dp, 2303.5726504541179882308028351035_dp, & 2305.1427961729061768221088837619_dp, 2306.7125092596171343468113350716_dp, & 2305.1436637980606176762348882139_dp, 2306.7142433294178176653576994151_dp, & 2308.2843899335379846096988302544_dp, 2309.8541044927947741181200418218_dp, & 2308.2852563778477070367571281814_dp, 2309.8558362041145596374328755281_dp, & 2311.4259836911605010212426684296_dp, 2312.9956997189650264107533387610_dp, & 2311.4268489578354152952130616605_dp, 2312.9974290782106715491373229066_dp, & 2314.5675774457859797188053092168_dp, 2316.1372949381564056156965580811_dp, & 2314.5684415380229255443709481546_dp, 2316.1390219517085974697785609628_dp, & 2317.7091711974266079263283738416_dp, 2319.2788901503972716260638450239_dp, & 2317.7100341184094253061782506011_dp, 2319.2806148246107682261627063578_dp, & 2320.8507649460945068792968510281_dp, 2322.4204853557158308820671479399_dp, & 2320.8516266989941065017841327912_dp, 2322.4222076969196014921616050876_dp, & 2323.9923586918017322707585681671_dp, 2325.5620805541401374075152975651_dp, & 2323.9932192797761654218050995598_dp, 2325.5638005686375018775539899000_dp, & 2327.1339524345602746937309420160_dp, 2328.7036757456980938379231617291_dp, & 2327.1348118607548026968314820782_dp, 2328.7053934397668610161475187890_dp, & 2330.2755461743820600800291027679_dp, 2331.8452709304174524403099996048_dp, & 2330.2764044419292232681724953607_dp, 2331.8469863103100576531884764221_dp, & 2333.4171399112789501355491181159_dp, 2334.9868661083258161247652879506_dp, & 2333.4179970232986363588376195802_dp, 2334.9885791802694577320658473582_dp, & 2336.5587336452627427720396811573_dp, 2338.1284612794506394478594504304_dp, & 2336.5595896048622554447520809696_dp, 2338.1301720496474144803163978011_dp, & 2339.7003273763451725353952675969_dp, 2341.2700564438192296079760898967_dp, & 2339.7011821866192982262042319803_dp, 2341.2717649184462684949373313897_dp, & 2342.8419211045379110305034136388_dp, 2344.4116516014587474326415023431_dp, & 2342.8427747685689865995226539711_dp, 2344.4133577866683478270130141425_dp, & 2345.9835148298525673426784161615_dp, 2347.5532467523962083579264399464_dp, & 2345.9843673507105466289808290222_dp, 2347.5549506543159680656621941364_dp, & 2349.1251085523006884557134111795_dp, 2350.6948418966584833999942890895_dp, & 2349.1259599330432085189272505054_dp, 2350.6965435213914324213120728029_dp, & 2352.2667022718937596665824451645_dp, 2353.8364370342723001188690373545_dp, & 2352.2675525155662065861388648060_dp, 2353.8381363878970318083055168464_dp, & 2355.4082959886432049968238164594_dp, 2356.9780321652642435744956210778_dp, & 2355.4091450982787792323957590781_dp, 2356.9797292538350449268476327325_dp, & 2358.5498897025603876006356307314_dp, 2360.1196272896607572751644720257_dp, & 2358.5507376811801689172750321361_dp, 2360.1213221192077383442978594353_dp, & 2361.6914834136566101697141851048_dp, 2363.2612224074881441183713179763_dp, & 2361.6923302642696221311618075370_dp, 2363.2629149840173665758136696670_dp, & 2364.8330771219431153348654702540_dp, 2366.4028175187725673241825373354_dp, & 2364.8339228475463893684753695982_dp, 2366.4045078482661721643519051360_dp, & 2367.9746708274310860644197582555_dp, 2369.5444126235400513611756222680_dp, & 2367.9755154310097251011084245282_dp, 2369.5461007119563857600337074629_dp, & 2371.1162645301316460594789263518_dp, 2372.6860077218164828650235680648_dp, & 2371.1171080146588877520775100239_dp, 2372.6876935750902261988789432403_dp, & 2374.2578582300558601460258529212_dp, 2375.8276028136276115497912784673_dp, & 2374.2587005984931396693825976094_dp, 2375.8292864376699005809159593223_dp, & 2377.3994519272147346639249118102_dp, 2378.9691978989990511120113573333_dp, & 2377.4002931825117471000739526695_dp, 2378.9708792996976043476724427757_dp, & 2380.5410456216192178528422847472_dp, 2382.1107929779562801276059462222_dp, & 2380.5418857667139801645243375579_dp, 2382.1124721611755213590530989986_dp, & 2383.6826393132802002351145087366_dp, 2385.2523880505246429417205650988_dp, & 2383.6834783510991128309046633492_dp, 2385.2540650221058239696098013145_dp, & 2386.8242330022085149955933761137_dp, 2388.3939831167293505515352192946_dp, & 2386.8250709356664228898612157496_dp, 2388.3956578824906731042098058571_dp, & 2389.9658266884149383584950092533_dp, 2391.5355781765954814821173500045_dp, & 2389.9666635204151919293926003951_dp, 2391.5372507423322183331075667778_dp, & 2393.1074203719101899612806397342_dp, 2394.6771732301479826553805278406_dp, & 2393.1082561053447053099245722436_dp, 2394.6788436016325979464256287151_dp, & 2396.2490140527049332255963330190_dp, 2397.8187682774116702522121191967_dp, & 2396.2498486904542521395809330175_dp, 2397.8204364603939390280500160607_dp, & 2399.3906077308097757252986143682_dp, 2400.9603633184112305678324932953_dp, & 2399.3914412757431252496486996758_dp, 2400.9620293186183575289454818233_dp, & 2402.5322014062352695515926697233_dp, 2404.1019583531712208604476836970_dp, & 2402.5330338612106211702357656912_dp, 2404.1036221763079583398959228309_dp, & 2405.6737950789919116753095166259_dp, 2407.2435533817160701932567716361_dp, & 2405.6746264468560401061192954887_dp, 2407.2452150334648353636752126056_dp, & 2408.8153887490901443063482648432_dp, 2410.3851484040700802698746197181_dp, & 2408.8162190326786859127831107589_dp, 2410.3868078900910715866536484920_dp, & 2411.9569824165403552503093141994_dp, 2413.5267434202574262632299531667_dp, & 2411.9578116186778660726423455043_dp, 2413.5284007461887391498451555042_dp, & 2415.0985760813528782623440681303_dp, 2416.6683384303021576379981618518_dp, & 2415.0994042048528916714536646091_dp, 2416.6699936017598994194003358785_dp, & 2418.2401697435379933982464756415_dp, 2419.8099334342281989666275796557_dp, & 2418.2409967912030773749093584455_dp, 2419.8115864568066030565504004629_dp, & 2421.3817634031059273628114516152_dp, 2422.9515284320593507390173882677_dp, & 2421.3825893777277414054136435432_dp, 2422.9531793113308900870069658339_dp, & 2424.5233570600668538554849657427_dp, 2426.0931234238192901659046901231_dp, & 2424.5241819644262055190395166619_dp, 2426.0947721653347899698226494058_dp, & 2427.6649507144308939133303337126_dp, 2429.2347184095315719760176998470_dp, & 2427.6657745512977949826645267142_dp, 2429.2363650188203216657173437621_dp, & 2430.8065443662081162513349906263_dp, 2432.3763133892196292070514151241_dp, & 2430.8073671383418385512838458975_dp, 2432.3779578717894937048750010108_dp, & 2433.9481380154085376000817758972_dp, 2435.5179083629067739905215463090_dp, & 2433.9489597255576684454990381082_dp, 2435.5195507242443042542157081074_dp, & 2437.0897316620421230408085110869_dp, 2438.6595033306161983305519092278_dp, & 2437.0905523129446203291809392291_dp, 2438.6611435761867411841477848236_dp, & 2440.2313253061187863378794071961_dp, 2441.8010982923709748766499174179_dp, & 2440.2321449005020332873050802124_dp, 2441.8027364276187821348045873336_dp, & 2443.3729189476483902686915958315_dp, 2444.9426932481940576905242484117_dp, & 2443.3737374882292498039581000186_dp, 2444.9443292785423945817706522537_dp, & 2446.5145125866407469510398393661_dp, 2448.0842881981082830069982035276_dp, & 2446.5153300761256157405136114251_dp, 2448.0859221289595359013017683878_dp, & 2449.6561062231056181679622386720_dp, 2451.2258831421363699890717318794_dp, & 2449.6569226641904803139759984872_dp, 2451.2275149788721534350435163968_dp, & 2452.7976998570527156900895231944_dp, 2454.3674780803009214771845468981_dp, & 2452.7985152524231960754906400223_dp, 2454.3691078282821845542527701204_dp, & 2455.9392934884917015955202770108_dp, 2457.5090730126244247327322274703_dp, & 2455.9401078408231188890190688937_dp, 2457.5107006771915567235266073202_dp, & 2459.0808871174321885872442260591_dp, 2460.6506679391292521758866657813_dp, & 2459.0817004293896079101775921048_dp, 2460.6522935256021875640430321852_dp, & 2462.2224807438837403081354858790_dp, 2463.7922628598376621177717000079_dp, & 2462.2232930181220255652379117652_dp, 2463.7938863735159849163178670350_dp, & 2465.3640743678558716535374459583_dp, 2466.9338577747717994870442520724_dp, & 2465.3648856070197375302883018779_dp, 2466.9354792209348469024821262593_dp, & 2468.5056679893580490814607460855_dp, 2470.0754526839536965509307786649_dp, & 2468.5064781960821127105539106070_dp, 2470.0770720678606619880841416518_dp, & 2471.6472616083996909204155819434_dp, 2473.2170475874052736307683375863_dp, & 2471.6480707853085232198747722297_dp, 2473.2186649142953090434206649103_dp, & 2474.7888552249901676748993614984_dp, 2476.3586424851483398120990710946_dp, & 2474.7896633746983443603401273544_dp, 2476.3602577602406574044011301904_dp, & 2477.9304488391388023285605205312_dp, 2479.5002373772045936493664132659_dp, & 2477.9312559642509546020776642024_dp, 2479.5018506056985669329492171971_dp, & 2481.0720424508548706450590948657_dp, 2482.6418322635956238652608393520_dp, & 2481.0728485539657355631963078007_dp, 2482.6434434506708880769458133887_dp, & 2484.2136360601476014666444384706_dp, 2485.7834271443429100447624916425_dp, & 2484.2144411438420719898811978265_dp, 2485.7850362951594619297174324224_dp, & 2487.3552296670261770104702705881_dp, 2488.9250220194678233239275383621_dp, & 2487.3560337338793517366395095776_dp, 2488.9266291391661202890741050085_dp, & 2490.4968232714997331626670313696_dp, 2492.0666168889916270734646495782_dp, & 2490.4976263240769657466957861233_dp, 2492.0682219826926857159007178312_dp, & 2493.6384168735773597701913241277_dp, 2495.2082117529354775771475068915_dp, & 2493.6392189144343080325354631106_dp, 2495.2098148257409715923057361547_dp, & 2496.7800104732681009304720232258_dp, 2498.3498066113204247051088017716_dp, & 2496.7808115049507756565952809781_dp, 2498.3514076683127821793312061386_dp, & 2499.9216040705809552788724297913_dp, 2501.4914014641674125820607207045_dp, & 2499.9224040956257687120992924470_dp, 2501.4930005104099126742278937434_dp, & 2503.0631976655248762739876628243_dp, 2504.6329963114972802504864637837_dp, & 2503.0639966864586903040391861367_dp, 2504.6345933520341492672993784073_dp, & 2506.2047912581087724807962808577_dp, 2507.7745911533307623288468969303_dp, & 2506.2055892774489465302976599776_dp, 2507.7761861931872691983188814063_dp, & 2509.3463848483415078516849390728_dp, 2510.9161859896884896648459965088_dp, & 2509.3471818685959464629135907773_dp, 2510.9177790338710408125225709790_dp, & 2512.4879784362319020053646986704_dp, 2514.0577808205909899837983086509_dp, & 2512.4887744598991021294877588386_dp, 2514.0593718740872236161830488846_dp, & 2515.6295720217887305036974192977_dp, 2517.1993756460586885321412140495_dp, & 2515.6303670513578284947278989232_dp, 2517.2009647138375683317666860771_dp, & 2518.7711656050207251264504814318_dp, 2520.3409704661119087161343622713_dp, & 2518.7719596429715434421318611195_dp, 2520.3425575531238169526784386017_dp, & 2521.9127591859365741439979037691_dp, 2523.4825652807708727357882177125_dp, & 2521.9135522347396677558076772928_dp, 2523.4841503919477027975977386579_dp, & 2525.0543527645449225879857408684_dp, 2526.6241600900557022140632421084_dp, & 2525.0551448266616251024293407841_dp, 2526.6257432303109505644090200129_dp, & 2528.1959463408543725199794684933_dp, 2529.7657548939864188213808259687_dp, & 2528.1967374187368420133271188766_dp, 2529.7673360682152763837304015881_dp, & 2531.3375399148734832981108882919_dp, 2532.9073496925829448954866733679_dp, & 2531.3383300109647478667112292706_dp, 2532.9089289056623878720440180800_dp, & 2534.4791334866107718417419095981_dp, 2536.0489444858651040567069411286_dp, & 2534.4799226033447748700277233943_dp, 2536.0505217426539841844314518974_dp, & 2537.6207270560747128941623942304_dp, 2539.1905392738526218186370345392_dp, & 2537.6215151958763580424454308426_dp, 2539.1921145791917560669176865085_dp, & 2540.7623206232737392833390801606_dp, 2542.3321340565651261943025672807_dp, & 2540.7631077885589351974728305664_dp, 2542.3337074152773859084269674827_dp, & 2543.9039141882162421807324318160_dp, 2545.4737288340221482978316031595_dp, & 2543.9047003813919469257037256429_dp, 2545.4753002509125477923539240749_dp, & 2547.0455077509105713581980985347_dp, 2548.6153236062431229416769114855_dp, & 2547.0462929743748365776906095396_dp, 2548.6168930860989075477532711377_dp, & 2550.1871013113650354429894982927_dp, 2551.7569183732473892294265864596_dp, & 2550.1878855675070502469446227466_dp, 2551.7584859208381228001513784518_dp, & 2553.3286948695879021708778812402_dp, 2554.8985131350541911442410036731_dp, & 2553.3294781607880367530610094872_dp, 2554.9000787551318430219829622241_dp, & 2556.4702884255873986374060668032_dp, 2558.0401078916826781329537137367_dp, & 2556.4710707542172476249689949380_dp, 2558.0416715889817095826561215325_dp, & 2559.6118819793717115472918890995_dp, 2561.1817026431519056858735040841_dp, & 2559.6126633477941370843050139890_dp, 2561.1832644223893557982489108643_dp, & 2562.7534755309489874619972281668_dp, 2564.3232973894808359123244951000_dp, & 2562.7542559415181620289082330572_dp, 2564.3248572553564069808406086244_dp, & 2565.8950690803273330454783489811_dp, 2567.4648921306883381119607758334_dp, & 2565.8958485353887820164373168355_dp, 2567.4664500878844804874808105545_dp, & 2569.0366626275148153081331164359_dp, 2570.6064868667931893418917276498_dp, & 2569.0374411294054592481074021118_dp, 2570.6080429199751857687994464139_dp, & 2572.1782561725194618489605023368_dp, 2573.7480815978140749796538311804_dp, & 2572.1790337235676585525462509358_dp, 2573.7496357516301244172607880175_dp, & 2575.3198497153492610959476500175_dp, 2576.8896763237695892820644028094_dp, & 2575.3206263178748473697685654369_dp, 2576.8912285828508902150644868029_dp, & 2578.4614432560121625446996133887_dp, 2580.0312710446782359399923616481_dp, & 2578.4622189123264957352674565219_dp, 2580.0328214136390691816966495013_dp, & 2581.6030367945160769953267400616_dp, 2583.1728657605584286290807864282_dp, & 2581.6038115069220762642220684862_dp, 2583.1744142439962396211339312187_dp, & 2584.7446303308688767876045226321_dp, 2586.3144604714284915564556839712_dp, & 2584.7454041016610641358203712799_dp, 2586.3160070739239721687035962785_dp, & 2587.8862238650783960344205982438_dp, 2589.4560551773066600034550567962_dp, & 2587.8869966965429370776961417671_dp, 2589.4575999034238298376024685437_dp, & 2591.0278173971524308535234341513_dp, 2592.5976498782110808644120269809_dp, & 2591.0285892915671753504791648079_dp, 2592.5991927324973680650776646125_dp, & 2594.1694109270987395975870961620_dp, 2595.7392445741598131815254465434_dp, & 2594.1701818867332617324576943847_dp, 2595.7407855611461347582719752666_dp, & 2597.3110044549250430826063575244_dp, 2598.8808392651708286758511013185_dp, & 2597.3117744820406815043522242786_dp, 2598.8823783893716703397367328418_dp, & 2600.4525979806390248146362680319_dp, 2602.0224339512620122744462955225_dp, & 2600.4533670774889224341996269917_dp, 2602.0239712171755077926149747818_dp, & 2603.5941915042483312148901668147_dp, 2605.1640286324511626337002878935_dp, & 2603.5949596730774747623467286939_dp, 2605.1655640445591727054976865237_dp, & 2606.7357850257605718432099874687_dp, 2608.3056233087559926588827374115_dp, & 2606.7365522688058311865523969626_dp, 2608.3071568715241833169558800477_dp, & 2609.8773785451833196199225708109_dp, 2611.4472179801941300199420071121_dp, & 2609.8781448646734868471972269754_dp, 2611.4487496980720505597512378959_dp, & 2613.0189720625241110460955686324_dp, 2614.5888126467831176635848683611_dp, & 2613.0197374606799393125999206069_dp, 2614.5903425242042781047280262240_dp, & 2616.1605655777904464222063913275_dp, 2617.7304073085404143216688451188_dp, & 2616.1613300568246885644394615839_dp, 2617.7319353499223624043889544936_dp, & 2619.3021590909897900652375231966_dp, 2620.8720019654833950159381381512_dp, & 2619.3029226531072369832821984559_dp, 2620.8735281752277927361576337373_dp, & 2622.4437526021295705242114015252_dp, 2624.0135966176293515591337728001_dp, & 2622.4445152495270893342129556515_dp, 2624.0151210001220512453302599257_dp, & 2625.5853461112171807941779292275_dp, 2627.1551912649954930525083207723_dp, & 2625.5861078460837527525693013131_dp, 2627.1567138246066129877191238409_dp, & 2628.7269396182599785286675658847_dp, 2630.2967859075989463797752564030_dp, & 2628.7277004427767367297781089304_dp, 2630.2983066486829459719905240050_dp, & 2631.8685331232652862506228183917_dp, 2633.4383805454567566975227209585_dp, & 2631.8692930396055530992935580367_dp, 2633.4398994723525112016996346188_dp, & 2635.0101266262403915618208301372_dp, 2636.5799751785858879221211847331_dp, & 2635.0108856365697160226357273831_dp, 2636.5814922956167627170248561454_dp, & 2638.1517201271925473507996466658_dp, 2639.7215698070032232131542159189_dp, & 2638.1524782336687419755289420704_dp, 2639.7230851184771476362041521015_dp, & 2641.2933136261289719993006160822_dp, 2642.8631644307255654534012874613_dp, & 2641.2940708309021497341390440986_dp, 2642.8646779409351061966758518165_dp, & 2644.4349071230568495872392640612_dp, 2646.0047590497696377254012783093_dp, & 2644.4356634282694603614087636864_dp, 2646.0062707629920717959263753633_dp, & 2647.5765006179833300962168661803_dp, 2649.1463536641520837846250536034_dp, & 2647.5772560257701971934903765225_dp, 2649.1478635846494710320473135622_dp, & 2650.7180941109155296115848244089_dp, 2652.2879482738894685292852393743_dp, & 2650.7188486234038858262748398360_dp, 2652.2894564059087237440042729068_dp, & 2653.8596876018605305230738399267_dp, 2655.4295428789982784668110412187_dp, & 2653.8604412211700541020166078179_dp, 2655.4310492267712430516198724511_dp, & 2657.0012810908253817239997610153_dp, 2658.5711374794949221770156931432_dp, & 2657.0020338190682320960533344870_dp, 2658.5726420472384353952732571328_dp, & 2660.1428745778170988090578725307_dp, 2661.7127320753957307719838622894_dp, & 2660.1436264170979521036196795746_dp, 2661.7142348673117005753184696791_dp, & 2663.2844680628426642707172824345_dp, 2664.8543266667169583527060775367_dp, & 2663.2852190152587486267544404064_dp, 2664.8558276869924317912240011555_dp, & 2666.4260615459090276942269509935_dp, 2667.9959212534747824624869949952_dp, & 2666.4268116135501583613002400841_dp, 2667.9974205062820156804358183596_dp, & 2669.5676550270231059512447995662_dp, 2671.1375158356853045371540611171_dp, & 2669.5684042119717201839950095125_dp, 2671.1390133251818323569661446413_dp, & 2672.7092485061917833921012283459_dp, 2674.2791104133645503520928845372_dp, & 2672.7099968105229751396545079917_dp, 2674.2806061436932554497102493317_dp, & 2675.8508419834219120367082660175_dp, 2677.4207049865284704661353807695_dp, & 2675.8515894092034664284451341852_dp, 2677.4221989618176521404934797983_dp, & 2678.9924354587203117641254690028_dp, 2680.5622995551929406623265095129_dp, & 2678.9931820080127393932462862943_dp, 2680.5637917795563832018507491951_dp, & 2682.1340289320937705007935837852_dp, 2683.7038941193737623855951825173_dp, & 2682.1347746069503415071015372152_dp, 2683.7053845969108030345406722514_dp, & 2685.2756224035490444074468827294_dp, 2686.8454886790866631773546806996_dp, & 2685.2763672060158223607578973255_dp, 2686.8469774138822597047965209363_dp, & 2688.4172158730928580647149818131_dp, 2689.9870832343472971070576824644_dp, & 2688.4179598052087336502924443485_dp, 2689.9885702304720949813161515454_dp, & 2691.5588093407319046574248477611_dp, 2693.1286777851712452007307709194_dp, & 2691.5595524045286291648256064701_dp, 2693.1301630466816443719930346749_dp, & 2694.7004028064728461576136022094_dp, 2696.2702723315740158665130558805_dp, & 2694.7011450039750647743203915410_dp, 2696.2717558625122371603904996836_dp, & 2697.8419962703223135062626317056_dp, 2699.4118668735710453172233171869_dp, & 2697.8427376035475984174668617875_dp, 2699.4133486779651964419612855794_dp, & 2700.9835897322869067937634145661_dp, 2702.5534614111776979899798488741_dp, & 2700.9843302032457900896511599676_dp, 2702.5549414930418391600144708178_dp, & 2704.1251831923731954391253788499_dp, 2705.6950559444092669628969591516_dp, & 2704.1259228030692018310083993654_dp, 2705.6965343077434761414318352436_dp, & 2707.2667766505877183679360099570_dp, 2708.8366504732809743688818588770_dp, & 2707.2675154030173977145587363980_dp, 2708.8381271220714121321356883606_dp, & 2710.4083701069369841890833316027_dp, 2711.9782449978079718065554512764_dp, & 2710.4091080030899438344259509235_dp, 2711.9797199360269458323101792615_dp, & 2713.5499635614274713702507901593_dp, 2715.1198395180053407483203180146_dp, & 2713.5507006032864082941378655947_dp, 2715.1213127496113699313780848953_dp, & 2716.6915570140656284121944795608_dp, 2718.2614340338880929455989813324_dp, & 2716.6922932036063611950079417841_dp, 2718.2629055628259711427350548875_dp, & 2719.8331504648578740218125521451_dp, 2721.4030285454711708312653088208_dp, & 2719.8338858040493746245973957308_dp, 2721.4044983756720302382432728616_dp, & 2722.9747439138105972840165699344_dp, 2724.5446230527694479192917164670_dp, & 2722.9754784046150226452571846160_dp, 2724.5460911881508220824864761273_dp, & 2726.1163373609301578324144609259_dp, 2727.6862175557977292016346168590_dp, & 2726.1170710053028812827492182697_dp, 2727.6876840002636156667882577115_dp, & 2729.2579308062228860188146559659_dp, 2730.8278120545707515423803528478_dp, & 2729.2586636061125285149461581444_dp, 2730.8292768120116741429955570011_dp, & 2732.3995242496950830815608937072_dp, 2733.9694065491031840691736525136_dp, & 2732.4002562070435442606091710635_dp, 2733.9708696233962548570292277387_dp, & 2735.5411176913530213127070939774_dp, 2737.1110010394096285619504389470_dp, & 2735.5418488080955103682430110619_dp, 2737.1124624344186093822035547761_dp, & 2738.6827111312029442240416136262_dp, 2740.2525955255046198389966281023_dp, & 2738.6834414092680106050278083886_dp, 2740.2540552450799835523165738208_dp, & 2741.8243045692510667119701135362_dp, 2743.3941900074026261403543497930_dp, & 2741.8250340105606306458269504330_dp, 2743.3956480553816174945130314264_dp, & 2744.9658980055035752212661809904_dp, 2746.5357844851180495085968307543_dp, & 2744.9666266119729580622704449679_dp, 2746.5372408653247456619218056653_dp, & 2748.1074914399666279076987679559_dp, 2749.6773789586652261669929845651_dp, & 2748.1082192135045823119131616796_dp, 2749.6788336749105968660695912835_dp, & 2751.2490848726463547995454230791_dp, 2752.8189734280584268950825610886_dp, & 2751.2498118151550947274673534708_dp, 2752.8204264841403943090726366666_dp, & 2754.3906783035488579580002132661_dp, 2755.9605678933118574016825179216_dp, & 2754.3914044169240885061088644872_dp, 2755.9620192930153556156083036494_dp, & 2757.5322717326802116364851496439_dp, 2759.1021623544396586953450881323_dp, & 2757.5329970188111586988564372176_dp, 2759.1036121015366928646682050685_dp, & 2760.6738651600464624388738524494_dp, 2762.2437568114559074522878322698_dp, & 2760.6745896208159022000235363746_dp, 2762.2452049097056126210946589879_dp, & 2763.8154585856536294766361099647_dp, 2765.3853512643746163818157782500_dp, & 2763.8161822229379177367421125518_dp, 2765.3867977175233159669021827271_dp, & 2766.9570520095077045249119080025_dp, 2768.5269457132097345892555702176_dp, & 2766.9577748251768058585577338982_dp, 2768.5283905249909985323857341760_dp, & 2770.0986454316146521775234286303_dp, 2771.6685401579751479364213668431_dp, & 2770.0993674275321689270955192358_dp, 2771.6699833321098505270173923988_dp, & 2773.2402388519804100009334398031_dp, 2774.8101345986846793996320507169_dp, & 2773.2409600300036111057963111833_dp, 2774.8115761388810567701331542034_dp, & 2776.3818322706108886871584213376_dp, 2777.9517290353520894252991335220_dp, & 2776.3825526325907383497225329287_dp, 2777.9531689453057967214115081854_dp, & 2779.5234256875119722056446972004_dp, 2781.0933234679910762831045664850_dp, & 2779.5241452352931583954331773254_dp, 2781.0947617513852445111454327376_dp, & 2782.6650191026895179541157693898_dp, 2784.2349178966152764167874922068_dp, & 2782.6657378381104807509273819666_dp, 2784.2363545571205689703094496561_dp, & 2785.8066125161493569083989747550_dp, 2787.3765123212382647925588023298_dp, & 2785.8073304410423166856560488201_dp, 2787.3779473625129336604233502608_dp, & 2788.9482059278972937712395129091_dp, 2790.5181067418735552451621955960_dp, & 2788.9489230440882792206009718862_dp, 2790.5195401675634969032141963859_dp, & 2792.0897993379391071201098209503_dp, 2793.6597011585346008216002626679_dp, & 2792.0905156472479831184209411696_dp, 2793.6611329722734118100781841816_dp, & 2795.2313927462805495540221989901_dp, 2796.8012955712347941225439575977_dp, & 2795.2321082505210448736642960387_dp, 2796.8027257766438263113439443952_dp, & 2798.3729861529273478393525195037_dp, 2799.9428899799874676414436510330_dp, & 2798.3737008539070827030474057753_dp, 2799.9443185806758831853388386795_dp, & 2801.5145795578852030546827832420_dp, 2803.0844843848058941013597971025_dp, & 2801.5152934574057165357985598065_dp, 2803.0859113843707200872597974887_dp, & 2804.6561729611597907346702148873_dp, 2806.2260787857032867895310844326_dp, & 2804.6568860610165680040667547439_dp, 2806.2275041877294695778502312818_dp, & 2807.7977663627567610129505227681_dp, 2809.3676731826927998896977818735_dp, & 2807.7984786647392604333948699477_dp, 2809.3690969907532591518845330514_dp, & 2810.9393597626817387640828787811_dp, 2812.5092675757875288121978312502_dp, & 2810.9400712685734188332567278796_dp, 2812.5106897934432112664616766299_dp, & 2814.0809531609403237445441071843_dp, 2815.6508619650005105218530827801_dp, & 2814.0816638725186698876575400036_dp, 2815.6522825958004433691094017947_dp, & 2817.2225465575380907327795041159_dp, 2818.7924563503447238636629136962_dp, & 2817.2232564765746419457972434513_dp, 2818.7938753978260679257004639031_dp, & 2820.3641399524805896683176435586_dp, 2821.9340507318330898863223170641_dp, & 2820.3648490807409650127962380741_dp, 2821.9354681995211924481824126244_dp, & 2823.5057333457733457899564599916_dp, 2825.0756451094784721635813957744_dp, & 2823.5064416850172707404830378728_dp, 2825.0770610008869195221223513074_dp, & 2826.6473267374218597730278331532_dp, 2828.2172394832936771134630461928_dp, & 2826.6480342894031924182433551134_dp, 2828.2186538019243468340681156235_dp, & 2829.7889201274316078657478361647_dp, 2831.3588338532914543153554669678_dp, & 2829.7896268938983649639301397191_dp, 2831.3602466026345671987272973554_dp, & 2832.9305135158080420246597447335_dp, 2834.5004282194844968249959809882_dp, & 2832.9312194985024249148341007600_dp, 2834.5018394030186685859655265579_dp, & 2836.0721069025565900491768422543_dp, 2837.6420225818854414873625124512_dp, & 2836.0728121032150104187142410607_dp, 2837.6434322030777341476254127998_dp, & 2839.2137002876826557152319933560_dp, 2840.7836169405068692474889164213_dp, & 2839.2144047080357612248879400902_dp, 2840.7850250028128422441675338070_dp, & 2842.3552936711916189080408967877_dp, 2843.9252112953613054592202151191_dp, & 2842.3559973129643186753801244169_dp, 2843.9266178022250664711348475530_dp, & 2845.4968870530888357539858674983_dp, 2847.0668056464612201919236534558_dp, & 2845.4975899180003256961310690726_dp, 2847.0682106013154756854418917005_dp, & 2848.6384804333796387516269373282_dp, 2850.2083999938190285351713460161_dp, & 2848.6391825231434267882623772058_dp, 2850.2098034000851340314901222670_dp, & 2851.7800738120693369018470038971_dp, 2853.3499943374470909014101487678_dp, & 2851.7807751283932680194006893871_dp, 2853.3513961985351009671107314837_dp, & 2854.9216671891632158371376980305_dp, 2856.4915886773577133266342512251_dp, & 2854.9223677337494970150586778842_dp, 2856.4929889966664312893362730237_dp, & 2858.0632605646665379500325814081_dp, 2859.6331830135631477690758486043_dp, & 2858.0639603392117629500728851300_dp, 2859.6345817944801751600024111057_dp, & 2861.2048539385845425206942280424_dp, 2862.7747773460755924059291186674_dp, & 2861.2055529447797165400979694831_dp, 2862.7761745919773781311810984180_dp, & 2864.3464473109224458436616856923_dp, 2865.9163716749071919281225944320_dp, & 2864.3471455504530100331569252102_dp, 2865.9177673891590811704464763683_dp, & 2867.4880406816854413537647563787_dp, 2869.0579660000700378331548917316_dp, & 2867.4887381562312972012468474176_dp, 2869.0593601860263206859747798297_dp, & 2870.6296340508786997512114787937_dp, 2872.1995603215761687160086197087_dp, & 2870.6303307621142333319998164165_dp, 2872.2009529825801285514795173357_dp, & 2873.7712274185073691258551395737_dp, 2875.3411546394375705581571727193_dp, & 2873.7719233681014752203984797283_dp, 2875.3425457788215321309831865688_dp, & 2876.9128207845765750806470851349_dp, 2878.4827489536661770146789737846_dp, & 2876.9135159741926811605459136213_dp, 2878.4841385747515543034267739845_dp, & 2880.0544141490914208542815510391_dp, 2881.6243432642738696994936126539_dp, & 2880.0551085803875109374893497186_dp, 2881.6257313703712134871182765238_dp, & 2883.1960075120569874430386716636_dp, 2884.7659375712724784687341957066_dp, & 2883.1967011866856258190973558287_dp, 2884.7673241656815236640214725799_dp, & 2886.3376008734783337218317792888_dp, 2887.9075318746737817022701003237_dp, & 2886.3382937930866885479900637305_dp, 2887.9089169606834944038861587043_dp, & 2889.4791942333604965644650485776_dp, 2891.0491261744895065833942029780_dp, & 2889.4798863995903633335220401833_dp, 2891.0505097553781308882210579654_dp, & 2892.6207875917084909631074898051_dp, 2894.1907204707313293766885281144_dp, & 2892.6214790061963158438174009435_dp, 2894.1921025497664339341105953978_dp, & 2895.7623809485273101469892420901_dp, 2897.3323147634108757040821439110_dp, & 2895.7630716129042131978567710410_dp, 2897.3336953438494000178767256111_dp, & 2898.9039743038219257003260662874_dp, 2900.4739090525397208191150112035_dp, & 2898.9046642197137239576156980088_dp, 2900.4752881376280212985869873608_dp, & 2902.0455676575972876794778861036_dp, 2903.6155033381293898794213732228_dp, & 2902.0462568266245181202541281657_dp, 2903.6168809311032856414099497111_dp, & 2905.1871610098583247293471754053_dp, 2906.7570976201913582174461563070_dp, & 2905.1878494336362671103565594251_dp, 2906.7584737242761766408192043544_dp, & 2908.3287543606099441990229395842_dp, 2909.8986918987370516094077354112_dp, & 2908.3294420407486437722224874416_dp, 2909.9000665171476736436470486754_dp, & 2911.4703477098570322566759892242_dp, 2913.0402861737778465425203030225_dp, & 2911.4710346479613223622067652174_dp, 2913.0416593097187517719889942771_dp, & 2914.6119410576044540037111551824_dp, 2916.1818804453250704804889659931_dp, & 2914.6126272552739785411094995641_dp, 2916.1832521019903819459602259034_dp, & 2917.7535344038570535881820455340_dp, 2919.3234747133900021272905818155_dp, & 2917.7542198626862893666151110609_dp, 2919.3248448939635309063051260097_dp, & 2920.8951277486196543174738966428_dp, 2922.4650689779838716892532339617_dp, & 2920.8958124701979332857801873610_dp, 2922.4664376856391612368609706419_dp, & 2924.0367210918970587702600228950_dp, 2925.6066632391178611354471350976_dp, & 2924.0374050778085901275697628820_dp, 2925.6080304770182313868768927861_dp, & 2927.1783144336940489077373223741_dp, 2928.7482574968031044563996372331_dp, & 2927.1789976855179410954416610642_dp, 2928.7496232681016956931891999426_dp, & 2930.3199077740153861841462489467_dp, 2931.8898517510506879211469191832_dp, & 2930.3205902933256687599785385033_dp, 2931.8912160588905044022541233663_dp, & 2933.4615011128658116565806148743_dp, 2935.0314460018716503326348140732_dp, & 2933.4621829012314570515672733525_dp, 2935.0328088493856036920390671844_dp, & 2936.6030944502500460940925421603_dp, 2938.1730402492769832814811330168_dp, & 2936.6037755092349912531253434512_dp, 2938.1744016395879356937734164690_dp, & 2939.7446877861727900860978353692_dp, 2941.3146344932776313981117355156_dp, & 2939.7453681173359579928738426666_dp, 2941.3159944294984385135599542897_dp, & 2942.8862811206387241500870036311_dp, 2944.4562287338844926032824925603_dp, & 2942.8869607255340452371567869386_dp, 2944.4575872191180462538479288116_dp, & 2946.0278744536525088386471149418_dp, 2947.5978229711084183569991848551_dp, & 2946.0285533338289422833063644906_dp, 2947.5991800084476890347688026243_dp, & 2949.1694677852187848457996217003_dp, 2950.7394172049602139058472760092_dp, & 2949.1701459422203397525537876124_dp, 2950.7407727974882930153357076988_dp, & 2952.3110611153421731126592526783_dp, 2953.8810114354506385287433989566_dp, & 2952.3117385507079295829854063397_dp, 2953.8823655862407804145076206591_dp, & 2955.4526544440272749324190232869_dp, 2957.0226056625904057811202932435_dp, & 2955.4533311592914050225437472427_dp, 2957.0239583747060695321192644347_dp, & 2958.5942477712786720546663730910_dp, 2960.1641998863901837375568311666_dp, & 2958.5949237679704606220731433957_dp, 2960.1655511628850747696777338130_dp, & 2961.7358410971009267890353970174_dp, 2963.3057941068605952328646720416_dp, & 2961.7365163767447922284096244365_dp, 2963.3071439507787066510268339570_dp, & 2964.8774344214985821082000946013_dp, 2966.4473883240122181016429861131_dp, & 2964.8781089856140969775147384267_dp, 2966.4487367383878718428801125676_dp, & 2968.0190277444761617502135199196_dp, 2969.5889825378555854163125927856_dp, & 2968.0197015945780732876529800088_dp, 2969.5903295257134731752235580751_dp, & 2971.1606210660381703201976735552_dp, 2972.7305767484011857236407619411_dp, & 2971.1612942036364208526125021041_dp, 2972.7319223127564096615889280191_dp, & 2974.3022143861890933913889370283_dp, 2975.8721709556594632797678321057_dp, & 2974.3028868127888406349687911277_dp, 2975.8735150995175765191986636380_dp, & 2977.4438077049333976055438096112_dp, 2979.0137651596408182837467051299_dp, & 2977.4444794220350348593909883950_dp, 2979.0151078859978651889833386188_dp, & 2980.5854010222755307727096673032_dp, 2982.1553593603556071096061838369_dp, & 2980.5860720313747070059905430704_dp, 2982.1567006721981633554725819725_dp, & 2983.7269943382199219703652239902_dp, 2985.2969535578141425369490267696_dp, & 2983.7276646408075618037118846603_dp, 2985.2982934581193549665604070857_dp, & 2986.8685876527709816419353354320_dp, 2988.4385477520266939800955027138_dp, & 2986.8692572503333052237648056769_dp, 2988.4398862437623202531458711594_dp, & 2990.0101809659331016946847477110_dp, 2991.5801419430034877157831370900_dp, & 2990.0108498599516444730982477002_dp, 2991.5814790291279357486499814840_dp, & 2993.1517742777106555969953531426_dp, 2994.7217361307547071094332525708_dp, & 2993.1524424696622879879151866404_dp, 2994.7230718142170743084097573061_dp, & 2996.2933675881079984750314783669_dp, 2997.8633303152904928399948173989_dp, & 2996.2940350794649454272283155567_dp, 2997.8646645990306051289503484251_dp, & 2999.4349608971294672087976914330_dp, 3001.0049244966209431233760268285_dp, & 2999.4356276893593276664562259138_dp, 3001.0062573835693937671361041107_dp, & 3002.5765542047793805275935771275_dp, 3004.1465186747561139344739558974_dp, & 3002.5772202993451467910597906620_dp, 3004.1478501678343021592014784567_dp, & 3005.7181475110620391048698925985_dp, 3007.2881128497060192278125353327_dp, & 3005.7188129094221160902184550077_dp, 3007.2894429518261886396626508805_dp, & 3008.8597408159817256524904784691_dp, 3010.4297070214806311567990168101_dp, & 3008.8604055195899500505461431964_dp, 3010.4310357355459079601107331427_dp, & 3012.0013341195427050144042641318_dp, 3013.5713011900898802916090089969_dp, & 3012.0019981298483643498464920652_dp, 3013.5726285189943113078874269925_dp, & 3015.1429274217492242597316697445_dp, 3016.7128953555436558357100818223_dp, & 3015.1435907401970758509071245339_dp, 3016.7142213021722463246439893477_dp, & 3018.2845207226055127752696716280_dp, 3019.8544895178518058410338532110_dp, & 3018.2851833506358025953326785884_dp, 3019.8558140850805571247843547839_dp, & 3021.4261140221157823574197622677_dp, 3022.9960836770241374218063900935_dp, & 3021.4267759611642637974163096806_dp, 3022.9974068677200843137932580461_dp, & 3024.5677073202842273035430009689_dp, 3026.1376778330704169670466738487_dp, & 3024.5683685717821798380493868107_dp, 3026.1389996500916650064501922925_dp, & 3027.7093006171150245027463163795_dp, 3029.2792719860003703517427994413_dp, & 3027.7099611824892722586691048787_dp, 3029.2805924321961328449300318511_dp, & 3030.8508939126123335261041875895_dp, 3032.4208661358236831467154973775_dp, & 3030.8515537932852637552437381958_dp, 3032.4221852140343180167911413978_dp, & 3033.9924872067802967163197963325_dp, 3035.5624602825500008271784882104_dp, & 3033.9931464041698781722952623213_dp, 3035.5637779956070472728517866614_dp, & 3037.1340804996230392768297089477_dp, 3038.7040544261889289800051006698_dp, & 3037.1347390151428404969590736517_dp, 3038.7053707769151439449556550178_dp, & 3040.2756737911446693603561132084_dp, 3041.8456485667500335097105065710_dp, & 3040.2763316262038768530805384230_dp, 3041.8469635579594279636272876586_dp, & 3043.4172670813492781569106018867_dp, 3044.9872427042428408431588484572_dp, & 3043.4179242373527144953481050046_dp, 3044.9885563387407158756182184012_dp, & 3046.5588603702409399812534619877_dp, 3048.1288368386768381330044594443_dp, & 3046.5595168485890818034627155580_dp, 3048.1301491192598208613446076508_dp, & 3049.7004536578237123598123959662_dp, 3051.2704309700614734598762989656_dp, & 3049.7011094599127082763432553086_dp, 3051.2717418995175527522171535333_dp, & 3052.8420469441016361170645689118_dp, 3054.4120250984061560333146530385_dp, & 3052.8427020713233245263677798345_dp, 3054.4133346795147180478640557796_dp, & 3055.9836402290787354613858436633_dp, 3057.5536192237202563914690732982_dp, & 3055.9842946828206622736502629086_dp, 3057.5549274592521199332478015688_dp, & 3059.1252335127590180703710340883_dp, 3060.6952133460131065995664553482_dp, & 3059.1258872944044543403526095504_dp, 3060.6965202387305582956765362212_dp, & 3062.2668267951464751756289753237_dp, 3063.8368074652940004471580839708_dp, & 3062.2674799060744346450316810333_dp, 3063.8381130179508297417107753737_dp, & 3065.4084200762450816470561786304_dp, 3066.9784015815721936441544003969_dp, & 3065.4090725178303381970210806758_dp, 3066.9797057969137276139662090694_dp, & 3068.5500133560587960765928076556_dp, 3070.1199956948569040156561751657_dp, & 3068.5506651296719010908474512970_dp, 3070.1212985756200420078133420518_dp, & 3071.6916066345915608614646823203_dp, 3073.2615898051573116955906990888_dp, & 3071.6922577415988605006810372586_dp, 3073.2628913540705597879747084642_dp, & 3074.8331999118473022869149862590_dp, 3076.4031839124825593191615344766_dp, & 3074.8338503536109546748202660341_dp, 3076.4044841322660646050203931281_dp, & 3077.9747931878299306084293237199_dp, 3079.5447780168417522141202990663_dp, & 3077.9754429657079229302101062453_dp, 3079.5460769102073369117625855946_dp, & 3081.1163864625433401334577420961_dp, 3082.6863721182439585908688860184_dp, & 3081.1170355778895056469939610917_dp, 3082.6876696878951539795498872470_dp, & 3084.2579797359914093026373067919_dp, 3085.8279662166982097314004549065_dp, & 3084.2586281901554442630988580614_dp, 3085.8292624653302899144620858616_dp, & 3087.3995730081780007705187859282_dp, 3088.9695603122135001770874608080_dp, & 3087.4002208025054812688536977567_dp, 3088.9708552425135156734061062253_dp, & 3090.5411662791069614858009734627_dp, 3092.1111544047987879153249214095_dp, & 3090.5418134149393602016403266009_dp, 3092.1124480194455990801138396460_dp, & 3093.6827595487821227710761506360_dp, 3095.2527484944629945650370554586_dp, & 3093.6834060274568256405772000984_dp, 3095.2540407961273048410425494869_dp, & 3096.8243528172073004020901572465_dp, 3098.3943425812150055610553599182_dp, & 3096.8249986400576232012354052186_dp, 3098.3956335725593945611785442003_dp, & 3099.9659460843862946865205161178_dp, 3101.5359366650636703373761278098_dp, & 3099.9665912527414995303868123466_dp, 3101.5372263487426267597448037324_dp, & 3103.1075393503228905422760262271_dp, 3104.6775307460178025093053439516_dp, & 3103.1081838655082023007841291058_dp, 3104.6788191246777568858132396205_dp, & 3106.2491326150208575753212123345_dp, 3107.8191248240861800544988316124_dp, & 3106.2497764783574802059726301978_dp, 3107.8204119003655373338222635998_dp, & 3109.3907258784839501570289915662_dp, 3110.9607188992775454929054594947_dp, & 3109.3913690912890829551333392316_dp, 3110.9620046758067174590003340877_dp, & 3112.5323191407159075010648902699_dp, 3114.1023129716006060656211554362_dp, & 3112.5329617043027612679574403222_dp, 3114.1035974510020435926961445087_dp, & 3115.6739124017204537398061175745_dp, 3117.2439070410640339126614107611_dp, & 3115.6745543173982668695516990338_dp, 3117.2451902259522590576161120728_dp, & 3118.8155056615012980002987754391_dp, 3120.3855011076764662496598973256_dp, & 3118.8161469305753524853746740137_dp, 3120.3867830006581041829698203125_dp, & 3121.9570989200621344797564585742_dp, 3123.5270951714465055435007579691_dp, & 3121.9577395438337718362035024298_dp, 3123.5283757751203163195240634301_dp, & 3125.0986921774066425206034714543_dp, 3126.6686892323827196868920703122_dp, & 3125.0993321571732796331310440644_dp, 3126.6699685493396298545661352936_dp, & 3128.2402854335384866850658637107_dp, 3129.8102832904936421718879236144_dp, & 3128.2409247705936315725931706456_dp, 3129.8115613233167762267770007627_dp, & 3131.3818786884613168293134595017_dp, 3132.9518773457877722623664887225_dp, & 3131.3825173840945843314259887146_dp, 3132.9531540970524839410149819060_dp, & 3134.5234719421787681771560309947_dp, 3136.0934713982735751654714019971_dp, & 3134.5241099976758955619527860189_dp, 3136.0947468705474785830105866047_dp, & 3137.6650651946944613932967408610_dp, 3139.2350654479594822020237254937_dp, & 3137.6657026113373238871004931075_dp, 3139.2363396438024828339731020113_dp, & 3140.8066584460120026561459536809_dp, 3142.3766594948538909759116875905_dp, & 3140.8072952250786288955454534711_dp, 3142.3779324168182164851095703567_dp, & 3143.9482516961349837301984913722_dp, 3145.5182535389651655424653506930_dp & /),(/4,Nmax/))
156,255
76.816733
77
f90
artemide-public
artemide-public-master/src/Tables/BesselZero200.f90
!!!!This is table of zeros of bessel function J0,..,J3 up to 200 !!!! !!!! the table is j0,j1,j2,j3(1-root),j0,j1,j2,j3(2-root) !!!! udated for v1.41 (12.03.2019) (A.Vladimirov) real(dp),dimension(0:3,1:Nmax),parameter::JZero=reshape((/& 2.4048255576957727686216318793265_dp, 3.8317059702075123156144358863082_dp, & 5.1356223018406825563014016901378_dp, 6.3801618959239835062366146419427_dp, & 5.5200781102863106495966041128130_dp, 7.0155866698156187535370499814765_dp, & 8.4172441403998648577836136761580_dp, 9.7610231299816696785453885000862_dp, & 8.6537279129110122169541987126609_dp, 10.173468135062722077185711776776_dp, & 11.619841172149059427094144986755_dp, 13.015200721698434419832684382879_dp, & 11.791534439014281613743044911925_dp, 13.323691936314223032393684126948_dp, & 14.795951782351260746661471320228_dp, 16.223466160318768122228024524950_dp, & 14.930917708487785947762593997389_dp, 16.470630050877632812552460470990_dp, & 17.959819494987826455115142077254_dp, 19.409415226435011553575420295721_dp, & 18.071063967910922543147882975618_dp, 19.615858510468242021125065884138_dp, & 21.116997053021845590962817082798_dp, 22.582729593104442027928009075353_dp, & 21.211636629879258959078393350526_dp, 22.760084380592771898053005152182_dp, & 24.270112313573102609583152428183_dp, 25.748166699294977635022331629115_dp, & 24.352471530749302737057944763179_dp, 25.903672087618382625495855445980_dp, & 27.420573549984557330570488191395_dp, 28.908350780921757858342340445134_dp, & 27.493479132040254795877288234607_dp, 29.046828534916855066647819883532_dp, & 30.569204495516397036604063539306_dp, 32.064852407097709482952251363775_dp, & 30.634606468431975117549578926854_dp, 32.189679910974403626622984104460_dp, & 33.716519509222699921959198425218_dp, 35.218670738610114657374842953082_dp, & 33.775820213573568684238546346715_dp, 35.332307550083865102634479022519_dp, & 36.862856511283809817518162941366_dp, 38.370472434756944364117735272543_dp, & 36.917098353664043979769493063273_dp, 38.474766234771615112052197557717_dp, & 40.008446733478192227261895006566_dp, 41.520719670406775549033549967527_dp, & 40.058425764628239294799307373994_dp, 41.617094212814450885863516805060_dp, & 43.153453778371463269900135114779_dp, 44.669743116617253070620026027512_dp, & 43.199791713176730357524072728743_dp, 44.759318997652821732779352713212_dp, & 46.297996677236919185152545485014_dp, 47.817785691533301888365414155942_dp, & 46.341188371661814018685788879113_dp, 47.901460887185447121274008722508_dp, & 49.442164110416872731070543201950_dp, 50.965029906205183304270065697431_dp, & 49.482609897397817173602761533178_dp, 51.043535183571509468733034633224_dp, & 52.586023506815963631762235503007_dp, 54.111615569821873930296229138608_dp, & 52.624051841114996029251285380392_dp, 54.185553641061320532099966214534_dp, & 55.729627053201144085573014119284_dp, 57.257651604499014080869205598496_dp, & 55.765510755019979311683492773462_dp, 57.327525437901010745090504243751_dp, & 58.873015772612164650109120458626_dp, 60.403224138472121535278996039731_dp, & 58.906983926080942132834406634616_dp, 60.469457845347491559398749808383_dp, & 62.016222359217653701902244080246_dp, 63.548402178567206488006135509057_dp, & 62.048469190227169882852500264651_dp, 63.611356698481232631039762417874_dp, & 65.159273190757797829068965281770_dp, 66.693241667372679460213432049015_dp, & 65.189964800206860440636033742512_dp, 66.753226734098493415305259750042_dp, & 68.302189784183460399289978944662_dp, 69.837788437904339776270219439729_dp, & 68.331469329856798270992303839984_dp, 69.895071837495773969730536435500_dp, & 71.444989866357852114065026538824_dp, 72.982080400432005140350940880054_dp, & 71.472981603593732825063073856130_dp, 73.036895225573834826506117569092_dp, & 74.587688173602402406057514474156_dp, 76.126149184774095573068427472748_dp, & 74.614500643701837883820540469336_dp, 76.178699584641457572852614623535_dp, & 77.730297056978903231600858137201_dp, 79.270021390055860364887771141645_dp, & 77.756025630388055037739371891234_dp, 79.320487175476299391184484872488_dp, & 80.872826946244764614635062206873_dp, 82.413719547267878630106355566440_dp, & 80.897555871137627863772143490873_dp, 82.462259914373556453986610648781_dp, & 84.015286709546167263026969007688_dp, 85.557262868829996929821182055237_dp, & 84.039090776938190157879638347998_dp, 85.604019436350230965949425493380_dp, & 87.157683935203351467159591745092_dp, 88.700667838222059270991158022861_dp, & 87.180629843641153651261805069049_dp, 88.745767144926306903735916434854_dp, & 90.300025154592920389847956637937_dp, 91.843948678147085097922584903141_dp, & 90.322172637210480055717766777628_dp, 91.887504251694985280553622214490_dp, & 93.442316020011125815745154163878_dp, 94.987117725465609446165244167644_dp, & 93.463718781944774171190591543981_dp, 95.029231808044695268050998187174_dp, & 96.584561447783203643969032670587_dp, 98.130185733874888293649043241741_dp, & 96.605267950996268778121617323928_dp, 98.170950730790781973537759160851_dp, & 99.726765734292801706949183732458_dp, 101.27316212007975484359733766047_dp, & 99.746819858680596470279979000135_dp, 101.31266182303873013714105638865_dp, & 102.86893265072788228312581201716_dp, 104.41605516539675324251803335537_dp, & 102.88837425419479459642003427256_dp, 104.45436579128276007136342813961_dp, & 106.01106552096340500241740284879_dp, 107.55887218193252115317370474093_dp, & 106.02993091645161551017691719188_dp, 107.59606325950917218267036427761_dp, & 109.15316728598199715341434725018_dp, 110.70161965039489504918138861441_dp, & 109.17148964980538355206597701275_dp, 110.73775478089921510860865288827_dp, & 112.29524055747167142084675582857_dp, 113.84430333503185636635239771113_dp, & 112.31305028049490962749450612218_dp, 113.87944084759499813488417492843_dp, & 115.43728766266442337825491222667_dp, 116.98692838000925682886566203595_dp, & 115.45461265366693962811775669403_dp, 117.02112189889242502757649460146_dp, & 118.57931068204164170314345284022_dp, 120.12949939063372411801804080652_dp, & 118.59617663087253171562938447524_dp, 120.16279832814900375811940782917_dp, & 121.72131148119620217155159586287_dp, 123.27202050213073457899726797977_dp, & 121.73774208795096296523436348334_dp, 123.30447048863571801676003206877_dp, & 124.86329173788123742704895117889_dp, 126.41449543814765238831277161191_dp, & 124.87930891323294604525912836690_dp, 126.44613869851659569779448049584_dp, & 128.00525296507315884050917189087_dp, 129.55692756072957066323761728614_dp, & 128.02087700600832407976355939230_dp, 129.58780324510399675374141784136_dp, & 131.14719653071777382494964322504_dp, 132.69931991318397587079464043915_dp, & 131.16244627521391460789611499153_dp, 132.72946438850961588677459735175_dp, & 134.28912367470306158692192054100_dp, 135.84167525698768375801650091083_dp, & 134.30401663830546609935289683410_dp, 135.87112236478900059180156821946_dp, & 137.43103552350268765265495857649_dp, 138.98399610368046877046922631908_dp, & 137.44558802028427778778266148333_dp, 139.01277738865970417843354613596_dp, & 140.57293310285488161908524452670_dp, 142.12628474252246251335124863269_dp, & 140.58716035285429654848890334006_dp, 142.15442965585902903270090809976_dp, & 143.71481734877749157675431306544_dp, 145.26854326455769404920935138894_dp, & 143.72873357368973253395071800477_dp, 145.29607934519590723242215085501_dp, & 146.85668911716851279429215974319_dp, 148.41077358361715918552628207145_dp, & 146.87030762579664959413270485825_dp, 148.43772662034223039593927702627_dp, & 149.99854919219959026033487531708_dp, 151.55297745470619425910946713021_dp, & 150.01188245695475749088047297407_dp, 151.57937163140142799278350422223_dp, & 153.14039829367591937514162398332_dp, 154.69515649014854564745980747983_dp, & 153.15345801922789248759162561015_dp, 154.72101451628595352476655565184_dp, & 156.28223708350806285468484002218_dp, 157.83731217380013269173444016131_dp, & 156.29503426853352381954949527314_dp, 157.86265540193029780509466960866_dp, & 159.42406617141824818502551091100_dp, 160.97944587359655862041370180815_dp, & 159.43661116426314632349103791000_dp, 161.00429440536199346389341540909_dp, & 162.56588611998475099193119357346_dp, 164.12155885265792716178798609166_dp, & 162.57818866894667751905980896294_dp, 164.14593163464963540213252677998_dp, & 165.70769744911224760350632309686_dp, 167.26365227914088251029066499668_dp, & 165.71976674795502086669042673820_dp, 167.28756718974408380356484785789_dp, & 168.84950064000293223708446704493_dp, 170.40572723499974079179898675768_dp, & 168.86134536923582568745633745233_dp, 170.42920116322663234774549741975_dp, & 171.99129613869225916262814009258_dp, 173.54778472379510842543776999768_dp, & 172.00292450307820021540043150733_dp, 173.57083364097592863036704086285_dp, & 175.13308435920400147926225509553_dp, 176.68982567766867170379650251274_dp, & 175.14450412190274306537279785910_dp, 176.71246470276375745529773734105_dp, & 178.27486568637160433594225530690_dp, 179.83185096358623431932355491251_dp, & 178.28608420007377068148397419125_dp, 179.85409442278838484508490290633_dp, & 181.41664047836629944316922231606_dp, 182.97386138893704178200809052576_dp, & 181.42766471373105079421219958705_dp, 182.99572287015296608408437309503_dp, & 184.55840906896693470225193679081_dp, 186.11585770656552928487302725475_dp, & 184.56924564063871814111541224792_dp, 186.13735010929550802023984809489_dp, & 187.70017176960179060238592959524_dp, 189.25784061930150760949313492291_dp, & 187.71082696004935978007526572080_dp, 189.27897620037601409322580067878_dp, & 190.84192887118866686315225053587_dp, 192.39981078404616900835795855060_dp, & 190.85240865258152232178079894960_dp, 192.42060119962570542177113155478_dp, & 193.98368064579611618122256984019_dp, 195.54176881546391206282492352567_dp, & 193.99399070010911978994039672749_dp, 195.56222515966258243078293560412_dp, & 197.12542734814578414897129245527_dp, 198.68371528932365343515750007754_dp, & 197.13557308566141473621200268072_dp, 198.70384812977705212611810657899_dp, & 200.26716921697330873188443250775_dp, 201.82565074552785127633895305746_dp, & 200.27715579333241178336208747127_dp, 201.84547015619088230499981743498_dp, & 203.40890647626307544373381162524_dp, 204.96757569086277355982436901628_dp, & 203.41873880819864617124882021532_dp, 204.98709128229234414435873423006_dp, & 206.55063933637026252485108007674_dp, 208.10949060149949118249942978029_dp, & 206.56032211624447365545724492840_dp, 208.12871154885005908148724652235_dp, & 209.69236799504199973243008130056_dp, 211.25139592527156531215171526552_dp, & 209.70190570429407519748244666580_dp, 211.27033099420776661446279140998_dp, & 212.83409263834806770795013143726_dp, 214.39329208375235150073883784403_dp, & 212.84348955994948275074556567747_dp, 214.41194965446196982870027084972_dp, & 215.97581344153035114724030572916_dp, 217.53517947415219253010819975753_dp, & 215.98507367153401315699563788314_dp, 217.55356756362418940178479050986_dp, & 219.11753056977920192962108991282_dp, 220.67705847105346132021825525104_dp, & 219.12665802804056746518913097823_dp, 220.69518475376935974481291028342_dp, & 222.25924417894394581075623230546_dp, 223.81892942799939674987674551727_dp, & 222.26824261908431434128452437947_dp, 223.83680125517172874029155350983_dp, & 225.40095441618395949389559487906_dp, 226.96079267895090843688276538084_dp, & 225.40982743485932989851318199627_dp, 226.97841709642947178848018795482_dp, & 228.54266142056603794772465364330_dp, 230.10264853962397700429726401840_dp, & 228.55141246609881330119784069023_dp, 230.12003230457909864762476955681_dp, & 231.68436532361315119292774653975_dp, 233.24449730871891482942593709843_dp, & 231.69299770403853878097379619250_dp, 233.26164690520061535434630624102_dp, & 234.82606624980914388445040560170_dp, 236.38633926905155372563356498292_dp, & 234.83458314038324101980802326656_dp, 236.40326092251430120867342295121_dp, & 237.96776431706345000072541224276_dp, 239.52817468859536904919545679263_dp, & 237.97616876727566285555756332329_dp, 239.54487437946987058125885716413_dp, & 241.10945963713947035857377502433_dp, 242.67000382144261600854168920639_dp, & 241.11775457726802251499697108991_dp, 242.68648729782870958512982035565_dp, & 244.25115231604988524368994625031_dp, 245.81182690869172771743311116100_dp, & 244.25934056329568255880657617787_dp, 245.82809969823980710755206208514_dp, & 247.39284245442184193652948689308_dp, 248.95364417926749220296021091813_dp, & 247.40092671865282484808794068947_dp, 248.96971160030993716235251663274_dp, & 250.53453014783466193868018651301_dp, 252.09545585067987544224305062167_dp, & 250.54251303696995547044636528300_dp, 252.11132302266859400103494537894_dp, & 253.67621548713245061564203942971_dp, 255.23726212972677943380416775924_dp, & 253.68409951219308100469280850439_dp, 255.25293398302813204908059941444_dp, & 256.81789855871375874445886809100_dp, 258.37906321314550954150070629103_dp, & 256.82568613856441302431773328637_dp, 258.39454449823951876423115058767_dp, & 259.95957944480023759999835817978_dp, 261.52085928821726627105891693651_dp, & 259.96727291060447157306477756920_dp, 261.53615458434406929738025260711_dp, & 263.10125822368604370141033032485_dp, 264.66265053332856663645009330327_dp, & 263.10885982309547069270400257634_dp, 264.67776425662149680975435257908_dp, & 266.24293496996958353340177528394_dp, 267.80443711849313358465678996965_dp, & 266.25044687106588011884095423401_dp, 267.81937352963458097094305971233_dp, & 269.38460975476904015682357830195_dp, 270.94621920583746354719449714936_dp, & 269.39203404977606713817339613835_dp, 270.96098241727072910231536052812_dp, & 272.52628264592299062259364725822_dp, 274.08799695005298768356825189267_dp, & 272.53362135470493145351434896935_dp, 274.10259093278067926475235338893_dp, & 275.66795370817730374678071276906_dp, 277.22977049881747793195092855525_dp, & 275.67520878153745384789779496895_dp, 277.24419908881457199046364002186_dp, & 278.80962300335940055497041545462_dp, 280.37153999318811121615426154559_dp, & 278.81679632615308657846177386448_dp, 280.38580689745559703837918028193_dp, & 281.95129059054086321158311860143_dp, 283.51330556796839111681109960377_dp, & 281.95838398461491985431670967679_dp, 283.52741437025140325871518171186_dp, & 285.09295652618929132895242448108_dp, 286.65506735205093339689430067060_dp, & 285.09997175315956453913058774305_dp, 286.66902151824344316273414799617_dp, & 288.23462086431022615823259687789_dp, 289.79682546873794768600784465162_dp, & 288.24155962818769643811739502072_dp, 289.81062835199440891286756060626_dp, & 291.37628365657989237989547890585_dp, 292.93858003604109035351027729328_dp, & 291.38314760625521224168905006922_dp, 292.95223488161390300372865411839_dp, & 294.51794495246944322395320026470_dp, 296.08033116696222135268663582483_dp, & 294.52473568406495145823317711092_dp, 296.09384111678247474373053592233_dp, & 297.65960479936133674161512741844_dp, 299.22207896975646901834143040219_dp, & 297.66632385845894252404919067485_dp, 299.23544706677414263525740915856_dp, & 300.80126324265841858581554211855_dp, 302.36382354817889005033022619019_dp, & 300.80791212641113477166896885132_dp, 302.37705274047751276923355940137_dp, & 303.94292032588623907510965155034_dp, 305.50556500171590597589821871719_dp, & 303.94950048502058110605777975398_dp, 305.51865814641559429161879469395_dp, & 307.08457609078908911435693374716_dp, 308.64730342580260115335877496016_dp, & 307.09108893150503911477379700033_dp, 308.66026329276440477080676352875_dp, & 310.22623057742020028256958830748_dp, 311.78903891202687987981778232419_dp, & 310.23267746319496095259609304361_dp, 311.80186818737045081251124166656_dp, & 313.36788382422651867843064886724_dp, 314.93077154832140052498881028024_dp, & 313.37426607752784471969024510190_dp, 314.94347283776716245806560024561_dp, & 316.50953586812842958553328723681_dp, 318.07250141914413205502656886887_dp, & 316.51585477204292221847752267426_dp, 318.08507725119035369678887043577_dp, & 319.65118674459478036864693416130_dp, 321.21422860564831214170496507367_dp, & 319.65744354437615994888734721776_dp, 321.22668143459277576398185970052_dp, & 322.79283648771352195915574942034_dp, 324.35595318584252565402859897630_dp, & 322.79903239225555200324754484870_dp, 324.36828539465782473031004693385_dp, & 325.93448513025826458182497801267_dp, 327.49767523474156714770599658189_dp, & 325.94062131349668516737048895576_dp, 327.50988913781246016848946995186_dp, & 329.07613270375102079211694614517_dp, 330.63939482450870050695127519744_dp, & 329.08221030599855803834301990803_dp, 330.65149267023938736694571149975_dp, & 332.21777923852138823260359568620_dp, 333.78111202458988270830513106440_dp, & 332.22379936773963734548991829834_dp, 333.79309599788855160947927876751_dp, & 335.35942476376240559850423015267_dp, 336.92282690184047636867737439636_dp, & 335.36538849677413592094340034522_dp, 336.93469912648798942085392774415_dp, & 338.50106930758329796430299133439_dp, 340.06453952064493695126821197760_dp, & 338.50697769122849792097948562312_dp, 340.07630206155407836000258777784_dp, & 341.64271289705931172041806930062_dp, 343.20624994302992491117877405364_dp, & 341.64856694929807795845225875692_dp, 343.21790480840122389767679916703_dp, & 344.78435555827882477022230381234_dp, 346.34795822877126037729473782213_dp, & 344.79015626924400177897536108638_dp, 346.35950737215101911905619929617_dp, & 347.92599731638790422556306572463_dp, 349.48966443549510792703760407329_dp, & 347.93174564939019700680817750012_dp, 349.50110975774091042174229738227_dp, & 351.06763819563247150710502332862_dp, 352.63136861877375138006984141446_dp, & 351.07333508812058330777196349076_dp, 352.64271196993240001553271133374_dp, & 354.20927821939822340849157197490_dp, 355.77307083221629310316591648917_dp, & 354.21492458387641207232872856146_dp, 355.78431401331881385421278889280_dp, & 357.35091741024844723392702877577_dp, 358.91477112755458888887651923342_dp, & 357.35651413515374641796625372799_dp, 358.92591589233266162486753080935_dp, & 360.49255578995985848905913164480_dp, 362.05646955472470787133981542131_dp, & 360.49810374050107295145694339569_dp, 362.06751761125261357203384974096_dp, & 363.63419337955658072416561799977_dp, 365.19816616194418701612268115169_dp, & 363.63969339851703732311190421565_dp, 365.20911917421011722891474429215_dp, & 366.77583019934237893246938740930_dp, 368.33986099578533132458120847131_dp, & 366.78128310784829615110604419025_dp, 368.35072058519567555365964472364_dp, & 369.91746626893125033676740942249_dp, 371.48155410124479389747028888845_dp, & 369.92287286718747839817743556216_dp, 371.49232184806480651431088109188_dp, & 373.05910160727646940169051482251_dp, 374.62324552180965428990892084295_dp, & 373.06446267527124974901834601149_dp, 374.63392296654370282137777405554_dp, & 376.20073623269817743889384584016_dp, 377.76493529952019905357579498768_dp, & 376.20605253087847396766713604931_dp, 377.77552394423460926299916148267_dp, & 379.34237016290960118475646589816_dp, 380.90662347502959490511140436787_dp, & 379.34764243282846561307989991618_dp, 380.91712478462093394599226955820_dp, & 382.48400341504197918512455591172_dp, 384.04831008766063249381772002414_dp, & 382.48923237997932886044652575980_dp, 384.05872549107210867920755913257_dp, & 385.62563600566826968319774083531_dp, 387.18999517545970718643929948266_dp, & 385.63082237122637751811959420588_dp, 387.20032606684821274663648221367_dp, & 388.76726795082570894197088107353_dp, 390.33167877524819256876920441226_dp, & 388.77241240550063164743456431331_dp, 390.34192651510437340038193225809_dp, & 391.90889926603728451174062113900_dp, 393.47336092267135241617886899006_dp, & 391.91400248176738648721140418523_dp, 393.48352683889495555218018693149_dp, & 395.05052996633218384872502326683_dp, 396.61504165224492764688113144802_dp, & 395.05559259902484965816206392402_dp, 396.62512704117755235143726453709_dp, & 398.19216006626527487785683778802_dp, 399.75672099739952618703668555202_dp, & 398.19718275630284287644780017479_dp, 399.76672712481678760294211364755_dp, & 401.33378957993567154847773178575_dp, 402.89839899052293569472741556235_dp, & 401.33877295266156464175501052545_dp, 402.90832709258794029418329572893_dp, & 404.47541852100443413511327597731_dp, 406.04007566300047166370677811200_dp, & 404.48036318719041058487775971258_dp, 406.04992694718040086653528484852_dp, & 407.61704690271145096764729227479_dp, 409.18175104525346651499904999973_dp, & 407.62195345900684836418159264619_dp, 409.19152669120096827284260411609_dp, & 410.75867473789154541854693950495_dp, 412.32342516677599884573709311686_dp, & 410.76354376725534419064153695412_dp, 412.33312632717699631276827318737_dp, & 413.90030203898984931328495298017_dp, 415.46509805616995600423834057144_dp, & 413.90513411110633823846514189925_dp, 415.47472585755939722361932706783_dp, & 417.04192881807648144905963501712_dp, 418.60676974117851756531862631931_dp, & 417.04672448975526636360825131454_dp, 418.61632528472551002540163342770_dp, & 420.18355508686056759283277138241_dp, 421.74844024871814206002769247514_dp, & 420.18831490242162570666570138590_dp, 421.75792461098184067200467198691_dp, & 423.32518085670363617019853647750_dp, 424.89010960490913444161057157190_dp, & 423.32990534834808190049664257125_dp, 424.89952383856668064330030883474_dp, & 426.46680613863242184027482488806_dp, 428.03177783510486721904833423854_dp, & 426.47149582679961573728320348173_dp, 428.04112296965261022337552890653_dp, & 429.60843094335110726820061284128_dp, 431.17344496391972393754762266650_dp, & 429.61308633706270727521922826792_dp, 431.18272200634889234610011637412_dp, & 432.75005528125303164629352377238_dp, 434.31511101525582971023603401203_dp, & 432.75467687844455548232461790851_dp, 434.32432095070376254890865583875_dp, & 435.89167916243189286859933253537_dp, 437.45677601232862978719124824109_dp, & 435.89626745027233162457130126956_dp, 437.46591980470662025735018824749_dp, & 439.03330259669246872327664084080_dp, 440.59843997769137366845763131468_dp, & 439.03785805189246470813345549591_dp, 440.60751857029012632506008799161_dp, & 442.17492559356088102547115569463_dp, 443.74010293325855900998445068373_dp, & 442.17944868266995738163914409412_dp, 443.74911724933221147489105840256_dp, & 445.31654816229442526309539590722_dp, 446.88176490032838651986164357590_dp, & 445.32103934198773079426595862781_dp, 446.89071584365800002566922874413_dp, & 448.45817031189098706282730188682_dp, 450.02342589960427418243682855289_dp, & 448.46263002924599698981678026028_dp, 450.03231435504165304418529595956_dp, & 451.59979205109806559775205000260_dp, 453.16508595121547646657355018211_dp, & 451.60422074386165749592797226988_dp, 453.17391278520813483245154659234_dp, & 454.74141338842142294592245294531_dp, 456.30674507473685165916550790880_dp, & 454.74581148526772684166574391328_dp, 456.31551113583490644490165392626_dp, & 457.88303433213337736564483205898_dp, 459.44840328920781810468928996469_dp, & 457.88740225291277980629414575823_dp, 459.45710940855354972810871473972_dp, & 461.02465489028075747382865618541_dp, 462.59006061315053791554271800584_dp, & 461.02899304626042126726195909105_dp, 462.59870760495132518584807147061_dp, & 464.16627507069253339393753294595_dp, 465.73171706458736463644161211600_dp, & 464.17058386478877757674420737417_dp, 465.74030572657266679410184004945_dp, & 467.30789488098714007593467338116_dp, 468.87337266105758939021663885188_dp, & 467.31217470799000845365438654062_dp, 468.88190377492061672311992174413_dp, & 470.44951432857950717841079628673_dp, 472.01502741963351819360632458211_dp, & 470.45376557536983843216339407594_dp, 472.02350175145820276620231462156_dp, & 473.59113342068780913937090565927_dp, 475.15668135693591140233269851166_dp, & 473.59535646644710695865007811949_dp, 475.16509965760976112678647418229_dp, & 476.73275216433994834374256759857_dp, 478.29833448914881461768281655744_dp, & 476.73694738075333627687923248126_dp, 478.30669749476220707609594260286_dp, & 479.87437056637978361958650334904_dp, 481.43998683203380885532923144171_dp, & 479.87853831783231628625330535432_dp, 481.44829526426625586246128036777_dp, & 483.01598863347311565848697575205_dp, 484.58163840094370633500795217885_dp, & 483.02012927723970560039750756503_dp, 484.58989296743759612993103455921_dp, & 486.15760637211344035611679476316_dp, 487.72328921083571689117542417820_dp, & 486.16172025854264807328480056416_dp, 487.73149060555801798745619105586_dp, & 489.29922378862748050413268319910_dp, 490.86493927628410872453387646830_dp, & 489.30331126131940409774578087143_dp, 490.87308817987649776029810792137_dp, & 492.44084088918050573215093578311_dp, 494.00658861149238600736886244892_dp, & 492.44490228515899601668600916307_dp, 494.01468569161024135195118921542_dp, & 495.58245767978145009652462015859_dp, 497.14823723030500471735191605723_dp, & 495.58649332966086702078684377096_dp, 497.15628314194568804739102719151_dp, & 498.72407416628783623907834073729_dp, 500.28988514621864700051293358375_dp, & 498.72808439443455293802282359755_dp, 500.29788053203947649648729923581_dp, & 501.86569035441051459207292941869_dp, 503.43153237239307335046520579454_dp, & 501.86967547909936635010781928003_dp, 503.43947786301937452961457396779_dp, & 505.00730624971822568381039884347_dp, 506.57317892166157093392901722051_dp, & 505.01126658328409249909412547840_dp, 506.58107513598517437553303026734_dp, & 508.14892185764199320090204692967_dp, 509.71482480654101548865919843997_dp, & 508.15285770662669647389647235679_dp, 509.72267235200955477419631233361_dp, & 511.29053718347935508686725969205_dp, 512.85647003924156336578485257014_dp, & 511.29444884877404119159269543381_dp, 512.86426951213891140399684269620_dp, & 514.43215223239843960106175331363_dp, 515.99811463167598948128047976195_dp, & 514.43604000938161571205416906272_dp, 516.00586661739415697382005362706_dp, & 517.57376700944189292569600445745_dp, 519.13975859546868617797377737599_dp, & 517.57763118811327344686574343389_dp, 519.14746366877149226490563227176_dp, & 520.71538151953066459072506062518_dp, 522.28140194196433727751087638128_dp, & 520.71922238464097984468493957250_dp, 522.28906066724314934567951059920_dp, & 523.85699576746765668557476500276_dp, 525.42304468223628091857310212258_dp, & 523.86081359864456915523651010798_dp, 525.43065761375810812421336904650_dp, & 526.99860975794124254199344868463_dp, 528.56468682709457413106055820725_dp, & 527.00240482981150989310934034999_dp, 528.57225450924278734759109766163_dp, & 530.14022349552866030282581745422_dp, 531.70632838709377148376712491865_dp, & 530.14399607783667864048177529477_dp, 531.71385135460171110502905899327_dp, & 533.28183698469928653630255862275_dp, 534.84796937254042956324861178604_dp, & 533.28558734242214184490841475993_dp, 534.85544815071815184193615858403_dp, & 536.42345022981779481368821541602_dp, 537.98960979350034849224037321966_dp, & 536.42717862327694528441198256460_dp, 537.99704489845475084504879742006_dp, & 539.56506323514720393904782613463_dp, 541.13124965980556117534299988932_dp, & 539.56876992011691088739023694450_dp, 541.13864159865411711418323790003_dp, & 542.70667600485182030274628744461_dp, 544.27288898106108046610743291827_dp, & 542.71036123266444060931891545414_dp, 544.28023825213940549387186281104_dp, & 545.84828854300007862439639564009_dp, 547.41452776665141398156135080503_dp, & 545.85195256064832708195317202468_dp, 547.42183485971487489805730510754_dp, & 548.98990085356728515567831289652_dp, 550.55616602574685584617176312320_dp, & 548.99354390380357076374475894474_dp, 550.56343142216642742298487896041_dp, & 552.13151294043826722816135708667_dp, 553.69780376730956422587006042251_dp, & 552.13513526187120333254054012990_dp, 553.70502794026212910734232974018_dp, & 555.27312480740993285540264088154_dp, 556.83944100009943311279565240274_dp, & 555.27672663459811707334749969882_dp, 556.84662441475271306443707221683_dp, & 558.41473645819374393164532763571_dp, 559.98107773267976644164209619733_dp, & 558.41831802173690002507560380059_dp, 559.98822084637206567867199386789_dp, & 561.55634789641810641089393752878_dp, 563.12271397342276225778828848423_dp, & 561.55990942304567666073587936129_dp, 563.12981723583769652768506436366_dp, & 564.69795912563068069953752647869_dp, 566.26434973051481431470867214230_dp, & 564.70150083828795388560805507539_dp, 566.27141358385119266216480261678_dp, & 567.83957014930061535258443632037_dp, 569.40598501196163815248652619987_dp, & 567.84309226723247214742933517053_dp, 569.41300989109865784745799791542_dp, & 570.98118097082070702755202697267_dp, 572.54761982559322839966930555602_dp, & 570.98468370965306146172084152242_dp, 572.55460615825113734456798730395_dp, & 574.12279159350948952073353876413_dp, 575.68925417906865374632678587594_dp, & 574.12627516532850216398680588732_dp, 575.69620238596502878292608385656_dp, & 577.26440202061325458757740206936_dp, 578.83088807988069575617598081289_dp, & 577.26786663404239020871801572242_dp, 578.83779857488247965333474410491_dp, & 580.40601225530800713191902746592_dp, 581.97252153536033741924498884399_dp, & 580.40945811558300684292816220180_dp, 581.97939472563177192666226917909_dp, & 583.54762230070135723747879494646_dp, 585.11415455268110709303051582553_dp, & 583.55104960974319248937110251939_dp, 585.12099083882769428215269157557_dp, & 586.68923215983435140907903922404_dp, 588.25578713886328323877315213745_dp, & 586.69264111632022468164885924335_dp, 588.26258691507190240854212142507_dp, & 589.83084183568324529015151090910_dp, 591.39741930077796512968309348244_dp, & 589.83423263511569990014348104066_dp, 591.40418295495326782148876714716_dp, & 592.97245133116122002703594761214_dp, 594.53905104515101448908705503353_dp, & 592.97582416593541916410861541134_dp, 594.54577895904821562207588261377_dp, & 596.11406064912004435905648494630_dp, 597.68068237856687280796007768572_dp, & 596.11741570858927724135568942286_dp, 597.68737492792105160328582301949_dp, & 599.25566979235168442616676626069_dp, 600.82231330747225889261225256994_dp, & 599.25900726289115534278087885822_dp, 600.82897086212427909432284117923_dp, & 602.39727876358986320285156913324_dp, 603.96394383817975100390957414879_dp, & 602.40059882865881717451757647370_dp, 603.97056676219890591643850490212_dp, & 605.53888756551157138775020635397_dp, 607.10557397687125776883871547376_dp, & 605.54219040571380822577899659059_dp, 607.11216262867474180844543296837_dp, & 608.68049620073853150292458616842_dp, 610.24720372960138187302331206177_dp, & 608.68378199388135817549022304874_dp, 610.25375846207068666535353545962_dp, & 611.82210467183861688464365148236_dp, 613.38883310230068037853574586897_dp, & 611.82537359299028630561101379444_dp, 613.39535426289500991949139851409_dp, & 614.96371298132722717881760122762_dp, 616.53046210077882535461886741812_dp, & 614.96696520287290981363190358388_dp, 616.53695003164562138004922610462_dp, & 618.10532113166862188862144217887_dp, 619.67209073072766835935457663156_dp, & 618.10855682336495492109781748806_dp, 619.67854576881033383416612648018_dp, & 621.24692912527721345923900638066_dp, 622.81371899772421216752989457500_dp, & 621.25014845430547067918611895253_dp, 622.82014147486711770045260801923_dp, & 624.38853696451882132488537974688_dp, 625.95534690723349300361521432272_dp, & 624.39174009553674537634977748250_dp, 625.96173715028434801415973388679_dp, & 627.53014465171188828618577586881_dp, 629.09697446461137640856166265604_dp, & 627.53333174690422545684061172594_dp, 629.10333279552104401205188622690_dp, & 630.67175218912866053146808838837_dp, 632.23860167510726974474038952138_dp& /),(/4,Nmax/))
31,452
76.090686
77
f90
artemide-public
artemide-public-master/src/Tables/G7K15.f90
!!! parameters for Gauss-Kronrod rule G7-K15 real(dp), parameter, dimension(1:7) :: Xi_g7 = & (/-0.949107912342759_dp,-0.741531185599394_dp,-0.405845151377397_dp,& 0._dp,& 0.405845151377397_dp,0.741531185599394_dp,0.949107912342759_dp/) real(dp), parameter, dimension(1:15) :: Wi_g7 = & (/0._dp,0.129484966168870_dp,0._dp,& 0.279705391489277_dp,0._dp,0.381830050505119_dp,& 0._dp,0.417959183673469_dp,0._dp,& 0.381830050505119_dp,0._dp,0.279705391489277_dp,& 0._dp,0.129484966168870_dp,0._dp/) real(dp), parameter, dimension(1:7) :: Wi_g77 = & (/0.129484966168870_dp,0.279705391489277_dp,0.381830050505119_dp,& 0.417959183673469_dp,& 0.381830050505119_dp,0.279705391489277_dp,0.129484966168870_dp/) real(dp), parameter, dimension(1:15) :: Xi_k15 = & (/-0.991455371120813_dp,-0.949107912342759_dp,-0.864864423359769_dp,& -0.741531185599394_dp,-0.586087235467691_dp,-0.405845151377397_dp,& -0.207784955007898_dp,0._dp,0.207784955007898_dp,& 0.405845151377397_dp,0.586087235467691_dp,0.741531185599394_dp,& 0.864864423359769_dp,0.949107912342759_dp,0.991455371120813_dp/) real(dp), parameter, dimension(1:15) :: Wi_k15 = & (/0.022935322010529_dp,0.063092092629979_dp,0.104790010322250_dp,& 0.140653259715525_dp,0.169004726639267_dp,0.190350578064785_dp,& 0.204432940075298_dp,0.209482141084728_dp,0.204432940075298_dp,& 0.190350578064785_dp,0.169004726639267_dp,0.140653259715525_dp,& 0.104790010322250_dp,0.063092092629979_dp,0.022935322010529_dp/)
1,513
46.3125
71
f90
null
mtenv-main/.pre-commit-config.yaml
repos: - repo: https://github.com/psf/black rev: stable hooks: - id: black language_version: python3.6 - repo: https://gitlab.com/pycqa/flake8 rev: 3.7.9 hooks: - id: flake8 additional_dependencies: [-e, "git+git://github.com/pycqa/pyflakes.git@1911c20#egg=pyflakes"] - repo: https://github.com/pre-commit/mirrors-mypy rev: v0.761 hooks: - id: mypy args: [--strict] exclude: noxfile.py exclude: setup.py
495
21.545455
101
yaml
null
mtenv-main/.readthedocs.yaml
# .readthedocs.yml # Read the Docs configuration file # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details # Required version: 2 # Build documentation in the docs/ directory with Sphinx sphinx: configuration: docs_src/source/conf.py # Optionally build your docs in additional formats such as PDF formats: - pdf # Optionally set the version of Python and requirements required to build your docs python: version: 3.8 install: - requirements: requirements/docs.txt
504
24.25
83
yaml
null
mtenv-main/README.md
[![CircleCI](https://circleci.com/gh/facebookresearch/mtenv.svg?style=svg&circle-token=d507c3b95e80c67d6d4daf2d43785df654af36d1)](https://circleci.com/gh/facebookresearch/mtenv) ![PyPI - License](https://img.shields.io/pypi/l/mtenv) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mtenv) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![Zulip Chat](https://img.shields.io/badge/zulip-join_chat-brightgreen.svg)](https://mtenv.zulipchat.com) # MTEnv MultiTask Environments for Reinforcement Learning. ## Contents 1. [Introduction](#Introduction) 2. [Installation](#Installation) 3. [Usage](#Usage) 4. [Documentation](#Documentation) 5. [Contributing to MTEnv](#Contributing-to-MTEnv) 6. [Community](#Community) 7. [Acknowledgements](#Acknowledgements) ## Introduction MTEnv is a library to interface with environments for multi-task reinforcement learning. It has two main components: * A core API/interface that extends the [gym interface](https://gym.openai.com/) and adds first-class support for multi-task RL. * A [collection of environments](https://mtenv.readthedocs.io/en/latest/pages/envs/supported.html) that implement the API. Together, these two components should provide a standard interface for multi-task RL environments and make it easier to reuse components and tools across environments. You can read more about the difference between `MTEnv` and single-task environments [here.](https://mtenv.readthedocs.io/en/latest/pages/readme.html#multitask-observation) ### List of publications & submissions using MTEnv (please create a pull request to add the missing entries): * [Learning Adaptive Exploration Strategies in Dynamic Environments Through Informed Policy Regularization](https://arxiv.org/abs/2005.02934) * [Learning Robust State Abstractions for Hidden-Parameter Block MDPs](https://arxiv.org/abs/2007.07206) * [Multi-Task Reinforcement Learning with Context-based Representations](https://arxiv.org/abs/2102.06177) ### License * MTEnv uses [MIT License](https://github.com/facebookresearch/mtenv/blob/main/LICENSE). * [Terms of Use](https://opensource.facebook.com/legal/terms) * [Privacy Policy](https://opensource.facebook.com/legal/privacy) ### Citing MTEnv If you use MTEnv in your research, please use the following BibTeX entry: ``` @Misc{Sodhani2021MTEnv, author = {Shagun Sodhani and Ludovic Denoyer and Pierre-Alexandre Kamienny and Olivier Delalleau}, title = {MTEnv - Environment interface for mulit-task reinforcement learning}, howpublished = {Github}, year = {2021}, url = {https://github.com/facebookresearch/mtenv} } ``` ## Installation MTEnv has two components - a core API and environments that implement the API. The **Core API** can be installed via `pip install mtenv` or `pip install git+https://github.com/facebookresearch/mtenv.git@main#egg=mtenv` The **list of environments**, that implement the API, is available [here](https://mtenv.readthedocs.io/en/latest/pages/envs/supported.html). Any of these environments can be installed via `pip install git+https://github.com/facebookresearch/mtenv.git@main#egg="mtenv[env_name]"`. For example, the `MetaWorld` environment can be installed via `pip install git+https://github.com/facebookresearch/mtenv.git@main#egg="mtenv[metaworld]"`. All the environments can be installed at once using `pip install git+https://github.com/facebookresearch/mtenv.git@main#egg="mtenv[all]"`. However, note that some environments may have incompatible dependencies. MTEnv can also be installed from the source by first cloning the repo (`git clone [email protected]:facebookresearch/mtenv.git`), *cding* into the directory `cd mtenv`, and then using the pip commands as described above. For example, `pip install mtenv` to install the core API, and `pip install "mtenv[env_name]"` to install a particular environment. ## Usage MTEnv provides an interface very similar to the standard gym environments. One key difference between multi-task environments (that implement the MTEnv interface) and single-task environments is in terms of observation that they return. ### MultiTask Observation The multi-task environments return a dictionary as the observation. This dictionary has two keys: (i) `env_obs`, which maps to the observation from the environment (i.e., the observation that a single task environments return), and (ii) `task_obs`, which maps to the task-specific information from the environment. In the simplest case, `task_obs` can be an integer denoting the task index. In other cases, `task_obs` can provide richer information. ``` from mtenv import make env = make("MT-MetaWorld-MT10-v0") obs = env.reset() print(obs) # {'env_obs': array([-0.03265039, 0.51487777, 0.2368754 , -0.06968209, 0.6235982 , # 0.01492813, 0. , 0. , 0. , 0.03933976, # 0.89743189, 0.01492813]), 'task_obs': 1} action = env.action_space.sample() print(action) # array([-0.76422 , -0.15384133, 0.74575615, -0.11724994], dtype=float32) obs, reward, done, info = env.step(action) print(obs) # {'env_obs': array([-0.02583682, 0.54065546, 0.22773503, -0.06968209, 0.6235982 , # 0.01494118, 0. , 0. , 0. , 0.03933976, # 0.89743189, 0.01492813]), 'task_obs': 1} ``` ## Documentation [https://mtenv.readthedocs.io](https://mtenv.readthedocs.io) ## Contributing to MTEnv There are several ways to contribute to MTEnv. 1. Use MTEnv in your research. 2. Contribute a new environment. We support [many environments](https://mtenv.readthedocs.io/en/latest/pages/envs/supported.html) via MTEnv and are looking forward to adding more environments. Contributors will be added as authors of the library. You can learn more about the workflow of adding an environment [here.](https://mtenv.readthedocs.io/en/latest/pages/envs/create.html) 3. Check out the [good-first-issues](https://github.com/facebookresearch/mtenv/pulls?q=is%3Apr+is%3Aopen+label%3A%22good+first+issue%22) on GitHub and contribute to fixing those issues. 4. Check out additional details [here](https://github.com/facebookresearch/mtenv/blob/main/.github/CONTRIBUTING.md). ## Community Ask questions in the chat or github issues: * [Chat](https://mtenv.zulipchat.com) * [Issues](https://github.com/facebookresearch/mtenv/issues) ## Acknowledgements * Project file pre-commit, mypy config, towncrier config, circleci etc are based on same files from [Hydra](https://github.com/facebookresearch/hydra).
6,559
49.461538
449
md
null
mtenv-main/noxfile.py
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # type: ignore import base64 import os from pathlib import Path from typing import List, Set import nox from nox.sessions import Session DEFAULT_PYTHON_VERSIONS = ["3.6", "3.7", "3.8", "3.9"] PYTHON_VERSIONS = os.environ.get( "NOX_PYTHON_VERSIONS", ",".join(DEFAULT_PYTHON_VERSIONS) ).split(",") def setup_env(session: Session, name: str) -> None: env = {} if name in ["metaworld"]: key = "CIRCLECI_MJKEY" if key in os.environ: # job is running in CI env[ "LD_LIBRARY_PATH" ] = "$LD_LIBRARY_PATH:/home/circleci/.mujoco/mujoco200/bin" session.install(f".[{name}]", env=env) def setup_mtenv(session: Session) -> None: key = "CIRCLECI_MJKEY" if key in os.environ: # job is running in CI mjkey = base64.b64decode(os.environ[key]).decode("utf-8") mjkey_path = "/home/circleci/.mujoco/mjkey.txt" with open(mjkey_path, "w") as f: # even if the mjkey exists, we can safely overwrite it. for line in mjkey: f.write(line) session.install("--upgrade", "setuptools", "pip") session.install(".[dev]") def get_core_paths(root: str) -> List[str]: """Return all the files/directories that are part of core package. In practice, it just excludes the directories in env module""" paths = [] for _path in Path(root).iterdir(): if _path.stem == "envs": for _env_path in _path.iterdir(): if _env_path.is_file(): paths.append(str(_env_path)) else: paths.append(str(_path)) return paths class EnvSetup: def __init__( self, name: str, setup_path: Path, supported_python_versions: Set[str] ) -> None: self.name = name self.setup_path = str(setup_path) self.path = str(setup_path.parent) self.supported_python_versions = supported_python_versions def parse_setup_file(session: Session, setup_path: Path) -> EnvSetup: command = ["python", str(setup_path), "--name", "--classifiers"] classifiers = session.run(*command, silent=True).splitlines() name = classifiers[0] python_version_string = "Programming Language :: Python :: " supported_python_versions = { stmt.replace(python_version_string, "") for stmt in classifiers[1:] if python_version_string in stmt } return EnvSetup( name=name, setup_path=setup_path, supported_python_versions=supported_python_versions, ) def get_all_envsetups(session: Session) -> List[EnvSetup]: return [ parse_setup_file(session=session, setup_path=setup_path) for setup_path in Path("mtenv/envs").glob("**/setup.py") ] def get_all_env_setup_paths_as_nox_params(): return [ nox.param(setup_path, id=setup_path.parent.stem) for setup_path in Path("mtenv/envs").glob("**/setup.py") ] def get_supported_envsetups(session: Session) -> List[EnvSetup]: """Get the list of EnvSetups that can run in a given session.""" return [ env_setup for env_setup in get_all_envsetups(session=session) if session.python in env_setup.supported_python_versions ] def get_supported_env_paths(session: Session) -> List[str]: """Get the list of env_paths that can run in a given session.""" return [env_setup.path for env_setup in get_supported_envsetups(session=session)] @nox.session(python=PYTHON_VERSIONS) def lint(session: Session) -> None: setup_mtenv(session=session) for _path in ( get_core_paths(root="mtenv") + get_core_paths(root="tests") + get_supported_env_paths(session=session) ): session.run("black", "--check", _path) session.run("flake8", _path) @nox.session(python=PYTHON_VERSIONS) def mypy(session: Session) -> None: setup_mtenv(session=session) for _path in get_core_paths(root="mtenv"): session.run("mypy", "--strict", _path) for envsetup in get_supported_envsetups(session=session): setup_env(session=session, name=envsetup.name) session.run("mypy", envsetup.path) @nox.session(python=PYTHON_VERSIONS) def test_wrappers(session) -> None: setup_mtenv(session=session) session.run("pytest", "tests/wrappers") @nox.session(python=PYTHON_VERSIONS) def test_examples(session) -> None: setup_mtenv(session=session) session.run("pytest", "tests/examples") @nox.session(python=PYTHON_VERSIONS) @nox.parametrize("env_setup_path", get_all_env_setup_paths_as_nox_params()) def test_envs(session, env_setup_path) -> None: setup_mtenv(session=session) envsetup = parse_setup_file(session=session, setup_path=env_setup_path) if session.python not in envsetup.supported_python_versions: print(f"Python {session.python} is not supported by {envsetup.name}") return setup_env(session=session, name=envsetup.name) env = {"NOX_MTENV_ENV_PATH": envsetup.path} command_for_headless_rendering = [ "xvfb-run", "-a", "-s", "-screen 0 1024x768x24 -ac +extension GLX +render -noreset", ] commands = [] key = "CIRCLECI_MJKEY" if key in os.environ and envsetup.name in ["metaworld"]: env["LD_LIBRARY_PATH"] = "$LD_LIBRARY_PATH:/home/circleci/.mujoco/mujoco200/bin" if envsetup.name.startswith("MT-HiPBMDP"): env["PYTHONPATH"] = "mtenv/envs/hipbmdp/local_dm_control_suite" if envsetup.name in ["hipbmdp", "mpte"]: commands = commands + command_for_headless_rendering commands = commands + ["pytest", "tests/envs"] session.run(*commands, env=env)
5,746
31.653409
88
py
null
mtenv-main/setup.py
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # type: ignore import codecs import os.path import subprocess from pathlib import Path import setuptools def read(rel_path): here = os.path.abspath(os.path.dirname(__file__)) with codecs.open(os.path.join(here, rel_path), "r") as fp: return fp.read() def get_version(rel_path): for line in read(rel_path).splitlines(): if line.startswith("__version__"): delim = '"' if '"' in line else "'" return line.split(delim)[1] raise RuntimeError("Unable to find version string.") def parse_dependency(filepath): dep_list = [] for dep in open(filepath).read().splitlines(): if dep.startswith("#"): continue key = "#egg=" if key in dep: git_link, egg_name = dep.split(key) dep = f"{egg_name} @ {git_link}" dep_list.append(dep) return dep_list base_requirements = parse_dependency("requirements/base.txt") dev_requirements = base_requirements + parse_dependency("requirements/dev.txt") extras_require = {} for setup_path in Path("mtenv/envs").glob("**/setup.py"): env_path = setup_path.parent env_name = ( subprocess.run(["python", setup_path, "--name"], stdout=subprocess.PIPE) .stdout.decode() .strip() ) extras_require[env_name] = base_requirements + parse_dependency( f"{str(env_path)}/requirements.txt" ) extras_require["all"] = list( set([dep for requirements in extras_require.values() for dep in requirements]) ) extras_require["dev"] = dev_requirements with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="mtenv", version=get_version("mtenv/__init__.py"), author="Shagun Sodhani, Ludovic Denoyer, Pierre-Alexandre Kamienny, Olivier Delalleau", author_email="[email protected], [email protected], [email protected], [email protected]", description="MTEnv: MultiTask Environments for Reinforcement Learning", long_description=open("README.md").read(), long_description_content_type="text/markdown", install_requires=base_requirements, url="https://github.com/facbookresearch/mtenv", packages=setuptools.find_packages( exclude=["*.tests", "*.tests.*", "tests.*", "tests", "docs", "docsrc"] ), classifiers=[ "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", ], python_requires=">=3.6", extras_require=extras_require, )
2,743
30.54023
98
py
null
mtenv-main/.circleci/config.yml
# Python CircleCI 2.0 configuration file # # Check https://circleci.com/docs/2.0/language-python/ for more details # version: 2.1 jobs: # Linux py36_linux: docker: - image: circleci/python:3.6 steps: - checkout - run: name: "Mujoco setup" command: | wget https://www.roboti.us/download/mujoco200_linux.zip unzip mujoco200_linux.zip -d ~/.mujoco cp -r ~/.mujoco/mujoco200_linux ~/.mujoco/mujoco200 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/circleci/.mujoco/mujoco200_linux/bin sudo apt install -y libosmesa6-dev libgl1-mesa-glx libglfw3 libglew-dev libglfw3-dev patchelf - run: name: "Preparing environment" command: | sudo apt-get install -y expect sudo pip install nox - run: name: "Testing mtenv" command: | export NOX_PYTHON_VERSIONS=3.6 pip install nox python3 -m nox py37_linux: docker: - image: circleci/python:3.7 steps: - checkout - run: name: "Mujoco setup" command: | wget https://www.roboti.us/download/mujoco200_linux.zip unzip mujoco200_linux.zip -d ~/.mujoco cp -r ~/.mujoco/mujoco200_linux ~/.mujoco/mujoco200 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/circleci/.mujoco/mujoco200_linux/bin sudo apt install -y libosmesa6-dev libgl1-mesa-glx libglfw3 libglew-dev libglfw3-dev patchelf - run: name: "Preparing environment" command: | sudo apt-get install -y expect sudo pip install nox - run: name: "Testing mtenv" command: | export NOX_PYTHON_VERSIONS=3.7 pip install nox python3 -m nox py38_linux: docker: - image: circleci/python:3.8 steps: - checkout - run: name: "Mujoco setup" command: | wget https://www.roboti.us/download/mujoco200_linux.zip unzip mujoco200_linux.zip -d ~/.mujoco cp -r ~/.mujoco/mujoco200_linux ~/.mujoco/mujoco200 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/circleci/.mujoco/mujoco200_linux/bin sudo apt install -y libosmesa6-dev libgl1-mesa-glx libglfw3 libglew-dev libglfw3-dev patchelf - run: name: "Preparing environment" command: | sudo apt-get install -y expect sudo pip install nox - run: name: "Testing mtenv" command: | export NOX_PYTHON_VERSIONS=3.8 pip install nox python3 -m nox py39_linux: docker: - image: circleci/python:3.9 steps: - checkout - run: name: "Mujoco setup" command: | wget https://www.roboti.us/download/mujoco200_linux.zip unzip mujoco200_linux.zip -d ~/.mujoco cp -r ~/.mujoco/mujoco200_linux ~/.mujoco/mujoco200 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/circleci/.mujoco/mujoco200_linux/bin sudo apt install -y libosmesa6-dev libgl1-mesa-glx libglfw3 libglew-dev libglfw3-dev patchelf - run: name: "Preparing environment" command: | sudo apt-get install -y expect sudo pip install nox - run: name: "Testing mtenv" command: | export NOX_PYTHON_VERSIONS=3.9 pip install nox python3 -m nox workflows: version: 2.0 build: jobs: - py36_linux - py37_linux - py38_linux - py39_linux
3,706
30.683761
105
yml
null
mtenv-main/.github/CODE_OF_CONDUCT.md
# Open Source Code of Conduct ## Our Pledge In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to make participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation. ## Our Standards Examples of behavior that contributes to creating a positive environment include: Using welcoming and inclusive language Being respectful of differing viewpoints and experiences Gracefully accepting constructive criticism Focusing on what is best for the community Showing empathy towards other community members Examples of unacceptable behavior by participants include: The use of sexualized language or imagery and unwelcome sexual attention or advances Trolling, insulting/derogatory comments, and personal or political attacks Public or private harassment Publishing others’ private information, such as a physical or electronic address, without explicit permission Other conduct which could reasonably be considered inappropriate in a professional setting ## Our Responsibilities Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. ## Scope This Code of Conduct applies within all project spaces, and it also applies when an individual is representing the project or its community in public spaces. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. ## Enforcement Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project’s leadership. ## Attribution This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html [homepage]: https://www.contributor-covenant.org
3,231
70.822222
463
md
null
mtenv-main/.github/CONTRIBUTING.md
# Contributing to MTEnv We are glad that you want to contribute to MTEnv. ## Local Setup Follow these instructions to setup MTEnv locally: * Clone locally - `git clone [email protected]:facebookresearch/mtenv.git`. * *cd* into the directory - `cd mtenv`. * Install MTEnv in the dev mode - `pip install -e ".[dev]"` * Tests can be run locally using `nox`. The code is linted using: * `black` * `flake8` * `mypy` * Install pre-commit hooks - `pre-commit install`. It will execute some of the tests when you commit the code. You can disable it by adding the "-n" flag to git command. For example, `git commit -m <commit_message> -n`. ### Documentation We use [Sphinx](https://www.sphinx-doc.org/en/master/) to build the documentation. Follow the steps to build/update the documentation locally. * rm -rf docs/* * rm -rf docs_src/source/pages/api * rm -rf docs_src/build * sphinx-apidoc -o docs_src/source/pages/api mtenv * cd docs_src * make html * cd .. * cp -r docs_src/build/html/* docs/ Or run all the commands at once: `rm -rf docs/* && rm -rf docs_src/source/pages/api && rm -rf docs_src/build && sphinx-apidoc -o docs_src/source/pages/api mtenv && cd docs_src && make html && cd .. && cp -r docs_src/build/html/* docs/` ## Pull Requests We actively welcome your pull requests. 1. Fork the repo and create your branch from `main`. 2. Set up the code using instructions from above. 3. If you are adding a new environment, checkout the guide on [how to contribute new environments](#How-To-Contribute-New-Environments). 4. If you've added code that should be tested, add tests. 5. If you've changed APIs, update the documentation. 6. Ensure the test suite passes. This is tested via CI when you make a PR. 7. Add a news entry as described [here](#News-Entry). 8. If you haven't already, complete the Contributor License Agreement ("CLA"). #### How To Contribute New Environments 1. We recommend that you first open an issue to discuss the feasibility of adding a new environment. This will eliminate the possibility of duplication of work. 2. Checkout the guide on [how to create new environments](https://mtenv.readthedocs.io/en/latest/pages/envs/create.html). 3. Create a new folder in `mtenv/envs`. 4. Add the following files, along with the implementation of the environment. You can refer to existing environments. * `__init__.py` * `setup.py` * `requirements.txt` * `README.md` 5. Register your environment in `/mtenv/envs/__init__.py`. * `test_kwargs` are optional but if you can specify some values (both valid and invalid configurations) for automated testing. 6. We run some basic tests on the environment (to make sure it can be instantiated). You should add more tests to `tests/envs` 7. Add your environment to the list of supported environments at `docs_src/source/pages/envs/supported.rst` #### News Entry * Add an issue describing the issue that the PR fixes. * Create a file, with the name `issue_number.xxx`, in `news` folder using the issue number from the previous step. * The extension (ie `xxx` part) can be one of the following: * api_change: API Changes * bugfix: Bug Fixes * doc: Documentation Changes * environment: Environment Chages (addition or removal) * feature: Features * misc: Miscellaneous Changes * Add a crisp one line summary of the change. The summary should complete the sentence "This change will ...". ## Contributor License Agreement ("CLA") In order to accept your pull request, we need you to submit a CLA. You only need to do this once to work on any of Facebook's open source projects. Complete your CLA here: <https://code.facebook.com/cla> ## Issues We use GitHub issues to track public bugs. Please ensure your description is clear and has sufficient instructions to be able to reproduce the issue. Facebook has a [bounty program](https://www.facebook.com/whitehat/) for the safe disclosure of security bugs. In those cases, please go through the process outlined on that page and do not file a public issue. ## License By contributing to MTEnv, you agree that your contributions will be licensed under the LICENSE file in the root directory of this source tree.
4,208
37.614679
235
md
null
mtenv-main/.github/ISSUE_TEMPLATE.md
--- name: "Issue" about: title: "Issue" labels: assignees: '' --- # Description What issue are you facing? ## How to reproduce **Add a minimal example to reproduce the issue.** **Stack trace / error message** Paste the stack trace/error message to [Gist](https://gist.github.com) and paste the link here. ## System information - **MTEnv Version** : - **MTEnv environment Name** : - **Python version** : ## Any other information Add any other information here.
477
14.419355
70
md
null
mtenv-main/.github/PULL_REQUEST_TEMPLATE.md
Thank you for contributing to MTEnv. ## Proposed Change What are you proposing? What is the motivation for the change. ### Have you read the [Contributing Guidelines](https://github.com/facebookresearch/mtenv/blob/main/.github/CONTRIBUTING.md)? Yes/No ## Related Issues/PRs Any issues or PRs that are related to this?
323
23.923077
125
md
null
mtenv-main/docs_src/source/conf.py
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. # import os import sys sys.path.insert(0, os.path.abspath("../..")) # -- Project information ----------------------------------------------------- import mtenv project = "mtenv" copyright = "2021, Facebook AI" author = "Shagun Sodhani, Ludovic Denoyer, Pierre-Alexandre Kamienny, Olivier Delalleau" # The full version, including alpha/beta/rc tags release = mtenv.__version__ # -- General configuration --------------------------------------------------- # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. extensions = [ "sphinx.ext.autodoc", "sphinx.ext.autosectionlabel", "sphinx.ext.napoleon", "sphinx.ext.viewcode", "sphinx_copybutton", "sphinxcontrib.bibtex", ] bibtex_bibfiles = ["pages/bib/refs.bib"] # Add any paths that contain templates here, relative to this directory. templates_path = ["_templates"] # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. # This pattern also affects html_static_path and html_extra_path. exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] # -- Options for HTML output ------------------------------------------------- # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # html_theme = "sphinx_rtd_theme" # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ["_static"] # https://github.com/sphinx-doc/sphinx/issues/2374 autoclass_content = "both"
2,375
33.434783
88
py
null
mtenv-main/examples/bandit.py
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from typing import List, Optional, Tuple import numpy as np from gym import spaces from gym.core import Env from mtenv.utils import seeding from mtenv.utils.types import ActionType, DoneType, EnvObsType, InfoType, RewardType StepReturnType = Tuple[EnvObsType, RewardType, DoneType, InfoType] class BanditEnv(Env): # type: ignore[misc] # Class cannot subclass 'Env' (has type 'Any') def __init__(self, n_arms: int): self.n_arms = n_arms self.action_space = spaces.Discrete(n_arms) self.observation_space = spaces.Box( low=0.0, high=1.0, shape=(1,), dtype=np.float32 ) self.reward_probability = spaces.Box( low=0.0, high=1.0, shape=(self.n_arms,) ).sample() def seed(self, seed: Optional[int] = None) -> List[int]: self.np_random_env, seed = seeding.np_random(seed) assert isinstance(seed, int) return [seed] def reset(self) -> EnvObsType: return np.asarray([0.0]) def step(self, action: ActionType) -> StepReturnType: sample = self.np_random_env.rand() reward = 0.0 if sample < self.reward_probability[action]: reward = 1.0 return np.asarray([0.0]), reward, False, {} def run() -> None: env = BanditEnv(5) env.seed(seed=5) for episode in range(3): print("=== episode " + str(episode)) print(env.reset()) for _ in range(5): action = env.action_space.sample() print(env.step(action)) if __name__ == "__main__": run()
1,632
27.649123
84
py
null
mtenv-main/examples/finite_mtenv_bandit.py
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from typing import Any, Dict, List, Optional import numpy as np from gym import spaces from mtenv import MTEnv from mtenv.utils import seeding from mtenv.utils.types import ActionType, ObsType, StepReturnType TaskStateType = int class FiniteMTBanditEnv(MTEnv): """Multitask Bandit Env where the task_state is sampled from a finite list of states""" def __init__(self, n_tasks: int, n_arms: int): super().__init__( action_space=spaces.Discrete(n_arms), env_observation_space=spaces.Box( low=0.0, high=1.0, shape=(1,), dtype=np.float32 ), task_observation_space=spaces.Box(low=0.0, high=1.0, shape=(n_arms,)), ) self.n_arms = n_arms self.n_tasks = n_tasks self.observation_space["task_obs"].seed(0) self.possible_task_observations = np.asarray( [self.observation_space["task_obs"].sample() for _ in range(self.n_tasks)] ) # possible_task_observations is assumed to be part of the environment definition ie # everytime we instantiate the env, we get the same `possible_task_observations`. self._should_reset_env = True def reset(self, **kwargs: Dict[str, Any]) -> ObsType: self.assert_env_seed_is_set() self._should_reset_env = False return {"env_obs": [0.0], "task_obs": self.task_obs} def sample_task_state(self) -> TaskStateType: """Sample a `task_state` that contains all the information needed to revert to any other task. For examples, refer to TBD""" self.assert_task_seed_is_set() # The assert statement (at the start of the function) ensures that self.np_random_task # is not None. Mypy is raising the warning incorrectly. return self.np_random_task.randint(0, self.n_tasks) # type: ignore[no-any-return, union-attr] def set_task_state(self, task_state: TaskStateType) -> None: self.task_state = task_state self.task_obs = self.possible_task_observations[task_state] def step(self, action: ActionType) -> StepReturnType: if self._should_reset_env: raise RuntimeError("Call `env.reset()` before calling `env.step()`") # The assert statement (at the start of the function) ensures that self.np_random_task # is not None. Mypy is raising the warning incorrectly. sample = self.np_random_env.rand() # type: ignore[union-attr] reward = 0.0 if sample < self.task_obs[action]: # type: ignore[index] reward = 1.0 return ( {"env_obs": [0.0], "task_obs": self.task_obs}, reward, False, {}, ) def seed_task(self, seed: Optional[int] = None) -> List[int]: """Set the seed for task information""" self.np_random_task, seed = seeding.np_random(seed) # in this function, we do not need the self.np_random_task return [seed] def get_task_state(self) -> TaskStateType: """Return all the information needed to execute the current task again. For examples, refer to TBD""" return self.task_state def run() -> None: env = FiniteMTBanditEnv(n_tasks=10, n_arms=5) env.seed(seed=1) env.seed_task(seed=2) for task in range(3): print("=== Task " + str(task % 2)) env.set_task_state(task % 2) print(env.reset()) for _ in range(5): action = env.action_space.sample() print(env.step(action)) new_env = FiniteMTBanditEnv(n_tasks=10, n_arms=5) new_env.seed(seed=1) new_env.seed_task(seed=2) print("=== Executing the current task (from old env) in new env ") new_env.set_task_state(task_state=env.get_task_state()) print(new_env.reset()) for _ in range(5): action = new_env.action_space.sample() print(new_env.step(action)) if __name__ == "__main__": run()
4,016
35.518182
102
py