5 Things needed upstream the main egamma Reconstruction,
11 from AthenaCommon.Logging
import logging
12 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
16 name="EGammaSteering"):
18 mlog = logging.getLogger(name)
19 mlog.info(
'Starting EGamma Steering')
24 from egammaConfig.egammaReconstructionConfig
import (
25 egammaReconstructionCfg)
29 if flags.Output.doWriteESD
or flags.Output.doWriteAOD:
30 from egammaConfig.egammaOutputConfig
import (
35 if flags.Tracking.doLargeD0:
36 from egammaConfig.egammaLRTReconstructionConfig
import (
37 egammaLRTReconstructionCfg)
41 if flags.Output.doWriteESD
or flags.Output.doWriteAOD:
42 from egammaConfig.egammaLRTOutputConfig
import (
47 if flags.Output.doWriteAOD:
48 from egammaConfig.egammaxAODThinningConfig
import (
49 egammaxAODThinningCfg)
52 mlog.info(
"EGamma Steering done")
59 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
61 flags.addFlag(
'egamma.configOnly',
False, help=
'custom option for egammaSteeringConfig to not run, only output config file')
63 from AthenaConfiguration.TestDefaults
import defaultTestFiles, defaultConditionsTags
64 flags.Input.Files = defaultTestFiles.RDO_RUN3
65 flags.IOVDb.GlobalTag = defaultConditionsTags.RUN3_MC
66 flags.Exec.MaxEvents = 1
68 flags.Output.doWriteESD =
True
69 flags.Output.doWriteAOD =
True
70 flags.Output.ESDFileName =
"myESD.pool.root"
71 flags.Output.AODFileName =
"myAOD.pool.root"
73 from egammaConfig.ConfigurationHelpers
import egammaOnlyFromRaw
79 from RecJobTransforms.RecoSteering
import RecoSteering
83 from DigitizationConfig.DigitizationSteering
import DigitizationMessageSvcCfg
86 from AthenaConfiguration.Utils
import setupLoggingLevels
90 from RecJobTransforms.RecoConfigFlags
import printRecoFlags
93 with open(
"egammasteeringconfig.pkl",
"wb")
as f:
96 if hasattr(flags,
'egamma')
and flags.egamma.configOnly:
99 statusCode = acc.run()
102 if __name__ ==
"__main__":