# tar zxf GR@PPA_All-2.65.tgzMove into the top directory of the expanded GR@PPA package.
# cd GR@PPA_All-2.65Edit the file inc/define.h according to your choice. See the next chapter for available choices.
# vi inc/define.hEdit the Makefile in the top directory to specify the FORTRAN compiler that you use, the paths to the libraries that the program needs to link, etc.
# emacs MakefileParameters you need to set are listed in the top part of the file. The other part (main part) of the Makefile should mot be touched.
# makeThe first command compiles GR@PPA subprograms and combines them into several object libraries. The object libraries are copied to a directory specified in the Makefile (the default is "lib") by executing the second command. The last command sets up Makefiles in the sample programs in the example directory.
# make install
# make example
# cd example/pythia/Simply execute the make command to compile and link the sample program (pysample.F) because the necessary setup is already done.
# makeThen, you will find the executable module pysample in this directory.
# ./pysampleSee the README file in the this directory to check the result.
(1) PYTHIA built-in PDFsUsers have to choose one of them before the setup because the program code depends on the choice. Of course, the first one can be used in the PYTHIA-embedding mode only. The default is PDFLIB in this version. CTEQ5L in PDFLIB is used as the default in the sample programs.
(2) PDFLIB in CERNLIB and
(3) LHAPDF (Les Houches Accord PDF).
# make install-cleanThus, we can prepare different sets of object libraries by the following procedure.
# make clean
CALL GRCPYGEN( BEAMS, ISUB, MODE, SIGMA )
InputWithin the LHA event interface specification, the initialization is required to be done in the subroutine UPINIT, and the event generation in UPEVNT. The present version of GR@PPA_All fully supports this specification. GRCPYGEN is always called in these two subroutines in the sample programs that we provide. The sample codes can be found in the files upinit.F and upevnt.F, respectively, in the sample program directories example/xxx/ (xxx = alone, herwig and pythia).
Output
- BEAMS (character) = 'PP' for proton-proton collisions, and 'PAP' for proton-antiproton collisions; effective only when MODE = 1.
- ISUB (integer) = process number; see below.
- MODE (integer) = 1 for initialization, and 0 for event generation
- SIGMA (double-precision real) = integrated cross section in pb; when MODE = 0, the value evaluated in the initialization (MODE = 1) is returned.
IBSWRT (integer) = 0 if users want to execute the initialization by BASES, 1 if they want to re-use an existing BASES table.In addition, users can change the seed of random numbers used in SPRING (IRSEED). A sample code can be found in UPINIT of the sample programs.
GRCFILE (character) = the file name of the BASES table that users want to create or re-use. Two files with additional trailers ".data" and ".result" are created for each process when BASES is executed. The former is the true binary table and the latter is a character file summarizing the results. These trailers must be omitted from GRCFILE.
NCALL (integer) = the number of sampling points in each step of the iteration in BASES; to be increased if the integration accuracy is not sufficient (worse than 0.5% in each iteration step, typically), or certain anomalous jump is observed in the iteration.
IRSEED (integer) = initial seed of random numbers used in SPRING.
GRCECM (double-precision real) = the center-of-mass (CM) energy of the colliding beams in GeV.This variable is defined in the header file inc/grchad.inc.
GPTCUT (double-precision real) = minimum value of pT of the final-state jets with respect to the beam axis.Similar cuts can be separately defined for each final-state particle.
GETACUT (double-precision real) = maximum value of the pseudorapidity (eta) of the final-state jets along the beam axis in the absolute value; no cut if = 0.
GRCONCUT (double-precision real) = minimum opening angle between the final-state jets measured in Delta_R; Delta_R2 = Delta_phi2 + Delta_eta2.
GRCPTCUT(i) (double-precision real) = minimum value of pT with respect to the beam axis for the i-th particle.Note that above cuts are defined in the beam-beam CM frame (laboratory frame of colliders) before applying transverse boosts due to parton showers.
GRCETACUT(i) (double-precision real) = maximum value of the pseudorapidity (eta) along the beam axis in the absolute value for the i-th particle; no cut if = 0.
GRCRCONCUT(i) (double-precision real) = minimum opening angle in Delta_R of the i-th particle with respect to the other final-state particles.
ICOUP (integer) = choice of the renormalization scale definition.Users have to set the variable GRCQ in the subroutine GRCPAR if ICOUP = 5. If ICOUP = 6, GR@PPA_All calls the subroutine GRCUSRSETQ to determine GRCQ. You can find a dummy example in grcpar.F of the sample programs. In any choice, the variable GRCQ shows the current value of the renormalization scale.
1: sqrt(s-hat), CM energy of the hard interaction.
2: sqrt(<mT2>), quadratic average of the transverse mass of the final-state particles, where mT2 = m2 + pT2.
3: sqrt{Sigma(mT2)}, quadratic sum of the mT of the final-state particles.
4: max(mT), maximum mT of the final-state particles.
5: constant.
6: user define.
GRCQ (double-precision real) = (current) renormalization scale in GeV.Note that variables used to determine the energy scale (pT and mT) are evaluated in the CM frame of the hard interaction. Also note that the average and the sum are taken over real final-state particles. For instance, in the "W + jet" production, they are taken over two W-decay products and one jet. The intermediate W boson is not taken into account. If users want, for example, to take an average of mTs of W and jet, they have to set ICOUP = 6 and add appropriate codes to calculate it in GRCUSRSETQ.
IFACT (integer) = choice of the factorization scale definition; the notation is the same as ICOUP.In addition, users can change the number of quark flavors regarded as initial-state partons by using the variable INPFL. INPFL = 5 means that the flavors up to the b quark (d, u, s, c and b) are taken into account; namely, their contents in the beams are evaluated using the chosen PDF.
GRCFAQ (double-precision real) = (current) factorization scale in GeV.
INPFL (integer) = number of quark flavors accounted as possible initial-state partons; the number is counted in the order of d, u, s, c, b and t.All the parameters explained in this section are defined in the header file grchad.inc.
IGJFLV(i) (integer) = 0 for exclusion and 1 for inclusion; i = 1, 2, ... , 7 in the order of d, u, s, c, b, t and gluon.Namely, c quarks can be found in the final-state jets if IGJFLV(4) = 1.
PGRC(i,j) (double-precision real) = i-th component of the four-momentum (i = 1, ..., 4 in the order of px, py, pz and E) of the j-th particle in the CM frame of the hard interaction; j = 1 and 2 for the initial-state partons (px = py = 0), and j > 2 for the final-state particles.Users can refer to the event information in the CM frame of the beam-beam collision (laboratory frame of colliders) in the array PLGRC(i,j). This information must be useful for defining custom cuts.
PLGRC(i,j) (double-precision real) = i-th component of the j-th particle in the beam-beam CM frame, where i = 1, ..., 4 for px, py, pz and E for the initial-state particles (j = 1, 2) and pT, phi, eta and E for the final-state particles (j > 2).The numbering of the final-state particles is process-dependent. Refer to the final chapter of this manual to see the assignment.
GF (double-precision real) = GF in GeV-2 = 1.16639 x 10-5,These variables are defined in the header file inclm.h. The above choice results in alpha = 1/132.51 and sin2thetaW = 0.2222. These dependent parameters are also set in SETMAS of sample programs but re-evaluated later during the initialization.
AMW (double-precision real) = mW in GeV = 80.419,
AMZ (double-precision real) = mZ in GeV = 91.188.
IGAUGE (integer) = choice of the independent electroweak parameter set.The matrix elements of those processes including the W and/or Z boson production are calculated on the basis of those diagrams including their decays, in order to reproduce the exact decay kinematics. Since the calculations are all at the tree level, the total decay widths of W and Z in their propagators are free parameters. Though they can be calculated at the tree level, it must be preferable to use experimental results since they affect observable distributions. The total decay widths are given by the following parameters in the header file inclm.h.
1: GF scheme, described in the above (default).
2: alpha(mZ), mW, mZ.
3: alpha_0, GF, mW.
4: sin2thetaW, GF, mW.
AGW (double-precision real) = total decay width of W in GeV = 2.048The numbers show the default values set in SETMAS in the sample programs.
AGZ (double-precision real) = total decay width of Z in GeV = 2.446
IGWMOD(i) (integer) = 0 to turn off and 1 to turn on the i-th decay mode of WSince the matrix elements are evaluated at the tree level in GR@PPA_All, calculated cross sections can not be regarded as those for the W and/or Z productions with a corresponding choice of decay branches. When all branches are turned on, the calculated total decay width do not match the value given by hand as in the above. This argument is relevant to the normalization only. Therefore, the results can be regarded as those for the W and/or Z productions if we apply the following correction to every branches:
IGZMOD(i) (integer) = 0 to turn off and 1 to turn on the i-th decay mode of Z
sigma = sigma(tree) x {G_tot(given)/G(tree)} x B(given),where sigma(tree) and G(tree) are the tree-level cross section and the decay width, respectively, for a certain branch. The variable G_tot(given) is the total decay width given by users, and B(given) the given branching ratio. Users would usually use experimental results for G_tot(given) and B(given). This correction is applied if users set IWIDCOR = 2. The parameter IWIDCOR is defined in grchad.inc. B(given) is given by the parameters GRCWBR(i) and GRCZBR(i) in grchad.inc for the W and Z bosons, respectively. The numbering is identical to that in PYTHIA, again.
IWIDCOR (integer) = 2 to apply the above correction; otherwise, the correction is not applied (default = 1).The following tables show the decay mode assignment and the default setting for W and Z decays.
GRCWBR(i) (double-precision real) = branching ratio for the i-th decay mode of W
GRCZBR(i) (double-precision real) = branching ratio for the i-th decay mode of Z
i |
IGWMOD(i) default |
decay mode
for W+ |
GRCWBR(i) default |
1 |
0 |
dbar + u |
0.321 |
2 |
0 |
dbar + c |
0.016 |
3 |
0 |
dbar + t |
0 |
4 |
0 |
dbar +
4th-up-type |
0 |
5 |
0 |
sbar + u |
0.017 |
6 |
0 |
sbar + c |
0.321 |
7 |
0 |
sbar + t |
0 |
8 |
0 |
sbar +
4th-up-type |
0 |
9 |
0 |
bbar + u |
0 |
10 |
0 |
bbar + c |
0.001 |
11 |
0 |
bbar + t |
0 |
12 |
0 |
bbar +
4th-up-type |
0 |
13 |
0 |
4th-down-type-bar
+ u |
0 |
14 |
0 |
4th-down-type-bar
+ c |
0 |
15 |
0 |
4th-down-type-bar
+ t |
0 |
16 |
0 |
4th-down-type-bar
+ 4th-up-type |
0 |
17 |
1 |
e+
+ nu_e |
0.108 |
18 |
0 |
mu+
+ nu_mu |
0.108 |
19 |
0 |
tau+
+ nu_tau |
0.108 |
20 |
0 |
4th-lepton+
+ nu_4th |
0 |
i |
IGZMOD(i) default |
decay mode
for Z |
GRCZBR(i) default |
1 |
0 |
d + dbar |
0.154 |
2 |
0 |
u + ubar |
0.119 |
3 |
0 |
s + sbar |
0.154 |
4 |
0 |
c + cbar |
0.119 |
5 |
0 |
b + bbar |
0.152 |
6 |
0 |
t + tbar |
0 |
7 |
0 |
4th-down-type
+ 4th-down-type-bar |
0 |
8 |
0 |
4th-up-type +
4th-up-type-bar |
0 |
9 |
1 |
e-
+ e+ |
0.034 |
10 |
0 |
nu_e +
nu_e-bar |
0.067 |
11 |
0 |
mu-
+ mu+ |
0.034 |
12 |
0 |
nu_mu +
nu_mu-bar |
0.067 |
13 |
0 |
tau-
+ tau+ |
0.034 |
14 |
0 |
nu_tau +
nu_tau-bar |
0.067 |
15 |
0 |
4th-lepton-
+ 4th-lepton+ |
0 |
16 |
0 |
4th-nu +
4th-nu-bar |
0 |
GRCCKM(i,j) (double-precision real) = squared absolute value of the CKM matrix element between the i-th and j-th generation quarks.The Z-boson production can not be separated from the production of the same final state via virtual photon (gamma*) exchange. Any Z-boson production includes the latter effect in GR@PPA_All. Users can turn on and off the small interference effect using the parameter IGRCGEF defined in grchad.inc.
IGRCGEF (integer) = 0 (default) to ignore, and 1 to take into account the interference between Z and gamma* exchanges.Note that, since the gamma exchange can not be separated, it is necessary to apply an appropriate cut on the separation between the two decay products, in order to obtain reliable results in Z/gamma* production processes. The cut can be defined by using the kinematical cut parameters, GRCPTCUT(i), GRCETACUT(i) and GRCRCONCUT(i), or by adding appropriate codes in the subroutine GRCUSRCUT.
ISUB |
Final state of the hard interaction |
ISUB |
Subprocess |
100 |
W (-> f fbar') |
421 |
q + qbar' -> W
(-> f fbar') |
101 |
W (-> f fbar') + jet |
422 |
q + g -> W
(-> f fbar') + q' |
423 |
q + qbar -> W
(-> f fbar') +
g |
||
102 |
W (-> f fbar') + 2 jets |
424 |
q + g -> W
(-> f fbar') + q'
+g |
425 |
u + dbar -> W (-> f
fbar') +
q + qbar' |
||
426 |
u + dbar -> W
(-> f fbar') +
g + g |
||
427 |
g + g -> W (-> f
fbar') + q + qbar' |
||
428 |
u + ubar' -> W (-> f
fbar') + q + qbar' |
||
429 |
u + u' or d + d' ->
W (-> f fbar') + q + q' |
||
430 |
u + d -> W (-> f
fbar') + q + q' |
||
103 |
W (-> f fbar') + 3 jets |
431 |
q + g -> W
(-> f fbar') + q'
+ g + g |
432 |
q + g -> W
(-> f fbar') + q'
+ q'' + qbar''' |
||
433 |
u + dbar -> W
(-> f fbar') +
q + qbar' + g |
||
434 |
u + dbar -> W
(-> f fbar') +
g + g + g |
||
435 |
g + g -> W
(-> f fbar') + q + qbar' + g |
||
436 |
u + ubar' or d + dbar'
-> W (-> f fbar') + q + qbar' + g |
||
437 |
u + u' or d + d'
-> W (-> f fbar') + q + q' + g |
||
438 |
u + d -> W
(-> f fbar') + q + q' + g |
||
110 |
Z/gamma* (-> f fbar) |
500 |
q + qbar -> Z/gamma*
(-> f fbar) |
111 |
Z/gamma* (-> f fbar) + jet |
501 |
q + g -> Z/gamma* (->
f fbar) + q |
502 |
q + qbar -> Z/gamma*
(-> f fbar) + g |
||
112 |
Z/gamma* (-> f fbar) + 2 jets |
503 |
q + g -> Z/gamma*
(-> f fbar) + q + g |
504 |
u + ubar' or d + dbar'
-> Z/gamma* (-> f fbar) + q + qbar' |
||
505 |
q + qbar
-> Z/gamma* (-> f fbar) + g + g |
||
506 |
g + g -> Z/gamma*
(-> f fbar) + q + qbar |
||
507 |
u + dbar
-> Z/gamma* (-> f fbar) + u + dbar |
||
508 |
u + u' or d + d'
-> Z/gamma* (->
f fbar) + q + q' |
||
509 |
u + d -> Z/gamma*
(-> f fbar) + q + q' |
||
160 |
H (-> b bbar) + b + bbar |
400 |
g + g -> H (-> b
bbar) + b +
bbar |
401 |
q + qbar -> H (-> b
bbar) + b + bbar |
||
161 |
Z/gamma* (-> b bbar)+ b +
bbar |
402 |
g + g -> Z/gamma* (->
b bbar)+ b + bbar |
403 |
q + qbar -> Z/gamma*
(-> b bbar)+ b + bbar |
||
162 |
b + bbar + b + bbar (pure QCD) |
405 |
g + g -> b + bbar + b + bbar
(pure QCD) |
406 |
q + qbar -> b + bbar + b +
bbar
(pure QCD) |
||
163 |
H (-> b bbar) + Z/gamma*
(->
b bbar) |
404 |
q + qbar -> H (-> b
bbar) + Z/gamma* (-> b bbar) |
164 |
Z/gamma* (-> b bbar) +
Z/gamma*
(-> b bbar) |
407 |
q + qbar -> Z/gamma*
(-> b bbar) + Z/gamma* (-> b bbar) |
170 |
t (-> b + W+
(-> f fbar')) + tbar (-> bbar + W-
(-> f'' fbar''')) |
419 |
g + g -> t (-> b + W+
(-> f fbar')) + tbar (-> bbar + W-
(-> f'' fbar''')) |
420 |
q + qbar -> t (-> b +
W+ (-> f fbar')) + tbar (-> bbar +
W- (-> f'' fbar''')) |
||
550 |
Z/gamma* (-> f fbar) +
Z/gamma*
(-> f' fbar') |
||
551 |
W+
(-> f fbar') + W- (-> f''
fbar''') |
||
552 |
Z/gamma* (-> f
fbar) + W (-> f' fbar'') |
j |
3 |
4 |
5 |
6 |
7 |
ISUB = 100 |
1st W-decay
product |
2nd W-decay
product |
- |
- |
- |
ISUB = 101 |
1st W-decay
product |
2nd W-decay
product |
jet |
- |
- |
ISUB = 102 |
1st W-decay
product |
2nd W-decay
product |
1st jet |
2nd jet |
- |
ISUB = 103 |
1st W-decay
product |
2nd W-decay
product |
1st jet |
2nd jet |
3rd jet |
j |
3 |
4 |
5 |
6 |
ISUB = 110 |
1st Z/gamma*-decay
product |
2nd Z/gamma*-decay
product |
- |
- |
ISUB = 111 |
1st Z/gamma*-decay
product |
2nd Z/gamma*-decay
product |
jet |
- |
ISUB = 112 |
1st Z/gamma*-decay
product |
2nd Z/gamma*-decay
product |
1st jet |
2nd jet |
j |
3 |
4 |
5 |
6 |
ISUB = 160 -
164 |
b |
bbar |
b |
bbar |
j |
3 |
4 |
5 |
6 |
7 |
8 |
ISUB = 170 |
b
quark from t |
1st decay
product of W+ from t |
2nd decay
product of W+ from t |
bbar
quark from tbar |
1st decay
product of W- from tbar |
2nd decay
product of W- from tbar |
j |
3 |
4 |
5 |
6 |
ISUB = 550 |
1st decay
product of
1st Z/gamma* |
2nd decay
product of
1st Z/gamma* |
1st decay
product of
2nd Z/gamma* |
2nd decay
product of
2nd Z/gamma* |
ISUB = 551 |
1st decay
product of W+ |
2nd decay
product of W+ |
1st decay
product of W- |
2nd decay
product of W- |
ISUB = 552 |
1st decay
product of Z/gamma* |
2nd decay
product of Z/gamma* |
1st decay
product of W |
2nd decay
product of W |