Skip to content

Commit c24bd85

Browse files
check --beamspot only for GEN step and handle GEN:pgen_genonly case
1 parent 3d70b17 commit c24bd85

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Configuration/Applications/python/ConfigBuilder.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,8 +1062,10 @@ def define_Configs(self):
10621062
self.EVTCONTDefaultCFF="Configuration/EventContent/EventContent_cff"
10631063

10641064
if not self._options.beamspot:
1065-
if 'SIM' in self.stepMap or 'GEN' in self.stepMap:
1066-
raise Exception("Missing \'--beamspot\' option in the GEN-SIM step of the cmsDriver command!")
1065+
# GEN step always requires to have a VtxSmearing scenario (--beamspot) defined
1066+
# ...unless it's a special gen-only request (GEN:pgen_genonly)
1067+
if 'GEN' in self.stepMap and not 'pgen_genonly' in self.stepMap['GEN']:
1068+
raise Exception("Missing \'--beamspot\' option in the GEN step of the cmsDriver command!")
10671069
else:
10681070
self._options.beamspot=VtxSmearedDefaultKey
10691071

0 commit comments

Comments
 (0)