4 Instantiate the EGamma reconstruction.
7 from AthenaCommon.Logging
import logging
8 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
13 mlog = logging.getLogger(name)
14 mlog.info(
'Starting EGamma reconstruction configuration')
19 from egammaAlgs.egammaTopoClusterCopierConfig
import (
20 egammaTopoClusterCopierCfg)
24 if flags.Egamma.doTracking:
26 if flags.Acts.GsfRefitActs:
34 from egammaAlgs.ActsEMBremCollectionBuilderConfig
import (
35 ActsEMBremCollectionBuilderCfg)
39 from egammaAlgs.egammaSelectedTrackCopyConfig
import (
40 egammaSelectedTrackCopyCfg)
43 from egammaAlgs.EMBremCollectionBuilderConfig
import (
44 EMBremCollectionBuilderCfg)
47 if (flags.Tracking.writeExtendedSi_PRDInfo
or
48 flags.Tracking.writeExtendedTRT_PRDInfo):
49 from DerivationFrameworkInDet.InDetToolsConfig
import (
50 GSFTSOS_CommonKernelCfg)
54 if flags.Egamma.doConversionBuilding:
55 from egammaAlgs.EMVertexBuilderConfig
import (
61 if flags.Egamma.doCentral:
62 from egammaAlgs.egammaRecBuilderConfig
import (
66 from egammaAlgs.egammaSuperClusterBuilderConfig
import (
67 electronSuperClusterBuilderCfg, photonSuperClusterBuilderCfg)
71 from egammaAlgs.xAODEgammaBuilderConfig
import (
75 from egammaAlgs.egammaLargeClusterMakerAlgConfig
import (
76 egammaLargeClusterMakerAlgCfg)
80 if flags.Egamma.doForward:
81 from egammaAlgs.egammaForwardBuilderConfig
import (
82 egammaForwardBuilderCfg)
85 from egammaAlgs.egammaLargeFWDClusterMakerAlgConfig
import (
86 egammaLargeFWDClusterMakerAlgCfg)
90 if flags.Egamma.doTruthAssociation:
91 from egammaAlgs.egammaTruthAssociationConfig
import (
92 egammaTruthAssociationCfg)
95 mlog.info(
"EGamma reconstruction configured")
100 if __name__ ==
"__main__":
101 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
102 from AthenaConfiguration.TestDefaults
import defaultTestFiles
103 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
105 flags.Input.Files = defaultTestFiles.RDO_RUN2
106 flags.Output.doWriteESD =
True
107 flags.Output.doWriteAOD =
True
112 acc.printConfig(withDetails=
True, printDefaults=
True)
114 with open(
"egammareconstructionconfig.pkl",
"wb")
as f: