ATLAS Offline Software
Herwig71_EvtGen.py
Go to the documentation of this file.
1 
2 assert hasattr(genSeq, "Herwig7")
3 include("EvtGen_i/EvtGen_Fragment.py")
4 
5 # Set the aux-files depending on the current Herwig version
6 evgenConfig.auxfiles += ['Herwig71Inclusive.pdt']
7 genSeq.EvtInclusiveDecay.pdtFile = "Herwig71Inclusive.pdt"
8 
9 Herwig7Config.add_commands("""
10 # Quick "fix" to the mismatch between Herwig 7 and EvtGen of the masses below
11 set /Herwig/Particles/B'_c1+:NominalMass 7.3
12 set /Herwig/Particles/B'_c1-:NominalMass 7.3
13 set /Herwig/Particles/B_c1+:NominalMass 7.3
14 set /Herwig/Particles/B_c1-:NominalMass 7.3
15 set /Herwig/Particles/B_c2+:NominalMass 7.35
16 set /Herwig/Particles/B_c2-:NominalMass 7.35
17 set /Herwig/Particles/B*_c0+:NominalMass 7.25
18 set /Herwig/Particles/B*_c0-:NominalMass 7.25
19 set /Herwig/Particles/B_c+:NominalMass 6.277
20 set /Herwig/Particles/B_c-:NominalMass 6.277
21 #
22 # This is a complete kludge. Herwig7 has switched the mapping of names and pdgids for the D'(s1) and the D(s1)
23 # That means EvtGen misinterprets which particle it should be decaying, since the PDGID is what is written
24 # in the record. So, we'll set things up to change the masses so that the HEPMC record lis OK. That means
25 # we want:
26 # Mass: 2.45960 ID: 20433 (Pythia8 calls this the D*_1s+ , EvtGen calls it D_s1-. 20433 is what Herwig calls
27 # D'_s1+ and orginally gave it a mass of 2.53535)
28 # Mass: 2.53512 ID: 10433 (Pythia8 calls this the D_1s+ , EvtGen calls it D'_s1+. 10433 is what Herwig calls
29 # D_s1+ and orginally gave it a mass of 2.4589
30 #
31 # Since EvtGen will redecay everything anyway, we'll make these particles stable in Herwig
32 #
33 
34 set /Herwig/Particles/D'_s1+:NominalMass 2.4595000e+00
35 set /Herwig/Particles/D'_s1+:Width 0.001
36 set /Herwig/Particles/D'_s1+:WidthCut 0.01
37 set /Herwig/Particles/D'_s1+:Width_generator:Initialize Yes
38 set /Herwig/Particles/D'_s1+:Mass_generator:Initialize Yes
39 set /Herwig/Particles/D'_s1-:NominalMass 2.4595000e+00
40 set /Herwig/Particles/D'_s1-:Width 0.001
41 set /Herwig/Particles/D'_s1-:WidthCut 0.01
42 set /Herwig/Particles/D'_s1-:Width_generator:Initialize Yes
43 set /Herwig/Particles/D'_s1-:Mass_generator:Initialize Yes
44 set /Herwig/Particles/D_s1+:NominalMass 2.5352800e+00
45 set /Herwig/Particles/D_s1+:Width 0.001
46 set /Herwig/Particles/D_s1+:WidthCut 0.01
47 set /Herwig/Particles/D_s1+:Width_generator:Initialize Yes
48 set /Herwig/Particles/D_s1+:Mass_generator:Initialize Yes
49 set /Herwig/Particles/D_s1-:NominalMass 2.5352800e+00
50 set /Herwig/Particles/D_s1+:Width 0.001
51 set /Herwig/Particles/D_s1+:WidthCut 0.01
52 set /Herwig/Particles/D_s1+:Width_generator:Initialize Yes
53 set /Herwig/Particles/D_s1+:Mass_generator:Initialize Yes
54 set /Herwig/Particles/D'_s1-:Stable Stable
55 set /Herwig/Particles/D'_s1+:Stable Stable
56 set /Herwig/Particles/D_s1-:Stable Stable
57 set /Herwig/Particles/D_s1+:Stable Stable
58 """)
python.Include.include
include
Definition: Include.py:318