001
002 herwig_i/herwig_v64a_cdf.doc
003 -----------------------------
004 July 2002.
005
006
007 Here are some items concerning HERWIG, version 6.4, as set up for CDF
008 run 2.
009 For a nice 91-page description of herwig, as of v 6.200, see the official
010 write-up in hep-ph/0011363, G. Corella et al. That write-up can be reached
011 from the Herwig web site, http://hepwww.rl.ac.uk/theory/seymour/herwig/ .
012 That write-up includes (pages 33 - 37) a list of the hard sub-
013 processes that were available in v 6.200 (and remain in v 6.4).
014 Also reachable from that web site is the v 6.3 release note (under
015 "Old HERWIG versions") and the v 6.4 release note (line ~4 of the
016 web site).
017 v 6.3 was released July 2001 but not set up at Fermilab. This version
018 added many new processes: WW, WZ, ZZ production, ZQQ production,
019 and several 2->3 MSSM Higgs production processes. Details on these
020 and on some bug fixes are in the release note.
021 v 6.4 was released January 2002. The main new feature for CDF is the
022 introduction of spin correlations between the production and decay
023 of heavy fermions. For details see the release note.
024 In v6_4 there are two items that appear to be not user-friendly. See
025 section below on "Changes made in v6_4 by CDF".
026 The pure herwig code is in $HERWIG_DIR/src/herwig .
027
028
029
030 Jeremy Lys.
031
032
033 -----------------------------------------------------------------------------
034 -----------------------------------------------------------------------------
035
036 Current status (18-Jul-2002)
037 -----------------------------
038
039
040 Herwig v6_4 has been in development since May 2002. It is not
041 in any frozen release 4.5.* or earlier, it is not in 4.6.2, it
042 is in 4.6.0int5 .
043 With cdfGen, herwig runs and produces sensible output.
044 With cdfSim, herwig runs and produces sensible output.
045
046 On fcdfsgi2, for t.tbar events with underlying event (Process 1706)
047 Herwig takes 0.2 cpu sec/event. Simulation on these events takes
048 ~ 15 cpu sec/event. For SUSY events, 2 partons to 2 spartons (Process
049 3010), the analogous times are 0.7 and ~15 cpu sec/event. But note
050 that Simulation times can vary appreciably, depending on the
051 current state of the simulation.
052
053 Herwig produces sensible output for SUSY processes. For SUSY, a file
054 must be read in that gives SUSY particle properties. Such files can
055 be written by hand or can be produced using the ISAWIG program (a
056 combination of Isajet and a new package, HWISSP). There is an ISAWIG
057 web page, http://www.hep.phy.cam.ac.uk/~richardn/HERWIG/ISAWIG/ ,
058 which gives information on ISAWIG and from which one can find sample
059 input files for SUSY processes. Three of those files reside in
060 fcdfsgi2: /cdf/home/lys/SUSY/*. Note that for Process numbers 3000 -
061 3099 (MSSM) it is good for efficiency to set PTPOW = 2 (see talk-to
062 notes below).
063
064 Note that Herwig can get into a (semi-)infinite loop if the chosen
065 beam momentum is too low for a SUSY process. I have seen this for
066 processes 3110 and 3230 with Pbeam1 = Pbeam2 = 1000. No warning
067 message is printed (the loop occurs on testing RQ52 in hwhisq, and
068 is a function of input particle masses).
069
070 StdHep README's state that Version 5.01 of StdHep is appropriate
071 for Herwig 6.4. But, as of May 2002, version 5_01 is not ready.
072 In tests I have found no difference between using 5_01 and the
073 present default, 4_09.
074
075 -----------------------------------------------------------------------------
076 -----------------------------------------------------------------------------
077
078 Some properties of Herwig to be aware of
079 ----------------------------------------
080
081 1. In Herwig, the "second mother" (jmo2) and "second daughter" (jda2)
082 have different meanings when partons are involved: they are the parton's
083 colour mother and colour daughter (see Herwig 6 manual sect. 8.3). In
084 general, if a hepg entry has jda2<jda1 one can assume that there is
085 just one daughter, jda1.
086
087 2. Searching *up* the generator level chain to find ancestors of a particle
088 can give wrong answers and infinite loops. Problem occurs amongst the
089 clusters and quarks and diquarks. So the stdhep library routine
090 stdparentlst.F is not good for herwig. An alternative, which searches
091 *down* the chain, is in cdfsga ~lys/backup/stdparentlst.F .
092 But note that this alternative has problems with isajet and pythia events.
093
094 3. Herwig gives non-zero vhep values (i.e., production vertex x y z t) for
095 most quarks, diquarks, gluons, clusters, etc. (as explained in the
096 documentation). Hence a ttbar event may have 395 entries and 385 displaced
097 vertices. We could get rid of "unwanted" vertices by resetting vhep values
098 to zero (in hwufne.f or hwanal.f, for example).
099
100 4. Herwig has a non-zero lifetime for pizero. So gammas from pizero decay
101 get a different production vertex than the pizero. But these vertices
102 may not appear in OBSV, because of the Lifetime cut (10E-16)in McEvent.cc .
103
104 5. In top quark decays in v 6.4 (as in v 6.2 but different from v 5.9)
105 there is an explicit W. That is, we get t -> b W, with W -> (u,dbar) or
106 (c,sbar) or (e/mu/tau,neutrino). But this W is "added later" (see hwudat.f,
107 which lists only 3-body top decays, and hwdhob.f), and its decay is not
108 changed by MODBOS settings.
109
110 6. A small but non-zero width for the top quark appears in v6.4 (actually
111 it got in in a bug fix).
112
113 7. See the comment on the the quantity MAXER below. You may want to have
114 a line in talk Herwig that says:
115 Maxer set 1.E10
116
117 8. As set up at CDF, Herwig does not decay hadrons that contain a b or c
118 quark. It is assumed that QQ will be used. With the current QQ defaults,
119 it is good to set Bc, Upsilon, B_Baryons and prompt_charm decays on
120 in talk QQModule.
121
122 -----------------------------------------------------------------------------
123 -----------------------------------------------------------------------------
124
125 To run HERWIG
126 -------------
127 One can run either cdfGen or cdfSim. These exist in code releases
128 (in bin/$BFARCH) and often in development. They are created via
129 gmake generatorMods or gmake SimulationMods resp. Only cdfSim includes
130 possible simulation in the detector.
131 Some example tcl files exist in $CDFSOFT2_DIR/herwig_i/examples. There,
132 herwig_top.tcl and herwig_test.tcl are intended for cdfGen running.
133 And hersim0_test.tcl and hersim1_test.tcl for cdfSim running without
134 and with detector simulation, respectively.
135
136 So one can do something like:
137
138 $CDFSOFT2_DIR/bin/$BFARCH/cdfGen herwig_test.tcl > herwig_test.log
139
140
141 For a SUSY process, one would have in the tcl file, inside the
142 Herwig talkto, something like:
143
144 Process set 3010
145 Read_susy
146 File_Readsusy set /cdf/home/lys/SUSY/sps_pt1a.1105.in
147 exit
148
149
150
151 The type of reaction is specified by the Process number, which is set in
152 the talkto (see below).
153 For a list of the possible Process numbers, see the official write-up
154 (hep-ph/0011363, G. Corella et al.), pages 33-53, and the added processes
155 described in the v6.3 Release Note (see above).
156 A few Process numbers are:
157 1453 q q' -> W -> tau.nutau,
158 1500 QCD 2->2 hard parton scattering,
159 1706 t.tbar production,
160 2100 W + jet production,
161 2300 SM Higgs + jet production.
162 If 10000 is added (e.g., 11706) the underlying event is suppressed.
163
164
165 In running Herwig, a few warnings: HWWARN ... HWSFUN: CODE = 5 (or 4)
166 often occur.
167
168 For more and better wisdom on tcl files, see Ken Bloom's CDF note
169 5294, and the tcl files in $CDFSOFT2_DIR/SimulationMods/test .
170
171 -------------------------------------------------------------------------------
172 -------------------------------------------------------------------------------
173
174 HERWIG talk-to
175 --------------
176
177 Simple Herwig talk-to example:
178
179 talk Herwig
180 help // This gives ~50 lines of information
181 show // ~100 lines, gives values of all the variables
182 Process set 11706 // Note order, "set" does NOT come first
183 Masses
184 top set 175. // Decimal point not required (of course)
185 show // Gives values of variables in Menu 11 - Masses
186 exit
187 Prints
188 maxpr set 1 // Gives internal Herwig print of 1 event
189 prvtx set 0 // In Herwig is Boolean, default true, here is integer.
190 exit
191 exit
192
193 -------------------------------------------------------------------------------
194
195 Herwig talk-to details:
196
197 The Herwig manual for version 6 (hep-ph/0011363, G Corcella et al., see
198 above) lists three sets of variables that must or may be set by a user.
199 These are reproduced below, with the Herwig description for each of the
200 three lists in quotes. A fourth list contains variables that have been
201 added in v6.3 or v6.4 and which a CDF user may wish to reset.
202
203 Appended, on the right hand side of the lists, is HERWIG talk-to
204 information, as set up for CDF users in generatorMods/HerwigModule.cc
205 (and ditto.hh).
206 The talk-to "name" is the word required in the talk-to interaction,
207 after giving the menu command. The menu commands are in the Menu table
208 below the lists. G stands for general menu, for which no menu command is
209 needed.
210
211 Default values in the lists below (except the *-ed ones) are as set in
212 the initializing HERWIG routines. Almost all are set in hwigin.f. Some
213 values are set or reset in HerwigInterface.F, and indicated by a star (*)
214 in the default column below.
215 The talk-to variables are preset in HerwigModule, but all except three
216 are reset by Herwig. The three not reset are noshower, nohadronization
217 and File_Readsusy; the first two are used in HerwigModule.cc but not in any
218 Herwig routines (are not in Herwig.inc), and the third is passed as an
219 argument to cdfreadsusy.
220
221 Some of the parameters listed are not (i.e., not currently) accessible in
222 the talk-to. For such parameters there are no entries to the right of the
223 herwig information.
224
225 Beneath the lists of variables and parameters is a list of 5 further
226 variables that it may be useful to change sometimes and that can be set in
227 the talk-to.
228
229 -------------------------------------------
230
231 "As indicated above, a number of variables must be set in the main
232 program to specify what is to be simulated:"
233
234 +----------+------------------------------+-----------+ talk-to
235 | Name | Description | Default |Menu "name"
236 +----------+------------------------------+-----------+
237 | PART1 | Type of particle in beam 1 |*'P '| 01 Beam1
238 | PART2 | Type of particle in beam 2 |*'PBAR '| 01 Beam2
239 | PBEAM1 | Momentum of beam 1 |*980. | 01 Pbeam1
240 | PBEAM2 | Momentum of beam 2 |*980. | 01 Pbeam2
241 | IPROC | Type of process to generate |*1500 | G Process
242 | MAXEV | Number of events to generate | Not used |
243
244 +----------+------------------------------+-----------+
245
246
247
248 "The quantities that may be regarded as adjustable parameters are"
249
250 +----------+----------------------------------+-------+ talk-to
251 | Name | Description |Default|Menu "name"
252 +----------+----------------------------------+-------+
253 | QCDLAM | QCD Lambda (see below) | 0.18 | G Lambda_QCD
254
255 +----------+----------------------------------+-------+
256 | RMASS(1) | Down quark mass | 0.32 | 11 down
257 | RMASS(2) | Up quark mass | 0.32 | 11 up
258 | RMASS(3) | Strange quark mass | 0.50 | 11 strange
259 | RMASS(4) | Charmed quark mass | 1.55 | 11 charm
260 | RMASS(5) | Bottom quark mass | 4.95 | 11 bottom
261 | RMASS(6) | Top quark mass | 174.3 | 11 top
262
263 +----------+----------------------------------+-------+
264 | RMASS(13)| Gluon effective mass | 0.75 | 11 gluon
265
266 +----------+----------------------------------+-------+
267 | VQCUT | Quark virtuality cutoff (added to| 0.48 | 05 Qcutoff
268 | | quark masses in parton showers) | |
269 | VGCUT | Gluon virtuality cutoff (added to| 0.10 | 05 Gcutoff
270 | | effective mass in parton showers)| |
271 | VPCUT | Photon virtuality cutoff | 0.40 | 05 Pcutoff
272
273 +----------+----------------------------------+-------+
274 | CLMAX | Maximum cluster mass parameter | 3.35 | 06 Clmax
275 | CLPOW | Power in maximum cluster mass | 2.00 | 06 Clpow
276 | PSPLT(1) | Split cluster spectrum, non-b | 1.00 | 06 Psplt1
277 | PSPLT(2) | Split cluster spectrum, b | 1.00 | 06 Psplt2
278
279 +----------+----------------------------------+-------+
280 | QDIQK | Maximum scale for gluon->diquarks| 0.00 | 06 Qdiqk
281 | PDIQK | Gluon->diquarks rate parameter | 5.00 | 06 Pdiqk
282
283 +----------+----------------------------------+-------+
284 | QSPAC | Cutoff for spacelike evolution | 2.50 | 05 Spacelike_evolution
285 | PTRMS | Intrinsic pt in incoming hadrons| 0.00 | 05 Pt_incoming_hadrons
286
287 +----------+------------------------------+-----------+
288
289
290
291 "A number of quantities can be reset to control the program and
292 various options:"
293
294 +----------+----------------------------------+-------+ talk-to
295 | Name | Description |Default|Menu "name"
296 +----------+----------------------------------+-------+
297 | NEVHEP | Current no. of events | 0 |
298 | NHEP | Current no. entries in /HEPEVT/ | 0 |
299
300 +----------+----------------------------------+-------+
301 | IPRINT | Printout option |*1 | 14 iprint
302 | MAXPR | Number of events to print out |*0 | 14 maxpr
303 | PRVTX | Include vertex info in print out | .TRUE.| 14 prvtx
304 | NPRFMT | Print to screen or log file | 1 | 14 nprfmt
305 | PRNDEC | Use decimal/hexadecimal in print | .TRUE.| 14 prndef
306 | PRNDEF | Print to screen or log file | .TRUE.| 14 prndef
307 | PRNTEX | Print to latex file |.FALSE.| 14 prntex
308 | PRNWEB | Print to html file |.FALSE.| 14 prnweb
309
310 +----------+----------------------------------+-------+
311 | MAXER | Max number of errors |*100 | G Maxer
312
313 +----------+----------------------------------+-------+
314 | LWEVT | Unit for writing output events |*0 |
315
316 +----------+----------------------------------+-------+
317 | LRSUD | Unit for reading Sudakov table | 0 |
318 | LWSUD | Unit for writing Sudakov table | 77 |
319 | SUDORD | Alpha_s order in Sudakov table |*2 | 02 Sudakov_order
320 | INTER | Order of interp., Sudakov tables | 3 |
321
322 +----------+----------------------------------+-------+
323 | NRN(1) | Random number seed 1 |not used|
324 | NRN(2) | Random number seed 2 |not used|
325 | WGTMAX | Max weight (0 to search for it) | 0. | 09 Maxwt
326 | NOWGT | Generate unweighted events | .TRUE.| 09 No_weights
327 | AVWGT | Mean event weight | 1.0 |
328 | EFFMIN | Minimum acceptable efficiency | 0.001 | 09 Effmin
329
330 +----------+----------------------------------+-------+
331 | AZSOFT | Soft gluon azimuthal correlations| .TRUE.| 05 Azsoft
332 | AZSPIN | Gluon spin azimuthal correlations| .TRUE.| 05 Azspin
333
334 +----------+----------------------------------+-------+
335 | HARDME | Use hard matrix-el corrections | .TRUE.|
336 | SOFTME | Use soft matrix-el corrections | .TRUE.|
337 | GCUTME | Gluon energy cut in top ME corr. | 2.0 |
338
339 +----------+----------------------------------+-------+
340 | NCOLO | Number of colours | 3 | 10 Colors
341 | NFLAV | Number of (producible) flavours | 6 | 10 Flavors
342
343 +----------+----------------------------------+-------+
344 | MODPDF(I)| PDFLIB structure function set and| -1 | 03 Modpdf
345 | AUTPDF(I)| author group for beam I(=1,2) | 'MRS' | 03 Autpdf
346 | | (if MODPDF()<0 do not use PDFLIB)| |
347 | NSTRU | Input structure function set | 8 | 03 Nstru
348 | | (1-5 old, 6-8 MRST 1998) | |
349
350 +----------+----------------------------------+-------+
351 | PRSOF | Prob. of soft underlying event | 1.0 | 07 Prsof
352
353 +----------+----------------------------------+-------+
354 | ENSOF | multipl. factor for underly evt | 1.0 | 07 Ensof
355 | PMBN1 | Soft interaction model parameter | 9.11 | 07 Pmbn1
356 | PMBN2 | Soft interaction model parameter | 0.115 | 07 Pmbn2
357 | PMBN3 | Soft interaction model parameter | -9.50 | 07 Pmbn3
358 | PMBK1 | Soft interaction model parameter | 0.029 | 07 Pmbk1
359 | PMBK2 | Soft interaction model parameter |-0.104 | 07 Pmbk2
360
361 +----------+----------------------------------+-------+
362 | PMBM1 | Soft interaction model parameter | 0.4 | 07 Pmbm1
363 | PMBM2 | Soft interaction model parameter | 2.0 | 07 Pmbm2
364 | PMBP1 | Soft interaction model parameter | 5.2 | 07 Pmbp1
365 | PMBP2 | Soft interaction model parameter | 3.0 | 07 Pmbp2
366 | PMBP3 | Soft interaction model parameter | 5.2 | 07 Pmbp3
367
368 +----------+----------------------------------+-------+
369 | IOPREM | Options for remnant clusters | 1 |
370
371 +----------+----------------------------------+-------+
372 | BTCLM | Mass param. in remnant fragmentn.| 1.0 |
373
374 +----------+----------------------------------+-------+
375 | VMIN2 | Min. parton virt-sq in dist. cal.| 0.1 |
376
377 +----------+----------------------------------+-------+
378 | CLRECO | Include colour rearrangement |.FALSE |
379 | PRECO | Probability for rearrangement | 1./9. |
380 | EXAG | Lifetime scaling for weak bosons | 1. |
381
382 +----------+----------------------------------+-------+
383 | ETAMIX | eta/eta' mixing angle in degrees | -23 |
384 | PHIMIX | phi/omega mix ang. degs | +36 |
385 | H1MIX | h1(1380)/h1(1170) mix ang. degs. | 35.26 |
386 | F0MIX | -/f0(1370) mix ang. degs. | 35.26 |
387 | F1MIX | f1(1420)/f1(1285) mix ang. degs. | 35.26 |
388 | F2MIX | f2'/f2 mix ang. degs. | +26 |
389 | ET2MIX | et2(1645)/et2(1870) mix ang. deg | 35.26 |
390 | OMHMIX | -/omega(1600) mix ang. degs. | 35.26 |
391 | PH3MIX | phi3/omega3 mix ang. degs. | +28 |
392
393 +----------+----------------------------------+-------+
394 | B1LIM | B cluster -> 1 hadron parameter | 0.0 |
395 | CLDIR(1) | Orientation of clusters, non-b | 1 | 06 Cldir1
396 | CLDIR(2) | Orientation of clusters, b | 1 | 06 Cldir2
397 | CLSMR(1) | Width of G. angle smear, non-b | 0.0 | 06 Clsmr1
398 | CLSMR(2) | Width of G. angle smear, b | 0.0 | 06 Clsmr2
399
400 +----------+----------------------------------+-------+
401 | PWT[I] | a priori weights, f.fbar pairs | 1.0 | 06 Pwt1
402 | | - I=1-7: d,u,s,c,b,t,qq' | 1.0 | 06 Pwt2
403 | | | 1.0 | 06 Pwt3
404 | | | 1.0 | 06 Pwt4
405 | | | 1.0 | 06 Pwt5
406 | | | 1.0 | 06 Pwt6
407 | | | 1.0 | 06 Pwt7
408 |REPWT(L,J,N)| a priori weight, L_J mesons | 1.0 |
409 | SNGWT | a priori wgt, singlet baryons | 1.0 | 06 Sngwt
410 | DECWT | a priori wgt, decuplet baryons | 1.0 | 06 Decwt
411
412 +----------+----------------------------------+-------+
413 | PLTCUT | Lifetime cut, "stable" particles |*1.E-11| 08 Pltcut
414
415 +----------+----------------------------------+-------+
416 | VTOCDK(I)| Veto cluster decay to hadron I |.FALSE.|
417 | VTORDK(I)| Veto resonance decay to hadron I |.FALSE.|
418 | | - I=290-293, f0(980), a0(980) | .TRUE.|
419
420 +----------+----------------------------------+-------+
421 | PIPSMR | Smear the primary vertex |.FALSE.| 01 Pipsmr
422 | VIPWID(1)| x width (mm) | 0.25 | 01 Vipwidx
423 | VIPWID(2)| y width (mm) | 0.015 | 01 Vipwidy
424 | VIPWID(3)| z width (mm) | 1.8 | 01 Vipwidz
425
426 +----------+----------------------------------+-------+
427 | MAXDKL | Veto decays outside given volume |.FALSE.|
428 | IOPDKL | Option for volume: 1=cyl, 2=sph | 1 |
429 | DXRCYL | Radius for cyl. option (mm) | 20 |
430 | DXZMAX | Length for cyl. option (mm) | 500 |
431 | DXRSPH | Radius for sph. option (mm) | 100 |
432
433 +----------+----------------------------------+-------+
434 | BDECAY | Controls which B Decay package is| 'HERW'|
435 | | used. The allowed values are: | |
436 | | 'HERW'; 'EURO'; or 'CLEO'. | |
437 | MIXING | Include neutral B meson mixing |*.FALSE.|
438 | XMIX(1) | del_Mass/Gamma, B^0_s | 10.0 |
439 | XMIX(2) | del_Mass/Gamma, B^0_d | 0.7 |
440 | YMIX(1) | del_Gamma/2*Gamma, B^0_s | 0.2 |
441 | YMIX(2) | del_Gamma/2*Gamma, B^0_d | 0.0 |
442
443 +----------+----------------------------------+-------+
444 |RMASS(198)| W+ mass | 80.42 | 11 W
445 |RMASS(199)| W- mass |W+ mass|
446 | GAMW | W+- width | 2.12 | 10 W_width
447 |RMASS(200)| Z0 mass | 91.188| 11 Z0
448 | GAMZ | Z0 width | 2.495 | 10 Z_width
449 | WZRFR | W/Z rest frame for decay pars. | .TRUE.|
450 | MODBOS(I)| Force decay modes for weak bosons| 0 | 08 Modbos1
451 | | | 0 | 08 Modbos2
452
453 +----------+----------------------------------+-------+
454 |RMASS(201)| SM Higgs mass | 115. | 11 Higgs
455 | IOPHIG | Options for large Higgs mass dist| 3 |
456 | GAMMAX | Limit on range of Higgs mass dist| 10. | 11 Gammax
457 | ENHANC(I)| Enhance factor, Higgs dk mode I | 1.0 |
458
459 +----------+----------------------------------+-------+
460 |RMASS(209)| 4th generation b quark mass | 200. |
461 |RMASS(215)| 4th generation bbar mass |RMAS209|
462
463 +----------+----------------------------------+-------+
464 | ALPHEM | Thompson limit value, alpha_em(0)|0.0072993|
465 | SWEIN | Value of sin_sq(theta_W) | 0.2319| 10 Weinberg_angle
466 | QFCH(I) | Fermion electric charge | |
467 | AFCH(I,J)| Fermion weak axial charge | |
468 | VFCH(I,J)| Fermion weak vector charge | |
469 | ZPRIME | Include a Z' in g*/Z0 processes |.FALSE.| 13 Zprime
470 |RMASS(202)| Mass of Z' | 500. | 13 ZP
471 | GAMZP | Width of Z' | 5.0 | 13 ZP_width
472 | VCKM(I,J)| CKM matrix elements | |
473 | SCABI | Value of sin_sq(theta_C) | 0.0488| 10 Cabbibo_angle
474
475 +----------+----------------------------------+-------+
476 |EPOLN(1-3)| Electron and positron beam | 0.0 |
477 | | polarizations in DIS and e+e- | 0.0 |
478 | | annihilation. First two cmpts are| 0.0 |
479 |PPOLN(1-3)| transverse and only used in e+e-,| 0.0 |
480 | | 3rd cmpt is longitudinal, and is | 0.0 |
481 | | +/-1 for fully rh/lh polarized | 0.0 |
482
483 +----------+----------------------------------+-------+
484 | QLIM | Upper limit on hard process scale| 1E08 | 04 Qlim
485
486 +----------+----------------------------------+-------+
487 | THMAX | Max thrust, IPROC=110-116 | 0.9 | 04 Thrustmax
488 | Y4JT | Min. jet separn., IPROC=600-656 | 0.01 |
489 | DURHAM | Use DURHAM or JADE, IPROC=600-656| .TRUE.|
490 |IOP4JT(1) | Color interference, IPROC=600-656| 0 |
491 |IOP4JT(2) | Color interference, IPROC=600-656| 0 |
492
493 +----------+----------------------------------+-------+
494 | BGSHAT | Scale=shat for boson-gluon fusion|.FALSE.| 04 Bgshat
495
496 +----------+----------------------------------+-------+
497 | BREIT | Use Breit frame for DIS kinematix| .TRUE.|
498 | USECMF | Use hadron-hadron cmf | .TRUE.|
499
500 +----------+----------------------------------+-------+
501 | NOSPAC | Switch off space-like showers |.FALSE.| 05 Nospac
502 | ISPAC | Changes meaning of QSPAC, | 0 | 05 Ispac
503 | | (see the earlier notes on QSPAC) | |
504
505 +----------+----------------------------------+-------+
506 | TMNISR | Min vaule shat/S for photon ISR | 1E-4 |
507 | ZMXISR | Max mom fraction for photon ISR | 1-1E-6|
508
509 +----------+----------------------------------+-------+
510 | ASFIXD | fixed alpha_s for Mueller-Tang xs| 0.25 |
511 | OMEGA | omega for Mueller-Tang xsec | 0.3 |
512
513 +----------+----------------------------------+-------+
514 | IAPHIG | Approx in Higgs+jet, IPROC=23xx | 1 |
515
516 +----------+----------------------------------+-------+
517 | PHOMAS | Damp structure functions for off-| 0.0 |
518 | | shell photons (0 for no damping) | |
519
520 +----------+----------------------------------+-------+
521 | PTMIN | Min pt in hadronic jet production| 10. | 04 Ptmin
522 | PTMAX | Max pt in hadronic jet production| 1.E8 | 04 Ptmax
523 | PTPOW | 1/pt**PTPOW for jet sampling | 4. | 04 Ptpow
524 | YJMIN | Min jet rapidity |-8. |
525 | YJMAX | Max jet rapidity | 8. | 04 Ymax
526
527 +----------+----------------------------------+-------+
528 | EMMIN | Min dilepton mass in Drell-Yan | 10. | 04 MassMin
529 | EMMAX | Max dilepton mass in Drell-Yan | 1.E8 | 04 MassMax
530 | EMPOW | 1/m**EMPOW for Drell-Yan sampling| 4. | 04 Empow
531
532 +----------+----------------------------------+-------+
533 | Q2MIN | Min Q**2 in deep inelastic | 0.0 | 04 Q2dilsmin
534 | Q2MAX | Max Q**2 in deep inelastic | 1.E10 | 04 Q2dilsmax
535 | Q2POW | (1/Q**2)**Q2POW for sampling DIS | 2.5 | 04 Q2power
536
537 +----------+----------------------------------+-------+
538 | YBMIN | Min and Max Bjorken-y in DIS | 0.0 |
539 | YBMAX | | 1.0 |
540
541 +----------+----------------------------------+-------+
542 | WHMIN |Min had mass in gamma-ind. procs. | 0.0 |
543
544 +----------+----------------------------------+-------+
545 | ZJMAX | Max Z in J/psi production | 0.9 |
546
547 +----------+----------------------------------+-------+
548 | Q2WWMN | Min Q**2 in Equiv Photon Approx | 0.0 |
549 | Q2WWMX | Max Q**2 in Equiv Photon Approx | 4.0 |
550 | YWWMIN | Min, max photon light-cone fract.| 0.0 |
551 | YWWMAX | - in Equiv. Photon approx | 1.0 |
552
553 +----------+----------------------------------+-------+
554 | CSPEED | Speed of light in vacuum (mm/s) |2.99792E11|
555 | GEV2NB | (crossh.c/e)**2 |389379.|
556
557 +----------+----------------------------------+-------+
558 | IBSH | No. of shots for init. max wgt. | 10000 |
559 | IBRN(1) | 1st random no. seed for max wgt. |1246579|
560 | IBRN(2) | - search |8447766|
561
562 +----------+----------------------------------+-------+
563 | NQEV | No. of entries in Sudakov table | 1024 |
564 | ZBINM | Max bin size, z in spacelike bran| 0.05 |
565 | NZBIN | Max no. of z bins in spacelike br| 100 |
566
567 +----------+----------------------------------+-------+
568 | NBTRY | Max. attempts to branch a parton | 200 |
569 | NCTRY | Max. attempts to decay a cluster | 200 |
570 | NETRY | Max. attempts, generate reqd mass| 200 |
571 | NSTRY | Max. attempts at soft subprocess | 200 |
572
573 +----------+----------------------------------+-------+
574 | ACCUR | Precision, soft Gauss integration| E-6 |
575
576 +----------+----------------------------------+-------+
577 | RPARTY | R-parity conservation in SUSY | .TRUE.| 12 Rparty
578
579 +----------+----------------------------------+-------+
580 | SUSYIN | Check if SUSY dataalready loaded |.FALSE.|
581 | LRSUSY | Unit for reading SUSY data | 66 |
582
583 +----------+----------------------------------+-------+
584
585
586
587 Talk-to quantities added at CDF with Herwig version 6.4 (the first
588 four are in v6.3):
589
590 +----------+----------------------------------+-------+
591 | OPTM | Optimize phase space (28xx, 29xx)|.FALSE.| 15 Optm
592 | IOPSTP | No. of iterations if optimizing | 10 | 15 Iopstp
593 | IOPSH | Events per iteration | 1000 | 15 Iopsh
594
595 +----------+----------------------------------+-------+
596 | NEGWTS | Allow negative weights |.FALSE.| 09 Negwts
597
598 +----------+----------------------------------+-------+
599 | SYSPIN | Switch on spin correls |.TRUE. | 15 Syspin
600 | THREEB | Switch on 3-body decay mat els. |.TRUE. | 15 Threeb
601 | FOURB | Switch on 4-body decay mat els. |.FALSE.| 15 Fourb
602 | LRDEC | Unit to read spin or mat el inits| 0 | 15 Lrdec
603 | LWDEC | Unit to write spin or mat el init| 88 | 15 Lwdec
604
605 +----------+----------------------------------+-------+
606 | RLTIM(6) | Lifetime of top quark (secs) | 5.534E-25| 08 Topltim
607
608 +----------+----------------------------------+-------+
609
610
611
612 Additional quantities in HERWIG talk-to:
613
614 talk-to
615 Name Description Default Menu "name"
616
617 TLOUT time to terminate gracefully *-1e07 . 09 Tlout
618 RSTAB[21] whether pizero is stable .... false . 08 Pizstable
619
620 ..... used internally in HerwigModule.cc 0 09 No_shower
621 ..... " " " 0 09 No_hadronization
622 ..... " " " 12 File_Readsusy
623
624
625
626 Menu numbers and commands
627 G [none]
628 01 Beam
629 02 Sudakov
630 03 Struc_Function
631 04 Hards
632 05 Shower
633 06 Hadronization
634 07 Underl_event
635 08 Decays
636 09 Generation
637 10 Sm_par
638 11 Masses
639 12 Read_susy
640 13 Zprime
641 14 Prints
642 15 Vers64
643
644 -------------------------------------------
645
646
647 Assorted notes.
648
649 The exact "name" is required in the talk-to. For example, Help, Show,
650 Q2pow do not work (get a brief message and the thing continues on).
651 All Boolean variables in the explicitly Herwig talk-to are there as
652 integers. So, for example, talk-to requires Bgshat set 1 ; the line
653 Bgshat set true (or, .true.) gets no error message and does not change
654 Bgshat.
655 Given a name without arguments, the program gives a simple error message
656 and continues.
657
658 For any quantity with a * in the default column above, the value given
659 is as set in HerwigInterface.F (i.e., cdf people have changed a default
660 value set by Herwig people).
661
662 Note (for anyone who worries about this) that a Herwig routine (hwuinc)
663 explicitly sets mass(W-) = mass(W+), and similarly for all six quark masses.
664 So we do not need to set both W+ and W-, both charm and anticharm masses,
665 etc. Also, the top lifetime is applied to both t and tbar.
666
667 There is a difficulty with inputting negative numbers in the talk-to.
668 For PMBN3 and PMBK2, the magnitude must be input, and the program
669 assumes the variables are negative. For example, Pmbn1 set 9.00 will lead
670 to PMBN1 = -9.00 in the HERWIG code.
671
672 The minimum jet rapidity, YJMIN above, is set to -YJMAX, the negative
673 of the maximum jet rapidity.
674
675 For inputting powers of 10, one must use E (or e), not D or d. For
676 example, Pltcut set 1.E-10 works OK, but Pltcut set 1.D-10 leads to
677 Pltcut being set to 1.
678
679 On MAXER, the maximum number of errors. If the number of errors
680 exceeds MAXER, the run ends gracefully, and the message "HWWARN
681 CALLED FROM SUBROUTINE HWUFNE" appears. The default MAXER value is 100,
682 which may not be large enough. Herwig people suggest it be set to
683 number-of-events/100. If you have a tested executable and tcl file
684 you could just set MAXER to a large value (1.E10, whatever).
685
686 On TLOUT, 'the time to terminate gracefully'. Herwig has had a way
687 of nicely ending a run if the cpu time limit was approaching. In v6.4
688 at Fermilab the two relevant routines, hwutim and timel, are dummies.
689 To restore this feature, one must edit hwutim.f and timel.f and get
690 them linked into the executable. There is a timel in library KERNLIB,
691 see short writeup Z007, but that "is not reliable - especially on
692 Linux".
693
694 The option to write to disk a Sudakov table, and read it in, is not
695 in the talk-to. The Herwig code still allows that option, but the cpu time
696 saved is very small, so it is more sensible to recalculate the table for
697 every run.
698
699 The variable SUDORD controls whether the Sudakov form factors are
700 calculated using one-loop or two-loop alphs-s (see pages 9 and 71 of the
701 Herwig v 6 writeup). The default in Herwig is 1. In the CDF version that
702 is changed (in HerwigInterface.F) to 2, because (i) then herwig is ~40%
703 faster, (ii) it makes little difference, (iii) Mike Seymour (an author)
704 uses 2.
705
706 The variable MODBOS(I) controls the decay of the Ith gauge boson per
707 event. Some intelligence, and maybe a test run, may be needed if anyone
708 wants to change the default settings. The talkto currently allows only the
709 decays of the first two gauge bosons to be changed. The decay of W's from
710 top decay is unaffected by MODBOS settings. See the Herwig 6 writeup page
711 14 for MODBOS information.
712
713 The variable MAXEV, included in the first list above, is not used in
714 CDF's Herwig.
715
716 --------------------------------------------------------------------------
717 --------------------------------------------------------------------------
718
719 Random Numbers, and Reproducing Events
720 --------------------------------------
721
722 The HERWIG package has its own random number generator, in
723 function hwrgen in hwrgen.f . That hwrgen.f is now not used.
724 Instead, we use the random number machinery in the CLHEP library.
725 If events are printed in Herwig (e.g., using maxpr set 10) the
726 print includes the random number seed pair for the event. That seed pair
727 is also printed with any Herwig warning for an event. At present (July
728 2002) what is printed is history, and is not the random number seed pair
729 actually used.
730
731 Onto reproducibility. For example, we may want to reproduce event
732 number 3846 of a run without rerunning all 3846 events. We need to know
733 the random numbers at the start of event 3846. If the earlier run ended
734 (e.g., crashed) on event 3846 then the file CdfRnStat.dat gives those
735 random numbers, which can be input into the new run, using talk
736 RandomGenManager. But also a maximum weight must be input, using, in
737 talk Herwig:
738 Generation
739 Maxwt set [value]
740 exit
741 where the value can be found in the earlier run log file as the last
742 "New Maximum WEIGHT" value. All 16 decimal places can be used.
743 Tests show that this procedure works with Herwig and QQ, but not
744 with tauola (presumably tauola uses random numbers in initializing).
745 (Also, does not work with Pythia).
746
747 Footnote on random numbers (for anyone who cares).
748 The random number generator uses a l'Ecuyer method, which combines
749 two MLCG (multiplicative linear congruential) generators. See the nice
750 "A review of pseudorandom number generators", F. James, Comput. Phys.
751 Commun. 60, 329 (1990).
752
753 --------------------------------------------------------------------------
754 --------------------------------------------------------------------------
755
756 User routines in Herwig, and Filtering Inside Herwig
757 ----------------------------------------------------
758
759 The Herwig writeup mentions user-provided analysis routines, hwabeg,
760 hwaend, and hwanal (see page 6 of herwig v 6 write-up). These routines
761 can provide a simple way to study generator-level quantities, and
762 to filter events, i.e., select only certain events to procede with.
763 Information is all in the common blocks, particularly in common/hepevt/... .
764 Dummy routines reside in the file herwig_i/HerwigInterface.F.
765 To make any event selection easier, we have added another routine,
766 hwanal0, with Herwig v6.4. Both hwanal and hwanal0 have an integer argument.
767 If the integer is set to 0 in hwanal or hwanal0 the current event will be
768 rejected. One could use hwanal0 to make a selection before hadronization,
769 and/or hwanal for after hadronization - see the logic in generatorMods/
770 HerwigModule.cc .
771
772 A trivial hwanal.F could be
773
774 subroutine hwanal(ihwcod)
775 #include "HERWIG64.INC"
776 integer ihwcod
777 write (lhwout,10) nhep
778 10 format (' NHEP ',i8)
779 return
780 end
781
782 which will write the number of generator-level particles produced by
783 Herwig for each event.
784
785 A simple filtering hwanal0 could be
786
787 subroutine hwanal0(ihwcod)
788 #include "HERWIG64.INC"
789 integer ihwcod
790 integer ii,ib
791 ib=0
792 do ii=1,nhep
793 if(idhep(ii).eq.5.or.idhep(ii).eq.-5) ib=1
794 end do
795 cc reject event unless there is at least one b quark
796 ihwcod=ib
797 return
798 end
799
800 The above hwanal0 will not select events (if any) with b's from
801 decays of higher-mass upsilons.
802 Note that hwanal is called before any qq or tauola operation occurs.
803 So, for example, filtering on J/psi from B decays in hwanal is not possible
804 if qq is used.
805 Also, be aware that if you elect to print (in Herwig) some events,
806 lots of printing will occur if you are selecting a rare event type.
807 For example, if maxpr set 5 and the required event type occurs
808 in 1% of the generated events, about 500 events will be printed.
809
810
811 --------------------------------------------------------------------------
812 --------------------------------------------------------------------------
813
814 Structure Function Notes
815 ------------------------
816
817 The default parton distributions in Herwig are a MRST 1998 set,
818 see the explanation in the Herwig 6.3 release note pg 2. This MRST
819 set is in the Herwig code, i.e., does not use PDFLIB.
820 To see which pdf a job used, search for PDFLIB in the log file.
821 If present, that will tell you. If not present, search for
822 STRUCTURE FUNCTION SET in the log file, the value there is nstru (see
823 below).
824
825 The structure functions used by Herwig are controlled by the
826 variables nstru, autpdf(i), modpdf(i), i=1,2.
827 If modpdf(i) < 0, autpdf(i) is ignored and nstru determines
828 which of the built-in structure functions is used (see hwsfun.f).
829 Allowed nstru values are 1 to 8, the default is 8, and the value can
830 be changed in the talk-to. The pdf's for nstru = 1 - 5 are very old
831 (~1991). The nstru = 6 - 8 were added in v6.3, are from MRST-1998,
832 and are explained in the Herwig 6.3 Release Note.
833
834 If modpdf(i) >= 0, nstru is ignored, and autpdf(i) and modpdf(i)
835 determine the structure functions, which are taken from PDFLIB. Here
836 autpdf gives author initials (approx.), and modpdf gives the set number
837 (as defined by PDFLIB) for those authors. Some possible autpdf are 'MRS',
838 'CTEQ', and 'GRV', with modpdf <= 100 (MRS) or <= 54 (CTEQ) or <= 14 (GRV).
839 See the PDFLIB writeup (//consult.cern.ch/writeups/pdflib/), especially
840 Tables 1 - 4. As of August 2001 the writeup is for version 8.04 (dated
841 April 2000); one should check the current Fermilab version.
842
843 The talk-to allows modpdf(i) and autpdf(i) to be changed. It is assumed
844 that i = 1 and i = 2 values are equal (OK for pbar-p). That is, talkto
845 sets Autpdf, and then autpdf(i) = Autpdf, i = 1,2, and Modpdf similarly.
846 If a non-existing (autpdf, modpdf) pair is asked for, PDFLIB defaults
847 to MRST set 89 (which I think is the same as the Herwig default). PDFLIB
848 always writes (to log file) what set it is using.
849
850 Possible talk-to, inside talk herwig , are:
851
852 ## MRS set G:
853 Struc_Function
854 Autpdf set MRS
855 Modpdf set 41
856 exit
857
858 ##CTEQ set 5L:
859 Struc_Function
860 Autpdf set CTEQ
861 Modpdf set 46
862 exit
863
864
865
866 --------------------------------------------------------------------------
867 --------------------------------------------------------------------------
868
869 On Decays in the Generator versus in Geant - Pltcut
870 ---------------------------------------------------
871
872 For particles with lifetimes ~ E-10 s, the question arises of whether
873 to do the decay in the generator or in Geant. If done in the generator,
874 then (i) the decay products are available in the HEPG bank, (ii) the
875 decaying particle cannot interact in the detector, (iii) if the decaying
876 particle is charged, it leaves no track and does not bend in the magnetic
877 field. If done in Geant, the converse holds.
878 Given the particle lifetimes, it seems preferable for weakly-decaying
879 strange hadrons to be decayed in geant, and B and C hadrons in the
880 generator. Therefore, pltcut, the variable used in Herwig for making
881 particles stable, has been changed (as of 26-Jan-2001) from 1.E-8 to
882 1.E-11. This change also gives agreement with the qq default of not
883 decaying K-shorts and weak-decay strange baryons. Pltcut has been added
884 to the talk-to, so if desired the previous value (or any value) can be
885 used.
886
887 --------------------------------------------------------------------------
888 --------------------------------------------------------------------------
889
890 Changes Made in v6_4 by CDF
891 ---------------------------
892
893 Routines with the same names as tauola routines were added in
894 the released v6_4. They were to facilitate the use of tauola. At
895 CDF's request, those tauola routines have been moved to a dummy
896 sub-library, and are not (should not be) linked. The herwig routine
897 that calls these tauola routines has been put into HerwigInterface.F
898 and changed so that all it does is stop the run - it should never
899 be called.
900
901 The coding for the new gauge boson pair production processes
902 (IPROC = 2800-2816 and 2900-2916) introduced a severe complication in
903 the setting of variables and parameters by a user. That complication
904 is unnecessary, and CDF avoids it by making a few simple changes
905 to the routine HWIPHS, which is then added to HerwigInterface.F.
906
907 --------------------------------------------------------------------------
908 --------------------------------------------------------------------------
909
910
911
912
913
914
915
916
Send problems or questions to cdfcode@fnal.gov