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 |
---|---|---|---|---|---|---|
null | CARL-main/test/test_dmc.py | import unittest
from carl.envs.dmc.dmc_tasks.finger import (
check_constraints,
spin_context,
turn_easy_context,
turn_hard_context,
)
from carl.envs.dmc.dmc_tasks.utils import adapt_context
from carl.envs.dmc.loader import load_dmc_env
class TestDMCLoader(unittest.TestCase):
def test_load_classic_dmc_env(self):
_ = load_dmc_env(
domain_name="walker",
task_name="walk",
)
def test_load_context_dmc_env(self):
_ = load_dmc_env(
domain_name="walker",
task_name="walk_context",
)
def test_load_unknowntask_dmc_env(self):
with self.assertRaises(ValueError):
_ = load_dmc_env(
domain_name="walker",
task_name="walk_context_blub",
)
def test_load_unknowndomain_dmc_env(self):
with self.assertRaises(ValueError):
_ = load_dmc_env(
domain_name="sdfsdf",
task_name="walk",
)
class TestDmcEnvs(unittest.TestCase):
def test_finger_constraints(self):
# Finger can reach spinner?
with self.assertRaises(ValueError):
check_constraints(
limb_length_0=0.17, limb_length_1=0.16, spinner_length=0.1
)
# Spinner collides with finger hinge?
with self.assertRaises(ValueError):
check_constraints(
limb_length_0=0.17, limb_length_1=0.16, spinner_length=0.81
)
def test_finger_tasks(self):
tasks = [spin_context, turn_hard_context, turn_easy_context]
contexts = [{}, {"spinner_length": 0.2}]
for context in contexts:
for task in tasks:
_ = task(context=context)
class TestDmcUtils(unittest.TestCase):
def setUp(self) -> None:
from carl.envs.dmc.carl_dm_finger import DEFAULT_CONTEXT
from carl.envs.dmc.dmc_tasks.finger import get_model_and_assets
self.xml_string, _ = get_model_and_assets()
self.default_context = DEFAULT_CONTEXT
def test_adapt_context_no_context(self):
context = {}
_ = adapt_context(xml_string=self.xml_string, context=context)
def test_adapt_context_partialcontext(self):
context = {"gravity": 10}
_ = adapt_context(xml_string=self.xml_string, context=context)
def test_adapt_context_fullcontext(self):
# only continuous context features
context = self.default_context
context["gravity"] *= 1.25
_ = adapt_context(xml_string=self.xml_string, context=context)
def test_adapt_context_contextmask(self):
# only continuous context features
context = self.default_context
context_mask = list(context.keys())
_ = adapt_context(
xml_string=self.xml_string, context=context, context_mask=context_mask
)
def test_adapt_context_wind(self):
context = {"wind": 10}
with self.assertRaises(KeyError):
_ = adapt_context(xml_string=self.xml_string, context=context)
def test_adapt_context_friction(self):
from carl.envs.dmc.carl_dm_walker import DEFAULT_CONTEXT
from carl.envs.dmc.dmc_tasks.walker import get_model_and_assets
xml_string, _ = get_model_and_assets()
context = DEFAULT_CONTEXT
context["friction_tangential"] *= 1.3
_ = adapt_context(xml_string=xml_string, context=context)
class TestQuadruped(unittest.TestCase):
def setUp(self) -> None:
pass
def test_make_model(self):
from carl.envs.dmc.dmc_tasks.quadruped import make_model
_ = make_model(floor_size=1)
def test_instantiate_env_with_context(self):
from carl.envs.dmc.carl_dm_quadruped import CARLDmcQuadrupedEnv
tasks = ["escape_context", "run_context", "walk_context", "fetch_context"]
for task in tasks:
_ = CARLDmcQuadrupedEnv(
contexts={
0: {
"gravity": -10,
}
},
task=task,
)
| 4,115 | 30.906977 | 82 | py |
null | CARL-main/test/test_selector.py | from typing import Any, Dict
import unittest
from unittest.mock import patch
from carl.context.selection import (
AbstractSelector,
CustomSelector,
RandomSelector,
RoundRobinSelector,
)
from carl.utils.types import Context
def dummy_select(dummy):
return None, None
class TestSelectors(unittest.TestCase):
@staticmethod
def generate_contexts() -> Dict[Any, Context]:
n_context_features = 5
keys = "abc"
values = {str(i): i for i in range(n_context_features)}
contexts = {k: v for k, v in zip(keys, values)}
return contexts
@patch.object(AbstractSelector, "_select", dummy_select)
def test_abstract_selector(self):
contexts = self.generate_contexts()
selector = AbstractSelector(contexts=contexts)
selector.select()
selector.select()
selector.select()
selector.select()
self.assertEqual(selector.n_calls, 4)
def test_random_selector(self):
contexts = self.generate_contexts()
selector = RandomSelector(contexts=contexts)
selector.select()
selector.select()
selector.select()
def test_roundrobin_selector(self):
contexts = self.generate_contexts()
selector = RoundRobinSelector(contexts=contexts)
self.assertEqual(None, selector.context_id)
selector.select()
self.assertEqual(selector.context_id, 0)
self.assertEqual(selector.contexts_keys[selector.context_id], "a")
selector.select()
self.assertEqual(selector.context_id, 1)
self.assertEqual(selector.contexts_keys[selector.context_id], "b")
selector.select()
self.assertEqual(selector.context_id, 2)
self.assertEqual(selector.contexts_keys[selector.context_id], "c")
selector.select()
self.assertEqual(selector.context_id, 0)
self.assertEqual(selector.contexts_keys[selector.context_id], "a")
def test_custom_selector(self):
def selector_function(inst: AbstractSelector):
if inst.n_calls == 0:
context_id = 1
else:
context_id = 0
return inst.contexts[inst.contexts_keys[context_id]], context_id
contexts = self.generate_contexts()
selector = CustomSelector(
contexts=contexts, selector_function=selector_function
)
selector.select()
self.assertEqual(selector.context_id, 1)
self.assertEqual(selector.contexts_keys[selector.context_id], "b")
selector.select()
self.assertEqual(selector.context_id, 0)
self.assertEqual(selector.contexts_keys[selector.context_id], "a")
| 2,699 | 30.034483 | 76 | py |
artemide-public | artemide-public-master/LICENSE.md | arTeMiDe
This work is licensed under a CC BY-NC-SA 4.0
If you use this work or part of it, please, refer to arXiv:1706.01473 | 126 | 24.4 | 69 | md |
artemide-public | artemide-public-master/README.md | # artemide-public
The public repository of artemide package for TMD-physics (transverse momentum dependent)
------------------------------------------------------------------------------------------------------
CHECK:
In makefile set (in the begining of file)
FCompiler <= your prefered fortran compiler (f95 at least, gfortran also works)
Fflags <= if you use openmp
FOPT <= For extra options, links,etc. see LHAPDF
the harpy compiles with the help of f2py package from numpy (python2)
The file "constants" must be in the same location as your program. Also check it, it accumulates all options.
------------------------------------------------------------------------------------------------------
LHAPDF:
By default artemida uses LHAPDF (although you can put your own PDF's, see manual).
So, make sure that LHAPDF properly installed and check the link to it.
For artemide)
in FOPT of makefile link to LHAPDF: it should look like
FOPT = -L/path/to/LHAPDF/Installation/lib -lLHAPDF -lstdc++
For harpy)
make sure that PYTHONPATH contains path for LHAPDF it typically looks like
/path/to/LHAPDF/Installation/lib/python2.7/site-packages
------------------------------------------------------------------------------------------------------
Commands in make
make
=> Compiles the artemide package
make harpy
=> Compiles the harpy from artemide
make program TARGET=path
=> Compiles a program abc.f90 "path" with artemide
make update TARGET=path
=> Updates the constants file "path" to the current version of artemide
-------------------------------------------------------------------------------------------------------
See manual for details on artemide in /doc
If you have quesions, suggestions => E-mail: [email protected]
| 1,777 | 36.041667 | 110 | md |
artemide-public | artemide-public-master/makefile | ###########################################################################################################
# Make file for artemide + harpy
# modify the first section with your values
###########################################################################################################
# location of artemide
aTMDeHOME = $(PWD)
#PUT YOUR FORTRAN COMPILER
FCompilator=f95
#PUT HERE extra flags for compilator (put "space" if not flags requared)
Fflags= -fopenmp
#Fflags=
#path to fortran compilator (needed for f2py)
Fpath=/usr/bin/f95
#options for COMILATOR to compile QCDinput. e.g. link to LHA
FOPT=$(shell lhapdf-config --ldflags)
#### for debuging -g -fbacktrace -ffpe-trap=zero,overflow,underflow
#FOPT=-L/home/vla18041/LinkData2/LHAPDF/Installation/lib -lLHAPDF -lstdc++
#FOPT=-L/home/alexey/WorkingFiles/LHAPDF/Intallation/lib -lLHAPDF -lstdc++
################################################################### LIST OF FILES ####################################
SOURCEDIR = $(aTMDeHOME)/src
BIN = $(aTMDeHOME)/bin
OBJ = $(aTMDeHOME)/obj
MOD = $(aTMDeHOME)/mod
HDIR = $(aTMDeHOME)/harpy
aTMDeFILES = \
$(SOURCEDIR)/Code/aTMDe_Numerics.f90 \
$(SOURCEDIR)/Code/IO_functions.f90 \
$(SOURCEDIR)/Code/IntegrationRoutines.f90 \
$(SOURCEDIR)/LeptonCutsDY.f90 \
$(SOURCEDIR)/aTMDe_setup.f90 \
$(SOURCEDIR)/QCDinput.f90 \
$(SOURCEDIR)/EWinput.f90 \
$(SOURCEDIR)/TMD_AD.f90 \
$(SOURCEDIR)/Model/TMDR_model.f90 \
$(SOURCEDIR)/TMDR.f90 \
$(SOURCEDIR)/Model/uTMDPDF_model.f90 \
$(SOURCEDIR)/uTMDPDF.f90 \
$(SOURCEDIR)/Model/uTMDFF_model.f90 \
$(SOURCEDIR)/uTMDFF.f90 \
$(SOURCEDIR)/Model/lpTMDPDF_model.f90 \
$(SOURCEDIR)/lpTMDPDF.f90 \
$(SOURCEDIR)/Model/SiversTMDPDF_model.f90 \
$(SOURCEDIR)/SiversTMDPDF.f90 \
$(SOURCEDIR)/Model/wgtTMDPDF_model.f90 \
$(SOURCEDIR)/wgtTMDPDF.f90 \
$(SOURCEDIR)/TMDs.f90 \
$(SOURCEDIR)/TMDF.f90 \
$(SOURCEDIR)/TMDs_inKT.f90 \
$(SOURCEDIR)/TMDX_DY.f90 \
$(SOURCEDIR)/TMDX_SIDIS.f90 \
$(SOURCEDIR)/aTMDe_control.f90
Twist2Files=\
$(SOURCEDIR)/Code/Twist2/Twist2Convolution.f90 \
$(SOURCEDIR)/Code/Grids/TMDGrid-B.f90 \
$(SOURCEDIR)/Code/Twist2/Twist2Convolution-VAR.f90 \
$(SOURCEDIR)/Code/Grids/TMDGrid-B-VAR.f90
Twist3Files=\
$(SOURCEDIR)/Code/Grids/TMDGrid-B-2.f90 \
$(SOURCEDIR)/Code/Grids/TMDGrid-B-VAR.f90 \
$(SOURCEDIR)/Code/Twist3/Twist3Convolution.f90 \
$(SOURCEDIR)/Code/Twist3/Twist3Convolution-VAR.f90
TMD_ADFiles=\
$(SOURCEDIR)/Code/TMD_AD/AD_primary.f90 \
$(SOURCEDIR)/Code/TMD_AD/AD_secondary.f90 \
$(SOURCEDIR)/Code/TMD_AD/AD_atMu.f90 \
$(SOURCEDIR)/Code/TMD_AD/exactZetaLine.f90 \
$(SOURCEDIR)/Code/TMD_AD/AD_Integral.f90
TMDRFiles=\
$(SOURCEDIR)/Code/TMDR/type1.f90 \
$(SOURCEDIR)/Code/TMDR/type2.f90 \
$(SOURCEDIR)/Code/TMDR/type3.f90
uTMDPDFFiles=\
$(SOURCEDIR)/Code/uTMDPDF/coeffFunc.f90 \
$(SOURCEDIR)/Code/uTMDPDF/convolutions.f90 \
$(SOURCEDIR)/Code/uTMDPDF/modelTest.f90
uTMDFFFiles=\
$(SOURCEDIR)/Code/uTMDFF/coeffFunc.f90 \
$(SOURCEDIR)/Code/uTMDFF/convolutions.f90 \
$(SOURCEDIR)/Code/uTMDFF/modelTest.f90
lpTMDPDFFiles=\
$(SOURCEDIR)/Code/lpTMDPDF/coeffFunc.f90 \
$(SOURCEDIR)/Code/lpTMDPDF/convolutions.f90 \
$(SOURCEDIR)/Code/lpTMDPDF/modelTest.f90
SiversTMDPDFFiles=\
$(SOURCEDIR)/Code/SiversTMDPDF/modelTest.f90 \
$(SOURCEDIR)/Code/SiversTMDPDF/convolutions.f90
wgtTMDPDFFiles=\
$(SOURCEDIR)/Code/wgtTMDPDF/coeffFunc.f90 \
$(SOURCEDIR)/Code/wgtTMDPDF/convolutions.f90 \
$(SOURCEDIR)/Code/wgtTMDPDF/modelTest.f90
TMDsFiles=\
$(SOURCEDIR)/Code/TMDs/TMD-calls.f90
aTMDeSetupFiles=\
$(SOURCEDIR)/Code/aTMDe_setup/const-modification.f90
ExtraFiles=\
$(SOURCEDIR)/DYcoeff-func.f90
aTMDeMODEL = \
$(SOURCEDIR)/Model/TMDR_model.f90 \
$(SOURCEDIR)/Model/TMDs_model.f90 \
$(SOURCEDIR)/Model/uTMDFF_model.f90 \
$(SOURCEDIR)/Model/uTMDPDF_model.f90
aTMDeOBJ = \
$(OBJ)/aTMDe_Numerics.o \
$(OBJ)/IO_functions.o \
$(OBJ)/IntegrationRoutines.o \
$(OBJ)/LeptonCutsDY.o \
$(OBJ)/aTMDe_setup.o \
$(OBJ)/QCDinput.o \
$(OBJ)/EWinput.o\
$(OBJ)/TMD_AD.o\
$(OBJ)/TMDR_model.o\
$(OBJ)/TMDR.o\
$(OBJ)/uTMDPDF_model.o \
$(OBJ)/uTMDPDF.o \
$(OBJ)/uTMDFF_model.o \
$(OBJ)/uTMDFF.o\
$(OBJ)/lpTMDPDF_model.o \
$(OBJ)/lpTMDPDF.o \
$(OBJ)/SiversTMDPDF_model.o \
$(OBJ)/SiversTMDPDF.o \
$(OBJ)/wgtTMDPDF_model.o \
$(OBJ)/wgtTMDPDF.o \
$(OBJ)/TMDs.o \
$(OBJ)/TMDF.o \
$(OBJ)/TMDs_inKT.o \
$(OBJ)/TMDX_DY.o \
$(OBJ)/TMDX_SIDIS.o \
$(OBJ)/aTMDe_control.o
#these are utility object needed to compale any artemide module
aTMDeUTILITY = \
$(OBJ)/aTMDe_Numerics.o \
$(OBJ)/IO_functions.o \
$(OBJ)/IntegrationRoutines.o
################################################################### COMPILATION OF ARTEMIDE ####################################
FC=$(FCompilator) $(Fflags)
.PHONY: clean default obj program test harpy harpy-signature
default: obj
update: $(BIN)/update-const
./bin/update-const $(TARGET)
obj: $(aTMDeOBJ) $(aTMDeFILES) $(aTMDeMODEL) $(Twist2Files) $(TMD_ADFiles) $(TMDRFiles) $(uTMDPDFFiles) $(uTMDFFFiles) $(lpTMDFFFiles)
$(OBJ)/aTMDe_Numerics.o: $(SOURCEDIR)/Code/aTMDe_Numerics.f90
$(FC) -c $(SOURCEDIR)/Code/aTMDe_Numerics.f90
mv *.o $(OBJ)
mv *.mod $(MOD)
$(OBJ)/IO_functions.o: $(SOURCEDIR)/Code/IO_functions.f90 $(OBJ)/aTMDe_Numerics.o
$(FC) -c $(SOURCEDIR)/Code/IO_functions.f90 -I$(MOD)
mv *.o $(OBJ)
mv *.mod $(MOD)
$(OBJ)/IntegrationRoutines.o: $(SOURCEDIR)/Code/IntegrationRoutines.f90 $(OBJ)/aTMDe_Numerics.o $(OBJ)/IO_functions.o
$(FC) -c $(SOURCEDIR)/Code/IntegrationRoutines.f90 -I$(MOD)
mv *.o $(OBJ)
mv *.mod $(MOD)
$(OBJ)/LeptonCutsDY.o: $(SOURCEDIR)/LeptonCutsDY.f90 $(aTMDeUTILITY)
# mkdir -p obj
# mkdir -p mod
$(FC) -c $(SOURCEDIR)/LeptonCutsDY.f90 -I$(MOD)
mv *.o $(OBJ)
mv *.mod $(MOD)
$(OBJ)/QCDinput.o: $(SOURCEDIR)/QCDinput.f90 $(aTMDeUTILITY)
# mkdir -p obj
$(FC) -c $(SOURCEDIR)/QCDinput.f90 -I$(MOD) $(FOPT)
mv *.o $(OBJ)
mv *.mod $(MOD)
$(OBJ)/EWinput.o: $(SOURCEDIR)/EWinput.f90 $(aTMDeUTILITY)
# mkdir -p obj
$(FC) -c $(SOURCEDIR)/EWinput.f90 -I$(MOD)
mv *.o $(OBJ)
mv *.mod $(MOD)
$(OBJ)/uTMDPDF_model.o: $(SOURCEDIR)/Model/uTMDPDF_model.f90 $(aTMDeUTILITY)
# mkdir -p obj
$(FC) -c $(SOURCEDIR)/Model/uTMDPDF_model.f90 -I$(MOD)
mv *.o $(OBJ)
mv *.mod $(MOD)
$(OBJ)/uTMDPDF.o: $(SOURCEDIR)/uTMDPDF.f90 $(OBJ)/QCDinput.o $(SOURCEDIR)/Model/uTMDPDF_model.f90 $(Twist2Files) $(aTMDeUTILITY) $(uTMDPDFFiles)
# mkdir -p obj
$(FC) -c $(SOURCEDIR)/uTMDPDF.f90 -I$(MOD)
mv *.o $(OBJ)
mv *.mod $(MOD)
$(OBJ)/uTMDFF_model.o: $(SOURCEDIR)/Model/uTMDFF_model.f90 $(aTMDeUTILITY)
# mkdir -p obj
$(FC) -c $(SOURCEDIR)/Model/uTMDFF_model.f90 -I$(MOD)
mv *.o $(OBJ)
mv *.mod $(MOD)
$(OBJ)/uTMDFF.o: $(SOURCEDIR)/uTMDFF.f90 $(OBJ)/QCDinput.o $(SOURCEDIR)/Model/uTMDFF_model.f90 $(Twist2Files) $(aTMDeUTILITY) $(uTMDFFFiles)
# mkdir -p obj
$(FC) -c $(SOURCEDIR)/uTMDFF.f90 -I$(MOD)
mv *.o $(OBJ)
mv *.mod $(MOD)
$(OBJ)/lpTMDPDF_model.o: $(SOURCEDIR)/Model/lpTMDPDF_model.f90 $(aTMDeUTILITY)
# mkdir -p obj
$(FC) -c $(SOURCEDIR)/Model/lpTMDPDF_model.f90 -I$(MOD)
mv *.o $(OBJ)
mv *.mod $(MOD)
$(OBJ)/lpTMDPDF.o: $(SOURCEDIR)/lpTMDPDF.f90 $(OBJ)/QCDinput.o $(SOURCEDIR)/Model/lpTMDPDF_model.f90 $(Twist2Files) $(aTMDeUTILITY) $(lpTMDPDFFiles)
# mkdir -p obj
$(FC) -c $(SOURCEDIR)/lpTMDPDF.f90 -I$(MOD)
mv *.o $(OBJ)
mv *.mod $(MOD)
$(OBJ)/SiversTMDPDF_model.o: $(SOURCEDIR)/Model/SiversTMDPDF_model.f90 $(aTMDeUTILITY)
# mkdir -p obj
$(FC) -c $(SOURCEDIR)/Model/SiversTMDPDF_model.f90 -I$(MOD)
mv *.o $(OBJ)
mv *.mod $(MOD)
$(OBJ)/SiversTMDPDF.o: $(SOURCEDIR)/SiversTMDPDF.f90 $(OBJ)/QCDinput.o $(SOURCEDIR)/Model/SiversTMDPDF_model.f90 $(Twist3Files) $(aTMDeUTILITY) $(SiversTMDPDFFiles)
# mkdir -p obj
$(FC) -c $(SOURCEDIR)/SiversTMDPDF.f90 -I$(MOD)
mv *.o $(OBJ)
mv *.mod $(MOD)
$(OBJ)/wgtTMDPDF_model.o: $(SOURCEDIR)/Model/wgtTMDPDF_model.f90 $(aTMDeUTILITY)
# mkdir -p obj
$(FC) -c $(SOURCEDIR)/Model/wgtTMDPDF_model.f90 -I$(MOD)
mv *.o $(OBJ)
mv *.mod $(MOD)
$(OBJ)/wgtTMDPDF.o: $(SOURCEDIR)/wgtTMDPDF.f90 $(OBJ)/QCDinput.o $(SOURCEDIR)/Model/wgtTMDPDF_model.f90 $(Twist2Files) $(aTMDeUTILITY) $(wgtTMDPDFFiles)
# mkdir -p obj
$(FC) -c $(SOURCEDIR)/wgtTMDPDF.f90 -I$(MOD)
mv *.o $(OBJ)
mv *.mod $(MOD)
$(OBJ)/TMD_AD.o: $(SOURCEDIR)/TMD_AD.f90 $(aTMDeUTILITY) $(TMD_ADFiles)
# mkdir -p obj
$(FC) -c $(SOURCEDIR)/TMD_AD.f90 -I$(MOD)
mv *.o $(OBJ)
mv *.mod $(MOD)
$(OBJ)/TMDR_model.o: $(SOURCEDIR)/Model/TMDR_model.f90 $(aTMDeUTILITY) $(TMD_ADFiles) $(OBJ)/TMD_AD.o
# mkdir -p obj
$(FC) -c $(SOURCEDIR)/Model/TMDR_model.f90 -I$(MOD)
mv *.o $(OBJ)
mv *.mod $(MOD)
$(OBJ)/TMDR.o: $(SOURCEDIR)/TMDR.f90 $(SOURCEDIR)/Model/TMDR_model.f90 $(OBJ)/QCDinput.o $(OBJ)/TMD_AD.o $(aTMDeUTILITY) $(TMDRFiles)
# mkdir -p obj
$(FC) -c $(SOURCEDIR)/TMDR.f90 -I$(MOD)
mv *.o $(OBJ)
mv *.mod $(MOD)
$(OBJ)/TMDs.o: $(SOURCEDIR)/TMDs.f90 $(OBJ)/uTMDPDF.o $(OBJ)/uTMDFF.o $(OBJ)/lpTMDPDF.o $(OBJ)/SiversTMDPDF.o $(OBJ)/wgtTMDPDF.o $(SOURCEDIR)/Model/TMDs_model.f90 $(OBJ)/TMDR.o $(TMDsFiles) $(aTMDeUTILITY)
# mkdir -p obj
$(FC) -c $(SOURCEDIR)/TMDs.f90 -I$(MOD)
mv *.o $(OBJ)
mv *.mod $(MOD)
$(OBJ)/TMDs_inKT.o: $(SOURCEDIR)/TMDs_inKT.f90 $(OBJ)/TMDs.o $(aTMDeUTILITY)
# mkdir -p obj
$(FC) -c $(SOURCEDIR)/TMDs_inKT.f90 -I$(MOD)
mv *.o $(OBJ)
mv *.mod $(MOD)
$(OBJ)/TMDF.o: $(SOURCEDIR)/TMDF.f90 $(OBJ)/TMDs.o $(aTMDeUTILITY)
# mkdir -p obj
$(FC) -c $(SOURCEDIR)/TMDF.f90 -I$(MOD)
mv *.o $(OBJ)
mv *.mod $(MOD)
$(OBJ)/TMDX_DY.o: $(SOURCEDIR)/TMDX_DY.f90 $(SOURCEDIR)/DYcoeff-func.f90 $(OBJ)/TMDF.o $(OBJ)/QCDinput.o $(aTMDeUTILITY)
# mkdir -p obj
$(FC) -c $(SOURCEDIR)/TMDX_DY.f90 -I$(MOD)
mv *.o $(OBJ)
mv *.mod $(MOD)
$(OBJ)/TMDX_SIDIS.o: $(SOURCEDIR)/TMDX_SIDIS.f90 $(OBJ)/TMDs.o $(OBJ)/QCDinput.o $(aTMDeUTILITY)
# mkdir -p obj
$(FC) -c $(SOURCEDIR)/TMDX_SIDIS.f90 -I$(MOD)
mv *.o $(OBJ)
mv *.mod $(MOD)
$(OBJ)/aTMDe_setup.o: $(SOURCEDIR)/aTMDe_setup.f90 $(aTMDeUTILITY) $(aTMDeSetupFiles)
$(FC) -c $(SOURCEDIR)/aTMDe_setup.f90 -I$(MOD)
mv *.o $(OBJ)
mv *.mod $(MOD)
$(OBJ)/aTMDe_control.o: $(SOURCEDIR)/aTMDe_control.f90 $(OBJ)/aTMDe_setup.o $(aTMDeUTILITY)
$(FC) -c $(SOURCEDIR)/aTMDe_control.f90 -I$(MOD)
mv *.o $(OBJ)
mv *.mod $(MOD)
clean:
$(RM) a.out
$(RM) aTMDe-temporary
$(RM) count *.o *.mod
$(RM) count $(OBJ)/*.o
$(RM) count $(MOD)/*.mod
$(RM) $(HDIR)/*.pyc
$(RM) $(HDIR)/*.so
$(RM) $(HDIR)/__pycache__/*.*
program:
echo $(TARGET)
#$(FC) $(aTMDeHOME)/Prog/$(TARGET) $(aTMDeOBJ) $(FOPT) -I$(MOD)
$(FC) $(TARGET) $(aTMDeOBJ) $(FOPT) -I$(MOD)
test:
$(FC) $(aTMDeHOME)/Prog/test.f90 $(aTMDeOBJ) $(FOPT) -I$(MOD)
./a.out
################################################ update constants part ##############################
$(BIN)/update-const: $(aTMDeHOME)/Prog/update-constants-file.f90 $(OBJ)/aTMDe_setup.o $(aTMDeUTILITY)
$(FC) $(aTMDeHOME)/Prog/update-constants-file.f90 $(aTMDeOBJ) $(FOPT) -I$(MOD) -o update-const
mv update-const $(BIN)/update-const
################################################ HARPY PART #######################################
harpy-signature:
f2py -h $(HDIR)/artemide.pyf --overwrite-signature $(HDIR)/harpy.f90
sed -i '3i\\' $(HDIR)/artemide.pyf
sed -i '3i interface' $(HDIR)/artemide.pyf
sed -i '3i python module artemide' $(HDIR)/artemide.pyf
sed -i '3i\\' $(HDIR)/artemide.pyf
echo 'end interface' >> $(HDIR)/artemide.pyf
echo 'end python module artemide' >> $(HDIR)/artemide.pyf
harpy:
f2py -c --f90exec=$(Fpath) --f90flags=$(Fflags) $(FOPT) -lgomp -I$(MOD) $(aTMDeFILES) $(HDIR)/harpy.f90 $(HDIR)/artemide.pyf
mv artemide*.so $(HDIR)
| 11,446 | 30.885794 | 205 | artemide-public-master/makefile |
artemide-public | artemide-public-master/Models/1706.01473_Model1/TMDR_model.f90 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Model for unpolarized TMD evolution
!
! corresponds to model 1 of 1706.01473
! DNP=Dpert(b)+g b^2
! zeta=zetaPert(b)
!
! Requres 1 NP parameters (initated by best values values)
!
! A.Vladimirov (25.04.2018)
!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! USER DEFINED FUNCTIONS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!! Write nessecery model intitialization.
subroutine ModelInitialization()
if(NPlength<2) then
write(*,*) 'arTeMiDe.TMDR-model: Number NP parameters for TMDR has less then 2'
write(*,*) 'Evaluation STOP'
stop
end if
SELECT CASE(orderCusp)
CASE(1)
NPparam(1)=500d0
NPparam(2)=0.0231d0
CASE(2)
NPparam(1)=500d0
NPparam(2)=0.0127d0
CASE(3)
NPparam(1)=500d0
NPparam(2)=0.0073d0
END SELECT
write(*,*) 'INITIAL PARAMETERS',NPparam
end subroutine ModelInitialization
!!! This is the rapidity anomalous dimension non-pertrubative model
!!! In your evaluation take care that the saddle point is inside the pertrubative regeme
!!! Use function Dpert(mu,b,f) for D pertrubative, use Dresum for D resum
!!! use non-pertrubative parameters NPparam(1...)
function DNP(mu,b,f)
real*8::DNP,mu,b
integer::f
DNP=Dpert(mu,b,f)+NPparam(2)*(b**2)
end function DNP
!! This is the non-pertrubative shape of zeta_mu line.
!! It MUST follow the equipotential line in pertrubative regime (at small-b), at the level pf PT accuracy.
!! Otherwice, your evolution is completely broken.
!! DO NOT modify it if you do not understand what does it mean!
!!
!!! Use function zetaMUpert(mu,b,f) for zetamu pertrubative, use zetaMUresum for zetaMu resumed
!!! use non-pertrubative parameters NPparam(1...)
!!
!! Typical form of it is just zetaMUpert(mu,b,f), if b* is used then zetaMUpert(mu,b^*,f)
!! The large-b deviation from the "true" line is the part of NP model :)
function zetaNP(mu,b,f)
real*8::zetaNP,mu,b
integer::f
zetaNP=zetaMUpert(mu,b,f)
end function zetaNP
| 2,393 | 33.695652 | 110 | f90 |
artemide-public | artemide-public-master/Models/1706.01473_Model1/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=C0_const*1d0/bT+2d0!mu_OPE(bt)
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,140 | 33.575758 | 110 | f90 |
artemide-public | artemide-public-master/Models/1706.01473_Model1/uTMDFF_model.f90 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Model for unpolarized TMD FF
!
! corresponds to model 1
! FNP=Cosh((l1/l2-l1/2)b)/Cosh((l1/l2+l1/2)b)
! muOPE=C0/b+2
!
! Requres two NP parameters (initated by PDF values)
! Initialized by best values with bb* model for evolution
!
! A.Vladimirov (25.04.2018)
!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! USER DEFINED FUNCTIONS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!! Write nessecery model intitialization.
subroutine ModelInitialization()
if(lambdaNPlength<2) then
write(*,*) 'arTeMiDe.uTMDFF-model: Number NP parameters for TMDFF has less then 2'
write(*,*) 'Evaluation STOP'
stop
end if
SELECT CASE(order_global)
CASE(0)
lambdaNP(1)=0.112d0
lambdaNP(2)=0.828d0
CASE(1)
lambdaNP(1)=0.179d0
lambdaNP(2)=0.354d0
CASE(2)
lambdaNP(1)=0.246d0
lambdaNP(2)=0.311d0
END SELECT
end subroutine ModelInitialization
!!! This is (flavor-independent) non-pertrubative function
!!! non=pertrubative parameters are lambdaNP()
!!! if renormalon correction is on, the parameter lambdaNP(2) stays infront of it.
function FNP(z,bT,hadron)
real*8::z,bT
real*8,dimension(-5:5)::FNP
real*8::y2,FNP0,FNP1
real*8::a,b
integer::hadron
!!!!MODEL 0
! FNP=EXP(-lambdaNP(1)*bT**2)
!!!!MODEL 1
a=lambdaNP(2)/lambdaNP(1)
b=lambdaNP(1)/2d0
If((a==0).or.(b==0)) then
FNP0=0
else
If((a+b)*bT>200d0) then
If(a>b) then
FNP0=EXP(-lambdaNP(1)*bT)
else
FNP0=EXP(-2d0*a*bT)
end if
else
FNP0=COSH((a-b)*bT)/COSH((a+b)*bT)
end if
end if
! if(FNP0==0) write(*,*) bT, lambdaNP
!!!! MODEL 2
! FNP0=EXP(-lambdaNP(3)*z*bT**2/SQRT(1+(lambdaNP(3)*z*bT/lambdaNP(1))**2))
FNP=FNP0*(/1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0/)
! FNP=(/FNP1,FNP1,FNP1,FNP1,FNP1,FNP0,FNP0,FNP0,FNP1,FNP1,FNP1/)
end function FNP
!!!!This function is the mu(x,b), which is used inside the OPE
function mu_OPE(x,bt)
real*8::bt,mu_OPE,x
!mu_OPE=C0_const*SQRT(1+bT**2)/bT+1d0
mu_OPE=C0_const*1d0/bT+2d0
!write(*,*) as(1000d0),as(5000d0),as(10000d0),as(15000d0),as(20000d0),as(25000d0)
if(mu_OPE>1000d0) then
mu_OPE=1000d0
end if
end function mu_OPE | 2,605 | 27.637363 | 110 | f90 |
artemide-public | artemide-public-master/Models/1706.01473_Model1/uTMDPDF_model.f90 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Model for unpolarized TMD PDF
!
! corresponds to model 1
! FNP=Cosh((l1/l2-l1/2)b)/Cosh((l1/l2+l1/2)b)
! muOPE=C0/b+2
!
! Requres two NP parameters
! Initialized by best values with bb* model for evolution
!
! A.Vladimirov (25.04.2018)
!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! USER DEFINED FUNCTIONS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!! Write nessecery model intitialization.
subroutine ModelInitialization()
if(lambdaNPlength<2) then
write(*,*) 'arTeMiDe.uTMDPDF-model: Number NP parameters for TMDPDF has less then 2'
write(*,*) 'Evaluation STOP'
stop
end if
SELECT CASE(order_global)
CASE(0)
lambdaNP(1)=0.112d0
lambdaNP(2)=0.828d0
CASE(1)
lambdaNP(1)=0.179d0
lambdaNP(2)=0.354d0
CASE(2)
lambdaNP(1)=0.246d0
lambdaNP(2)=0.311d0
END SELECT
end subroutine ModelInitialization
!!! This is (flavor-independent) non-pertrubative function
!!! non=pertrubative parameters are lambdaNP()
!!! if renormalon correction is on, the parameter lambdaNP(2) stays infront of it.
function FNP(z,bT,hadron)
real*8::z,bT
real*8,dimension(-5:5)::FNP
real*8::y2,FNP0,FNP1
real*8::a,b
integer::hadron
!!!!MODEL 0
! FNP=EXP(-lambdaNP(1)*bT**2)
!!!!MODEL 1
a=lambdaNP(2)/lambdaNP(1)
b=lambdaNP(1)/2d0
If((a==0).or.(b==0)) then
FNP0=0
else
If((a+b)*bT>200d0) then
If(a>b) then
FNP0=EXP(-lambdaNP(1)*bT)
else
FNP0=EXP(-2d0*a*bT)
end if
else
FNP0=COSH((a-b)*bT)/COSH((a+b)*bT)
end if
end if
! if(FNP0==0) write(*,*) bT, lambdaNP
!!!! MODEL 2
! FNP0=EXP(-lambdaNP(3)*z*bT**2/SQRT(1+(lambdaNP(3)*z*bT/lambdaNP(1))**2))
FNP=FNP0*(/1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0/)
! FNP=(/FNP1,FNP1,FNP1,FNP1,FNP1,FNP0,FNP0,FNP0,FNP1,FNP1,FNP1/)
end function FNP
!!!!This function is the mu(x,b), which is used inside the OPE
function mu_OPE(x,bt)
real*8::bt,mu_OPE,x
!mu_OPE=C0_const*SQRT(1+bT**2)/bT+1d0
mu_OPE=C0_const*1d0/bT+2d0
!write(*,*) as(1000d0),as(5000d0),as(10000d0),as(15000d0),as(20000d0),as(25000d0)
if(mu_OPE>1000d0) then
mu_OPE=1000d0
end if
end function mu_OPE
| 2,584 | 27.097826 | 110 | f90 |
artemide-public | artemide-public-master/Models/ART23/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/Models/ART23/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/Models/ART23/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/Models/ART23/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/Models/ART23/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/Models/ART23/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/Models/ART23/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/Models/BPV20/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/Models/BPV20/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
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)<2) then
write(*,*) color('SV19-model: Number NP parameters for TMDR is less then 2',c_red)
write(*,*) 'Evaluation STOP'
stop
end if
allocate(NPparam(1:size(InitialNPParams)))
NPparam=InitialNPParams
write(*,*) &
color(">>> The model for TMD evolution is Vpion19=BSV19.NNPDF31. 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 the rapidity anomalous dimension non-pertrubative 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=Dresum(mu,bSTAR,1)+NPparam(2)*bSTAR*b
! bSTAR=b/SQRT(1_dp+b**2/4d0)
! if(b>2d0) then
! DNP=Dresum(mu,bSTAR,1)+NPparam(2)*bSTAR*b+Abs(NPparam(1))*0.01d0*(b-2d0)**2d0
! else
! DNP=Dresum(mu,bSTAR,1)+NPparam(2)*bSTAR*b
! end if
end function DNP
!! This is the non-pertrubative shape of zeta_mu line.
!! It MUST follow the equipotential line in pertrubative 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
rad=DNP(mu,b,f)
zz=Exp(-b**2/NPparam(1)**2)
! zz=Exp(-b**2/4d0)
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:2)::replica=(/2.2824d0, 0.025d0/)
allocate(NParray(1:2))
NParray=replica
end subroutine GetReplicaParameters
end module TMDR_model
| 4,313 | 34.073171 | 123 | f90 |
artemide-public | artemide-public-master/Models/BPV20/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/Models/BPV20/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)
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(:)
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,774 | 37.5 | 114 | f90 |
artemide-public | artemide-public-master/Models/BPV20/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)
real(dp),intent(in)::z,bt
mu_OPE=C0_const*z/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","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,088 | 37.05625 | 114 | f90 |
artemide-public | artemide-public-master/Models/BPV20/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
!FNP0=1d0
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,435 | 36.405018 | 122 | f90 |
artemide-public | artemide-public-master/Models/BSV19.CT14/TMDR_model.f90 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Model for unpolarized TMD evolution for BSV19
!
! 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,zetaMUpert,zetaSL
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)<2) then
write(*,*) color('BSV19-model: Number NP parameters for TMDR is less then 2',c_red)
write(*,*) 'Evaluation STOP'
stop
end if
allocate(NPparam(1:size(InitialNPParams)))
NPparam=InitialNPParams
write(*,*) color(">>> The model for TMD evolution is BSV19.CT14. Please, cite [1902.08474] <<<",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-pertrubative model
!!! In your evaluation take care that the saddle point is inside the pertrubative regeme
!!! Use function Dpert(mu,b,f) for D pertrubative, 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=Dresum(mu,bSTAR,1)+NPparam(2)*bSTAR*b !!!! D*+gK b b*, it smoother turns perturbative to b^2 assimptotic
end function DNP
!! This is the non-pertrubative shape of zeta_mu line.
!! It MUST follow the equipotential line in pertrubative 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
rad=DNP(mu,b,f)
zz=Exp(-b**2/NPparam(1)**2)
zetaNP=zetaMUpert(mu,b,f)*zz+zetaSL(mu,rad,f)*(1d0-zz)
end function zetaNP
!!! this is the table of replica prameters extracted in fit BSV19.
!!! -2 is suggested for initialization replica
!!! -1 is the best fit
!!! 0 is the mean reaplics
!!! 1 -- 100 replicas
subroutine GetReplicaParameters(rep,NParray)
integer,intent(in)::rep
real(dp),allocatable,intent(out)::NParray(:)
real,parameter,dimension(1:206)::replicas=(/ &
2.34665, 0.022735,& !!! mean
2.5448, 0.0212,& !!! best
2.34665, 0.022735,&!!! mean
2.4906, 0.0194,&
2.4452, 0.0172,&
2.4436, 0.0245,&
2.5633, 0.0139,&
2.4189, 0.0203,&
2.4837, 0.0183,&
1.3065, 0.0485,&
2.5064, 0.0197,&
2.2734, 0.0196,&
2.3795, 0.0184,&
1.3396, 0.0397,&
2.4808, 0.0186,&
1.1596, 0.0644,&
1.7797, 0.0228,&
2.7073, 0.0149,&
1.3184, 0.0473,&
2.5226, 0.0206,&
2.2461, 0.0224,&
2.6879, 0.0155,&
1.3016, 0.0527,&
2.5288, 0.0200,&
2.4319, 0.0189,&
1.1998, 0.0575,&
2.5064, 0.0197,&
2.5553, 0.0216,&
2.5149, 0.0202,&
2.2688, 0.0218,&
2.5023, 0.0195,&
2.4230, 0.0181,&
2.2768, 0.0190,&
1.8900, 0.0223,&
2.4696, 0.0180,&
1.5067, 0.0335,&
2.5298, 0.0184,&
2.3921, 0.0148,&
2.4659, 0.0172,&
2.5118, 0.0186,&
1.7936, 0.0266,&
2.5221, 0.0162,&
2.4951, 0.0204,&
3.1675, 0.0090,&
2.4008, 0.0170,&
2.4448, 0.0185,&
2.1945, 0.0209,&
2.4875, 0.0194,&
1.8707, 0.0253,&
2.4415, 0.0205,&
2.2610, 0.0167,&
2.5263, 0.0207,&
2.3945, 0.0136,&
2.5122, 0.0174,&
2.5423, 0.0198,&
2.4939, 0.0152,&
2.4804, 0.0181,&
2.5885, 0.0162,&
2.4555, 0.0171,&
2.3539, 0.0223,&
1.8714, 0.0163,&
2.4216, 0.0166,&
2.5020, 0.0198,&
1.1408, 0.0654,&
3.5519, 0.0095,&
2.6619, 0.0165,&
1.4011, 0.0369,&
2.1600, 0.0167,&
2.1706, 0.0253,&
2.4922, 0.0194,&
2.4704, 0.0206,&
2.7530, 0.0169,&
2.6040, 0.0159,&
2.9708, 0.0168,&
2.2526, 0.0160,&
2.1865, 0.0232,&
2.4791, 0.0189,&
2.4619, 0.0180,&
2.5163, 0.0202,&
1.1135, 0.0705,&
2.3721, 0.0206,&
1.1212, 0.0699,&
2.5304, 0.0214,&
5.4120, 0.0006,&
1.1379, 0.0652,&
2.2109, 0.0214,&
2.4267, 0.0196,&
1.8546, 0.0233,&
2.4978, 0.0180,&
2.4242, 0.0170,&
2.1816, 0.0156,&
2.4144, 0.0185,&
2.3769, 0.0187,&
2.4529, 0.0191,&
2.9448, 0.0140,&
2.5067, 0.0184,&
2.4534, 0.0189,&
4.3912, 0.0039,&
1.3865, 0.0437,&
2.2920, 0.0166,&
2.5420, 0.0194,&
2.5319, 0.0186,&
3.7664, 0.0030/)
allocate(NParray(1:2))
NParray=1d0*replicas((rep+2)*2+1:(rep+2)*2+2)
end subroutine GetReplicaParameters
end module TMDR_model | 6,404 | 27.851351 | 113 | f90 |
artemide-public | artemide-public-master/Models/BSV19.CT14/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/Models/BSV19.CT14/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)
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(:)
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,774 | 37.5 | 114 | f90 |
artemide-public | artemide-public-master/Models/BSV19.CT14/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
bb=bT**2/x**2
w1=lambdaNP(1)*x+lambdaNP(2)*(1d0-x)
w2=lambdaNP(3)
FNP0=Exp(-bb*w1/sqrt(1d0+w2*bb))*(1+lambdaNP(4)*bb)
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*z/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","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
| 5,876 | 37.664474 | 114 | f90 |
artemide-public | artemide-public-master/Models/BSV19.CT14/uTMDPDF_model.f90 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Model for unpolarized TMD PDF BSV19 [1902.08474]
!
! 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 BSV19.CT14. Please, cite [1902.08474] <<<",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)::bb,w1,w2,w3,FNP0
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 !!! case of negative power, we return absolutely incorrect expression.
if(bT<1d0) then
FNP0=-1d0
else
FNP0=0d0
end if
else
FNP0=Exp(-w1*bb/sqrt(1+w2*bb))
end if
! FNP0=Exp(-lambdaNP(1)*bb)
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,parameter,dimension(1:618)::replicas=(/&
0.27706, 24.8883, 1241.34, 2.66869, -23.7589, 0.1, & !!!! initialisation
0.2770, 23.6983, 1280.7698, 2.5709, -22.7613, 0.0,& !!! best
0.27706, 24.8883, 1241.34, 2.66869, -23.7589, 0.0,& !!!!! mean
0.2621, 24.1856, 1271.3300, 2.6204, -22.8528, 0.0000,&
0.2662, 23.9763, 1257.0092, 2.6706, -22.3719, 0.0000,&
0.3158, 23.0570, 1159.6480, 2.6773, -23.7376, 0.0000,&
0.2730, 25.8214, 1282.8932, 2.6427, -24.0532, 0.0000,&
0.2839, 23.7717, 1296.6336, 2.6668, -22.7662, 0.0000,&
0.2727, 23.8674, 1295.3886, 2.6496, -22.5049, 0.0000,&
0.2606, 22.8846, 848.1077, 2.7590, -22.0318, 0.0000,&
0.2743, 23.7405, 1285.2846, 2.6120, -22.5287, 0.0000,&
0.2772, 26.1798, 1284.1215, 2.6388, -25.0891, 0.0000,&
0.2792, 24.4381, 1287.4303, 2.6491, -22.6446, 0.0000,&
0.2688, 39.9039, 2548.7189, 2.9660, -39.5333, 0.0000,&
0.2726, 24.2872, 1299.4255, 2.6015, -22.5568, 0.0000,&
0.2229, 26.1772, 1179.7598, 2.6953, -24.9276, 0.0000,&
0.2548, 24.8849, 1337.3501, 2.7625, -22.2860, 0.0000,&
0.3101, 23.6535, 1074.5805, 2.6476, -23.1973, 0.0000,&
0.2618, 30.5317, 1378.4227, 2.7619, -29.8677, 0.0000,&
0.2942, 23.8081, 1282.1327, 2.6476, -23.3002, 0.0000,&
0.2942, 24.6880, 1340.4406, 2.7643, -24.5073, 0.0000,&
0.2589, 25.4002, 1329.2479, 2.5498, -23.4590, 0.0000,&
0.2387, 27.7380, 1295.4606, 2.6731, -26.5563, 0.0000,&
0.2769, 23.7923, 1291.2774, 2.6041, -22.5376, 0.0000,&
0.2869, 24.5613, 1318.2916, 2.7191, -23.7513, 0.0000,&
0.2547, 25.6850, 1316.9782, 2.9080, -25.0760, 0.0000,&
0.2743, 23.7405, 1285.2846, 2.6120, -22.5287, 0.0000,&
0.2873, 23.8748, 1286.2306, 2.5776, -23.2444, 0.0000,&
0.2746, 23.7292, 1285.4617, 2.6023, -22.5317, 0.0000,&
0.2634, 24.0179, 1178.3897, 2.5505, -22.5841, 0.0000,&
0.2742, 23.8165, 1291.3831, 2.6193, -22.5564, 0.0000,&
0.2698, 23.8111, 1289.3909, 2.6568, -22.1707, 0.0000,&
0.2658, 24.0632, 1079.2344, 2.6147, -22.4124, 0.0000,&
0.2441, 26.8544, 1429.6968, 2.6153, -23.5993, 0.0000,&
0.2695, 23.6683, 1306.9278, 2.6528, -21.9875, 0.0000,&
0.2998, 23.6415, 841.2932, 2.7752, -23.1397, 0.0000,&
0.2811, 24.0827, 1297.2650, 2.6103, -22.6773, 0.0000,&
0.2683, 24.9195, 1099.6117, 2.5620, -22.9143, 0.0000,&
0.2704, 24.0754, 1298.6630, 2.6733, -22.3713, 0.0000,&
0.3001, 25.1511, 1336.1152, 2.7641, -25.0119, 0.0000,&
0.2406, 31.2105, 1397.4399, 2.5138, -28.4379, 0.0000,&
0.2788, 24.0007, 1259.0519, 2.6486, -22.3039, 0.0000,&
0.2740, 23.8214, 1289.3971, 2.6133, -22.5154, 0.0000,&
0.3224, 24.8511, 1407.3178, 2.9154, -25.0727, 0.0000,&
0.2560, 24.0035, 1093.2701, 2.5004, -21.6406, 0.0000,&
0.2719, 23.8917, 1297.6660, 2.6467, -22.3307, 0.0000,&
0.3206, 23.6523, 1088.8532, 2.8017, -23.7783, 0.0000,&
0.2720, 23.8624, 1297.3434, 2.6406, -22.6064, 0.0000,&
0.2970, 24.7999, 1364.0854, 2.9486, -24.7155, 0.0000,&
0.3033, 23.1662, 940.5174, 2.5302, -22.7305, 0.0000,&
0.3078, 23.9060, 851.7359, 2.6239, -23.0871, 0.0000,&
0.2438, 24.5287, 1537.8895, 2.6265, -22.6140, 0.0000,&
0.2887, 23.6687, 972.7202, 2.5910, -22.4446, 0.0000,&
0.2704, 24.2495, 1044.3275, 2.5500, -22.9735, 0.0000,&
0.2927, 24.1707, 1304.9610, 2.6976, -23.7820, 0.0000,&
0.2738, 23.6002, 1147.2858, 2.6907, -22.3376, 0.0000,&
0.2425, 26.0435, 1292.3148, 2.5219, -23.9128, 0.0000,&
0.2878, 23.8044, 1058.7130, 2.5940, -22.6906, 0.0000,&
0.2841, 24.2994, 1304.1583, 2.6837, -23.0902, 0.0000,&
0.2851, 23.9108, 1290.8387, 2.7022, -23.5193, 0.0000,&
0.2936, 42.9284, 3231.9038, 3.1184, -42.4205, 0.0000,&
0.2758, 23.6199, 1034.0246, 2.5989, -22.3215, 0.0000,&
0.2758, 23.7773, 1288.5363, 2.6245, -22.5404, 0.0000,&
0.1555, 27.9437, 1600.6662, 2.6649, -24.4804, 0.0000,&
0.3267, 23.6230, 878.3110, 2.5579, -23.7963, 0.0000,&
0.3124, 24.7588, 1212.4103, 2.7320, -24.7765, 0.0000,&
0.2698, 31.8448, 1336.8453, 2.6888, -30.5732, 0.0000,&
0.3007, 25.2846, 880.8124, 2.5523, -24.0775, 0.0000,&
0.2764, 23.6352, 1329.1384, 2.7585, -23.2288, 0.0000,&
0.2814, 23.8090, 1302.0337, 2.6408, -22.5519, 0.0000,&
0.2918, 24.4383, 1311.2853, 2.7092, -23.9413, 0.0000,&
0.2643, 24.2109, 1293.2440, 2.5932, -22.6417, 0.0000,&
0.2998, 24.0796, 1099.6067, 2.5982, -23.2346, 0.0000,&
0.3255, 20.3317, 716.9703, 2.5067, -20.5550, 0.0000,&
0.2935, 24.1213, 1189.2255, 2.7868, -22.9229, 0.0000,&
0.3034, 23.2724, 958.2393, 2.6028, -22.8187, 0.0000,&
0.2713, 23.9126, 1290.2106, 2.6134, -22.3628, 0.0000,&
0.2783, 24.2320, 1309.4283, 2.6833, -22.9436, 0.0000,&
0.2734, 23.7272, 1287.0896, 2.6181, -22.8013, 0.0000,&
0.2067, 22.3731, 1179.3521, 2.7022, -20.5138, 0.0000,&
0.3091, 23.9846, 1157.7125, 2.6617, -23.6612, 0.0000,&
0.2049, 23.9036, 1233.8305, 2.6777, -21.7369, 0.0000,&
0.3115, 22.3052, 1037.5805, 2.6550, -22.6350, 0.0000,&
0.3289, 24.5052, 1246.0654, 2.7235, -24.2835, 0.0000,&
0.1753, 27.9768, 1508.1282, 2.5805, -24.5904, 0.0000,&
0.2725, 25.8952, 1290.5683, 2.5898, -24.4704, 0.0000,&
0.3042, 27.1608, 1325.7357, 2.7098, -27.3987, 0.0000,&
0.3097, 25.0608, 969.2283, 2.7628, -24.9842, 0.0000,&
0.2803, 23.9887, 1296.3842, 2.6332, -22.5729, 0.0000,&
0.2456, 25.2210, 1428.8328, 2.5793, -22.7584, 0.0000,&
0.2828, 24.6206, 914.8741, 2.5382, -22.8197, 0.0000,&
0.2798, 23.9971, 1287.3429, 2.6256, -22.5485, 0.0000,&
0.2428, 24.1522, 1409.2876, 2.7226, -22.0794, 0.0000,&
0.2755, 23.8227, 993.4868, 2.5350, -22.8339, 0.0000,&
0.2779, 24.0332, 1218.6528, 2.6248, -22.8505, 0.0000,&
0.2775, 24.0270, 1298.0773, 2.6137, -22.5152, 0.0000,&
0.3146, 24.8984, 1148.5847, 2.6898, -24.9846, 0.0000,&
0.3148, 22.8581, 852.8205, 2.5149, -22.0312, 0.0000,&
0.2329, 26.1313, 1150.0908, 2.5849, -23.8841, 0.0000,&
0.3051, 25.1115, 1298.5293, 2.8407, -24.6607, 0.0000,&
0.3079, 24.5819, 1330.7214, 2.7656, -24.8106, 0.0000,&
0.2649, 23.8632, 1202.9764, 2.5840, -22.3515, 0.0000,&
0.2949, 24.8866, 0.7977, 3.4907, -24.4749, 0.0000/)
allocate(NParray(1:size(NPparam)))
if(rep>100) then
write(*,*) color('ERROR in BSM19.CT14 model. It has only 100 replicas. Central replica is set',c_red)
NParray=1d0*replicas((0+2)*6+1:(0+2)*6+6)
else
NParray=1d0*replicas((rep+2)*6+1:(rep+2)*6+6)
end if
end subroutine GetReplicaParameters
end module uTMDPDF_model
| 13,128 | 49.110687 | 114 | f90 |
artemide-public | artemide-public-master/Models/BSV19.HERA20PDF/TMDR_model.f90 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Model for unpolarized TMD evolution for BSV19
!
! 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,zetaMUpert,zetaSL
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)<2) then
write(*,*) color('BSV19-model: Number NP parameters for TMDR is less then 2',c_red)
write(*,*) 'Evaluation STOP'
stop
end if
allocate(NPparam(1:size(InitialNPParams)))
NPparam=InitialNPParams
write(*,*) color(">>> The model for TMD evolution is BSV19.HERA20PDF. Please, cite [1902.08474] <<<",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-pertrubative model
!!! In your evaluation take care that the saddle point is inside the pertrubative regeme
!!! Use function Dpert(mu,b,f) for D pertrubative, 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=Dresum(mu,bSTAR,1)+NPparam(2)*bSTAR*b !!!! D*+gK b b*, it smoother turns perturbative to b^2 assimptotic
end function DNP
!! This is the non-pertrubative shape of zeta_mu line.
!! It MUST follow the equipotential line in pertrubative 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
rad=DNP(mu,b,f)
zz=Exp(-b**2/NPparam(1)**2)
zetaNP=zetaMUpert(mu,b,f)*zz+zetaSL(mu,rad,f)*(1d0-zz)
end function zetaNP
!!! this is the table of replica prameters extracted in fit BSV19.
!!! -2 is suggested for initialization replica
!!! -1 is the best fit
!!! 0 is the mean reaplics
!!! 1 -- 100 replicas
subroutine GetReplicaParameters(rep,NParray)
integer,intent(in)::rep
real(dp),allocatable,intent(out)::NParray(:)
real,parameter,dimension(1:206)::replicas=(/ &
2.29477, 0.022191,& !!! mean
2.2824, 0.02500,& !!! best
2.29477, 0.022191,&!!! mean
2.1339, 0.0250,&
2.3001, 0.0250,&
2.3812, 0.0211,&
2.2791, 0.0238,&
1.6002, 0.0342,&
2.1429, 0.0156,&
1.0333, 0.0755,&
2.0739, 0.0195,&
2.3324, 0.0250,&
2.2853, 0.0246,&
2.2409, 0.0229,&
2.5955, 0.0203,&
2.1417, 0.0231,&
3.2238, 0.0120,&
2.2678, 0.0245,&
2.1221, 0.0180,&
2.2896, 0.0188,&
2.2922, 0.0225,&
2.4317, 0.0181,&
2.3500, 0.0255,&
1.9926, 0.0266,&
3.0130, 0.0173,&
2.3229, 0.0270,&
2.4220, 0.0134,&
4.1165, 0.0073,&
2.2213, 0.0230,&
2.2684, 0.0227,&
2.3112, 0.0253,&
2.2693, 0.0209,&
2.3751, 0.0255,&
2.1757, 0.0195,&
2.2865, 0.0242,&
2.1061, 0.0193,&
2.2686, 0.0235,&
2.3453, 0.0254,&
2.3224, 0.0220,&
2.2926, 0.0248,&
2.2996, 0.0148,&
3.2594, 0.0095,&
2.2636, 0.0232,&
1.3063, 0.0409,&
2.0656, 0.0193,&
2.2617, 0.0236,&
2.5138, 0.0165,&
1.5081, 0.0080,&
2.3369, 0.0230,&
2.2629, 0.0194,&
1.1405, 0.0430,&
2.3161, 0.0240,&
2.2390, 0.0230,&
2.2160, 0.0214,&
2.7022, 0.0173,&
1.0320, 0.0686,&
2.2233, 0.0224,&
3.1809, 0.0096,&
3.3448, 0.0130,&
2.2642, 0.0228,&
2.7598, 0.0112,&
2.2723, 0.0237,&
2.6383, 0.0104,&
2.1558, 0.0199,&
2.2721, 0.0185,&
2.2465, 0.0248,&
2.3097, 0.0252,&
2.3186, 0.0258,&
2.1205, 0.0237,&
2.1330, 0.0226,&
2.2916, 0.0248,&
2.2871, 0.0254,&
2.2249, 0.0241,&
2.8602, 0.0103,&
2.2338, 0.0214,&
2.3190, 0.0262,&
2.3613, 0.0221,&
2.2992, 0.0245,&
2.0467, 0.0159,&
2.2911, 0.0182,&
2.2855, 0.0251,&
2.3836, 0.0178,&
2.3031, 0.0217,&
3.2501, 0.0080,&
2.3455, 0.0256,&
2.1001, 0.0195,&
1.2865, 0.0391,&
2.3812, 0.0127,&
2.1293, 0.0209,&
2.2443, 0.0171,&
2.1914, 0.0248,&
2.1558, 0.0199,&
2.3263, 0.0205,&
2.5408, 0.0187,&
2.6147, 0.0159,&
2.1962, 0.0219,&
2.1313, 0.0214,&
2.1259, 0.0235,&
2.3300, 0.0201,&
2.2846, 0.0224,&
2.3368, 0.0141,&
2.5143, 0.0228,&
2.2143, 0.0209/)
allocate(NParray(1:2))
NParray=1d0*replicas((rep+2)*2+1:(rep+2)*2+2)
end subroutine GetReplicaParameters
end module TMDR_model
| 6,214 | 26.869955 | 115 | f90 |
artemide-public | artemide-public-master/Models/BSV19.HERA20PDF/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/Models/BSV19.HERA20PDF/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)
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(:)
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,774 | 37.5 | 114 | f90 |
artemide-public | artemide-public-master/Models/BSV19.HERA20PDF/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
bb=bT**2/x**2
w1=lambdaNP(1)*x+lambdaNP(2)*(1d0-x)
w2=lambdaNP(3)
FNP0=Exp(-bb*w1/sqrt(1d0+w2*bb))*(1+lambdaNP(4)*bb)
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*z/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","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
| 5,876 | 37.664474 | 114 | f90 |
artemide-public | artemide-public-master/Models/BSV19.HERA20PDF/uTMDPDF_model.f90 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Model for unpolarized TMD PDF BSV19 [1902.08474]
!
! 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 BSV19.HERA20PDF. Please, cite [1902.08474] <<<",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)::bb,w1,w2,w3,FNP0
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 !!! case of negative power, we return absolutely incorrect expression.
if(bT<1d0) then
FNP0=-1d0
else
FNP0=0d0
end if
else
FNP0=Exp(-w1*bb/sqrt(1+w2*bb))
end if
! FNP0=Exp(-lambdaNP(1)*bb)
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::ReplicaParameters(1:6)
real,parameter,dimension(1:618)::replicas=(/&
0.324112, 13.1774, 356.124, 2.05101, -10.4468, 0.1, & !!!! initialisation
0.3204, 11.8747, 298.59, 1.8738, -9.0685, 0.,& !!! best
0.324112, 13.1774, 356.124, 2.05101, -10.4468, 0.,&!!!mean
0.3056, 11.9201, 348.057, 2.0577, -9.1136, 0.,&
0.3306, 12.0876, 305.328, 1.9312, -9.6543, 0.,&
0.3194, 12.0654, 288.875, 2.0521, -9.9809, 0.,&
0.3216, 11.9711, 305.019, 1.8944, -8.8547, 0.,&
0.3150, 23.3603, 727.776, 2.2669, -20.736, 0.,&
0.3531, 10.4019, 213.041, 2.0995, -8.0426, 0.,&
0.2417, 19.0693, 847.890, 2.5759, -16.152, 0.,&
0.2744, 22.1776, 1031.37, 2.4917, -18.372, 0.,&
0.3252, 12.2880, 350.894, 2.0772, -10.123, 0.,&
0.3155, 11.8648, 301.441, 1.9065, -8.8508, 0.,&
0.3083, 12.1988, 324.811, 1.9527, -8.7756, 0.,&
0.3645, 11.5761, 242.206, 1.9468, -10.131, 0.,&
0.3129, 12.2474, 319.149, 1.9750, -8.8321, 0.,&
0.3457, 12.2355, 372.363, 2.1657, -10.065, 0.,&
0.3071, 12.2374, 313.247, 1.8752, -8.9658, 0.,&
0.3274, 12.4544, 318.701, 2.1118, -9.3767, 0.,&
0.3180, 12.1120, 286.838, 2.0132, -9.1793, 0.,&
0.3124, 11.9002, 301.738, 1.9006, -8.6354, 0.,&
0.3206, 11.9195, 304.158, 1.9743, -8.9143, 0.,&
0.3365, 11.3330, 273.340, 1.8955, -9.1042, 0.,&
0.2952, 12.3076, 257.622, 1.8337, -8.9577, 0.,&
0.3548, 12.0521, 265.022, 1.7961, -9.6444, 0.,&
0.3425, 12.0143, 327.884, 2.1524, -10.833, 0.,&
0.2995, 13.1419, 304.492, 1.9632, -9.1726, 0.,&
0.3610, 13.7303, 428.132, 2.2071, -11.931, 0.,&
0.3072, 12.2468, 323.809, 1.9252, -8.7189, 0.,&
0.3135, 11.8331, 301.026, 1.9681, -8.7936, 0.,&
0.3209, 11.8477, 296.495, 1.8603, -9.1456, 0.,&
0.3035, 12.9447, 332.113, 1.8853, -9.0541, 0.,&
0.3180, 11.8151, 292.106, 1.8465, -9.1709, 0.,&
0.2652, 14.6970, 512.200, 2.0375, -9.3486, 0.,&
0.3120, 11.7803, 302.945, 1.9051, -8.7837, 0.,&
0.2857, 13.5101, 323.152, 1.9209, -9.2277, 0.,&
0.3201, 11.9523, 306.970, 1.9123, -8.8815, 0.,&
0.3274, 12.1267, 309.561, 1.9422, -9.8200, 0.,&
0.2936, 12.6886, 335.223, 1.9078, -8.9825, 0.,&
0.3347, 11.9918, 286.491, 1.8207, -9.1901, 0.,&
0.3137, 12.8152, 284.951, 2.0023, -9.3510, 0.,&
0.3833, 21.0787, 719.319, 2.5212, -20.891, 0.,&
0.3041, 12.5797, 343.898, 1.9383, -9.1325, 0.,&
0.3709, 17.3762, 551.378, 2.8875, -17.267, 0.,&
0.3091, 13.3842, 265.608, 1.8682, -9.2338, 0.,&
0.3203, 11.9569, 303.344, 1.9069, -8.8811, 0.,&
0.3621, 14.1185, 437.309, 2.4384, -13.105, 0.,&
0.4656, 25.4515, 852.465, 3.3920, -26.936, 0.,&
0.3494, 11.9962, 328.557, 2.1406, -10.294, 0.,&
0.3275, 12.1692, 272.119, 1.9942, -9.5009, 0.,&
0.3500, 19.9742, 555.072, 2.7342, -18.882, 0.,&
0.3156, 11.7804, 305.988, 1.9222, -9.0334, 0.,&
0.3661, 11.5017, 250.507, 2.2435, -10.784, 0.,&
0.2944, 12.2956, 330.651, 2.0439, -8.9949, 0.,&
0.3394, 12.1588, 331.428, 1.9473, -9.0867, 0.,&
0.2818, 21.8992, 756.356, 2.5887, -19.961, 0.,&
0.3111, 12.2000, 313.883, 1.9637, -8.8319, 0.,&
0.3575, 11.8890, 229.243, 2.0393, -10.214, 0.,&
0.3314, 11.7750, 306.600, 1.7965, -8.1548, 0.,&
0.3010, 12.9970, 333.086, 1.8854, -9.0549, 0.,&
0.3505, 11.4214, 176.802, 1.8440, -9.2912, 0.,&
0.3338, 12.1888, 308.569, 1.9200, -9.6191, 0.,&
0.3680, 21.3249, 1007.01, 2.8427, -20.766, 0.,&
0.3145, 12.1297, 285.255, 2.0228, -8.9848, 0.,&
0.3101, 12.9072, 326.391, 2.0181, -9.5522, 0.,&
0.3253, 11.9948, 302.272, 1.8695, -9.1089, 0.,&
0.3272, 12.1039, 302.617, 1.8424, -9.1648, 0.,&
0.3251, 11.9482, 330.235, 1.8816, -9.0425, 0.,&
0.3604, 10.5715, 160.163, 1.9152, -9.2112, 0.,&
0.3084, 12.0389, 331.970, 2.0403, -8.6332, 0.,&
0.3197, 11.8339, 302.786, 1.8942, -8.9273, 0.,&
0.3415, 11.2497, 249.517, 1.8935, -9.3240, 0.,&
0.3343, 12.2863, 327.052, 1.9890, -9.6423, 0.,&
0.3527, 12.8976, 199.374, 1.8179, -10.689, 0.,&
0.3199, 12.1185, 319.480, 1.9647, -8.7978, 0.,&
0.3328, 11.0540, 266.653, 1.8992, -9.0306, 0.,&
0.3201, 11.9734, 323.233, 1.9534, -8.9580, 0.,&
0.3197, 11.9095, 300.856, 1.8729, -9.0765, 0.,&
0.2883, 13.7655, 332.016, 2.0077, -9.2920, 0.,&
0.3153, 12.2592, 285.970, 1.9568, -8.9298, 0.,&
0.3535, 11.1629, 266.002, 2.0248, -9.4822, 0.,&
0.3217, 12.3084, 301.996, 1.9290, -9.0054, 0.,&
0.2908, 12.3705, 380.138, 2.0715, -8.9685, 0.,&
0.3676, 19.7997, 707.163, 2.5258, -18.912, 0.,&
0.3370, 12.1938, 314.991, 2.0312, -10.498, 0.,&
0.3095, 12.5172, 355.286, 2.1882, -9.1919, 0.,&
0.3624, 12.9066, 211.347, 2.4972, -12.339, 0.,&
0.3079, 13.1568, 359.410, 2.1079, -9.2492, 0.,&
0.3180, 19.3917, 602.714, 2.2707, -16.717, 0.,&
0.3578, 12.5400, 248.219, 2.1852, -10.779, 0.,&
0.3372, 11.9493, 274.622, 1.8642, -9.0967, 0.,&
0.3145, 12.1297, 285.255, 2.0228, -8.9848, 0.,&
0.3124, 12.0197, 302.710, 1.9795, -8.9914, 0.,&
0.3217, 11.7600, 321.951, 2.0112, -9.0425, 0.,&
0.3175, 11.3191, 286.836, 2.0040, -8.3964, 0.,&
0.3056, 11.8520, 319.992, 1.9922, -8.3936, 0.,&
0.3037, 12.2829, 299.734, 2.0041, -8.8125, 0.,&
0.2662, 12.5199, 411.944, 1.8930, -7.1477, 0.,&
0.3009, 12.2624, 361.820, 2.0522, -8.9050, 0.,&
0.3388, 12.0498, 245.751, 1.8361, -9.4326, 0.,&
0.2812, 13.2875, 347.417, 2.0236, -8.6733, 0.,&
0.3348, 12.1934, 303.271, 1.8588, -9.6003, 0.,&
0.3183, 12.2928, 312.331, 1.9794, -8.9033, 0./)
allocate(NParray(1:size(NPparam)))
if(rep>100) then
write(*,*) color('ERROR in BSM19.HERA20PDF model. It has only 100 replicas. Central replica is set',c_red)
NParray=1d0*replicas((0+2)*6+1:(0+2)*6+6)
else
NParray=1d0*replicas((rep+2)*6+1:(rep+2)*6+6)
end if
end subroutine GetReplicaParameters
end module uTMDPDF_model
| 11,635 | 43.243346 | 114 | f90 |
artemide-public | artemide-public-master/Models/BSV19.MMHT14/TMDR_model.f90 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Model for unpolarized TMD evolution for BSV19
!
! 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,zetaMUpert,zetaSL
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)<2) then
write(*,*) color('BSV19-model: Number NP parameters for TMDR is less then 2',c_red)
write(*,*) 'Evaluation STOP'
stop
end if
allocate(NPparam(1:size(InitialNPParams)))
NPparam=InitialNPParams
write(*,*) color(">>> The model for TMD evolution is BSV19.MMHT14. Please, cite [1902.08474] <<<",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-pertrubative model
!!! In your evaluation take care that the saddle point is inside the pertrubative regeme
!!! Use function Dpert(mu,b,f) for D pertrubative, 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=Dresum(mu,bSTAR,1)+NPparam(2)*bSTAR*b !!!! D*+gK b b*, it smoother turns perturbative to b^2 assimptotic
end function DNP
!! This is the non-pertrubative shape of zeta_mu line.
!! It MUST follow the equipotential line in pertrubative 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
rad=DNP(mu,b,f)
zz=Exp(-b**2/NPparam(1)**2)
zetaNP=zetaMUpert(mu,b,f)*zz+zetaSL(mu,rad,f)*(1d0-zz)
end function zetaNP
!!! this is the table of replica prameters extracted in fit BSV19.
!!! -2 is suggested for initialization replica
!!! -1 is the best fit
!!! 0 is the mean reaplics
!!! 1 -- 100 replicas
subroutine GetReplicaParameters(rep,NParray)
integer,intent(in)::rep
real(dp),allocatable,intent(out)::NParray(:)
real,parameter,dimension(1:206)::replicas=(/ &
1.54728, 0.04678,& !!! mean
2.1203, 0.0322,& !!! best
1.54728, 0.04678,&!!! mean
1.4668, 0.0534 ,&
1.5718, 0.0377 ,&
1.6820, 0.0304 ,&
1.7806, 0.0380 ,&
1.5559, 0.0383 ,&
1.6997, 0.0358 ,&
1.7607, 0.0384 ,&
2.1320, 0.0305 ,&
2.2565, 0.0245 ,&
1.8099, 0.0347 ,&
1.1602, 0.0796 ,&
1.1079, 0.0853 ,&
1.3646, 0.0540 ,&
1.4518, 0.0549 ,&
1.6316, 0.0350 ,&
1.5702, 0.0373 ,&
1.3328, 0.0559 ,&
1.5412, 0.0389 ,&
1.7401, 0.0357 ,&
1.0836, 0.0892 ,&
1.6892, 0.0348 ,&
1.6273, 0.0397 ,&
1.3483, 0.0564 ,&
1.1983, 0.0676 ,&
1.2961, 0.0640 ,&
1.5350, 0.0448 ,&
1.4936, 0.0394 ,&
1.1186, 0.0809 ,&
1.4613, 0.0381 ,&
0.9936, 0.1057 ,&
1.4325, 0.0316 ,&
1.7615, 0.0347 ,&
1.0524, 0.0922 ,&
1.2143, 0.0690 ,&
1.8651, 0.0314 ,&
2.0660, 0.0251 ,&
2.6689, 0.0185 ,&
1.7761, 0.0372 ,&
1.4227, 0.0483 ,&
1.7465, 0.0313 ,&
1.7082, 0.0418 ,&
1.2096, 0.0641 ,&
1.6656, 0.0453 ,&
1.5020, 0.0367 ,&
1.3716, 0.0565 ,&
1.5390, 0.0475 ,&
1.7772, 0.0378 ,&
1.6895, 0.0392 ,&
1.1615, 0.0841 ,&
1.8500, 0.0352 ,&
1.1803, 0.0632 ,&
2.1248, 0.0294 ,&
2.0094, 0.0286 ,&
1.7417, 0.0391 ,&
1.6556, 0.0431 ,&
1.4187, 0.0521 ,&
1.2256, 0.0644 ,&
1.7543, 0.0359 ,&
1.6485, 0.0370 ,&
1.8551, 0.0354 ,&
1.5583, 0.0428 ,&
1.7241, 0.0380 ,&
1.6506, 0.0392 ,&
1.9583, 0.0338 ,&
1.5040, 0.0433 ,&
1.8421, 0.0340 ,&
1.7806, 0.0365 ,&
1.6440, 0.0384 ,&
1.9245, 0.0325 ,&
1.2185, 0.0683 ,&
1.8074, 0.0333 ,&
1.1371, 0.0787 ,&
1.6655, 0.0382 ,&
1.1309, 0.0757 ,&
1.7553, 0.0366 ,&
1.4834, 0.0359 ,&
1.8607, 0.0343 ,&
1.2446, 0.0618 ,&
1.0311, 0.0919 ,&
1.2005, 0.0626 ,&
1.1689, 0.0652 ,&
1.4470, 0.0508 ,&
1.1336, 0.0826 ,&
1.4613, 0.0381 ,&
1.4274, 0.0356 ,&
1.4204, 0.0386 ,&
1.5690, 0.0397 ,&
1.7061, 0.0339 ,&
1.6382, 0.0353 ,&
1.5035, 0.0372 ,&
1.3482, 0.0581 ,&
1.5025, 0.0382 ,&
1.4248, 0.0355 ,&
1.4473, 0.0364 ,&
1.2482, 0.0595 ,&
1.7281, 0.0321 ,&
1.4289, 0.0434 ,&
1.3195, 0.0615 ,&
1.4068, 0.0483 ,&
1.8099, 0.0347 /)
allocate(NParray(1:2))
NParray=1d0*replicas((rep+2)*2+1:(rep+2)*2+2)
end subroutine GetReplicaParameters
end module TMDR_model
| 6,600 | 29.141553 | 113 | f90 |
artemide-public | artemide-public-master/Models/BSV19.MMHT14/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/Models/BSV19.MMHT14/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)
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(:)
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,774 | 37.5 | 114 | f90 |
artemide-public | artemide-public-master/Models/BSV19.MMHT14/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
bb=bT**2/x**2
w1=lambdaNP(1)*x+lambdaNP(2)*(1d0-x)
w2=lambdaNP(3)
FNP0=Exp(-bb*w1/sqrt(1d0+w2*bb))*(1+lambdaNP(4)*bb)
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*z/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","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
| 5,876 | 37.664474 | 114 | f90 |
artemide-public | artemide-public-master/Models/BSV19.MMHT14/uTMDPDF_model.f90 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Model for unpolarized TMD PDF BSV19 [1902.08474]
!
! 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 BSV19.MMHT14. Please, cite [1902.08474] <<<",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)::bb,w1,w2,w3,FNP0
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 !!! case of negative power, we return absolutely incorrect expression.
if(bT<1d0) then
FNP0=-1d0
else
FNP0=0d0
end if
else
FNP0=Exp(-w1*bb/sqrt(1+w2*bb))
end if
! FNP0=Exp(-lambdaNP(1)*bb)
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,parameter,dimension(1:618)::replicas=(/&
0.1982, 26.49689,2727.9766, 3.00668, -23.54749, 0.1, & !!!! initialisation
0.2188, 25.8465, 1261.4028, 2.9991, -23.4391, 0.,& !!! best
0.1982, 26.49689,2727.9766, 3.00668, -23.54749, 0.,& !!!!! mean
0.1910, 22.7207, 2328.0052, 2.9231, -19.7054, 0.0000,&
0.1988, 25.1090, 1843.9161, 2.9226, -21.7653, 0.0000,&
0.2359, 25.8717, 1630.1565, 2.9027, -23.3188, 0.0000,&
0.2194, 25.2122, 2584.1378, 3.0006, -22.6334, 0.0000,&
0.2407, 26.7186, 2046.7754, 3.0317, -24.4652, 0.0000,&
0.2153, 27.4082, 2932.6219, 3.2082, -25.4194, 0.0000,&
0.2167, 25.4598, 2700.2056, 3.0087, -22.8429, 0.0000,&
0.2388, 25.5966, 2586.1933, 2.9646, -23.5357, 0.0000,&
0.2762, 28.4352, 2679.6622, 3.1084, -27.2853, 0.0000,&
0.2108, 25.8419, 2777.0270, 3.0310, -22.7908, 0.0000,&
0.1063, 19.0987, 1763.3384, 2.6379, -13.7639, 0.0000,&
0.1774, 22.8804, 2687.9651, 3.2070, -21.2154, 0.0000,&
0.1629, 19.4402, 1326.3331, 2.6874, -15.0715, 0.0000,&
0.2057, 24.6420, 2829.6567, 3.1751, -23.0156, 0.0000,&
0.2170, 24.7671, 1659.1057, 2.8549, -21.4309, 0.0000,&
0.2199, 26.0642, 2608.8946, 3.2368, -23.7862, 0.0000,&
0.2167, 26.6967, 2610.2571, 3.1597, -25.0978, 0.0000,&
0.1714, 27.7112, 2697.1590, 2.9929, -23.4616, 0.0000,&
0.1976, 27.8737, 3666.7138, 3.2508, -25.3151, 0.0000,&
0.1398, 25.1150, 3876.4571, 3.1880, -22.4828, 0.0000,&
0.2169, 25.6809, 1851.3858, 2.8325, -22.1727, 0.0000,&
0.2154, 25.7077, 2653.4720, 3.1652, -23.6333, 0.0000,&
0.1475, 19.6888, 1660.8649, 2.7763, -15.0173, 0.0000,&
0.1725, 19.5812, 1400.0339, 2.8411, -16.3515, 0.0000,&
0.1329, 25.5504, 3751.3641, 3.0751, -20.8883, 0.0000,&
0.2223, 26.4270, 2860.7185, 3.1820, -24.5229, 0.0000,&
0.2085, 26.8597, 2978.8109, 3.3056, -24.3943, 0.0000,&
0.1333, 24.2930, 2590.3395, 2.9977, -20.8059, 0.0000,&
0.2164, 26.0054, 1662.2964, 2.9656, -22.9146, 0.0000,&
0.0685, 28.1664, 5590.1096, 3.1098, -23.6114, 0.0000,&
0.2737, 24.0169, 1085.8151, 2.8720, -21.6129, 0.0000,&
0.2149, 25.6053, 2943.8848, 3.2346, -23.4147, 0.0000,&
0.1115, 38.1959, 7377.9210, 3.2227, -34.6465, 0.0000,&
0.1834, 26.6079, 3017.1364, 3.1403, -24.3965, 0.0000,&
0.1725, 26.6236, 2623.1498, 2.8798, -22.2063, 0.0000,&
0.1929, 25.6000, 2288.6458, 2.8122, -21.3072, 0.0000,&
0.2820, 26.5104, 2392.5438, 3.1346, -25.8282, 0.0000,&
0.1649, 27.9676, 3591.2961, 2.9948, -23.6516, 0.0000,&
0.2099, 25.8422, 2547.2389, 3.1359, -23.5079, 0.0000,&
0.1949, 29.4788, 3014.4965, 3.0647, -25.9257, 0.0000,&
0.2014, 26.0302, 2815.0881, 3.0210, -23.4841, 0.0000,&
0.1878, 29.7663, 3164.5021, 3.1950, -27.3870, 0.0000,&
0.1912, 24.6995, 2878.5706, 2.9546, -21.5680, 0.0000,&
0.2171, 26.2852, 1326.3382, 2.7431, -22.7946, 0.0000,&
0.1389, 23.0565, 2314.5330, 2.8431, -18.0990, 0.0000,&
0.1464, 27.3768, 3130.9672, 2.8337, -22.1941, 0.0000,&
0.2028, 25.0567, 2386.3284, 2.9112, -22.0686, 0.0000,&
0.1946, 23.7625, 1896.2752, 2.7943, -20.1484, 0.0000,&
0.1422, 34.8494, 8781.6566, 3.4016, -32.4372, 0.0000,&
0.2144, 26.7375, 2597.9936, 2.9740, -24.0063, 0.0000,&
0.1862, 28.3604, 2325.9362, 3.0367, -25.3919, 0.0000,&
0.2054, 26.7665, 3688.9535, 3.1506, -24.2071, 0.0000,&
0.2739, 27.7985, 2361.0847, 3.1106, -26.8771, 0.0000,&
0.2076, 26.0467, 2794.9946, 2.9725, -23.1104, 0.0000,&
0.2130, 26.0827, 2409.3312, 2.9105, -23.3462, 0.0000,&
0.1929, 24.5137, 2144.1505, 2.9634, -21.8433, 0.0000,&
0.1641, 20.6289, 1560.7148, 2.8473, -16.9726, 0.0000,&
0.2130, 24.7077, 2049.6442, 2.9099, -21.7549, 0.0000,&
0.2178, 26.0058, 2482.3028, 3.1655, -23.8934, 0.0000,&
0.2085, 24.9061, 2494.1352, 2.9491, -21.9187, 0.0000,&
0.1955, 23.7207, 1836.3298, 2.8684, -20.2776, 0.0000,&
0.1993, 24.7469, 2043.3158, 2.8001, -21.2718, 0.0000,&
0.1747, 25.7916, 2487.7728, 2.8677, -21.4821, 0.0000,&
0.2146, 25.2828, 2540.4569, 2.9866, -22.9429, 0.0000,&
0.1436, 29.8854, 3108.2759, 2.8813, -24.4397, 0.0000,&
0.2131, 25.5520, 2696.1895, 3.0007, -22.5795, 0.0000,&
0.2121, 25.5775, 2543.1810, 2.9957, -22.9725, 0.0000,&
0.2138, 24.4087, 1841.7114, 2.8515, -21.0144, 0.0000,&
0.2530, 24.9004, 2097.8796, 2.9338, -22.9629, 0.0000,&
0.1642, 30.1542, 3752.7068, 3.1268, -27.1872, 0.0000,&
0.2141, 25.5856, 2334.1935, 2.9294, -22.3717, 0.0000,&
0.1420, 19.7515, 1832.6418, 2.9153, -16.2475, 0.0000,&
0.2251, 27.2092, 2499.6147, 3.0490, -25.0283, 0.0000,&
0.1863, 28.2802, 3862.9637, 3.3101, -26.2006, 0.0000,&
0.2111, 24.3060, 2105.4692, 2.8705, -20.7855, 0.0000,&
0.2181, 26.4717, 1782.0887, 3.0272, -23.3240, 0.0000,&
0.2137, 25.0322, 2510.5623, 2.9535, -22.1704, 0.0000,&
0.1480, 20.9132, 1485.8545, 2.7328, -16.2797, 0.0000,&
0.1282, 25.3007, 3005.5136, 3.0384, -21.8455, 0.0000,&
0.2308, 29.7833, 2902.8612, 3.2787, -28.7431, 0.0000,&
0.2309, 45.5344, 6834.5817, 3.4664, -45.4629, 0.0000,&
0.2067, 24.9896, 2658.0033, 3.0966, -22.6161, 0.0000,&
0.1182, 16.5204, 1507.7212, 2.7072, -12.1525, 0.0000,&
0.2164, 26.0054, 1662.2964, 2.9656, -22.9146, 0.0000,&
0.2245, 26.1088, 1610.8796, 3.0073, -22.6779, 0.0000,&
0.2512, 24.5707, 1217.2099, 2.8863, -22.3076, 0.0000,&
0.2084, 26.4168, 2007.7002, 2.8691, -23.2119, 0.0000,&
0.2335, 26.6455, 2650.3725, 3.2001, -25.0382, 0.0000,&
0.2252, 26.2087, 1521.1289, 2.8355, -23.6286, 0.0000,&
0.2590, 26.8327, 1918.7637, 3.1876, -25.9482, 0.0000,&
0.0994, 34.8991, 6237.6701, 3.0474, -28.7698, 0.0000,&
0.2443, 56.8115, 7754.3657, 3.2999, -55.9696, 0.0000,&
0.2462, 25.9317, 1425.6144, 2.9568, -23.5781, 0.0000,&
0.2219, 26.2578, 1931.5986, 3.1142, -23.4358, 0.0000,&
0.2083, 38.5518, 4525.6925, 3.2750, -36.7051, 0.0000,&
0.2251, 25.2892, 1923.3761, 2.9437, -22.3315, 0.0000,&
0.2186, 25.3225, 1757.9886, 2.9653, -22.8389, 0.0000,&
0.1511, 21.1521, 1638.8923, 2.7002, -16.9010, 0.0000,&
0.1667, 26.4678, 2212.3378, 2.8169, -21.9341, 0.0000,&
0.2108, 25.8419, 2777.0270, 3.0310, -22.7908, 0.0000/)
allocate(NParray(1:size(NPparam)))
if(rep>100) then
write(*,*) color('ERROR in BSM19.MMHT14 model. It has only 100 replicas. Central replica is set',c_red)
NParray=1d0*replicas((0+2)*6+1:(0+2)*6+6)
else
NParray=1d0*replicas((rep+2)*6+1:(rep+2)*6+6)
end if
end subroutine GetReplicaParameters
end module uTMDPDF_model
| 13,232 | 49.507634 | 114 | f90 |
artemide-public | artemide-public-master/Models/BSV19.NNPDF31/TMDR_model.f90 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Model for unpolarized TMD evolution for BSV19
!
! 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,zetaMUpert,zetaSL
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)<2) then
write(*,*) color('BSV19-model: Number NP parameters for TMDR is less then 2',c_red)
write(*,*) 'Evaluation STOP'
stop
end if
allocate(NPparam(1:size(InitialNPParams)))
NPparam=InitialNPParams
write(*,*) color(">>> The model for TMD evolution is BSV19.NNPDF31. Please, cite [1902.08474] <<<",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-pertrubative model
!!! In your evaluation take care that the saddle point is inside the pertrubative regeme
!!! Use function Dpert(mu,b,f) for D pertrubative, 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=Dresum(mu,bSTAR,1)+NPparam(2)*bSTAR*b !!!! D*+gK b b*, it smoother turns perturbative to b^2 assimptotic
end function DNP
!! This is the non-pertrubative shape of zeta_mu line.
!! It MUST follow the equipotential line in pertrubative 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
rad=DNP(mu,b,f)
zz=Exp(-b**2/NPparam(1)**2)
zetaNP=zetaMUpert(mu,b,f)*zz+zetaSL(mu,rad,f)*(1d0-zz)
end function zetaNP
!!! this is the table of replica prameters extracted in fit BSV19.
!!! -2 is suggested for initialization replica
!!! -1 is the best fit
!!! 0 is the mean reaplics
!!! 1 -- 100 replicas
subroutine GetReplicaParameters(rep,NParray)
integer,intent(in)::rep
real(dp),allocatable,intent(out)::NParray(:)
real,parameter,dimension(1:206)::replicas=(/ &
1.8604, 0.02955,& !!! mean
2.0340, 0.0299,& !!! best
1.8604, 0.02955,&!!! mean
2.0285, 0.0293 ,&
2.0247, 0.0284 ,&
2.0247, 0.0291 ,&
1.1824, 0.0635 ,&
2.0369, 0.0276 ,&
1.9747, 0.0290 ,&
1.9036, 0.0238 ,&
2.0391, 0.0297 ,&
1.9871, 0.0269 ,&
1.4614, 0.0317 ,&
1.8833, 0.0268 ,&
1.4066, 0.0427 ,&
1.7648, 0.0288 ,&
2.0176, 0.0283 ,&
2.0042, 0.0292 ,&
2.1645, 0.0159 ,&
2.3748, 0.0203 ,&
1.8945, 0.0269 ,&
2.0209, 0.0286 ,&
1.9772, 0.0246 ,&
2.1423, 0.0220 ,&
2.0270, 0.0299 ,&
1.9922, 0.0262 ,&
1.9176, 0.0303 ,&
1.9396, 0.0264 ,&
1.2512, 0.0582 ,&
1.9249, 0.0249 ,&
1.9502, 0.0291 ,&
1.9660, 0.0266 ,&
1.8658, 0.0270 ,&
1.9285, 0.0250 ,&
1.5354, 0.0394 ,&
2.0343, 0.0230 ,&
2.1683, 0.0246 ,&
2.0070, 0.0248 ,&
1.9783, 0.0289 ,&
1.8995, 0.0304 ,&
1.9941, 0.0185 ,&
1.8743, 0.0273 ,&
1.1875, 0.0637 ,&
1.5608, 0.0385 ,&
1.3902, 0.0455 ,&
1.9133, 0.0278 ,&
1.7713, 0.0309 ,&
1.9898, 0.0280 ,&
1.8541, 0.0168 ,&
1.9946, 0.0205 ,&
2.0552, 0.0303 ,&
1.8067, 0.0215 ,&
1.7589, 0.0260 ,&
1.6545, 0.0348 ,&
1.8507, 0.0280 ,&
1.9812, 0.0287 ,&
2.1305, 0.0257 ,&
1.9007, 0.0291 ,&
1.9758, 0.0277 ,&
1.7821, 0.0323 ,&
1.9574, 0.0279 ,&
2.0274, 0.0284 ,&
2.0164, 0.0256 ,&
1.8797, 0.0216 ,&
2.3051, 0.0225 ,&
2.0366, 0.0294 ,&
1.5082, 0.0293 ,&
1.8564, 0.0270 ,&
1.3322, 0.0503 ,&
1.9815, 0.0279 ,&
1.8680, 0.0220 ,&
1.9244, 0.0271 ,&
1.1197, 0.0665 ,&
2.0035, 0.0182 ,&
2.0502, 0.0234 ,&
1.7790, 0.0210 ,&
1.9292, 0.0276 ,&
1.3224, 0.0526 ,&
1.4838, 0.0403 ,&
1.2465, 0.0613 ,&
2.0508, 0.0173 ,&
1.3592, 0.0422 ,&
1.9822, 0.0271 ,&
1.6373, 0.0051 ,&
1.9945, 0.0284 ,&
1.5422, 0.0308 ,&
1.8809, 0.0264 ,&
2.0989, 0.0240 ,&
2.0610, 0.0282 ,&
1.9383, 0.0270 ,&
2.0048, 0.0287 ,&
2.0006, 0.0208 ,&
1.6064, 0.0327 ,&
2.1141, 0.0242 ,&
2.0222, 0.0296 ,&
2.0719, 0.0256 ,&
1.8851, 0.0260 ,&
1.6112, 0.0391 ,&
1.2944, 0.0490 ,&
2.0584, 0.0124 ,&
2.1209, 0.0281 ,&
2.1215, 0.0178 ,&
1.8308, 0.0253 /)
allocate(NParray(1:2))
NParray=1d0*replicas((rep+2)*2+1:(rep+2)*2+2)
end subroutine GetReplicaParameters
end module TMDR_model
| 6,603 | 29.018182 | 113 | f90 |
artemide-public | artemide-public-master/Models/BSV19.NNPDF31/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/Models/BSV19.NNPDF31/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)
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(:)
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,774 | 37.5 | 114 | f90 |
artemide-public | artemide-public-master/Models/BSV19.NNPDF31/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
bb=bT**2/x**2
w1=lambdaNP(1)*x+lambdaNP(2)*(1d0-x)
w2=lambdaNP(3)
FNP0=Exp(-bb*w1/sqrt(1d0+w2*bb))*(1+lambdaNP(4)*bb)
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*z/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","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
| 5,876 | 37.664474 | 114 | f90 |
artemide-public | artemide-public-master/Models/BSV19.NNPDF31/uTMDPDF_model.f90 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Model for unpolarized TMD PDF BSV19 [1902.08474]
!
! 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 BSV19.NNPDF31. Please, cite [1902.08474] <<<",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)::bb,w1,w2,w3,FNP0
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 !!! case of negative power, we return absolutely incorrect expression.
if(bT<1d0) then
FNP0=-1d0
else
FNP0=0d0
end if
else
FNP0=Exp(-w1*bb/sqrt(1+w2*bb))
end if
! FNP0=Exp(-lambdaNP(1)*bb)
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,parameter,dimension(1:618)::replicas=(/&
0.253434, 9.04351, 346.9985, 2.47991, -5.69988, 0.1, & !!!! initialisation
0.2512, 7.7572, 334.61, 2.4543, -4.8203, 0.,& !!! best
0.253434, 9.04351, 346.9985, 2.47991, -5.69988, 0.0,& !!!!! mean
0.2578, 7.8679, 340.3738, 2.4602, -4.7937, 0.0000,&
0.2578, 7.9417, 331.1954, 2.3978, -4.6781, 0.0000,&
0.2586, 7.9660, 344.2272, 2.4611, -4.8205, 0.0000,&
0.2289, 7.2611, 258.1676, 2.5300, -4.4596, 0.0000,&
0.2478, 8.9980, 354.3787, 2.4011, -5.4446, 0.0000,&
0.2572, 8.0662, 359.6624, 2.4991, -4.7360, 0.0000,&
0.2534, 9.0003, 314.0943, 2.3367, -4.8661, 0.0000,&
0.2495, 7.7463, 335.2263, 2.4628, -4.7678, 0.0000,&
0.2597, 8.1363, 346.5956, 2.4724, -4.7693, 0.0000,&
0.2698, 8.7243, 186.1754, 2.2774, -5.2725, 0.0000,&
0.2429, 8.3242, 359.3842, 2.5081, -4.5756, 0.0000,&
0.2366, 8.7685, 234.0162, 2.3468, -5.5331, 0.0000,&
0.2943, 7.6210, 216.0706, 2.4311, -5.0584, 0.0000,&
0.2545, 7.8254, 339.7985, 2.4825, -4.6657, 0.0000,&
0.2566, 7.8651, 335.5309, 2.4516, -4.7690, 0.0000,&
0.3022, 8.9906, 235.8987, 2.4546, -6.3597, 0.0000,&
0.2924, 7.8132, 280.1988, 2.5360, -5.4671, 0.0000,&
0.2842, 8.4124, 243.1678, 2.4213, -5.8005, 0.0000,&
0.2509, 7.8577, 340.7542, 2.4789, -4.6714, 0.0000,&
0.2552, 8.5353, 360.8098, 2.4516, -4.5495, 0.0000,&
0.2583, 9.0322, 324.2326, 2.3339, -5.3440, 0.0000,&
0.2534, 7.7721, 335.8151, 2.4534, -4.8000, 0.0000,&
0.2806, 7.8008, 253.8902, 2.5131, -5.4256, 0.0000,&
0.2080, 8.4711, 431.5971, 2.3778, -3.8581, 0.0000,&
0.2927, 7.1473, 189.9989, 2.3611, -4.8752, 0.0000,&
0.2004, 9.0091, 400.3620, 2.5560, -5.2387, 0.0000,&
0.2486, 8.1903, 311.0446, 2.4497, -4.5668, 0.0000,&
0.2474, 8.7945, 358.3973, 2.4468, -5.2981, 0.0000,&
0.2562, 8.1847, 348.7013, 2.4944, -4.7059, 0.0000,&
0.2441, 8.4432, 352.2815, 2.4740, -4.5574, 0.0000,&
0.2377, 8.2127, 350.1083, 2.4668, -4.1377, 0.0000,&
0.2490, 8.8928, 245.4520, 2.3562, -5.5560, 0.0000,&
0.2206, 9.1749, 374.2333, 2.3923, -4.6236, 0.0000,&
0.2971, 7.9618, 279.8325, 2.6157, -6.2620, 0.0000,&
0.2382, 9.1020, 429.3304, 2.4859, -5.0293, 0.0000,&
0.2571, 7.9541, 339.8995, 2.4530, -4.7595, 0.0000,&
0.2376, 8.6221, 370.9768, 2.4076, -4.7857, 0.0000,&
0.2559, 8.8900, 259.1895, 2.3447, -5.1052, 0.0000,&
0.2546, 8.4668, 360.2347, 2.5016, -4.9166, 0.0000,&
0.1296, 10.9171, 669.8408, 2.4851, -4.6548, 0.0000,&
0.2022, 9.4991, 432.8895, 2.3838, -4.4407, 0.0000,&
0.2351, 9.2695, 317.0773, 2.5276, -6.2270, 0.0000,&
0.2828, 10.1168, 310.8260, 2.5185, -7.9906, 0.0000,&
0.2297, 9.0575, 392.3475, 2.3915, -4.5366, 0.0000,&
0.2615, 8.1249, 340.0968, 2.4651, -4.9240, 0.0000,&
0.2855, 16.3130, 551.0105, 2.7064, -13.2152, 0.0000,&
0.3010, 12.1228, 430.4172, 2.8512, -10.4697, 0.0000,&
0.2521, 7.7834, 334.5582, 2.4489, -4.8330, 0.0000,&
0.3045, 9.0159, 258.0490, 2.6019, -6.5603, 0.0000,&
0.2925, 13.2559, 462.8200, 2.7862, -11.3629, 0.0000,&
0.1835, 7.9779, 438.9639, 2.3970, -2.4262, 0.0000,&
0.2645, 7.7938, 253.2093, 2.4161, -4.6657, 0.0000,&
0.2595, 8.2350, 346.8596, 2.4570, -5.0000, 0.0000,&
0.2041, 8.1963, 479.3535, 2.3780, -3.0293, 0.0000,&
0.2513, 7.7859, 344.7852, 2.4961, -4.4296, 0.0000,&
0.2550, 8.2813, 345.4170, 2.4364, -4.6987, 0.0000,&
0.2272, 7.9506, 330.5669, 2.3294, -3.7019, 0.0000,&
0.2498, 7.9273, 343.8844, 2.4893, -4.5797, 0.0000,&
0.2544, 7.9418, 339.6894, 2.4547, -4.7372, 0.0000,&
0.2471, 8.1384, 350.1716, 2.4928, -4.7155, 0.0000,&
0.3001, 9.8060, 270.0585, 2.4990, -7.3311, 0.0000,&
0.2782, 8.1525, 356.6410, 2.6478, -5.9318, 0.0000,&
0.2543, 8.0337, 362.0907, 2.4635, -4.7212, 0.0000,&
0.2676, 10.4287, 275.2772, 2.4603, -7.2230, 0.0000,&
0.2389, 8.8335, 345.6981, 2.4183, -4.8867, 0.0000,&
0.2282, 9.7983, 358.9101, 2.4495, -6.1289, 0.0000,&
0.2554, 8.0037, 343.1728, 2.4677, -4.6594, 0.0000,&
0.2410, 8.9606, 287.8230, 2.3621, -4.7543, 0.0000,&
0.2519, 7.9599, 343.5066, 2.5134, -4.5314, 0.0000,&
0.1858, 7.3644, 279.9578, 2.4554, -3.4198, 0.0000,&
0.2988, 10.1213, 303.4911, 2.5806, -7.5968, 0.0000,&
0.2286, 8.1397, 312.5855, 2.3386, -3.9624, 0.0000,&
0.2747, 8.8846, 234.3163, 2.4776, -5.6714, 0.0000,&
0.2537, 8.1837, 352.7137, 2.4894, -4.7056, 0.0000,&
0.2436, 10.8767, 453.1025, 2.7338, -8.4455, 0.0000,&
0.2423, 9.4442, 272.1055, 2.3025, -5.8305, 0.0000,&
0.2195, 8.2628, 406.3514, 2.7204, -5.3865, 0.0000,&
0.2699, 8.7392, 259.9923, 2.3772, -5.2352, 0.0000,&
0.2550, 12.7960, 441.4030, 2.7031, -10.0856, 0.0000,&
0.2553, 8.0415, 345.8693, 2.5498, -4.7970, 0.0000,&
0.3830, 35.2749, 1348.8256, 3.3968, -35.3014, 0.0000,&
0.2522, 7.8991, 335.8411, 2.4767, -4.6685, 0.0000,&
0.2410, 9.5349, 322.5648, 2.5293, -5.3318, 0.0000,&
0.2204, 8.5627, 351.9208, 2.3441, -3.8169, 0.0000,&
0.3168, 12.7056, 494.5550, 2.9003, -11.8234, 0.0000,&
0.2989, 7.0566, 216.3749, 2.4572, -5.3794, 0.0000,&
0.2252, 7.9162, 337.7414, 2.3568, -3.4441, 0.0000,&
0.2501, 7.8795, 340.0092, 2.4723, -4.6812, 0.0000,&
0.2912, 9.5952, 279.6307, 2.5727, -7.3031, 0.0000,&
0.2245, 8.3983, 303.5963, 2.3973, -4.2698, 0.0000,&
0.2103, 9.5049, 418.9691, 2.3943, -4.8298, 0.0000,&
0.2460, 8.2005, 343.4480, 2.4185, -4.9333, 0.0000,&
0.2314, 8.1926, 345.9195, 2.3547, -4.1965, 0.0000,&
0.2928, 7.7296, 238.4706, 2.4851, -5.2651, 0.0000,&
0.2332, 10.8998, 447.9679, 2.5406, -7.5531, 0.0000,&
0.2389, 10.2660, 371.2749, 2.6375, -7.2711, 0.0000,&
0.2707, 8.8445, 248.3621, 2.3799, -4.9489, 0.0000,&
0.2567, 7.8326, 324.3136, 2.4470, -4.7568, 0.0000,&
0.2454, 9.2014, 319.3286, 2.3263, -4.8480, 0.0000,&
0.2512, 8.4771, 201.5357, 2.2364, -4.9596, 0.0000/)
allocate(NParray(1:size(NPparam)))
if(rep>100) then
write(*,*) color('ERROR in BSM19.NNPDF31 model. It has only 100 replicas. Central replica is set',c_red)
NParray=1d0*replicas((0+2)*6+1:(0+2)*6+6)
else
NParray=1d0*replicas((rep+2)*6+1:(rep+2)*6+6)
end if
end subroutine GetReplicaParameters
end module uTMDPDF_model
| 13,238 | 49.530534 | 114 | f90 |
artemide-public | artemide-public-master/Models/BSV19.PDF4LHC/TMDR_model.f90 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Model for unpolarized TMD evolution for BSV19
!
! 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,zetaMUpert,zetaSL
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)<2) then
write(*,*) color('BSV19-model: Number NP parameters for TMDR is less then 2',c_red)
write(*,*) 'Evaluation STOP'
stop
end if
allocate(NPparam(1:size(InitialNPParams)))
NPparam=InitialNPParams
write(*,*) color(">>> The model for TMD evolution is BSV19.PDF4LHC. Please, cite [1902.08474] <<<",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-pertrubative model
!!! In your evaluation take care that the saddle point is inside the pertrubative regeme
!!! Use function Dpert(mu,b,f) for D pertrubative, 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=Dresum(mu,bSTAR,1)+NPparam(2)*bSTAR*b !!!! D*+gK b b*, it smoother turns perturbative to b^2 assimptotic
end function DNP
!! This is the non-pertrubative shape of zeta_mu line.
!! It MUST follow the equipotential line in pertrubative 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
rad=DNP(mu,b,f)
zz=Exp(-b**2/NPparam(1)**2)
zetaNP=zetaMUpert(mu,b,f)*zz+zetaSL(mu,rad,f)*(1d0-zz)
end function zetaNP
!!! this is the table of replica prameters extracted in fit BSV19.
!!! -2 is suggested for initialization replica
!!! -1 is the best fit
!!! 0 is the mean reaplics
!!! 1 -- 100 replicas
subroutine GetReplicaParameters(rep,NParray)
integer,intent(in)::rep
real(dp),allocatable,intent(out)::NParray(:)
real,parameter,dimension(1:206)::replicas=(/ &
1.9266, 0.03655,& !!! mean
2.3256, 0.0281,& !!! best
1.9266, 0.03655,&!!! mean
2.2206, 0.0257 ,&
2.0664, 0.0306 ,&
2.2733, 0.0265 ,&
1.1022, 0.0782 ,&
2.1690, 0.0250 ,&
2.2398, 0.0261 ,&
1.0238, 0.0987 ,&
1.1276, 0.0815 ,&
2.2261, 0.0250 ,&
2.0831, 0.0199 ,&
2.2727, 0.0269 ,&
2.2106, 0.0248 ,&
2.2261, 0.0250 ,&
1.1405, 0.0692 ,&
2.2981, 0.0259 ,&
1.1077, 0.0809 ,&
2.2935, 0.0269 ,&
1.1959, 0.0643 ,&
1.1312, 0.0765 ,&
2.2754, 0.0231 ,&
1.8391, 0.0301 ,&
1.9944, 0.0273 ,&
1.2503, 0.0592 ,&
1.0501, 0.0947 ,&
2.2828, 0.0266 ,&
2.3170, 0.0272 ,&
1.8890, 0.0162 ,&
3.6206, 0.0100 ,&
1.0676, 0.0904 ,&
2.1306, 0.0240 ,&
1.5473, 0.0386 ,&
2.2340, 0.0272 ,&
2.1479, 0.0264 ,&
1.1096, 0.0847 ,&
1.9455, 0.0313 ,&
2.2363, 0.0281 ,&
2.2252, 0.0237 ,&
2.1159, 0.0220 ,&
1.3685, 0.0575 ,&
1.1773, 0.0740 ,&
2.2285, 0.0196 ,&
2.2358, 0.0253 ,&
2.1282, 0.0252 ,&
1.2738, 0.0519 ,&
2.2602, 0.0269 ,&
1.5561, 0.0360 ,&
2.2225, 0.0256 ,&
2.2293, 0.0265 ,&
1.1156, 0.0785 ,&
2.2386, 0.0231 ,&
1.5787, 0.0442 ,&
2.2268, 0.0274 ,&
1.6076, 0.0358 ,&
1.1897, 0.0758 ,&
1.7967, 0.0313 ,&
2.2281, 0.0245 ,&
1.6965, 0.0380 ,&
2.2820, 0.0213 ,&
1.6235, 0.0311 ,&
2.1892, 0.0263 ,&
2.0927, 0.0271 ,&
2.2006, 0.0257 ,&
2.0288, 0.0280 ,&
2.1704, 0.0216 ,&
2.2334, 0.0233 ,&
2.2721, 0.0252 ,&
1.8104, 0.0382 ,&
1.2230, 0.0635 ,&
2.1985, 0.0226 ,&
2.2909, 0.0255 ,&
1.9920, 0.0290 ,&
2.2477, 0.0259 ,&
2.1319, 0.0282 ,&
2.1250, 0.0238 ,&
2.2488, 0.0263 ,&
1.3524, 0.0494 ,&
1.9944, 0.0273 ,&
1.0939, 0.0841 ,&
2.2596, 0.0267 ,&
2.2747, 0.0253 ,&
2.1433, 0.0251 ,&
2.1859, 0.0250 ,&
2.2642, 0.0262 ,&
2.1320, 0.0258 ,&
2.2978, 0.0261 ,&
1.3362, 0.0551 ,&
2.2847, 0.0264 ,&
1.6045, 0.0281 ,&
2.0768, 0.0204 ,&
2.2102, 0.0259 ,&
2.3621, 0.0223 ,&
2.0880, 0.0234 ,&
1.6781, 0.0384 ,&
1.7566, 0.0320 ,&
2.3012, 0.0287 ,&
1.0711, 0.0871 ,&
2.2432, 0.0273 ,&
2.2555, 0.0262 ,&
2.3107, 0.0277 ,&
1.6754, 0.0167 /)
allocate(NParray(1:2))
NParray=1d0*replicas((rep+2)*2+1:(rep+2)*2+2)
end subroutine GetReplicaParameters
end module TMDR_model
| 6,597 | 29.127854 | 113 | f90 |
artemide-public | artemide-public-master/Models/BSV19.PDF4LHC/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/Models/BSV19.PDF4LHC/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)
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(:)
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,774 | 37.5 | 114 | f90 |
artemide-public | artemide-public-master/Models/BSV19.PDF4LHC/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
bb=bT**2/x**2
w1=lambdaNP(1)*x+lambdaNP(2)*(1d0-x)
w2=lambdaNP(3)
FNP0=Exp(-bb*w1/sqrt(1d0+w2*bb))*(1+lambdaNP(4)*bb)
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*z/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","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
| 5,876 | 37.664474 | 114 | f90 |
artemide-public | artemide-public-master/Models/BSV19.PDF4LHC/uTMDPDF_model.f90 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Model for unpolarized TMD PDF BSV19 [1902.08474]
!
! 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 BSV19.PDF4LHC. Please, cite [1902.08474] <<<",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)::bb,w1,w2,w3,FNP0
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 !!! case of negative power, we return absolutely incorrect expression.
if(bT<1d0) then
FNP0=-1d0
else
FNP0=0d0
end if
else
FNP0=Exp(-w1*bb/sqrt(1+w2*bb))
end if
! FNP0=Exp(-lambdaNP(1)*bb)
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,parameter,dimension(1:618)::replicas=(/&
0.2181, 17.9138, 926.08, 2.5431, -15.5469, 0.1, & !!!! initialisation
0.2348, 15.4548, 664.81, 2.4141, -13.7209, 0.,& !!! best
0.2181, 17.9138, 926.08, 2.5431, -15.5469, 0.,& !!!!! mean
0.2310, 15.6306, 677.1034, 2.4804, -13.3573, 0.0000,&
0.2452, 15.2663, 664.0363, 2.5153, -13.7561, 0.0000,&
0.2586, 15.2555, 558.1804, 2.4307, -13.8080, 0.0000,&
0.1740, 19.1635, 871.5355, 2.5635, -16.9369, 0.0000,&
0.2090, 17.1114, 757.2022, 2.4209, -13.8086, 0.0000,&
0.2540, 15.6191, 614.0251, 2.4596, -13.9194, 0.0000,&
0.0667, 24.7671, 3183.1985, 2.8455, -20.4245, 0.0000,&
0.1653, 17.7768, 1047.0810, 2.7615, -16.1245, 0.0000,&
0.2274, 15.5853, 681.8057, 2.4746, -13.1291, 0.0000,&
0.2127, 17.7983, 694.1201, 2.4559, -13.9922, 0.0000,&
0.2259, 15.9064, 684.2758, 2.4509, -13.5933, 0.0000,&
0.2293, 15.4590, 677.4583, 2.5027, -13.1278, 0.0000,&
0.2274, 15.5853, 681.8057, 2.4746, -13.1291, 0.0000,&
0.1675, 34.1575, 3166.8033, 3.0436, -32.1388, 0.0000,&
0.2558, 15.1635, 757.6213, 2.6144, -13.5418, 0.0000,&
0.1236, 19.1814, 1601.9044, 2.7590, -15.6336, 0.0000,&
0.2604, 15.1185, 598.6912, 2.4377, -13.6276, 0.0000,&
0.1930, 19.0387, 796.3681, 2.6703, -16.7432, 0.0000,&
0.1400, 13.2600, 493.1865, 2.2897, -9.7206, 0.0000,&
0.2730, 22.1013, 873.6143, 2.6562, -21.5464, 0.0000,&
0.2209, 16.1180, 687.1810, 2.5135, -13.3441, 0.0000,&
0.2406, 19.3421, 675.0634, 2.4117, -17.2837, 0.0000,&
0.2011, 20.7274, 854.2212, 2.6685, -18.8176, 0.0000,&
0.1020, 19.0722, 1786.0109, 2.6968, -15.0486, 0.0000,&
0.2429, 15.6456, 672.1641, 2.4394, -13.6875, 0.0000,&
0.2313, 15.8899, 765.6632, 2.4752, -13.5611, 0.0000,&
0.2927, 18.6389, 704.5741, 2.9349, -17.4406, 0.0000,&
0.2892, 33.9528, 3194.0752, 3.0966, -33.7544, 0.0000,&
0.1345, 14.1732, 643.2673, 2.4163, -11.3910, 0.0000,&
0.2176, 16.4910, 627.1834, 2.4406, -13.5176, 0.0000,&
0.2344, 16.3511, 475.7215, 2.4932, -14.3649, 0.0000,&
0.2380, 16.1014, 770.2195, 2.4855, -13.7447, 0.0000,&
0.2639, 16.9566, 687.1668, 2.5647, -15.5746, 0.0000,&
0.1628, 18.6915, 1236.6294, 2.8375, -16.9045, 0.0000,&
0.1941, 16.3585, 812.1834, 2.4401, -13.0769, 0.0000,&
0.2061, 15.9805, 855.4111, 2.4812, -13.2638, 0.0000,&
0.2074, 16.6526, 670.4411, 2.3680, -13.2717, 0.0000,&
0.2335, 16.5899, 643.1196, 2.5251, -13.8091, 0.0000,&
0.1801, 40.4797, 7144.7521, 3.2914, -39.2418, 0.0000,&
0.1750, 16.1663, 629.9645, 2.5433, -14.4684, 0.0000,&
0.2168, 14.7552, 572.7328, 2.4104, -11.2275, 0.0000,&
0.2266, 15.6123, 681.1548, 2.4873, -13.2889, 0.0000,&
0.2207, 16.5433, 695.4979, 2.4342, -13.4237, 0.0000,&
0.1751, 26.8690, 1397.0611, 2.7454, -23.4472, 0.0000,&
0.2542, 17.3964, 704.7176, 2.5293, -16.2353, 0.0000,&
0.1926, 18.3893, 702.1283, 2.3978, -14.2432, 0.0000,&
0.2274, 15.6688, 674.7055, 2.4686, -13.3213, 0.0000,&
0.2512, 15.8351, 593.7068, 2.3861, -13.9120, 0.0000,&
0.1337, 27.5632, 2322.6027, 2.8275, -24.4908, 0.0000,&
0.2160, 16.2282, 713.5225, 2.4703, -13.3426, 0.0000,&
0.2311, 18.5889, 759.6157, 2.6432, -17.3098, 0.0000,&
0.2348, 15.4985, 672.6298, 2.4413, -13.5010, 0.0000,&
0.1715, 18.2175, 1107.6706, 2.6242, -13.6181, 0.0000,&
0.1666, 17.1156, 1141.4458, 2.7249, -15.1379, 0.0000,&
0.2610, 19.2751, 730.8568, 2.6121, -18.0220, 0.0000,&
0.2331, 15.7220, 678.0447, 2.4523, -13.1372, 0.0000,&
0.2283, 14.3607, 531.6170, 2.5730, -12.8014, 0.0000,&
0.1507, 18.8856, 1147.5717, 2.4881, -13.4925, 0.0000,&
0.2320, 15.9280, 497.5950, 2.4784, -13.2243, 0.0000,&
0.2332, 16.2661, 711.9251, 2.4291, -13.6386, 0.0000,&
0.2032, 17.0936, 827.0512, 2.4810, -13.7942, 0.0000,&
0.2339, 15.6710, 673.3325, 2.4549, -13.3057, 0.0000,&
0.2601, 15.3745, 502.1801, 2.4801, -13.8283, 0.0000,&
0.2341, 16.1424, 704.7703, 2.5082, -13.2223, 0.0000,&
0.2221, 16.4109, 675.7022, 2.4094, -13.4056, 0.0000,&
0.2528, 15.5196, 693.1694, 2.5086, -13.5595, 0.0000,&
0.2301, 17.2881, 780.2085, 2.5899, -15.9584, 0.0000,&
0.1612, 20.3271, 801.4255, 2.4766, -17.4896, 0.0000,&
0.2219, 16.6959, 665.7473, 2.4166, -13.4919, 0.0000,&
0.2490, 15.4133, 520.6750, 2.3508, -13.5440, 0.0000,&
0.2238, 15.9202, 675.7761, 2.4460, -13.3692, 0.0000,&
0.2422, 15.8169, 680.7375, 2.4446, -13.6335, 0.0000,&
0.2300, 15.4991, 659.0534, 2.4002, -13.0756, 0.0000,&
0.2286, 16.9948, 691.1089, 2.4700, -14.0267, 0.0000,&
0.2388, 15.7691, 679.9312, 2.4518, -13.6708, 0.0000,&
0.2092, 20.5862, 643.9759, 2.4708, -18.4158, 0.0000,&
0.2406, 19.3421, 675.0634, 2.4117, -17.2837, 0.0000,&
0.1542, 17.0930, 773.9340, 2.5352, -14.8961, 0.0000,&
0.2395, 16.0252, 732.7911, 2.5242, -14.0310, 0.0000,&
0.2345, 16.2107, 706.6905, 2.4525, -13.6715, 0.0000,&
0.2205, 15.5146, 681.4560, 2.4785, -12.7099, 0.0000,&
0.2124, 17.2085, 908.0841, 2.5774, -14.3275, 0.0000,&
0.2645, 15.8323, 786.6830, 2.6474, -14.5935, 0.0000,&
0.2103, 16.6139, 776.1693, 2.4880, -13.5012, 0.0000,&
0.2352, 15.6121, 672.4533, 2.4406, -13.5209, 0.0000,&
0.1806, 34.9405, 3469.0222, 3.0433, -33.1939, 0.0000,&
0.2294, 15.8509, 681.3873, 2.4444, -13.5447, 0.0000,&
0.2407, 19.7303, 590.2765, 2.4939, -16.6299, 0.0000,&
0.2454, 16.2014, 463.3958, 2.3596, -13.4469, 0.0000,&
0.2510, 15.1470, 618.7309, 2.5379, -13.4359, 0.0000,&
0.2046, 16.8107, 763.7387, 2.4430, -13.7554, 0.0000,&
0.2173, 16.5895, 715.5321, 2.5086, -13.3976, 0.0000,&
0.2118, 18.2476, 715.3845, 2.3860, -15.2801, 0.0000,&
0.2329, 15.9836, 640.9970, 2.5281, -13.5132, 0.0000,&
0.2605, 15.5437, 681.0965, 2.5521, -14.6574, 0.0000,&
0.1496, 21.0530, 1153.4877, 2.6739, -19.0440, 0.0000,&
0.2469, 15.4494, 657.0395, 2.4474, -13.6476, 0.0000,&
0.2602, 15.7598, 664.6346, 2.5119, -14.2762, 0.0000,&
0.2441, 15.4437, 607.0260, 2.4190, -13.7670, 0.0000,&
0.3157, 28.6080, 946.0958, 2.9921, -28.3380, 0.0000/)
allocate(NParray(1:size(NPparam)))
if(rep>100) then
write(*,*) color('ERROR in BSM19.PDF4LHC model. It has only 100 replicas. Central replica is set',c_red)
NParray=1d0*replicas((0+2)*6+1:(0+2)*6+6)
else
NParray=1d0*replicas((rep+2)*6+1:(rep+2)*6+6)
end if
end subroutine GetReplicaParameters
end module uTMDPDF_model
| 13,232 | 49.507634 | 114 | f90 |
artemide-public | artemide-public-master/Models/BSV19.bFIT.noLHC/TMDR_model.f90 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Model for unpolarized TMD evolution for BSV19.bFIT.noLHC [1902.08474] (without LHC data points)
!
! corresponds to bb* model
! DNP=Dpert(b*)+g bb*
! zeta=zetaPert(b*)
!
! Requres two NP parameters (initated by best values values)
!
! A.Vladimirov (15.01.2019)
!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
module TMDR_model
use aTMDe_Numerics
use IO_functions
use TMD_AD, only : Dresum,zetaMUpert,zetaSL
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)<2) then
write(*,*) color('BSV19-model: Number NP parameters for TMDR is less then 2',c_red)
write(*,*) 'Evaluation STOP'
stop
end if
allocate(NPparam(1:size(InitialNPParams)))
NPparam=InitialNPParams
write(*,*) color(">>> The model for TMD evolution is BSV19.bFIT.noLHC. Please, cite [1902.08474] <<<",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-pertrubative model
!!! In your evaluation take care that the saddle point is inside the pertrubative regeme
!!! Use function Dpert(mu,b,f) for D pertrubative, 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=Dresum(mu,bSTAR,1)+NPparam(2)*bSTAR*b !!!! D*+gK b b*, it smoother turns perturbative to b^2 assimptotic
end function DNP
!! This is the non-pertrubative shape of zeta_mu line.
!! It MUST follow the equipotential line in pertrubative 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)::sqrtBMAX
sqrtBMAX=SQRT(1+b**2/NPparam(1)**2)
zetaNP=zetaMUpert(mu,b/sqrtBMAX,f)
end function zetaNP
!!! this is the table of replica prameters extracted in fit BSV19.
!!! -2 is suggested for initialization replica
!!! -1 is the best fit
!!! 0 is the mean reaplics
!!! 1 -- 100 replicas
subroutine GetReplicaParameters(rep,NParray)
integer,intent(in)::rep
real(dp),allocatable,intent(out)::NParray(:)
real,parameter,dimension(1:196)::replicas=(/&
1.21499, 0.0571695,& !! suggested
0.,0., &
1.21499, 0.0571695,&!! mean replica
0.9914, 0.0981,&
1.1190, 0.0950,&
0.9960, 0.0770,&
3.3494, 0.0100,&
1.0808, 0.0263,&
1.2037, 0.0695,&
1.0769, 0.0594,&
0.9907, 0.0812,&
1.0745, 0.0806,&
2.8843, 0.0101,&
0.9930, 0.0842,&
0.9970, 0.0916,&
1.1434, 0.0816,&
1.0634, 0.0103,&
1.4059, 0.0105,&
2.2713, 0.0124,&
0.9936, 0.1242,&
0.9929, 0.0104,&
0.9902, 0.0834,&
0.9966, 0.0103,&
1.1235, 0.0473,&
1.0047, 0.0680,&
1.0047, 0.0963,&
0.9900, 0.0406,&
0.9910, 0.0415,&
0.9939, 0.0765,&
1.6961, 0.0140,&
0.9904, 0.0217,&
0.9903, 0.0405,&
1.0038, 0.1190,&
1.9087, 0.0144,&
0.9902, 0.0134,&
0.9936, 0.1094,&
0.9901, 0.0291,&
1.1082, 0.0678,&
0.9932, 0.0998,&
1.0477, 0.0426,&
1.0869, 0.0893,&
1.4649, 0.0100,&
1.2430, 0.0630,&
1.3138, 0.0524,&
1.0224, 0.0977,&
0.9901, 0.0747,&
0.9902, 0.0115,&
1.0122, 0.0840,&
1.0064, 0.1247,&
1.1275, 0.0640,&
0.9983, 0.1203,&
1.0014, 0.0203,&
3.2556, 0.0119,&
0.9937, 0.1106,&
0.9903, 0.0724,&
1.0564, 0.0100,&
1.4326, 0.0159,&
0.9901, 0.0520,&
1.0105, 0.0105,&
0.9910, 0.0523,&
0.9903, 0.0106,&
1.5972, 0.0548,&
1.2215, 0.0694,&
0.9939, 0.0269,&
1.5418, 0.0288,&
0.9990, 0.1101,&
2.1103, 0.0100,&
1.0139, 0.0768,&
0.9920, 0.1401,&
0.9936, 0.1094,&
1.0305, 0.1286,&
0.9913, 0.0869,&
0.9906, 0.0795,&
1.0036, 0.0867,&
0.9926, 0.0100,&
0.9902, 0.0504,&
2.0447, 0.0130,&
0.9913, 0.0264,&
1.0046, 0.1044,&
0.9905, 0.0142,&
1.2726, 0.0159,&
1.0012, 0.0652,&
1.0447, 0.0621,&
1.0089, 0.0286,&
3.4126, 0.0123,&
0.9902, 0.0222,&
0.9903, 0.0783,&
1.3941, 0.0126,&
1.0343, 0.1233,&
1.3443, 0.0767,&
1.7136, 0.0282,&
1.0303, 0.0955,&
1.2167, 0.0429,&
1.1075, 0.0868,&
0.9975, 0.0655,&
0.9900, 0.0102,&
0.9901, 0.1269,&
0.9900, 0.0254/)
allocate(NParray(1:2))
if(rep>95) then
write(*,*) color('ERROR in BSV19.bFIT.noLHC model. It has only 95 replicas. Central replica is set',c_red)
NParray=1d0*replicas((0+2)*2+1:(0+2)*2+2)
else
NParray=1d0*replicas((rep+2)*2+1:(rep+2)*2+2)
end if
end subroutine GetReplicaParameters
end module TMDR_model | 6,594 | 28.977273 | 116 | f90 |
artemide-public | artemide-public-master/Models/BSV19.bFIT.noLHC/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=C0_const*1d0/bT+2d0!mu_OPE(bt)
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,140 | 33.575758 | 110 | f90 |
artemide-public | artemide-public-master/Models/BSV19.bFIT.noLHC/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)
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(:)
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,774 | 37.5 | 114 | f90 |
artemide-public | artemide-public-master/Models/BSV19.bFIT.noLHC/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
bb=bT**2/x**2
w1=lambdaNP(1)*x+lambdaNP(2)*(1d0-x)
w2=lambdaNP(3)
FNP0=Exp(-bb*w1/sqrt(1d0+w2*bb))*(1+lambdaNP(4)*bb)
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*z/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","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
| 5,876 | 37.664474 | 114 | f90 |
artemide-public | artemide-public-master/Models/BSV19.bFIT.noLHC/uTMDPDF_model.f90 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Model for unpolarized TMD PDF BSV19 [1902.08474]
!
! 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 BSV19.bFIT.noLHC. Please, cite [1902.08474] <<<",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)::bb,w1,w2,w3,FNP0
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 !!! case of negative power, we return absolutely incorrect expression.
if(bT<1d0) then
FNP0=-1d0
else
FNP0=0d0
end if
else
FNP0=Exp(-w1*bb/sqrt(1+w2*bb))
end if
! FNP0=Exp(-lambdaNP(1)*bb)
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,parameter,dimension(1:588)::replicas=(/&
0.212239, 12.0979, 316.472, 2.10881, -3.50579, 0.1000,&!!!the suggested fo initialization replica is slightly wider. It prevent the 0-values at large b
0.2511, 7.9263, 297.3788, 2.4499, -4.3889, 0.0000,&!!! best replica
0.212239, 12.0979, 316.472, 2.10881, -3.50579, 0.0000,&!!! mean replica
0.0067, 14.8533, 464.5722, 2.2732, -3.7824, 0.0000, &
0.0416, 12.6174, 492.7889, 2.4393, -3.3180, 0.0000, &
0.2701, 10.3854, 157.7149, 2.0810, -4.1190, 0.0000, &
0.0000, 12.0892, 698.8302, 2.1145, -0.4552, 0.0000, &
0.2362, 17.2951, 412.0402, 2.0178, -5.2196, 0.0000, &
0.1101, 11.5238, 326.7139, 2.1229, -1.9468, 0.0000, &
0.0558, 16.4995, 577.8282, 2.1661, -3.1094, 0.0000, &
0.2037, 10.7452, 199.7868, 2.0716, -2.8553, 0.0000, &
0.2142, 9.8104, 268.5611, 2.3835, -2.5687, 0.0000, &
0.0821, 4.9439, 223.4503, 1.6957, 6.1199, 0.0000, &
0.2017, 14.5086, 352.4795, 2.2961, -6.2614, 0.0000, &
0.2721, 8.9621, 177.9451, 2.3624, -3.7332, 0.0000, &
0.0001, 11.7945, 360.8657, 2.3563, -2.8348, 0.0000, &
0.3707, 8.6164, 116.6007, 1.7083, -0.4140, 0.0000, &
0.2060, 9.3983, 224.0276, 1.9284, 0.4171, 0.0000, &
0.0163, 15.2515, 710.0887, 2.1771, -2.9532, 0.0000, &
0.1704, 19.9877, 776.5426, 2.9720, -15.0580, 0.0000, &
0.4846, 28.1113, 580.8608, 2.4921, -22.9855, 0.0000, &
0.2059, 14.5532, 353.8423, 2.2895, -6.2416, 0.0000, &
0.4381, 11.8621, 157.1466, 1.8570, -4.3223, 0.0000, &
0.2942, 6.8216, 108.9433, 1.7964, 0.4898, 0.0000, &
0.2207, 12.5298, 229.1676, 1.9690, -3.5256, 0.0000, &
0.0968, 12.6638, 343.7903, 2.2932, -3.7287, 0.0000, &
0.4647, 14.5239, 180.9930, 2.1998, -10.4474, 0.0000, &
0.4775, 8.8428, 81.6143, 1.7338, -3.6704, 0.0000, &
0.1963, 7.5824, 146.9405, 1.7797, 1.9244, 0.0000, &
0.1972, 9.4792, 214.2217, 1.9363, -1.0219, 0.0000, &
0.3971, 10.7637, 147.7962, 1.8294, -2.8185, 0.0000, &
0.3635, 10.7086, 160.7138, 1.9155, -3.1188, 0.0000, &
0.1243, 8.0102, 219.3533, 2.1257, 0.5106, 0.0000, &
0.1073, 9.2102, 282.3304, 1.8771, 1.5500, 0.0000, &
0.4373, 8.6551, 103.3083, 1.7065, -1.3936, 0.0000, &
0.0263, 8.9893, 243.5721, 1.9648, 2.1485, 0.0000, &
0.4202, 12.1880, 171.2298, 1.9023, -4.8085, 0.0000, &
0.1104, 11.6284, 306.6160, 2.1077, -1.6050, 0.0000, &
0.0698, 6.9692, 217.9329, 1.8444, 5.1171, 0.0000, &
0.3133, 13.7336, 444.5688, 2.2658, -3.5056, 0.0000, &
0.0836, 10.0169, 269.5349, 2.2588, -1.7469, 0.0000, &
0.2390, 11.9522, 255.1875, 2.0189, -3.2775, 0.0000, &
0.0042, 9.7648, 360.1134, 2.0836, 2.5893, 0.0000, &
0.0379, 18.7177, 889.3145, 2.4971, -7.8109, 0.0000, &
0.0483, 9.9669, 329.8418, 2.0594, 2.0999, 0.0000, &
0.0954, 12.5751, 321.5337, 2.0810, -1.2180, 0.0000, &
0.5377, 15.9378, 212.1660, 2.0064, -9.7418, 0.0000, &
0.2137, 9.4561, 174.4836, 2.0499, -2.0848, 0.0000, &
0.0015, 13.3768, 440.3067, 2.3037, -2.9843, 0.0000, &
0.0625, 12.0921, 372.9519, 2.2062, -1.0567, 0.0000, &
0.0140, 13.8207, 410.5125, 2.4410, -5.3891, 0.0000, &
0.4255, 8.5804, 90.9257, 1.7794, -2.4737, 0.0000, &
0.1014, 8.0921, 375.2175, 1.8703, 2.2608, 0.0000, &
0.0000, 9.2265, 258.0443, 1.9649, 2.4215, 0.0000, &
0.2198, 14.2446, 358.0585, 2.2791, -5.3996, 0.0000, &
0.4659, 9.1023, 104.6867, 1.7482, -2.6464, 0.0000, &
0.1998, 13.9786, 344.4110, 2.1050, -4.4856, 0.0000, &
0.3500, 10.8110, 144.8562, 1.8629, -3.4716, 0.0000, &
0.5025, 10.2509, 116.3675, 1.6956, -2.9027, 0.0000, &
0.5167, 8.4327, 70.3555, 1.8710, -4.9650, 0.0000, &
0.5102, 10.2035, 109.5501, 1.7919, -4.0216, 0.0000, &
0.0316, 13.7774, 882.8922, 2.4899, -2.7168, 0.0000, &
0.0057, 9.8799, 311.7494, 2.1020, 0.7235, 0.0000, &
0.2960, 25.9711, 424.6464, 2.2205, -17.0888, 0.0000, &
0.0694, 11.6933, 424.5579, 2.0984, -0.1476, 0.0000, &
0.0485, 12.1395, 352.5038, 2.2729, -2.5808, 0.0000, &
0.0609, 10.6654, 365.0554, 2.1336, -1.2117, 0.0000, &
0.1689, 16.7258, 444.8945, 2.3004, -7.5742, 0.0000, &
0.0840, 9.0688, 303.5374, 2.5126, -1.8657, 0.0000, &
0.0263, 8.9893, 243.5718, 1.9648, 2.1485, 0.0000, &
0.1275, 9.1275, 229.8819, 2.5473, -3.8138, 0.0000, &
0.1220, 14.5082, 420.0979, 2.2844, -4.6837, 0.0000, &
0.2042, 11.6645, 247.6604, 2.0366, -2.6196, 0.0000, &
0.1808, 12.8893, 327.0427, 2.1013, -2.7011, 0.0000, &
0.5498, 9.8506, 91.5100, 1.7134, -4.1896, 0.0000, &
0.2804, 12.2557, 278.3116, 1.9123, -1.0872, 0.0000, &
0.1199, 9.5396, 298.2181, 1.9596, 0.3167, 0.0000, &
0.4030, 14.3694, 255.9111, 2.1225, -6.9087, 0.0000, &
0.2105, 9.1985, 152.9791, 2.2422, -3.9061, 0.0000, &
0.4660, 7.5412, 86.3213, 1.6188, -0.4537, 0.0000, &
0.1907, 10.7971, 231.0001, 1.9682, -1.0449, 0.0000, &
0.2856, 9.5708, 164.9142, 1.9514, -1.6343, 0.0000, &
0.2870, 7.5709, 109.3652, 1.7737, -0.1974, 0.0000, &
0.4086, 16.4230, 239.4412, 2.1459, -10.4953, 0.0000, &
0.0023, 10.9363, 869.2940, 2.2051, 1.3586, 0.0000, &
0.4792, 7.2244, 64.7335, 1.5808, -1.4534, 0.0000, &
0.2570, 11.8175, 238.7962, 2.0440, -3.3061, 0.0000, &
0.0879, 14.3841, 493.2838, 2.3550, -4.1936, 0.0000, &
0.0522, 17.1489, 672.7540, 2.6564, -9.0915, 0.0000, &
0.0181, 12.3796, 501.7183, 2.4887, -4.1720, 0.0000, &
0.0986, 12.2682, 425.6635, 2.2247, -2.8220, 0.0000, &
0.1710, 10.8345, 234.5456, 2.1679, -3.0833, 0.0000, &
0.1751, 15.0240, 406.7704, 2.2662, -5.9840, 0.0000, &
0.0000, 16.1200, 464.7066, 2.0745, -3.6718, 0.0000, &
0.3185, 11.7789, 171.2201, 2.1304, -6.1484, 0.0000, &
0.6955, 35.7856, 999.6214, 3.1488, -37.1290, 0.0000, &
0.1890, 9.4499, 212.1409, 2.5492, -4.7331, 0.0000, &
0.4581, 12.2188, 179.3421, 1.9457, -5.0383, 0.0000/)
allocate(NParray(1:size(NPparam)))
if(rep>95) then
write(*,*) color('ERROR in BSM19.bFIT.noLHC model. It has only 95 replicas. Central replica is set',c_red)
NParray=1d0*replicas((0+2)*6+1:(0+2)*6+6)
else
NParray=1d0*replicas((rep+2)*6+1:(rep+2)*6+6)
end if
end subroutine GetReplicaParameters
end module uTMDPDF_model
| 13,072 | 49.867704 | 157 | f90 |
artemide-public | artemide-public-master/Models/BSV19.bFIT/TMDR_model.f90 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Model for unpolarized TMD evolution for BSV19.bFIT [1902.08474]
!
! corresponds to bb* model
! DNP=Dpert(b*)+g bb*
! zeta=zetaPert(b*)
!
! Requres two NP parameters (initated by best values values)
!
! A.Vladimirov (26.12.2018)
!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
module TMDR_model
use aTMDe_Numerics
use IO_functions
use TMD_AD, only : Dresum,zetaMUpert,zetaSL
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)<2) then
write(*,*) color('BSV19-model: Number NP parameters for TMDR is less then 2',c_red)
write(*,*) 'Evaluation STOP'
stop
end if
allocate(NPparam(1:size(InitialNPParams)))
NPparam=InitialNPParams
write(*,*) color(">>> The model for TMD evolution is BSV19.bFIT. Please, cite [1902.08474] <<<",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-pertrubative model
!!! In your evaluation take care that the saddle point is inside the pertrubative regeme
!!! Use function Dpert(mu,b,f) for D pertrubative, 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=Dresum(mu,bSTAR,1)+NPparam(2)*bSTAR*b !!!! D*+gK b b*, it smoother turns perturbative to b^2 assimptotic
end function DNP
!! This is the non-pertrubative shape of zeta_mu line.
!! It MUST follow the equipotential line in pertrubative 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)::sqrtBMAX
sqrtBMAX=SQRT(1+b**2/NPparam(1)**2)
zetaNP=zetaMUpert(mu,b/sqrtBMAX,f)
end function zetaNP
!!! this is the table of replica prameters extracted in fit BSV19.
!!! -2 is suggested for initialization replica
!!! -1 is the best fit
!!! 0 is the mean reaplics
!!! 1 -- 100 replicas
subroutine GetReplicaParameters(rep,NParray)
integer,intent(in)::rep
real(dp),allocatable,intent(out)::NParray(:)
real,parameter,dimension(1:606)::replicas=(/&
3.30213, 0.0237183,& !! suggested
0.,0., &
3.30213, 0.0237183,&!! mean replica
3.3580, 0.0209,&
3.4604, 0.0283,&
3.3426, 0.0214,&
3.9970, 0.0113,&
3.3484, 0.0279,&
3.5535, 0.0180,&
3.2125, 0.0324,&
3.3701, 0.0245,&
3.5259, 0.0290,&
3.3457, 0.0102,&
3.3353, 0.0228,&
3.7684, 0.0215,&
3.3516, 0.0256,&
3.4591, 0.0177,&
3.3242, 0.0249,&
3.3461, 0.0210,&
2.7297, 0.0398,&
3.2607, 0.0229,&
3.4936, 0.0180,&
3.2106, 0.0206,&
3.4415, 0.0168,&
3.3656, 0.0260,&
3.3589, 0.0206,&
3.2515, 0.0228,&
3.1335, 0.0187,&
3.2726, 0.0201,&
3.3500, 0.0221,&
3.3085, 0.0219,&
3.3616, 0.0280,&
3.1933, 0.0239,&
3.2602, 0.0280,&
3.2324, 0.0288,&
3.1244, 0.0236,&
3.3895, 0.0279,&
3.0724, 0.0180,&
3.2062, 0.0149,&
2.6114, 0.0319,&
3.3651, 0.0255,&
3.2676, 0.0240,&
3.3022, 0.0272,&
3.1225, 0.0182,&
2.2804, 0.0387,&
3.1848, 0.0311,&
3.4637, 0.0150,&
3.1035, 0.0286,&
3.2315, 0.0212,&
3.3793, 0.0292,&
3.3564, 0.0265,&
3.3374, 0.0178,&
2.6811, 0.0260,&
3.3924, 0.0280,&
3.3682, 0.0244,&
3.4057, 0.0174,&
3.3016, 0.0277,&
3.1848, 0.0311,&
3.9031, 0.0178,&
3.6019, 0.0215,&
3.3703, 0.0192,&
3.0483, 0.0262,&
3.7700, 0.0112,&
2.7808, 0.0308,&
3.3883, 0.0270,&
3.5692, 0.0164,&
3.3279, 0.0214,&
3.3077, 0.0216,&
3.3513, 0.0270,&
2.9579, 0.0272,&
3.1271, 0.0263,&
3.3541, 0.0221,&
3.3822, 0.0285,&
3.3674, 0.0238,&
3.3799, 0.0276,&
3.0187, 0.0240,&
3.2956, 0.0245,&
3.3564, 0.0265,&
3.5661, 0.0304,&
2.9854, 0.0174,&
3.2335, 0.0233,&
3.5778, 0.0280,&
3.5192, 0.0261,&
2.4829, 0.0197,&
3.3551, 0.0221,&
3.3392, 0.0214,&
3.3757, 0.0265,&
3.1645, 0.0210,&
3.3930, 0.0230,&
3.3461, 0.0199,&
3.4621, 0.0262,&
3.3110, 0.0260,&
3.9456, 0.0124,&
3.3659, 0.0212,&
3.1949, 0.0219,&
3.2106, 0.0206,&
3.4845, 0.0260,&
3.3093, 0.0219,&
3.0940, 0.0183,&
3.3669, 0.0264,&
3.1489, 0.0272,&
3.5535, 0.0180,&
3.3549, 0.0298,&
3.3530, 0.0289,&
3.2915, 0.0163,&
3.3184, 0.0211,&
3.3593, 0.0229,&
3.1902, 0.0208,&
3.6908, 0.0232,&
3.4587, 0.0251,&
3.1748, 0.0207,&
3.3723, 0.0228,&
3.1598, 0.0277,&
3.4216, 0.0259,&
3.3189, 0.0244,&
3.5332, 0.0257,&
3.5938, 0.0195,&
3.2919, 0.0194,&
3.4006, 0.0253,&
3.1035, 0.0286,&
3.3160, 0.0268,&
3.3692, 0.0274,&
3.3644, 0.0266,&
3.3344, 0.0218,&
3.0141, 0.0278,&
3.1575, 0.0265,&
3.3911, 0.0281,&
3.4433, 0.0288,&
3.4216, 0.0259,&
3.3341, 0.0245,&
3.7341, 0.0136,&
3.1250, 0.0224,&
3.0817, 0.0290,&
2.8704, 0.0216,&
3.3426, 0.0214,&
3.3855, 0.0277,&
3.2708, 0.0206,&
3.3723, 0.0228,&
3.7463, 0.0206,&
3.3564, 0.0265,&
3.3495, 0.0268,&
3.3580, 0.0209,&
3.3801, 0.0278,&
3.3072, 0.0246,&
3.3733, 0.0228,&
3.8563, 0.0190,&
3.3926, 0.0241,&
3.4241, 0.0291,&
3.4433, 0.0288,&
2.7841, 0.0102,&
3.3800, 0.0220,&
3.5080, 0.0247,&
3.3699, 0.0225,&
3.3650, 0.0158,&
3.3461, 0.0210,&
3.2754, 0.0196,&
3.0483, 0.0262,&
3.3534, 0.0235,&
3.0906, 0.0247,&
3.3110, 0.0260,&
3.3650, 0.0211,&
3.2236, 0.0239,&
3.3626, 0.0254,&
1.9807, 0.0448,&
2.2804, 0.0387,&
2.9727, 0.0339,&
3.3525, 0.0199,&
3.8067, 0.0250,&
3.0292, 0.0298,&
3.3892, 0.0245,&
3.3084, 0.0254,&
3.1455, 0.0188,&
2.4034, 0.0380,&
2.8004, 0.0283,&
3.3677, 0.0238,&
3.1933, 0.0239,&
3.5535, 0.0180,&
3.2824, 0.0230,&
2.8350, 0.0300,&
3.0316, 0.0275,&
2.7519, 0.0126,&
3.1760, 0.0234,&
3.3398, 0.0187,&
3.3651, 0.0239,&
3.2053, 0.0227,&
3.9864, 0.0176,&
3.3733, 0.0228,&
2.5463, 0.0314,&
3.4092, 0.0278,&
3.2919, 0.0194,&
3.2761, 0.0101,&
2.2119, 0.0507,&
3.4884, 0.0248,&
2.7297, 0.0398,&
3.4115, 0.0223,&
3.3645, 0.0236,&
3.4202, 0.0231,&
3.2159, 0.0245,&
3.9308, 0.0124,&
3.3329, 0.0224,&
2.8671, 0.0262,&
3.3384, 0.0121,&
3.1760, 0.0234,&
3.3114, 0.0238,&
2.6621, 0.0233,&
3.3561, 0.0272,&
3.5157, 0.0281,&
3.3680, 0.0262,&
3.1434, 0.0216,&
3.4644, 0.0116,&
3.1434, 0.0268,&
3.2567, 0.0243,&
2.8350, 0.0300,&
3.4972, 0.0175,&
3.0889, 0.0221,&
3.1875, 0.0245,&
3.3876, 0.0158,&
3.9031, 0.0127,&
3.9951, 0.0158,&
3.1271, 0.0263,&
3.3719, 0.0242,&
3.3812, 0.0277,&
3.3674, 0.0218,&
3.9515, 0.0170,&
3.3430, 0.0201,&
3.0508, 0.0265,&
3.1895, 0.0227,&
3.3677, 0.0301,&
3.3072, 0.0246,&
3.2889, 0.0274,&
3.3170, 0.0222,&
3.3524, 0.0188,&
3.2777, 0.0230,&
3.3424, 0.0238,&
3.5606, 0.0209,&
3.4920, 0.0261,&
3.3651, 0.0239,&
3.6434, 0.0167,&
3.3612, 0.0205,&
3.4762, 0.0296,&
3.1489, 0.0272,&
3.9749, 0.0159,&
3.7286, 0.0191,&
2.8695, 0.0103,&
3.9720, 0.0158,&
3.3426, 0.0248,&
3.3476, 0.0211,&
3.2103, 0.0226,&
3.3384, 0.0224,&
3.3571, 0.0160,&
3.4241, 0.0291,&
2.9818, 0.0260,&
3.3834, 0.0248,&
3.3674, 0.0238,&
3.6240, 0.0260,&
3.3461, 0.0210,&
3.3927, 0.0268,&
2.9630, 0.0188,&
3.3639, 0.0266,&
3.5068, 0.0268,&
3.3233, 0.0228,&
2.8551, 0.0180,&
3.5062, 0.0273,&
3.2266, 0.0206,&
3.3189, 0.0244,&
3.7433, 0.0317,&
3.5152, 0.0144,&
3.0306, 0.0272,&
3.3603, 0.0214,&
3.7649, 0.0219,&
3.2982, 0.0302,&
3.0940, 0.0183,&
3.3753, 0.0276,&
3.3760, 0.0255,&
3.5606, 0.0306,&
3.3760, 0.0271,&
3.3037, 0.0286,&
3.6019, 0.0215,&
3.4774, 0.0247,&
3.2789, 0.0221,&
3.3313, 0.0244,&
3.4996, 0.0280,&
3.3116, 0.0224,&
2.8970, 0.0225,&
3.2463, 0.0185,&
2.6036, 0.0280,&
3.2463, 0.0185,&
3.4366, 0.0283,&
3.9617, 0.0116,&
2.9146, 0.0395,&
3.3144, 0.0235,&
3.3549, 0.0298,&
3.3651, 0.0255,&
3.3757, 0.0265,&
3.3869, 0.0279,&
3.2341, 0.0169,&
3.2179, 0.0217,&
3.9716, 0.0160,&
3.2790, 0.0262,&
3.3624, 0.0228,&
3.1727, 0.0233,&
2.6114, 0.0319,&
3.1401, 0.0220/)
allocate(NParray(1:2))
if(rep>300) then
write(*,*) color('ERROR in BSV19.bFIT model. It has only 300 replicas. Central replica is set',c_red)
NParray=1d0*replicas((0+2)*2+1:(0+2)*2+2)
else
NParray=1d0*replicas((rep+2)*2+1:(rep+2)*2+2)
end if
end subroutine GetReplicaParameters
end module TMDR_model
| 11,061 | 25.089623 | 113 | f90 |
artemide-public | artemide-public-master/Models/BSV19.bFIT/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=C0_const*1d0/bT+2d0!mu_OPE(bt)
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,140 | 33.575758 | 110 | f90 |
artemide-public | artemide-public-master/Models/BSV19.bFIT/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)
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(:)
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,774 | 37.5 | 114 | f90 |
artemide-public | artemide-public-master/Models/BSV19.bFIT/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
bb=bT**2/x**2
w1=lambdaNP(1)*x+lambdaNP(2)*(1d0-x)
w2=lambdaNP(3)
FNP0=Exp(-bb*w1/sqrt(1d0+w2*bb))*(1+lambdaNP(4)*bb)
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*z/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","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
| 5,876 | 37.664474 | 114 | f90 |
artemide-public | artemide-public-master/Models/BSV19.bFIT/uTMDPDF_model.f90 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Model for unpolarized TMD PDF BSV19 [1902.08474]
!
! 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 BSV19.bFIT. Please, cite [1902.08474] <<<",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)::bb,w1,w2,w3,FNP0
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 !!! case of negative power, we return absolutely incorrect expression.
if(bT<1d0) then
FNP0=-1d0
else
FNP0=0d0
end if
else
FNP0=Exp(-w1*bb/sqrt(1+w2*bb))
end if
! FNP0=Exp(-lambdaNP(1)*bb)
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,parameter,dimension(1:1818)::replicas=(/&
0.2511, 7.9263, 297.3788, 2.4499, -4.3889, 0.1000,&!!!the suggested fo initialization replica is slightly wider. It prevent the 0-values at large b
0.2511, 7.9263, 297.3788, 2.4499, -4.3889, 0.0000,&!!! best replica
0.25781, 8.18488, 300.077, 2.43712, -4.77163, 0.0000,&!!! mean replica
0.2511, 7.9263, 297.3788, 2.4499, -4.3889, 0.0000,&
0.2449, 7.7574, 290.0932, 2.4172, -4.6023, 0.0000,&
0.2559, 7.9635, 296.3444, 2.4480, -4.4574, 0.0000,&
0.3171, 8.8044, 326.8294, 2.6640, -6.6475, 0.0000,&
0.2567, 7.8554, 288.5934, 2.3993, -4.6186, 0.0000,&
0.2719, 8.0778, 283.9569, 2.3922, -4.5742, 0.0000,&
0.2206, 9.5076, 468.2699, 2.5833, -5.8327, 0.0000,&
0.2452, 7.8320, 256.7893, 2.3758, -4.4222, 0.0000,&
0.2623, 7.6168, 285.8447, 2.4063, -4.6732, 0.0000,&
0.2933, 8.6603, 226.0058, 2.2646, -4.5147, 0.0000,&
0.2552, 7.9302, 293.9432, 2.4428, -4.4508, 0.0000,&
0.2592, 7.9104, 284.8790, 2.3888, -4.4966, 0.0000,&
0.2549, 7.8443, 289.8073, 2.4069, -4.5583, 0.0000,&
0.2611, 8.3215, 247.0097, 2.2520, -4.5140, 0.0000,&
0.2554, 7.8695, 290.7271, 2.4145, -4.5340, 0.0000,&
0.2514, 7.9289, 295.2975, 2.4525, -4.4050, 0.0000,&
0.2593, 7.4213, 241.3678, 2.4940, -4.7376, 0.0000,&
0.2578, 7.9677, 295.7001, 2.4435, -4.4458, 0.0000,&
0.2701, 8.1100, 277.9919, 2.3578, -4.5974, 0.0000,&
0.2593, 8.0679, 292.3666, 2.4378, -4.4212, 0.0000,&
0.2395, 7.9239, 288.3698, 2.3360, -3.4829, 0.0000,&
0.2361, 8.1255, 311.5749, 2.3892, -4.5338, 0.0000,&
0.2563, 7.9963, 295.1412, 2.4592, -4.4322, 0.0000,&
0.3001, 8.8909, 339.5419, 2.7855, -7.1026, 0.0000,&
0.2246, 8.5295, 322.0501, 2.3983, -3.7997, 0.0000,&
0.2626, 8.0375, 291.3736, 2.4361, -4.4016, 0.0000,&
0.2504, 7.8951, 291.8648, 2.4268, -4.4420, 0.0000,&
0.2559, 7.9576, 293.9834, 2.4432, -4.4561, 0.0000,&
0.2568, 7.8455, 288.3386, 2.4002, -4.6317, 0.0000,&
0.2582, 7.9274, 298.1113, 2.4456, -4.4914, 0.0000,&
0.2357, 8.2213, 318.7889, 2.4069, -4.4816, 0.0000,&
0.2572, 7.8485, 287.4542, 2.3932, -4.6288, 0.0000,&
0.2625, 8.0278, 296.9907, 2.4479, -4.4529, 0.0000,&
0.2551, 7.8092, 286.4433, 2.3847, -4.6648, 0.0000,&
0.2907, 8.4489, 326.1269, 2.6242, -5.2787, 0.0000,&
0.2418, 8.3798, 249.7049, 2.2920, -4.0173, 0.0000,&
0.1927, 9.8685, 356.4181, 2.3592, -4.7298, 0.0000,&
0.2534, 7.8436, 290.1047, 2.4126, -4.5397, 0.0000,&
0.2629, 8.0399, 290.5554, 2.4195, -4.4805, 0.0000,&
0.2631, 7.9495, 290.9899, 2.4152, -4.5857, 0.0000,&
0.2523, 8.3413, 242.9037, 2.2963, -4.3881, 0.0000,&
0.1677, 9.7148, 423.5295, 2.4028, -3.5857, 0.0000,&
0.2669, 7.9835, 251.2302, 2.4706, -5.7078, 0.0000,&
0.2763, 7.7223, 245.3575, 2.4056, -4.5660, 0.0000,&
0.2250, 8.0871, 309.1931, 2.3540, -4.1129, 0.0000,&
0.2676, 8.1183, 291.9723, 2.4245, -4.4934, 0.0000,&
0.2545, 7.7845, 284.9607, 2.3809, -4.7010, 0.0000,&
0.2548, 7.8428, 289.3180, 2.4010, -4.5830, 0.0000,&
0.2531, 8.6592, 326.2503, 2.3986, -4.6575, 0.0000,&
0.2496, 8.4805, 270.4068, 2.3905, -4.4980, 0.0000,&
0.2540, 7.7923, 285.4139, 2.3917, -4.6384, 0.0000,&
0.2577, 7.9320, 293.4976, 2.4318, -4.4952, 0.0000,&
0.2532, 8.5228, 305.0863, 2.3283, -4.3454, 0.0000,&
0.2556, 7.8382, 287.4254, 2.3886, -4.6763, 0.0000,&
0.2669, 7.9835, 251.2302, 2.4706, -5.7078, 0.0000,&
0.2887, 8.5947, 354.0349, 2.7312, -6.3512, 0.0000,&
0.2603, 8.1822, 277.5171, 2.2809, -4.5028, 0.0000,&
0.2665, 8.1774, 218.2517, 2.2686, -4.8782, 0.0000,&
0.2633, 7.9689, 297.0234, 2.4436, -4.4645, 0.0000,&
0.3157, 9.5133, 264.7545, 2.5071, -7.2879, 0.0000,&
0.2773, 8.4734, 223.1510, 2.3591, -5.7604, 0.0000,&
0.2510, 7.7861, 290.0002, 2.4105, -4.5703, 0.0000,&
0.2609, 8.3904, 274.2537, 2.3112, -4.5332, 0.0000,&
0.2547, 7.9329, 289.6250, 2.4316, -4.4537, 0.0000,&
0.2444, 7.9396, 299.7932, 2.4858, -4.4681, 0.0000,&
0.2561, 7.8531, 289.7258, 2.4013, -4.5839, 0.0000,&
0.2499, 8.1242, 231.0638, 2.2102, -4.2527, 0.0000,&
0.2648, 8.0545, 294.5840, 2.4283, -4.6618, 0.0000,&
0.2590, 7.9905, 296.9810, 2.4491, -4.4164, 0.0000,&
0.2563, 7.8293, 286.1814, 2.3921, -4.6117, 0.0000,&
0.2555, 7.9032, 291.9711, 2.4278, -4.4892, 0.0000,&
0.2616, 7.7414, 309.6191, 2.4229, -4.4685, 0.0000,&
0.2505, 7.9503, 235.7766, 2.2981, -4.2043, 0.0000,&
0.2824, 7.0459, 222.3899, 2.4554, -4.4593, 0.0000,&
0.2548, 7.8428, 289.3180, 2.4010, -4.5830, 0.0000,&
0.2642, 7.1001, 254.2780, 2.4055, -4.4727, 0.0000,&
0.2575, 8.5529, 269.5054, 2.3360, -4.1477, 0.0000,&
0.2616, 8.0225, 294.7133, 2.4296, -4.5009, 0.0000,&
0.2532, 7.7751, 285.8165, 2.3899, -4.6260, 0.0000,&
0.2624, 7.5200, 333.6492, 2.6343, -4.8831, 0.0000,&
0.3484, 13.7750, 535.9314, 3.2720, -13.0643, 0.0000,&
0.2463, 7.8691, 261.6840, 2.3827, -4.5155, 0.0000,&
0.2541, 7.9614, 292.5415, 2.4474, -4.4296, 0.0000,&
0.2584, 7.9012, 291.3320, 2.4133, -4.5744, 0.0000,&
0.2642, 8.0862, 297.3190, 2.4559, -4.4431, 0.0000,&
0.2448, 7.9571, 295.4112, 2.4252, -4.4588, 0.0000,&
0.2546, 8.2210, 243.6657, 2.2670, -4.4954, 0.0000,&
0.2504, 7.8810, 287.7199, 2.4410, -4.7446, 0.0000,&
0.2375, 8.2101, 285.8340, 2.4267, -4.6372, 0.0000,&
0.3156, 9.0087, 255.4167, 2.5511, -6.8077, 0.0000,&
0.2510, 7.8928, 272.8686, 2.4098, -4.2397, 0.0000,&
0.2575, 7.9905, 296.6753, 2.4367, -4.4441, 0.0000,&
0.2593, 8.0679, 292.3666, 2.4378, -4.4212, 0.0000,&
0.2518, 7.7056, 296.3654, 2.4114, -4.5096, 0.0000,&
0.2534, 7.9320, 292.0688, 2.4378, -4.4371, 0.0000,&
0.2640, 8.1697, 288.4570, 2.4426, -4.3733, 0.0000,&
0.2569, 7.8870, 290.7592, 2.4161, -4.5944, 0.0000,&
0.2649, 7.9418, 293.1840, 2.4017, -4.5263, 0.0000,&
0.2719, 8.0778, 283.9569, 2.3922, -4.5742, 0.0000,&
0.2557, 7.8133, 283.5843, 2.3771, -4.7073, 0.0000,&
0.2581, 7.8356, 287.1236, 2.3829, -4.6786, 0.0000,&
0.2539, 8.2316, 278.8566, 2.4452, -4.4809, 0.0000,&
0.2558, 7.9510, 295.3532, 2.4493, -4.4441, 0.0000,&
0.2574, 7.9612, 294.9816, 2.4418, -4.4534, 0.0000,&
0.2565, 7.9805, 287.7453, 2.4501, -4.3884, 0.0000,&
0.2725, 7.7643, 323.3653, 2.5620, -5.0700, 0.0000,&
0.2520, 7.8370, 284.9985, 2.4036, -4.5939, 0.0000,&
0.2610, 8.0530, 297.8170, 2.4619, -4.4306, 0.0000,&
0.2560, 7.9535, 298.1084, 2.4540, -4.4195, 0.0000,&
0.2358, 8.0316, 317.5672, 2.4658, -4.3519, 0.0000,&
0.2479, 7.8777, 279.5594, 2.4252, -4.6415, 0.0000,&
0.2551, 7.8830, 292.0210, 2.4258, -4.5138, 0.0000,&
0.2546, 7.8425, 290.8810, 2.4342, -4.6599, 0.0000,&
0.2790, 8.3956, 296.8539, 2.4254, -5.2904, 0.0000,&
0.2424, 7.8635, 282.8261, 2.4280, -4.0163, 0.0000,&
0.2504, 7.8271, 290.2944, 2.4186, -4.5112, 0.0000,&
0.2250, 8.0871, 309.1931, 2.3540, -4.1129, 0.0000,&
0.2635, 7.9488, 295.2084, 2.4374, -4.7691, 0.0000,&
0.2500, 7.7842, 291.0433, 2.4154, -4.6302, 0.0000,&
0.2566, 7.8784, 291.7563, 2.4244, -4.5578, 0.0000,&
0.2534, 7.9170, 292.0078, 2.4362, -4.4558, 0.0000,&
0.2467, 7.8992, 291.6687, 2.4340, -4.4953, 0.0000,&
0.2641, 7.9959, 300.5331, 2.4514, -4.6583, 0.0000,&
0.2539, 7.8059, 286.2858, 2.3938, -4.6591, 0.0000,&
0.2499, 7.6312, 295.9209, 2.4724, -4.7710, 0.0000,&
0.2479, 7.8777, 279.5594, 2.4252, -4.6415, 0.0000,&
0.2715, 8.0269, 291.4275, 2.4174, -4.8075, 0.0000,&
0.3128, 9.6102, 333.0840, 2.6969, -7.4856, 0.0000,&
0.2635, 8.1064, 304.4567, 2.4853, -4.3555, 0.0000,&
0.2158, 8.4857, 314.5035, 2.2738, -4.1019, 0.0000,&
0.2479, 8.2817, 366.0479, 2.5806, -4.2137, 0.0000,&
0.2559, 7.9635, 296.3444, 2.4480, -4.4574, 0.0000,&
0.2585, 7.8960, 289.2292, 2.4035, -4.6658, 0.0000,&
0.2606, 7.9768, 298.9906, 2.4447, -4.4633, 0.0000,&
0.2560, 7.9535, 298.1084, 2.4540, -4.4195, 0.0000,&
0.3097, 7.5240, 214.0458, 2.5050, -5.7339, 0.0000,&
0.2548, 7.8428, 289.3180, 2.4010, -4.5830, 0.0000,&
0.2573, 7.8711, 288.6545, 2.4043, -4.5730, 0.0000,&
0.2511, 7.9263, 297.3788, 2.4499, -4.3889, 0.0000,&
0.2614, 7.7607, 310.0187, 2.4177, -4.5227, 0.0000,&
0.2560, 7.8903, 291.3945, 2.4213, -4.5039, 0.0000,&
0.2555, 7.9290, 294.8674, 2.4461, -4.4498, 0.0000,&
0.2765, 8.2360, 286.8660, 2.3563, -4.8387, 0.0000,&
0.2531, 7.8883, 289.8658, 2.4260, -4.4862, 0.0000,&
0.2500, 7.7152, 291.0373, 2.4237, -4.5804, 0.0000,&
0.2499, 7.6312, 295.9210, 2.4724, -4.7710, 0.0000,&
0.2911, 8.2186, 171.1471, 2.2099, -4.0324, 0.0000,&
0.2608, 7.7993, 239.9932, 2.2225, -4.0976, 0.0000,&
0.2509, 7.8042, 289.9812, 2.4139, -4.5210, 0.0000,&
0.2575, 7.9651, 297.6563, 2.4509, -4.4578, 0.0000,&
0.2625, 8.2650, 272.4534, 2.3985, -4.5397, 0.0000,&
0.2494, 7.8634, 290.8233, 2.4486, -4.3670, 0.0000,&
0.2744, 8.4030, 336.0247, 2.6294, -5.2733, 0.0000,&
0.2633, 7.9689, 297.0234, 2.4436, -4.4645, 0.0000,&
0.2458, 7.8545, 294.1657, 2.4377, -4.4238, 0.0000,&
0.2374, 8.6350, 302.1186, 2.3467, -4.5378, 0.0000,&
0.2375, 8.2101, 285.8348, 2.4267, -4.6372, 0.0000,&
0.2511, 7.9158, 293.1089, 2.4495, -4.3933, 0.0000,&
0.2387, 8.4361, 292.4708, 2.3628, -4.5833, 0.0000,&
0.2630, 7.9422, 290.6504, 2.3939, -4.6554, 0.0000,&
0.2055, 10.4150, 397.6032, 2.4919, -5.2813, 0.0000,&
0.1677, 9.7148, 423.5295, 2.4028, -3.5857, 0.0000,&
0.2802, 8.0202, 273.6914, 2.5863, -5.8536, 0.0000,&
0.2571, 8.0179, 298.4596, 2.4648, -4.2667, 0.0000,&
0.2866, 8.6166, 308.9141, 2.7330, -7.1676, 0.0000,&
0.2242, 8.5875, 348.8329, 2.4538, -4.6773, 0.0000,&
0.2648, 8.0689, 282.1959, 2.3343, -4.6117, 0.0000,&
0.2609, 7.9824, 296.9033, 2.4674, -4.6273, 0.0000,&
0.2635, 8.2016, 305.4930, 2.4959, -4.2789, 0.0000,&
0.2235, 8.5838, 291.6139, 2.4554, -4.6554, 0.0000,&
0.2130, 8.8324, 396.7958, 2.4698, -4.0968, 0.0000,&
0.2567, 7.9178, 292.4520, 2.4286, -4.4805, 0.0000,&
0.2582, 7.9274, 298.1113, 2.4456, -4.4914, 0.0000,&
0.2719, 8.0778, 283.9569, 2.3922, -4.5742, 0.0000,&
0.2607, 8.0413, 348.9378, 2.6224, -4.7935, 0.0000,&
0.2698, 7.6243, 242.3131, 2.4044, -4.5236, 0.0000,&
0.2658, 8.0568, 286.8820, 2.3845, -4.6749, 0.0000,&
0.2839, 8.4946, 329.3868, 2.6105, -4.2333, 0.0000,&
0.2636, 8.0789, 290.0733, 2.4207, -4.4735, 0.0000,&
0.2575, 7.9541, 292.3809, 2.4493, -4.3896, 0.0000,&
0.2573, 7.9379, 294.0156, 2.4353, -4.4646, 0.0000,&
0.2481, 8.0552, 258.6620, 2.2611, -3.9778, 0.0000,&
0.2908, 9.0551, 380.2402, 2.6230, -6.5791, 0.0000,&
0.2555, 7.9290, 294.8674, 2.4461, -4.4498, 0.0000,&
0.2147, 8.7957, 285.4951, 2.3628, -4.4419, 0.0000,&
0.2133, 8.2956, 346.9656, 2.3288, -3.8923, 0.0000,&
0.2424, 7.8635, 282.8261, 2.4280, -4.0163, 0.0000,&
0.3268, 10.1155, 244.7079, 2.5792, -8.1457, 0.0000,&
0.1879, 7.3855, 219.6525, 2.2155, -2.8890, 0.0000,&
0.2512, 7.8466, 290.7735, 2.4277, -4.5387, 0.0000,&
0.2593, 7.4213, 241.3675, 2.4940, -4.7376, 0.0000,&
0.2535, 7.9520, 288.5387, 2.4337, -4.5363, 0.0000,&
0.2553, 7.9058, 293.0176, 2.4324, -4.4859, 0.0000,&
0.2539, 7.9002, 293.9514, 2.4276, -4.4376, 0.0000,&
0.2404, 7.9674, 279.3325, 2.4061, -4.3969, 0.0000,&
0.2564, 8.6708, 350.9572, 2.4851, -4.9624, 0.0000,&
0.2533, 7.9147, 289.0010, 2.4302, -4.4625, 0.0000,&
0.2654, 8.0482, 298.9306, 2.4678, -4.4163, 0.0000,&
0.2621, 8.3877, 289.5648, 2.4045, -4.2141, 0.0000,&
0.2636, 8.0789, 290.0733, 2.4207, -4.4735, 0.0000,&
0.2548, 7.8791, 292.8106, 2.4260, -4.5085, 0.0000,&
0.2951, 9.1781, 303.1875, 2.6639, -6.4543, 0.0000,&
0.2579, 7.8845, 288.7220, 2.4112, -4.5522, 0.0000,&
0.2439, 7.6851, 285.9347, 2.3915, -4.5598, 0.0000,&
0.2551, 7.8532, 289.7330, 2.4088, -4.5505, 0.0000,&
0.2093, 8.7354, 373.2076, 2.3293, -3.4669, 0.0000,&
0.2424, 8.4918, 287.6490, 2.3125, -3.8380, 0.0000,&
0.2636, 8.0279, 292.3452, 2.4300, -4.5092, 0.0000,&
0.2676, 8.0314, 292.2348, 2.4217, -4.5231, 0.0000,&
0.2698, 7.6243, 242.3128, 2.4044, -4.5236, 0.0000,&
0.2668, 8.1031, 298.3248, 2.4224, -4.4268, 0.0000,&
0.2589, 8.0381, 290.5671, 2.4452, -4.4067, 0.0000,&
0.2570, 8.0604, 276.1476, 2.3644, -4.6329, 0.0000,&
0.2564, 8.0722, 308.0102, 2.4764, -4.2897, 0.0000,&
0.3089, 8.5342, 302.8779, 2.5775, -5.8835, 0.0000,&
0.3057, 9.2505, 353.8586, 2.6713, -7.1643, 0.0000,&
0.2648, 8.0545, 294.5840, 2.4283, -4.6618, 0.0000,&
0.2554, 7.8867, 291.6509, 2.4240, -4.5129, 0.0000,&
0.2605, 7.7750, 304.8763, 2.4150, -4.4709, 0.0000,&
0.2558, 7.9686, 296.7832, 2.4528, -4.3203, 0.0000,&
0.2804, 8.6082, 280.9306, 2.3530, -5.5141, 0.0000,&
0.2539, 7.9766, 296.4358, 2.4590, -4.3888, 0.0000,&
0.2202, 9.1507, 401.6269, 2.4353, -4.6205, 0.0000,&
0.2599, 7.9952, 296.6124, 2.4433, -4.4225, 0.0000,&
0.2686, 7.5359, 253.0127, 2.4014, -4.9301, 0.0000,&
0.2560, 7.8903, 291.3945, 2.4213, -4.5039, 0.0000,&
0.2284, 7.9280, 284.5608, 2.3154, -4.0058, 0.0000,&
0.2532, 7.9010, 292.5193, 2.4318, -4.4660, 0.0000,&
0.2542, 7.9436, 289.6279, 2.4569, -4.3633, 0.0000,&
0.2612, 8.2267, 235.3464, 2.1832, -4.2853, 0.0000,&
0.2277, 8.5042, 308.5581, 2.3385, -4.1100, 0.0000,&
0.2745, 8.5063, 366.9618, 2.6139, -5.5948, 0.0000,&
0.2498, 7.8259, 295.9782, 2.4442, -4.5931, 0.0000,&
0.2573, 7.9379, 294.0156, 2.4353, -4.4646, 0.0000,&
0.3554, 21.3754, 1675.1517, 3.4980, -21.8342, 0.0000,&
0.2526, 7.8877, 290.3025, 2.4454, -4.4064, 0.0000,&
0.2547, 7.7713, 285.4574, 2.3834, -4.6453, 0.0000,&
0.2649, 7.9418, 293.1840, 2.4017, -4.5263, 0.0000,&
0.3033, 9.1735, 349.6582, 2.7025, -7.2247, 0.0000,&
0.3071, 9.5910, 384.0600, 2.8487, -8.1149, 0.0000,&
0.2707, 7.7974, 198.9403, 2.2043, -2.8322, 0.0000,&
0.3197, 12.5351, 562.3091, 2.8749, -11.0134, 0.0000,&
0.2544, 7.8469, 292.8801, 2.4184, -4.5470, 0.0000,&
0.2508, 7.8995, 289.5671, 2.4418, -4.4431, 0.0000,&
0.2672, 8.0664, 289.1191, 2.4202, -4.5557, 0.0000,&
0.2597, 7.9897, 297.0081, 2.4352, -4.4097, 0.0000,&
0.2638, 8.1655, 305.7453, 2.4525, -4.4111, 0.0000,&
0.2500, 7.7152, 291.0373, 2.4237, -4.5804, 0.0000,&
0.2263, 8.5791, 310.3789, 2.3199, -4.1853, 0.0000,&
0.2564, 7.9003, 292.4698, 2.4270, -4.5088, 0.0000,&
0.2555, 7.9032, 291.9711, 2.4278, -4.4892, 0.0000,&
0.2661, 7.9530, 334.9854, 2.6093, -5.4536, 0.0000,&
0.2494, 7.8634, 290.8233, 2.4486, -4.3670, 0.0000,&
0.2544, 7.8402, 289.6894, 2.4086, -4.5771, 0.0000,&
0.2667, 8.3727, 275.5736, 2.3852, -4.4196, 0.0000,&
0.2562, 7.8641, 290.2504, 2.4064, -4.5690, 0.0000,&
0.2544, 7.8193, 287.9020, 2.4049, -4.8229, 0.0000,&
0.2544, 7.8880, 291.2344, 2.4239, -4.4932, 0.0000,&
0.3176, 10.7584, 317.6682, 2.7519, -8.9698, 0.0000,&
0.2520, 7.7831, 281.9541, 2.3689, -4.7015, 0.0000,&
0.2721, 8.2516, 289.9067, 2.4008, -4.6160, 0.0000,&
0.2551, 7.8830, 292.0210, 2.4258, -4.5138, 0.0000,&
0.2696, 7.4473, 341.6012, 2.6526, -5.3455, 0.0000,&
0.2669, 8.3282, 280.3518, 2.3747, -4.6475, 0.0000,&
0.2631, 7.9735, 292.1782, 2.4397, -4.5852, 0.0000,&
0.2559, 7.9793, 291.9219, 2.4456, -4.4468, 0.0000,&
0.2552, 7.8266, 261.5867, 2.2759, -4.2382, 0.0000,&
0.2409, 7.8395, 244.9122, 2.3331, -4.7255, 0.0000,&
0.2640, 8.1697, 288.4570, 2.4426, -4.3733, 0.0000,&
0.2576, 7.8662, 288.9857, 2.4036, -4.6363, 0.0000,&
0.2555, 7.8744, 290.7305, 2.4154, -4.5261, 0.0000,&
0.2542, 7.7436, 282.3853, 2.3642, -4.7851, 0.0000,&
0.2539, 7.8253, 287.6500, 2.3989, -4.5846, 0.0000,&
0.2548, 7.8113, 284.6678, 2.3863, -4.6542, 0.0000,&
0.2603, 8.1822, 277.5171, 2.2809, -4.5028, 0.0000,&
0.2444, 7.7714, 291.7299, 2.4555, -4.4776, 0.0000,&
0.2554, 7.9357, 259.8244, 2.2914, -3.9127, 0.0000,&
0.2543, 7.8698, 291.2352, 2.4221, -4.5144, 0.0000,&
0.2475, 7.7660, 290.7591, 2.4248, -4.7012, 0.0000,&
0.2546, 7.9150, 291.2380, 2.4253, -4.4883, 0.0000,&
0.2618, 8.1564, 295.0007, 2.4478, -4.2403, 0.0000,&
0.2771, 8.2409, 247.1626, 2.3759, -5.0905, 0.0000,&
0.2385, 8.0859, 260.0108, 2.3773, -3.9912, 0.0000,&
0.2771, 8.2409, 247.1621, 2.3759, -5.0905, 0.0000,&
0.2554, 7.8257, 286.7312, 2.3938, -4.6085, 0.0000,&
0.3070, 8.8774, 332.2550, 2.6390, -6.4840, 0.0000,&
0.1886, 7.3769, 352.2129, 2.3317, -2.7377, 0.0000,&
0.2544, 7.8767, 291.8786, 2.4224, -4.5059, 0.0000,&
0.2557, 7.8133, 283.5843, 2.3771, -4.7073, 0.0000,&
0.2534, 7.8436, 290.1047, 2.4126, -4.5397, 0.0000,&
0.2584, 7.9012, 291.3320, 2.4133, -4.5744, 0.0000,&
0.2581, 7.8558, 288.7346, 2.4018, -4.6188, 0.0000,&
0.2100, 9.7660, 400.2460, 2.3544, -4.4842, 0.0000,&
0.2576, 7.9596, 296.0470, 2.4546, -4.4272, 0.0000,&
0.3029, 9.1566, 348.9325, 2.6986, -7.1903, 0.0000,&
0.2618, 7.9780, 290.9356, 2.4039, -4.6034, 0.0000,&
0.2559, 7.9416, 295.8674, 2.4485, -4.4579, 0.0000,&
0.2647, 8.0520, 298.5268, 2.4430, -4.5029, 0.0000,&
0.1927, 9.8685, 356.4181, 2.3592, -4.7298, 0.0000,&
0.2641, 8.0332, 297.5749, 2.4395, -4.3616, 0.0000/)
allocate(NParray(1:size(NPparam)))
if(rep>300) then
write(*,*) color('ERROR in BSM19.bFIT model. It has only 300 replicas. Central replica is set',c_red)
NParray=1d0*replicas((0+2)*6+1:(0+2)*6+6)
else
NParray=1d0*replicas((rep+2)*6+1:(rep+2)*6+6)
end if
end subroutine GetReplicaParameters
end module uTMDPDF_model
| 26,924 | 57.153348 | 163 | f90 |
artemide-public | artemide-public-master/Models/BSV19.bFIX.noLHC/TMDR_model.f90 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Model for unpolarized TMD evolution for BSV19.bFIX.noLHC [1902.08474]
!
! corresponds to bb* model, at fixed bMAX=2.5 GeV^{-1}
! DNP=Dpert(b*)+g bb*
! zeta=zetaPert(b*)
!
! Requres two NP parameters (initated by best values values)
!
! A.Vladimirov (20.02.2019)
!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
module TMDR_model
use aTMDe_Numerics
use IO_functions
use TMD_AD, only : Dresum,zetaMUpert,zetaSL
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)<2) then
write(*,*) color('BSV19-model: Number NP parameters for TMDR is less then 2',c_red)
write(*,*) 'Evaluation STOP'
stop
end if
allocate(NPparam(1:size(InitialNPParams)))
NPparam=InitialNPParams
write(*,*) color(">>> The model for TMD evolution is BSV19.bFIX.noLHC. Please, cite [1902.08474] <<<",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-pertrubative model
!!! In your evaluation take care that the saddle point is inside the pertrubative regeme
!!! Use function Dpert(mu,b,f) for D pertrubative, 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=Dresum(mu,bSTAR,1)+NPparam(2)*bSTAR*b !!!! D*+gK b b*, it smoother turns perturbative to b^2 assimptotic
end function DNP
!! This is the non-pertrubative shape of zeta_mu line.
!! It MUST follow the equipotential line in pertrubative 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)::sqrtBMAX
sqrtBMAX=SQRT(1+b**2/NPparam(1)**2)
zetaNP=zetaMUpert(mu,b/sqrtBMAX,f)
end function zetaNP
!!! this is the table of replica prameters extracted in fit BSV19.
!!! -2 is suggested for initialization replica
!!! -1 is the best fit
!!! 0 is the mean reaplics
!!! 1 -- 100 replicas
subroutine GetReplicaParameters(rep,NParray)
integer,intent(in)::rep
real(dp),allocatable,intent(out)::NParray(:)
real,parameter,dimension(1:206)::replicas=(/&
2.5000, 0.011883,& !! suggested
2.5000, 0.011883,&
2.5000, 0.011883,&!! mean replica
2.5000, 0.0109,&
2.5000, 0.0100,&
2.5000, 0.0127,&
2.5000, 0.0100,&
2.5000, 0.0100,&
2.5000, 0.0107,&
2.5000, 0.0301,&
2.5000, 0.0103,&
2.5000, 0.0100,&
2.5000, 0.0120,&
2.5000, 0.0105,&
2.5000, 0.0101,&
2.5000, 0.0123,&
2.5000, 0.0100,&
2.5000, 0.0100,&
2.5000, 0.0101,&
2.5000, 0.0110,&
2.5000, 0.0218,&
2.5000, 0.0102,&
2.5000, 0.0102,&
2.5000, 0.0102,&
2.5000, 0.0143,&
2.5000, 0.0100,&
2.5000, 0.0108,&
2.5000, 0.0114,&
2.5000, 0.0101,&
2.5000, 0.0105,&
2.5000, 0.0106,&
2.5000, 0.0100,&
2.5000, 0.0135,&
2.5000, 0.0102,&
2.5000, 0.0100,&
2.5000, 0.0100,&
2.5000, 0.0100,&
2.5000, 0.0107,&
2.5000, 0.0103,&
2.5000, 0.0103,&
2.5000, 0.0109,&
2.5000, 0.0100,&
2.5000, 0.0323,&
2.5000, 0.0100,&
2.5000, 0.0101,&
2.5000, 0.0117,&
2.5000, 0.0115,&
2.5000, 0.0100,&
2.5000, 0.0100,&
2.5000, 0.0100,&
2.5000, 0.0102,&
2.5000, 0.0100,&
2.5000, 0.0101,&
2.5000, 0.0115,&
2.5000, 0.0102,&
2.5000, 0.0100,&
2.5000, 0.0102,&
2.5000, 0.0100,&
2.5000, 0.0103,&
2.5000, 0.0178,&
2.5000, 0.0117,&
2.5000, 0.0102,&
2.5000, 0.0101,&
2.5000, 0.0101,&
2.5000, 0.0103,&
2.5000, 0.0107,&
2.5000, 0.0101,&
2.5000, 0.0201,&
2.5000, 0.0149,&
2.5000, 0.0101,&
2.5000, 0.0197,&
2.5000, 0.0113,&
2.5000, 0.0128,&
2.5000, 0.0100,&
2.5000, 0.0310,&
2.5000, 0.0100,&
2.5000, 0.0112,&
2.5000, 0.0101,&
2.5000, 0.0100,&
2.5000, 0.0110,&
2.5000, 0.0101,&
2.5000, 0.0100,&
2.5000, 0.0177,&
2.5000, 0.0100,&
2.5000, 0.0103,&
2.5000, 0.0109,&
2.5000, 0.0102,&
2.5000, 0.0103,&
2.5000, 0.0178,&
2.5000, 0.0174,&
2.5000, 0.0102,&
2.5000, 0.0170,&
2.5000, 0.0101,&
2.5000, 0.0130,&
2.5000, 0.0107,&
2.5000, 0.0118,&
2.5000, 0.0100,&
2.5000, 0.0101,&
2.5000, 0.0100,&
2.5000, 0.0100,&
2.5000, 0.0100,&
2.5000, 0.0127,&
2.5000, 0.0100/)
allocate(NParray(1:2))
if(rep>100) then
write(*,*) color('ERROR in BSV19.bFIX.noLHC model. It has only 100 replicas. Central replica is set',c_red)
NParray=1d0*replicas((0+2)*2+1:(0+2)*2+2)
else
NParray=1d0*replicas((rep+2)*2+1:(rep+2)*2+2)
end if
end subroutine GetReplicaParameters
end module TMDR_model | 6,704 | 28.933036 | 116 | f90 |
artemide-public | artemide-public-master/Models/BSV19.bFIX.noLHC/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=C0_const*1d0/bT+2d0!mu_OPE(bt)
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,140 | 33.575758 | 110 | f90 |
artemide-public | artemide-public-master/Models/BSV19.bFIX.noLHC/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)
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(:)
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,774 | 37.5 | 114 | f90 |
artemide-public | artemide-public-master/Models/BSV19.bFIX.noLHC/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
bb=bT**2/x**2
w1=lambdaNP(1)*x+lambdaNP(2)*(1d0-x)
w2=lambdaNP(3)
FNP0=Exp(-bb*w1/sqrt(1d0+w2*bb))*(1+lambdaNP(4)*bb)
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*z/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","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
| 5,876 | 37.664474 | 114 | f90 |
artemide-public | artemide-public-master/Models/BSV19.bFIX.noLHC/uTMDPDF_model.f90 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Model for unpolarized TMD PDF BSV19 [1902.08474]
!
! 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 BSV19.bFIX.noLHC. Please, cite [1902.08474] <<<",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)::bb,w1,w2,w3,FNP0
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 !!! case of negative power, we return absolutely incorrect expression.
if(bT<1d0) then
FNP0=-1d0
else
FNP0=0d0
end if
else
FNP0=Exp(-w1*bb/sqrt(1+w2*bb))
end if
! FNP0=Exp(-lambdaNP(1)*bb)
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,parameter,dimension(1:618)::replicas=(/&
0.135821, 11.2293, 413.805, 2.07758, -2.47575, 0.1000,&!!!the suggested fo initialization replica is slightly wider. It prevent the 0-values at large b
0.135821, 11.2293, 413.805, 2.07758, -2.47575, 0.0000,&!!! best replica
0.135821, 11.2293, 413.805, 2.07758, -2.47575, 0.0000,&!!! mean replica
0.3203, 10.2384, 207.7621, 2.3082, -6.8334, 0.0000,&
0.0493, 16.8501, 592.1730, 2.1721, -6.6425, 0.0000,&
0.1237, 14.4919, 578.9114, 2.4078, -6.9248, 0.0000,&
0.0207, 11.0275, 477.3483, 1.9698, 1.4794, 0.0000,&
0.2031, 10.4123, 276.3608, 1.9837, -2.6992, 0.0000,&
0.2445, 10.8924, 304.4318, 2.1114, -4.0831, 0.0000,&
0.0029, 6.2163, 434.2731, 1.9461, 5.5859, 0.0000,&
0.1901, 12.3710, 382.1757, 2.1382, -4.4974, 0.0000,&
0.1892, 14.1663, 400.8676, 2.2314, -7.2234, 0.0000,&
0.0482, 13.1583, 660.0553, 2.1065, -0.7813, 0.0000,&
0.1105, 11.2779, 429.0225, 2.0587, -1.1421, 0.0000,&
0.1688, 8.9537, 254.1412, 2.0661, -1.7291, 0.0000,&
0.2437, 9.7672, 257.8334, 2.0467, -3.1494, 0.0000,&
0.0007, 14.3272, 467.4429, 1.8914, -1.0972, 0.0000,&
0.1473, 10.3249, 289.7746, 2.0884, -2.7868, 0.0000,&
0.0050, 23.3423, 1297.6310, 2.4191, -11.4937, 0.0000,&
0.1779, 10.5071, 323.1526, 2.0777, -2.5492, 0.0000,&
0.0376, 12.8898, 682.5326, 2.2903, -2.8702, 0.0000,&
0.0119, 14.8465, 676.7602, 2.1010, -2.0680, 0.0000,&
0.1517, 13.1372, 366.0090, 2.0989, -5.1827, 0.0000,&
0.2339, 7.4022, 136.4038, 2.0113, -2.5848, 0.0000,&
0.2273, 8.0676, 288.4444, 2.1092, -0.8464, 0.0000,&
0.2479, 9.9857, 232.2811, 2.0188, -3.4313, 0.0000,&
0.2901, 12.1923, 338.1887, 2.2768, -6.7207, 0.0000,&
0.1337, 12.5233, 527.2268, 2.3712, -4.2851, 0.0000,&
0.1484, 10.1013, 238.0258, 2.1709, -3.9868, 0.0000,&
0.2689, 10.3890, 266.9041, 2.1753, -4.9113, 0.0000,&
0.2381, 8.5216, 192.5438, 1.9689, -2.3800, 0.0000,&
0.1812, 10.4234, 352.3761, 2.1685, -2.5765, 0.0000,&
0.0432, 19.0076, 1199.9113, 2.4114, -7.1005, 0.0000,&
0.1001, 8.9491, 307.8871, 1.9237, 1.7622, 0.0000,&
0.0773, 16.5154, 649.9063, 2.2125, -6.3812, 0.0000,&
0.0531, 11.9432, 536.7471, 2.0720, 0.1084, 0.0000,&
0.1444, 13.1165, 374.2656, 2.3050, -6.5316, 0.0000,&
0.0265, 13.9315, 580.7939, 2.1942, -3.3127, 0.0000,&
0.1101, 15.8651, 618.8660, 2.3243, -7.0425, 0.0000,&
0.1571, 7.8505, 211.0611, 1.9222, 0.2671, 0.0000,&
0.2191, 7.8065, 204.2413, 1.8320, 0.0062, 0.0000,&
0.1968, 9.5825, 238.8714, 1.9334, -1.8419, 0.0000,&
0.0171, 2.4996, 282.0199, 1.4856, 11.7653, 0.0000,&
0.1486, 13.2377, 429.6052, 2.2579, -5.6716, 0.0000,&
0.2093, 10.2020, 264.8255, 2.0950, -3.5823, 0.0000,&
0.1947, 12.8304, 424.6658, 2.2492, -5.5852, 0.0000,&
0.1252, 10.5713, 330.1720, 2.0319, -1.7631, 0.0000,&
0.1689, 8.1907, 241.7567, 2.0172, -0.6706, 0.0000,&
0.2085, 6.1717, 147.0558, 1.7287, 1.2990, 0.0000,&
0.0718, 17.5079, 718.9594, 2.2407, -6.7717, 0.0000,&
0.1775, 10.6615, 265.7828, 2.0743, -3.6132, 0.0000,&
0.1474, 10.4157, 270.5497, 1.9825, -2.4872, 0.0000,&
0.0169, 10.0866, 394.3153, 1.8101, 3.9096, 0.0000,&
0.2119, 10.9424, 286.7716, 2.1365, -4.4780, 0.0000,&
0.1868, 7.4688, 140.6990, 1.9544, -1.8862, 0.0000,&
0.0840, 14.3941, 517.9648, 2.0989, -3.4241, 0.0000,&
0.1654, 10.1378, 285.7086, 2.0961, -2.8246, 0.0000,&
0.2130, 11.6147, 370.5032, 2.1986, -4.3690, 0.0000,&
0.0646, 13.2442, 556.2879, 2.1842, -2.8382, 0.0000,&
0.0553, 10.8935, 520.9317, 2.1090, -0.1409, 0.0000,&
0.1893, 7.1859, 174.6980, 1.8656, -0.1360, 0.0000,&
0.2051, 6.3954, 166.7643, 1.8001, 1.2241, 0.0000,&
0.1921, 10.4895, 289.7872, 1.9428, -2.0777, 0.0000,&
0.1301, 14.8527, 502.2133, 2.0326, -4.4746, 0.0000,&
0.1696, 10.2090, 265.0910, 2.1207, -3.4064, 0.0000,&
0.0148, 16.7007, 810.9182, 2.2179, -4.6163, 0.0000,&
0.0845, 10.8626, 300.5632, 1.9383, -1.5587, 0.0000,&
0.1469, 10.6171, 375.3059, 2.2669, -3.5992, 0.0000,&
0.1682, 6.8976, 221.2041, 1.8445, 1.6578, 0.0000,&
0.1158, 12.8450, 371.3145, 2.1803, -5.2679, 0.0000,&
0.0389, 4.5646, 230.3756, 1.5515, 8.0539, 0.0000,&
0.2215, 9.9380, 267.9917, 2.1177, -3.4787, 0.0000,&
0.0005, 22.3728, 1321.8078, 2.3598, -9.5510, 0.0000,&
0.1021, 13.4773, 462.5500, 2.1250, -4.0534, 0.0000,&
0.0577, 19.6361, 1548.8614, 2.5375, -9.3576, 0.0000,&
0.1318, 9.3830, 264.8142, 2.0268, -1.3226, 0.0000,&
0.1853, 11.7121, 371.1077, 2.2774, -5.1697, 0.0000,&
0.1590, 8.7819, 229.4285, 1.8931, -0.4093, 0.0000,&
0.2420, 8.6059, 177.8044, 1.8611, -2.0407, 0.0000,&
0.0278, 10.2289, 462.6457, 1.9399, 2.6371, 0.0000,&
0.0743, 24.5931, 1626.2317, 2.7417, -15.6620, 0.0000,&
0.1532, 15.0545, 410.3061, 2.1522, -7.4095, 0.0000,&
0.0151, 10.9901, 463.4220, 1.9850, 0.9882, 0.0000,&
0.0152, 12.8055, 507.5059, 2.0400, -0.7271, 0.0000,&
0.0701, 5.7273, 179.1455, 1.6772, 4.1556, 0.0000,&
0.2215, 7.8693, 209.3558, 1.8526, -0.0502, 0.0000,&
0.0723, 13.3372, 523.3329, 2.1085, -2.8653, 0.0000,&
0.1855, 8.0360, 205.0965, 1.9787, -1.0894, 0.0000,&
0.0270, 5.0911, 285.8459, 1.7217, 7.3022, 0.0000,&
0.2739, 9.1446, 274.5006, 2.4015, -4.7552, 0.0000,&
0.2262, 9.4022, 210.9295, 2.0552, -3.5645, 0.0000,&
0.1381, 8.7526, 274.4438, 2.1654, -1.9353, 0.0000,&
0.0554, 11.6893, 418.7567, 1.9656, -0.4025, 0.0000,&
0.1467, 10.2205, 326.6308, 2.0112, -1.5362, 0.0000,&
0.1068, 6.0458, 272.5422, 1.7448, 5.6602, 0.0000,&
0.0769, 9.2644, 380.3605, 2.0682, 0.5898, 0.0000,&
0.0373, 15.9498, 825.4843, 2.5184, -7.1001, 0.0000,&
0.2810, 7.8986, 173.4535, 1.9945, -2.4347, 0.0000,&
0.0202, 12.8427, 588.5290, 2.1794, -1.6503, 0.0000,&
0.1398, 14.5789, 479.6105, 2.2915, -6.8369, 0.0000,&
0.2317, 10.1883, 284.3366, 1.9017, -1.3917, 0.0000,&
0.2050, 6.6016, 162.1046, 1.9601, -0.5491, 0.0000,&
0.2147, 6.6506, 181.1879, 1.6776, 2.2456, 0.0000/)
allocate(NParray(1:size(NPparam)))
if(rep>100) then
write(*,*) color('ERROR in BSM19.bFIX.noLHC model. It has only 100 replicas. Central replica is set',c_red)
NParray=1d0*replicas((0+2)*6+1:(0+2)*6+6)
else
NParray=1d0*replicas((rep+2)*6+1:(rep+2)*6+6)
end if
end subroutine GetReplicaParameters
end module uTMDPDF_model
| 13,328 | 49.874046 | 163 | f90 |
artemide-public | artemide-public-master/Models/BSV19.bFIX/TMDR_model.f90 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Model for unpolarized TMD evolution for BSV19.bFIX [1902.08474]
!
! corresponds to bb* model, at b =2.5 GeV^{-1}
! DNP=Dpert(b*)+g bb*
! zeta=zetaPert(b*)
!
! Requres two NP parameters (initated by best values values)
!
! A.Vladimirov (20.02.2019)
!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
module TMDR_model
use aTMDe_Numerics
use IO_functions
use TMD_AD, only : Dresum,zetaMUpert,zetaSL
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)<2) then
write(*,*) color('BSV19-model: Number NP parameters for TMDR is less then 2',c_red)
write(*,*) 'Evaluation STOP'
stop
end if
allocate(NPparam(1:size(InitialNPParams)))
NPparam=InitialNPParams
write(*,*) color(">>> The model for TMD evolution is BSV19.bFIX. Please, cite [1902.08474] <<<",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-pertrubative model
!!! In your evaluation take care that the saddle point is inside the pertrubative regeme
!!! Use function Dpert(mu,b,f) for D pertrubative, 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=Dresum(mu,bSTAR,1)+NPparam(2)*bSTAR*b !!!! D*+gK b b*, it smoother turns perturbative to b^2 assimptotic
end function DNP
!! This is the non-pertrubative shape of zeta_mu line.
!! It MUST follow the equipotential line in pertrubative 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)::sqrtBMAX
sqrtBMAX=SQRT(1+b**2/NPparam(1)**2)
zetaNP=zetaMUpert(mu,b/sqrtBMAX,f)
end function zetaNP
!!! this is the table of replica prameters extracted in fit BSV19.
!!! -2 is suggested for initialization replica
!!! -1 is the best fit
!!! 0 is the mean reaplics
!!! 1 -- 100 replicas
subroutine GetReplicaParameters(rep,NParray)
integer,intent(in)::rep
real(dp),allocatable,intent(out)::NParray(:)
real,parameter,dimension(1:206)::replicas=(/&
2.5000, 0.037484,& !! suggested
2.5000, 0.037484,&
2.5000, 0.037484,&!! mean replica
2.5000, 0.0263,&
2.5000, 0.0414,&
2.5000, 0.0310,&
2.5000, 0.0307,&
2.5000, 0.0338,&
2.5000, 0.0431,&
2.5000, 0.0398,&
2.5000, 0.0368,&
2.5000, 0.0310,&
2.5000, 0.0273,&
2.5000, 0.0248,&
2.5000, 0.0402,&
2.5000, 0.0410,&
2.5000, 0.0310,&
2.5000, 0.0359,&
2.5000, 0.0348,&
2.5000, 0.0332,&
2.5000, 0.0300,&
2.5000, 0.0248,&
2.5000, 0.0389,&
2.5000, 0.0355,&
2.5000, 0.0411,&
2.5000, 0.0389,&
2.5000, 0.0341,&
2.5000, 0.0316,&
2.5000, 0.0357,&
2.5000, 0.0437,&
2.5000, 0.0464,&
2.5000, 0.0436,&
2.5000, 0.0427,&
2.5000, 0.0420,&
2.5000, 0.0102,&
2.5000, 0.0311,&
2.5000, 0.0393,&
2.5000, 0.0479,&
2.5000, 0.0281,&
2.5000, 0.0388,&
2.5000, 0.0446,&
2.5000, 0.0361,&
2.5000, 0.0360,&
2.5000, 0.0268,&
2.5000, 0.0387,&
2.5000, 0.0315,&
2.5000, 0.0436,&
2.5000, 0.0396,&
2.5000, 0.0468,&
2.5000, 0.0433,&
2.5000, 0.0369,&
2.5000, 0.0434,&
2.5000, 0.0332,&
2.5000, 0.0475,&
2.5000, 0.0418,&
2.5000, 0.0489,&
2.5000, 0.0280,&
2.5000, 0.0324,&
2.5000, 0.0293,&
2.5000, 0.0442,&
2.5000, 0.0389,&
2.5000, 0.0382,&
2.5000, 0.0492,&
2.5000, 0.0214,&
2.5000, 0.0342,&
2.5000, 0.0506,&
2.5000, 0.0380,&
2.5000, 0.0343,&
2.5000, 0.0383,&
2.5000, 0.0370,&
2.5000, 0.0435,&
2.5000, 0.0463,&
2.5000, 0.0423,&
2.5000, 0.0463,&
2.5000, 0.0375,&
2.5000, 0.0372,&
2.5000, 0.0339,&
2.5000, 0.0421,&
2.5000, 0.0419,&
2.5000, 0.0342,&
2.5000, 0.0333,&
2.5000, 0.0307,&
2.5000, 0.0395,&
2.5000, 0.0382,&
2.5000, 0.0428,&
2.5000, 0.0385,&
2.5000, 0.0454,&
2.5000, 0.0395,&
2.5000, 0.0305,&
2.5000, 0.0456,&
2.5000, 0.0420,&
2.5000, 0.0396,&
2.5000, 0.0423,&
2.5000, 0.0335,&
2.5000, 0.0329,&
2.5000, 0.0389,&
2.5000, 0.0455,&
2.5000, 0.0389,&
2.5000, 0.0369,&
2.5000, 0.0368,&
2.5000, 0.0323,&
2.5000, 0.0511,&
2.5000, 0.0293/)
allocate(NParray(1:2))
if(rep>100) then
write(*,*) color('ERROR in BSV19.bFIX model. It has only 100 replicas. Central replica is set',c_red)
NParray=1d0*replicas((0+2)*2+1:(0+2)*2+2)
else
NParray=1d0*replicas((rep+2)*2+1:(rep+2)*2+2)
end if
end subroutine GetReplicaParameters
end module TMDR_model
| 6,677 | 28.8125 | 113 | f90 |
artemide-public | artemide-public-master/Models/BSV19.bFIX/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=C0_const*1d0/bT+2d0!mu_OPE(bt)
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,140 | 33.575758 | 110 | f90 |
artemide-public | artemide-public-master/Models/BSV19.bFIX/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)
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(:)
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,774 | 37.5 | 114 | f90 |
artemide-public | artemide-public-master/Models/BSV19.bFIX/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
bb=bT**2/x**2
w1=lambdaNP(1)*x+lambdaNP(2)*(1d0-x)
w2=lambdaNP(3)
FNP0=Exp(-bb*w1/sqrt(1d0+w2*bb))*(1+lambdaNP(4)*bb)
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*z/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","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
| 5,876 | 37.664474 | 114 | f90 |
artemide-public | artemide-public-master/Models/BSV19.bFIX/uTMDPDF_model.f90 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Model for unpolarized TMD PDF BSV19 [1902.08474]
!
! 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 BSV19.bFIX. Please, cite [1902.08474] <<<",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)::bb,w1,w2,w3,FNP0
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 !!! case of negative power, we return absolutely incorrect expression.
if(bT<1d0) then
FNP0=-1d0
else
FNP0=0d0
end if
else
FNP0=Exp(-w1*bb/sqrt(1+w2*bb))
end if
! FNP0=Exp(-lambdaNP(1)*bb)
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,parameter,dimension(1:618)::replicas=(/&
0.248353, 8.15443, 275.912, 2.52581, -4.96056, 0.1000,&!!!the suggested fo initialization replica is slightly wider. It prevent the 0-values at large b
0.248353, 8.15443, 275.912, 2.52581, -4.96056, 0.0000,&!!! best replica
0.248353, 8.15443, 275.912, 2.52581, -4.96056, 0.0000,&!!! mean replica
0.3183, 9.7583, 349.1763, 2.9585, -8.1546, 0.0000,&
0.2157, 7.6595, 288.1890, 2.4484, -3.9180, 0.0000,&
0.2980, 11.5897, 374.8948, 2.7785, -9.7057, 0.0000,&
0.2717, 7.7718, 272.2432, 2.5266, -4.2645, 0.0000,&
0.2485, 8.7815, 279.5729, 2.4171, -4.9592, 0.0000,&
0.2360, 7.3568, 250.6606, 2.5625, -4.4443, 0.0000,&
0.2378, 7.7165, 306.6578, 2.5476, -4.2307, 0.0000,&
0.2502, 7.8545, 243.4586, 2.4840, -4.8395, 0.0000,&
0.2732, 7.9270, 250.7517, 2.4977, -4.6666, 0.0000,&
0.2414, 8.3407, 292.6242, 2.4010, -3.8862, 0.0000,&
0.3059, 12.6697, 420.0725, 2.7933, -10.5186, 0.0000,&
0.2317, 7.4379, 244.1309, 2.4200, -4.0075, 0.0000,&
0.2427, 7.6630, 250.8475, 2.4497, -4.4898, 0.0000,&
0.2980, 11.5897, 374.8948, 2.7785, -9.7057, 0.0000,&
0.2512, 7.7993, 235.1599, 2.4716, -4.7726, 0.0000,&
0.2467, 7.5285, 274.6018, 2.5640, -4.2796, 0.0000,&
0.2559, 8.2205, 259.1454, 2.4725, -4.8577, 0.0000,&
0.2544, 8.1088, 229.5658, 2.3621, -4.4674, 0.0000,&
0.3059, 12.6697, 420.0725, 2.7933, -10.5186, 0.0000,&
0.2414, 7.4459, 233.2453, 2.3806, -3.8121, 0.0000,&
0.1885, 8.9611, 434.0463, 2.4783, -3.4805, 0.0000,&
0.2372, 7.4225, 253.7932, 2.5144, -4.2873, 0.0000,&
0.2615, 7.8520, 301.0166, 2.6823, -5.1720, 0.0000,&
0.2146, 9.4106, 370.1657, 2.4035, -4.6659, 0.0000,&
0.2385, 7.6679, 237.7240, 2.3976, -3.8943, 0.0000,&
0.2722, 7.6868, 240.8871, 2.4954, -4.6169, 0.0000,&
0.2199, 7.4339, 251.6986, 2.5388, -4.4520, 0.0000,&
0.2478, 7.2748, 254.1880, 2.5611, -4.6149, 0.0000,&
0.2600, 7.8033, 327.9953, 2.8921, -5.8782, 0.0000,&
0.2678, 7.0731, 225.4841, 2.5731, -4.6740, 0.0000,&
0.1859, 8.9088, 396.7617, 2.4443, -4.0500, 0.0000,&
0.3252, 16.2530, 290.9761, 2.5294, -13.3920, 0.0000,&
0.2465, 8.2372, 224.3463, 2.3187, -4.3525, 0.0000,&
0.2299, 6.8383, 204.1714, 2.3330, -3.2798, 0.0000,&
0.2347, 7.2584, 251.4713, 2.5473, -4.5875, 0.0000,&
0.2678, 9.7140, 330.1632, 2.4641, -5.6242, 0.0000,&
0.2350, 7.4074, 281.2593, 2.4868, -3.7386, 0.0000,&
0.2356, 7.3930, 245.6756, 2.5338, -4.4752, 0.0000,&
0.2681, 7.6264, 285.2058, 2.6199, -4.6296, 0.0000,&
0.2495, 7.6647, 234.2579, 2.4486, -4.3203, 0.0000,&
0.2096, 9.1329, 342.2426, 2.4186, -3.9152, 0.0000,&
0.2623, 7.6822, 262.7294, 2.6817, -5.2354, 0.0000,&
0.2448, 8.0460, 266.0813, 2.3944, -3.9883, 0.0000,&
0.2323, 7.2566, 245.2923, 2.5506, -4.3476, 0.0000,&
0.2469, 7.5844, 282.6983, 2.5963, -4.5497, 0.0000,&
0.2597, 7.1448, 242.3148, 2.5577, -4.6377, 0.0000,&
0.2628, 8.0269, 284.3552, 2.6831, -5.8550, 0.0000,&
0.2585, 8.1473, 272.1278, 2.5387, -5.1721, 0.0000,&
0.2300, 7.1898, 255.2655, 2.5667, -4.3783, 0.0000,&
0.2559, 8.2205, 259.1454, 2.4725, -4.8577, 0.0000,&
0.2553, 7.1695, 210.7529, 2.5140, -4.8163, 0.0000,&
0.2333, 7.3747, 261.9473, 2.5807, -4.4241, 0.0000,&
0.2347, 7.2429, 251.6140, 2.5492, -4.6801, 0.0000,&
0.2537, 7.1147, 192.9449, 2.3069, -3.3640, 0.0000,&
0.2430, 8.1775, 252.9467, 2.4352, -4.5367, 0.0000,&
0.2769, 8.0360, 215.9608, 2.4903, -5.1542, 0.0000,&
0.2335, 7.2984, 252.3044, 2.5801, -4.4854, 0.0000,&
0.2590, 7.8859, 281.0910, 2.6250, -5.1784, 0.0000,&
0.2612, 7.7825, 251.8535, 2.4535, -4.6412, 0.0000,&
0.1804, 9.0012, 430.7154, 2.4849, -4.5794, 0.0000,&
0.2353, 10.4947, 373.7626, 2.3859, -5.2160, 0.0000,&
0.2479, 7.3098, 204.1023, 2.3002, -3.5652, 0.0000,&
0.2497, 6.9438, 234.6510, 2.7669, -5.2940, 0.0000,&
0.2509, 7.3139, 255.0434, 2.4782, -3.9361, 0.0000,&
0.2481, 7.6391, 280.5731, 2.5415, -4.3075, 0.0000,&
0.2441, 7.8022, 234.6851, 2.3651, -4.3189, 0.0000,&
0.2462, 8.0317, 254.4989, 2.4469, -4.6550, 0.0000,&
0.2558, 7.3333, 201.9142, 2.4448, -4.7429, 0.0000,&
0.2338, 7.2654, 251.1804, 2.5567, -4.4925, 0.0000,&
0.2451, 7.3565, 299.3438, 2.7158, -4.7219, 0.0000,&
0.2338, 7.2654, 251.1804, 2.5567, -4.4925, 0.0000,&
0.2581, 7.9864, 242.9988, 2.3513, -4.5648, 0.0000,&
0.2408, 8.1678, 276.5880, 2.5328, -4.9945, 0.0000,&
0.2124, 10.5676, 409.0769, 2.4887, -6.1128, 0.0000,&
0.2399, 7.4061, 277.3885, 2.5615, -4.2775, 0.0000,&
0.2489, 7.3563, 250.5803, 2.4653, -4.1817, 0.0000,&
0.2541, 7.7330, 255.4031, 2.5063, -4.4257, 0.0000,&
0.2513, 8.1819, 224.3622, 2.3832, -4.8166, 0.0000,&
0.2502, 8.0749, 260.2824, 2.4316, -4.3011, 0.0000,&
0.2432, 7.8728, 297.4122, 2.5867, -4.7330, 0.0000,&
0.2399, 7.6936, 245.9075, 2.4497, -4.1629, 0.0000,&
0.2189, 7.6667, 320.8838, 2.5352, -3.9767, 0.0000,&
0.2215, 7.2639, 276.2159, 2.5280, -3.5505, 0.0000,&
0.2278, 7.6120, 268.3801, 2.5816, -4.6081, 0.0000,&
0.2316, 7.5237, 236.0710, 2.4017, -4.1679, 0.0000,&
0.2752, 10.1842, 370.2353, 2.7026, -7.3806, 0.0000,&
0.2312, 7.2176, 249.2958, 2.5441, -4.3637, 0.0000,&
0.2542, 7.2176, 227.6251, 2.4744, -4.3065, 0.0000,&
0.2469, 7.5844, 282.6983, 2.5963, -4.5497, 0.0000,&
0.2161, 7.4562, 330.0610, 2.5320, -3.5504, 0.0000,&
0.2745, 10.0278, 322.1786, 2.6621, -7.5642, 0.0000,&
0.3018, 9.1025, 273.5308, 2.8034, -7.4178, 0.0000,&
0.2791, 8.8633, 280.4576, 2.7187, -6.9765, 0.0000,&
0.2424, 7.3207, 250.3308, 2.5019, -4.4059, 0.0000,&
0.2457, 7.7875, 249.9160, 2.4735, -4.4884, 0.0000,&
0.2481, 8.0122, 272.4213, 2.5365, -4.6672, 0.0000,&
0.2490, 7.4172, 239.2965, 2.4462, -4.0470, 0.0000,&
0.2374, 8.5941, 247.6610, 2.3264, -4.6401, 0.0000,&
0.2229, 7.4685, 291.4087, 2.5604, -4.4464, 0.0000,&
0.2769, 8.0360, 215.9608, 2.4903, -5.1542, 0.0000/)
allocate(NParray(1:size(NPparam)))
if(rep>100) then
write(*,*) color('ERROR in BSM19.bFIX model. It has only 100 replicas. Central replica is set',c_red)
NParray=1d0*replicas((0+2)*6+1:(0+2)*6+6)
else
NParray=1d0*replicas((rep+2)*6+1:(rep+2)*6+6)
end if
end subroutine GetReplicaParameters
end module uTMDPDF_model
| 13,320 | 49.843511 | 163 | f90 |
artemide-public | artemide-public-master/Models/Default/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/Models/Default/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:2)::replica=(/2.2824d0, 0.025d0,0d0/)
allocate(NParray(1:2))
NParray=replica
end subroutine GetReplicaParameters
end module TMDR_model
| 4,296 | 34.512397 | 106 | f90 |
artemide-public | artemide-public-master/Models/Default/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/Models/Default/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/Models/Default/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/Models/Default/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/Models/Default/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/Models/PDFbias22/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/Models/PDFbias22/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
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)<2) then
write(*,*) color('SV19-model: Number NP parameters for TMDR is less then 2',c_red)
write(*,*) 'Evaluation STOP'
stop
end if
allocate(NPparam(1:size(InitialNPParams)))
NPparam=InitialNPParams
write(*,*) &
color(">>> The model for TMD evolution is Vpion19=BSV19.NNPDF31. 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 the rapidity anomalous dimension non-pertrubative 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=Dresum(mu,bSTAR,1)+NPparam(2)*bSTAR*b
! bSTAR=b/SQRT(1_dp+b**2/4d0)
! if(b>2d0) then
! DNP=Dresum(mu,bSTAR,1)+NPparam(2)*bSTAR*b+Abs(NPparam(1))*0.01d0*(b-2d0)**2d0
! else
! DNP=Dresum(mu,bSTAR,1)+NPparam(2)*bSTAR*b
! end if
end function DNP
!! This is the non-pertrubative shape of zeta_mu line.
!! It MUST follow the equipotential line in pertrubative 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
rad=DNP(mu,b,f)
zz=Exp(-b**2/NPparam(1)**2)
! zz=Exp(-b**2/4d0)
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:2)::replica=(/2.2824d0, 0.025d0/)
allocate(NParray(1:2))
NParray=replica
end subroutine GetReplicaParameters
end module TMDR_model
| 4,313 | 34.073171 | 123 | f90 |
artemide-public | artemide-public-master/Models/PDFbias22/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/Models/PDFbias22/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)
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(:)
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,774 | 37.5 | 114 | f90 |
artemide-public | artemide-public-master/Models/PDFbias22/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)
real(dp),intent(in)::z,bt
mu_OPE=C0_const*z/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","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,088 | 37.05625 | 114 | f90 |
artemide-public | artemide-public-master/Models/PDFbias22/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(">>> ---------------------------------------------------------------------------------- <<<",c_cyan)
write(*,*) color(">>> ---------------------------------------------------------------------------------- <<<",c_cyan)
write(*,*) color(">>> TMD-to-PDF research version of artemide <<<",c_cyan)
write(*,*) color(">>> ---------------------------------------------------------------------------------- <<<",c_cyan)
write(*,*) color(">>> ---------------------------------------------------------------------------------- <<<",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::FNPu,FNPd, FNPubar, FNPdbar, FNPr
real*8::bb,wu,wd,wubar,wdbar,wr,wcommon
!!!!!!! model 3 &4
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=Exp(-wu*bb/sqrt(1+wcommon*bb))
FNPd=Exp(-wd*bb/sqrt(1+wcommon*bb))
FNPubar=Exp(-wubar*bb/sqrt(1+wcommon*bb))
FNPdbar=Exp(-wdbar*bb/sqrt(1+wcommon*bb))
FNPr=Exp(-wr*bb/sqrt(1+wcommon*bb))
end if
FNP=(/&
FNPr,FNPr,FNPr,FNPubar,FNPdbar,&
0d0,&
FNPd,FNPu,FNPr,FNPr,FNPr/)
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
| 11,324 | 38.322917 | 126 | f90 |
artemide-public | artemide-public-master/Models/PDFbias22/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=exp(-bT**2*lambdaNP(1))
FNP=FNP0*(/1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,1d0,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=lambdaNP(2)*(1d0-x)**lambdaNP(3)
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)
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(:)
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,702 | 38.429412 | 122 | f90 |
artemide-public | artemide-public-master/Models/SV19/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,zetaMUpert,zetaSL
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)<2) then
write(*,*) color('SV19-model: Number NP parameters for TMDR is less then 2',c_red)
write(*,*) 'Evaluation STOP'
stop
end if
allocate(NPparam(1:size(InitialNPParams)))
NPparam=InitialNPParams
write(*,*) color(">>> The model for TMD evolution 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 the rapidity anomalous dimension non-pertrubative model
!!! In your evaluation take care that the saddle point is inside the pertrubative regeme
!!! Use function Dpert(mu,b,f) for D pertrubative, 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=Dresum(mu,bSTAR,1)+NPparam(2)*bSTAR*b !!!! D*+gK b b*, it smoother turns perturbative to b^2 assimptotic
end function DNP
!! This is the non-pertrubative shape of zeta_mu line.
!! It MUST follow the equipotential line in pertrubative 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
rad=DNP(mu,b,f)
zz=Exp(-b**2/NPparam(1)**2)
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(:)
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 TMDR_model | 4,249 | 35.324786 | 113 | f90 |
artemide-public | artemide-public-master/Models/SV19/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/Models/SV19/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)
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(:)
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,774 | 37.5 | 114 | f90 |
artemide-public | artemide-public-master/Models/SV19/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
bb=bT**2/x**2
w1=lambdaNP(1)*x+lambdaNP(2)*(1d0-x)
w2=lambdaNP(3)
FNP0=Exp(-bb*w1/sqrt(1d0+w2*bb))*(1+lambdaNP(4)*bb)
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*z/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","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
| 5,876 | 37.664474 | 114 | f90 |
artemide-public | artemide-public-master/Models/SV19/uTMDPDF_model.f90 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Model for unpolarized TMD PDF BSV19 [1902.08474]
!
! 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 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)::bb,w1,w2,w3,FNP0
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 !!! case of negative power, we return absolutely incorrect expression.
if(bT<1d0) then
FNP0=-1d0
else
FNP0=0d0
end if
else
FNP0=Exp(-w1*bb/sqrt(1+w2*bb))
end if
! FNP0=Exp(-lambdaNP(1)*bb)
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(:)
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 uTMDPDF_model
| 6,137 | 37.124224 | 114 | f90 |
artemide-public | artemide-public-master/Models/SV19/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,zetaMUpert,zetaSL
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)<2) then
write(*,*) color('SV19-model: Number NP parameters for TMDR is less then 2',c_red)
write(*,*) 'Evaluation STOP'
stop
end if
allocate(NPparam(1:size(InitialNPParams)))
NPparam=InitialNPParams
write(*,*) color(">>> The model for TMD evolution 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 the rapidity anomalous dimension non-pertrubative model
!!! In your evaluation take care that the saddle point is inside the pertrubative regeme
!!! Use function Dpert(mu,b,f) for D pertrubative, 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=Dresum(mu,bSTAR,1)+NPparam(2)*bSTAR*b !!!! D*+gK b b*, it smoother turns perturbative to b^2 assimptotic
end function DNP
!! This is the non-pertrubative shape of zeta_mu line.
!! It MUST follow the equipotential line in pertrubative 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
rad=DNP(mu,b,f)
zz=Exp(-b**2/NPparam(1)**2)
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(:)
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 TMDR_model | 4,249 | 35.324786 | 113 | f90 |
artemide-public | artemide-public-master/Models/SV19/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/Models/SV19/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)
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(:)
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,774 | 37.5 | 114 | f90 |
artemide-public | artemide-public-master/Models/SV19/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
bb=bT**2/x**2
w1=lambdaNP(1)*x+lambdaNP(2)*(1d0-x)
w2=lambdaNP(3)
FNP0=Exp(-bb*w1/sqrt(1d0+w2*bb))*(1+lambdaNP(4)*bb)
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*z/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","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
| 5,876 | 37.664474 | 114 | f90 |
artemide-public | artemide-public-master/Models/SV19/Model/uTMDPDF_model.f90 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Model for unpolarized TMD PDF BSV19 [1902.08474]
!
! 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 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)::bb,w1,w2,w3,FNP0
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 !!! case of negative power, we return absolutely incorrect expression.
if(bT<1d0) then
FNP0=-1d0
else
FNP0=0d0
end if
else
FNP0=Exp(-w1*bb/sqrt(1+w2*bb))
end if
! FNP0=Exp(-lambdaNP(1)*bb)
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(:)
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 uTMDPDF_model
| 6,137 | 37.124224 | 114 | f90 |
artemide-public | artemide-public-master/Models/Vpion19/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,zetaMUpert,zetaSL
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)<2) then
write(*,*) color('SV19-model: Number NP parameters for TMDR is less then 2',c_red)
write(*,*) 'Evaluation STOP'
stop
end if
allocate(NPparam(1:size(InitialNPParams)))
NPparam=InitialNPParams
write(*,*) &
color(">>> The model for TMD evolution is Vpion19=BSV19.NNPDF31. 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 the rapidity anomalous dimension non-pertrubative model
!!! In your evaluation take care that the saddle point is inside the pertrubative regeme
!!! Use function Dpert(mu,b,f) for D pertrubative, 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=Dresum(mu,bSTAR,1)+NPparam(2)*bSTAR*b !!!! D*+gK b b*, it smoother turns perturbative to b^2 assimptotic
end function DNP
!! This is the non-pertrubative shape of zeta_mu line.
!! It MUST follow the equipotential line in pertrubative 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
rad=DNP(mu,b,f)
zz=Exp(-b**2/NPparam(1)**2)
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:2)::replica=(/2.2824d0, 0.025d0/)
allocate(NParray(1:2))
NParray=replica
end subroutine GetReplicaParameters
end module TMDR_model | 4,109 | 35.371681 | 123 | f90 |
artemide-public | artemide-public-master/Models/Vpion19/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/Models/Vpion19/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)
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(:)
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,774 | 37.5 | 114 | f90 |
artemide-public | artemide-public-master/Models/Vpion19/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
bb=bT**2/x**2
w1=lambdaNP(1)*x+lambdaNP(2)*(1d0-x)
w2=lambdaNP(3)
FNP0=Exp(-bb*w1/sqrt(1d0+w2*bb))*(1+lambdaNP(4)*bb)
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*z/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","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
| 5,876 | 37.664474 | 114 | f90 |
artemide-public | artemide-public-master/Models/Vpion19/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/Models/Vpion19/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,zetaMUpert,zetaSL
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)<2) then
write(*,*) color('SV19-model: Number NP parameters for TMDR is less then 2',c_red)
write(*,*) 'Evaluation STOP'
stop
end if
allocate(NPparam(1:size(InitialNPParams)))
NPparam=InitialNPParams
write(*,*) &
color(">>> The model for TMD evolution is Vpion19=BSV19.NNPDF31. 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 the rapidity anomalous dimension non-pertrubative model
!!! In your evaluation take care that the saddle point is inside the pertrubative regeme
!!! Use function Dpert(mu,b,f) for D pertrubative, 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=Dresum(mu,bSTAR,1)+NPparam(2)*bSTAR*b !!!! D*+gK b b*, it smoother turns perturbative to b^2 assimptotic
end function DNP
!! This is the non-pertrubative shape of zeta_mu line.
!! It MUST follow the equipotential line in pertrubative 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
rad=DNP(mu,b,f)
zz=Exp(-b**2/NPparam(1)**2)
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:2)::replica=(/2.2824d0, 0.025d0/)
allocate(NParray(1:2))
NParray=replica
end subroutine GetReplicaParameters
end module TMDR_model | 4,109 | 35.371681 | 123 | f90 |
artemide-public | artemide-public-master/Models/Vpion19/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/Models/Vpion19/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)
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(:)
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,774 | 37.5 | 114 | f90 |
artemide-public | artemide-public-master/Models/Vpion19/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
bb=bT**2/x**2
w1=lambdaNP(1)*x+lambdaNP(2)*(1d0-x)
w2=lambdaNP(3)
FNP0=Exp(-bb*w1/sqrt(1d0+w2*bb))*(1+lambdaNP(4)*bb)
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*z/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","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
| 5,876 | 37.664474 | 114 | f90 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.