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