Skip to content

Commit 2fd6b73

Browse files
committed
Frametype fix for asymmetric beams
1 parent d4deade commit 2fd6b73

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

MC/config/common/pythia8/utils/mkpy8cfg.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ def derive_process(process_in, beam_type_a, beam_type_b):
102102
if args.eCM > 0:
103103
fout.write('Beams:eCM = %f \n' % (args.eCM))
104104
elif args.eA > 0 and args.eB > 0:
105+
# Reference frame to be set to 2 if the two back-to-back beams have different energies
106+
if args.eA != args.eB:
107+
fout.write('Beams:frameType = 2 \n')
105108
fout.write('Beams:eA = %f \n' % (args.eA))
106109
fout.write('Beams:eB = %f \n' % (args.eB))
107110
else:
@@ -136,7 +139,7 @@ def derive_process(process_in, beam_type_a, beam_type_b):
136139
fout.write('\n')
137140

138141
### heavy ion settings (valid for Pb-Pb 5520 only)
139-
if args.process == 'heavy_ion':
142+
if args.process == 'heavy_ion' and (args.idA == 1000822080 and args.idB == 1000822080 and args.eCM == 5520.):
140143
fout.write('### heavy-ion settings (valid for Pb-Pb 5520 only) \n')
141144
fout.write('HeavyIon:SigFitNGen = 0 \n')
142145
fout.write('HeavyIon:SigFitDefPar = 13.88,1.84,0.22,0.0,0.0,0.0,0.0,0.0 \n')

0 commit comments

Comments
 (0)