EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pepsi_convpdf.F
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file pepsi_convpdf.F
1  SUBROUTINE pepsi_convpdf(input,ioutput,lok)
2 ******************************************************************************
3 * Author: Bjoern Seitz (bseitz@hermes.desy.de)
4 *
5 * Purpose: Workaround to make PEPSI compatible to PDF lib numbers
6 * This is a cheap trick and only works for PDFs intrisically
7 * known to PEPSI
8 *
9 * Input: PDFLIB number
10 * Output: PEPSI compliant PDF stored in LST(15);LST(16) is set to 1
11 ******************************************************************************
12  include "lepto2.inc"
13  include "pepadm.inc"
14 
15  logical lok ! true if conversion was successful
16  integer input ! PDFlib number
17  integer ioutput
18 
19  lok=.false. ! per default, no change to selected partonset
20 
21  ioutput=input ! assume that human did something reasonable
22 C these ones are known to PEPSI
23  if (input.eq.5010) then ! GRSV NLO standard
24  lst(15)=116
25  ioutput=116
26  lok=.true.
27  endif
28 
29  if (input.eq.5011) then ! GRSV NLO valence
30  lst(15)=117
31  ioutput=117
32  lok=.true.
33  endif
34 
35  if (input.eq.5008) then ! GRSV LO standard
36  lst(15)=118
37  ioutput=118
38  lok=.true.
39  endif
40 
41  if (input.eq.5009) then ! GRSV LO valence
42  lst(15)=119
43  ioutput=119
44  lok=.true.
45  endif
46 
47  if (input.eq.4041) then ! CTEQ4LQ
48  lst(15)=133
49  ioutput=133
50  lok=.true.
51  endif
52  if (input.eq.3043) then ! MRS low Q^2
53  lst(15)=137
54  ioutput=137
55  lok=.true.
56  endif
57 
58 ! If chosen PDFLIB set is being replaced by PEPSI-internal version,
59 ! inform the user and change LST(16) to 1.
60 
61  if (lok) then
62  lst(16) = 1
63  write(6,'(a,i4,a,i3)')
64  + 'PEPSI_CONVPDF: replacing PDFLIB partonset ',
65  + input, ' with PEPSI version ', ioutput
66  endif
67 
68  return
69  end