5 from PyJobTransforms.TransformUtils
import processPreExec, processPreInclude, processPostExec, processPostInclude
8 from AthenaCommon
import JobProperties
9 JobProperties.jobPropertiesDisallowed =
True
14 from AthenaCommon.Logging
import logging
15 log = logging.getLogger(
'AODtoHIST')
16 log.info(
'****************** STARTING AOD->HIST MAKING *****************')
18 log.info(
'**** Transformation run arguments')
19 log.info(
str(runArgs))
22 timeStart = time.time()
25 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
27 from PyJobTransforms.CommonRunArgsToFlags
import commonRunArgsToFlags
29 from RecJobTransforms.RecoConfigFlags
import recoRunArgsToFlags
33 if hasattr(runArgs,
'inputAODFile'):
34 flags.Input.Files = runArgs.inputAODFile
37 if hasattr(runArgs,
'outputHIST_AODFile'):
38 flags.Output.HISTFileName = runArgs.outputHIST_AODFile
39 log.info(
"---------- Configured HIST_AOD output")
40 if hasattr(runArgs,
'outputHISTFile'):
41 flags.Output.HISTFileName = runArgs.outputHISTFile
42 log.info(
"---------- Configured HIST output")
47 if hasattr(runArgs,
'detectors'):
48 detectors = runArgs.detectors
52 from AthenaConfiguration.DetectorConfigFlags
import setupDetectorFlags
53 setupDetectorFlags(flags, detectors, use_metadata=
True, toggle_geometry=
True, keep_beampipe=
True)
63 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
66 cfg.flagPerfmonDomain(
'IO')
67 from AthenaConfiguration.Enums
import Format
68 if flags.Input.Format
is Format.BS:
69 from ByteStreamCnvSvc.ByteStreamConfig
import ByteStreamReadCfg
71 log.info(
"---------- Configured BS reading")
73 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
76 if "EventInfo" not in flags.Input.Collections:
77 from xAODEventInfoCnv.xAODEventInfoCnvConfig
import (
80 log.info(
"---------- Configured POOL reading")
82 from AthenaMonitoring.AthenaMonitoringCfg
import AthenaMonitoringCfg, AthenaMonitoringPostprocessingCfg
91 timeFinal = time.time()
92 log.info(
"Run AODtoHIST_Skeleton in %d seconds", timeFinal - timeStart)
94 sys.exit(
not sc.isSuccess())