1# Common fragment for generation of 1 Pythia8 event, when producing LHE output only
2# the number of events is set to 1 in two places: as Pythia param: Main:numberOfEvents = 1 and postSeq.CountHepMC.RequestedOutput=1 (the later one is stronger)
3# It is needed to make the transform run
4# No output is kept from this generation
5# We don't modify nEventsPerJob anymore,
6# which now corresponds to the number of
7# events in the output LHE file
8
9
10from __main__ import opts
11import os
12if'ATHENA_CORE_NUMBER'in os.environ:
13 evgenLog.info('Noticed that you have run with an athena MP-like whole-node setup. Will re-configure now to make sure that the remainder of the job runs serially.')