65 loadReadDicts = False,
66 loadWriteDicts = False,
68 TimeStampInterval = None,
70 from AthenaConfiguration.MainServicesConfig
import \
71 MainServicesCfg, MessageSvcCfg
72 cfg = MainServicesCfg (flags)
73 cfg.merge (MessageSvcCfg (flags))
74 cfg.getService(
"MessageSvc").debugLimit = 10000
75 cfg.addService (CompFactory.ClassIDSvc (OutputLevel = INFO))
76 cfg.addService (CompFactory.ChronoStatSvc (ChronoPrintOutTable =
False,
77 PrintUserTime =
False,
78 StatPrintOutTable =
False))
80 if flags.Input.Files == [
'_ATHENA_GENERIC_INPUTFILE_NAME_']:
83 from McEventSelector.McEventSelectorConfig
import McEventSelectorCfg
85 if EventsPerLB
is not None:
86 mckw[
'EventsPerLB'] = EventsPerLB
87 if TimeStampInterval
is not None:
88 mckw[
'TimeStampInterval'] = TimeStampInterval
89 cfg.merge (McEventSelectorCfg (flags, **mckw))
91 from xAODEventInfoCnv.xAODEventInfoCnvConfig
import EventInfoCnvAlgCfg
92 cfg.merge (EventInfoCnvAlgCfg (flags, disableBeamSpot =
True))
93 elif not flags.Input.Files[0].endswith (
'.bs'):
95 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
96 cfg.merge (PoolReadCfg (flags))
100 cfg.merge (LoadWriteDictsCfg (flags))
102 cfg.merge (LoadReadDictsCfg (flags))
105 if flags.Output.StorageTechnology.EventData ==
'ROOTRNTUPLE':
106 testName = testName +
'_rntup'
107 fileCatalog = testName +
'_catalog.xml'
108 from AthenaPoolCnvSvc.PoolCommonConfig
import PoolSvcCfg
109 kw = {
'WriteCatalog' :
'file:' + fileCatalog}
111 kw[
'ReadCatalog'] = [
'file:' + readCatalog]
112 cfg.merge (PoolSvcCfg (flags, **kw))
115 os.remove (fileCatalog)