-
Notifications
You must be signed in to change notification settings - Fork 1
/
LQguser.f
166 lines (143 loc) · 4.27 KB
/
LQguser.f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
*-----------------
* File: LQguser.f
*-----------------
*
Program LQGUSER
*******************************************
* Generates 1000 events of the subprocess *
* e+ qi --> S_1/2L --> mu+ qj *
* at the HERA energies *
* *
* LQ mass = 200 GeV *
* LQ couplings = 0.3 *
* first generation quark involved *
*******************************************
! Implicit None
*
IMPLICIT DOUBLE PRECISION(A-H, O-Z)
IMPLICIT INTEGER(I-N)
INTEGER PYK,PYCHGE,PYCOMP
double precision mass,cross_max,
> ptnt,phnt,ptt,pht,pth,phh,
> ppnt,ppt,pph,
> ptx,pty,ptz,phx,phy,phz,
> ptid,phid,ppid,pxid,pyid,pzid,lam
integer lqtype,Nevt,qi,qj,iproc,id,
> Nevtdown,Nevtup
logical first
data first /.true./
save first
*
C...Pythia Ranom Seed Test
COMMON/PYDATR/MRPY(6),RRPY(100)
COMMON/PYPARS/MSTP(200),PARP(200),MSTI(200),PARI(200)
C...LQGENEP run setup parameters
double precision BEAMPAR,LQGPAR3
integer LQGPAR1,LQGPAR2
CHARACTER*256 out_file
character*4 j_string
COMMON/LQGDATA/BEAMPAR(3),LQGPAR1(10),LQGPAR2(10),LQGPAR3(20),
> out_file
C...LQGENEP event informations
double precision LQGKPAR,LQGDDX
integer LQGPID
COMMON/LQGEVT/LQGKPAR(3),LQGDDX(3),LQGPID(3)
*
integer NeV,i,j,N_tot,N_div
*
OPEN(UNIT=22,FILE='inputfile',STATUS='OLD')
Read(22,*)Nevt,Mass,beampar(2),beampar(3),
> qi,qj
close(22)
c set output file name
out_file = 'LQGENEP_output.txt'
c set random seed
MRPY(1) = 1*10000
c Mass=1936.D0
c qi=1
c qj=1
iproc=0
c cross_max=2.d-5
cross_max=7.d-15
*
* Charge of lepton beam (+1/-1 positron/electron)
c beampar(1)=+1. ! positron
beampar(1)=-1. ! electron
* Energy of lepton beam
c beampar(2)=10. ! EIC1
c beampar(2)=20. ! EIC2
c beampar(2)=27.5 ! HERA
* Energy of proton beam
c beampar(3)=250. ! EIC1
c beampar(3)=325. ! EIC2
c beampar(3)=820. ! HERA
* Number of events to generate
lqgpar1(1)=Nevt
* Number of events which will be fully listed in the output
lqgpar1(2)=0
* Histogram flag (if 1 some histograms will be produced)
lqgpar1(3)=1
* Current event number (first generated event will be lqgpar1(4)+1)
lqgpar1(4)=0
* Pythia process number (should be > 400, if = 0 it will be set
* to 401, first value available for external processes)
lqgpar1(5)=iproc
* LQ type
lqgpar2(1)=14
* generation of the input quark in the s-channel process
lqgpar2(2)=qi
* generation of the output quark in the s-channel process
lqgpar2(3)=qj
* generation of the output lepton
lqgpar2(4)=3
* LQ mass in GeV
lqgpar3(1)=Mass
* Initial state s-channel coupling
lqgpar3(2)=0.3
* Final state s-channel coupling (in case of process eq -> LQ -> eq
* the two couplings should be the same)
lqgpar3(3)=0.3
* x range low limit
lqgpar3(4)=0.011
* x range high limit
lqgpar3(5)=1.
* y range low limit
lqgpar3(6)=0.1
* y range high limit
lqgpar3(7)=1.
* minimum allowed Q^2 in Gev^2
lqgpar3(8)=1000.
* Parton distribution type according to PDFLIB
lqgpar3(9)=1.
* Parton distribution group according to PDFLIB
lqgpar3(10)=4.
* Parton distribution set according to PDFLIB
lqgpar3(11)=32.
* Max cross section
lqgpar3(12)=cross_max
* Eventually switch off initial state QCD and QED radiation
* setting to 0 the following Pythia parameters
c MSTP(61)=0
c MSTP(71)=0
* Eventually switch off multiple interaction
c MSTP(81)=0
* Eventually switch off fragmentation and decay
c MSTP(111)=0
* LQGENEP Initialization
call LQGENEP(Nevt,0)
Nev=lqgpar1(1)
* LQGENEP generation loop
do i=1,Nevt
cc if (i.NE.Nevt) then
c if ((i.GT.(Nevt-1000)).and.
c > (i.LE.Nevt)) then
cc CALL PYEVNT
cc else
call LQGENEP(Nevt,1)
call LQGENEP(Nevt,0)
cc endif
enddo
* LQGENEP termination
call LQGENEP(Nevt,2)
stop
end