4 Instantiate the isolation
7 from AthenaCommon.Logging
import logging
8 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
12 mlog = logging.getLogger(name)
13 mlog.info(
'Starting Isolation steering')
17 from IsolationAlgs.IsoDensityConfig
import (
18 EMTopoInputAlgCfg, NFlowInputAlgCfg, DensityForIsoAlgCfg)
19 if flags.Reco.EnableEgamma
or flags.Reco.EnableCombinedMuon:
20 if flags.Detector.EnableCalo:
23 if not flags.HeavyIon.Egamma.doSubtractedClusters:
28 if flags.Reco.EnablePFlow:
33 from IsolationAlgs.IsolationBuilderConfig
import egIsolationCfg, muIsolationCfg
34 if flags.Reco.EnableEgamma:
37 if flags.Reco.EnableCombinedMuon:
41 if flags.Output.doWriteESD
or flags.Output.doWriteAOD:
42 from IsolationAlgs.IsoOutputConfig
import IsoOutputCfg
47 if __name__ ==
"__main__":
48 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
49 from AthenaConfiguration.ComponentAccumulator
import printProperties
50 from AthenaConfiguration.TestDefaults
import defaultTestFiles
51 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
53 flags.Input.Files = defaultTestFiles.RDO_RUN2
54 flags.Output.doWriteESD =
True
55 flags.Output.doWriteAOD =
True
58 mlog = logging.getLogger(
"isolationConfigTest")
59 mlog.info(
"Configuring isolation: ")
63 acc.printConfig(withDetails=
True,
66 acc.getEventAlgo(
'photonIsolationBuilder'),
70 with open(
"isolationconfig.pkl",
"wb")
as f: