8 service = CompFactory.McCnvSvc()
9 cfg.addService(service)
10 cfg.addService(CompFactory.EvtPersistencySvc(
"EventPersistencySvc",
11 CnvServices=[service.getFullJobOptName()]))
13 if flags.Input.RunNumbers:
14 kwargs.setdefault(
"RunNumber", flags.Input.RunNumbers[0])
15 if flags.Input.TimeStamps:
16 kwargs.setdefault(
"InitialTimeStamp", flags.Input.TimeStamps[0])
18 if flags.Exec.FirstEvent <= 0:
19 raise ValueError(
"FirstEvent must be a positive, non-zero integer")
21 kwargs.setdefault(
"FirstEvent", flags.Exec.FirstEvent)
24 kwargs.setdefault(
"EventsPerRun",
int(2**63 - 1))
26 evSel = CompFactory.McEventSelector(
"EventSelector", **kwargs)
28 cfg.setAppProperty(
"EvtSel", evSel.getFullJobOptName())