diff --git a/Generators/McEventSelector/python/McEventSelectorConfig.py b/Generators/McEventSelector/python/McEventSelectorConfig.py
index a31db701baf878d46f9f8f4fd0c4e670968397bc..a2139a6dee858b119e4b86efde22a04005741154 100644
--- a/Generators/McEventSelector/python/McEventSelectorConfig.py
+++ b/Generators/McEventSelector/python/McEventSelectorConfig.py
@@ -1,11 +1,11 @@
-# Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
+# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
 
 # https://twiki.cern.ch/twiki/bin/viewauth/AtlasComputing/AthenaJobConfigRun3
 
 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
 from AthenaConfiguration.ComponentFactory import CompFactory
 
-def McEventSelectorCfg(configFlags):
+def McEventSelectorCfg(configFlags, **kw):
     cfg=ComponentAccumulator()
 
     McCnvSvc=CompFactory.McCnvSvc
@@ -21,6 +21,9 @@ def McEventSelectorCfg(configFlags):
         rn = rn[0]
     evSel.RunNumber = rn
     evSel.InitialTimeStamp = configFlags.Input.InitialTimeStamp
+
+    for k, v in kw.items():
+        setattr (evSel, k, v)
     cfg.addService(evSel)
     cfg.setAppProperty("EvtSel",evSel.getFullJobOptName())