3 """ Instantiate the EGamma reconstruction.
6 from AthenaCommon.Logging
import logging
7 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
12 mlog = logging.getLogger(name)
13 mlog.info(
'Starting EGamma reconstruction configuration')
18 from egammaAlgs.egammaTopoClusterCopierConfig
import (
19 egammaTopoClusterCopierCfg)
23 if flags.Egamma.doTracking:
25 if flags.Acts.GsfRefitActs:
33 from egammaAlgs.ActsEMBremCollectionBuilderConfig
import (
34 ActsEMBremCollectionBuilderCfg)
38 from egammaAlgs.egammaSelectedTrackCopyConfig
import (
39 egammaSelectedTrackCopyCfg)
42 from egammaAlgs.EMBremCollectionBuilderConfig
import (
43 EMBremCollectionBuilderCfg)
46 if (flags.Tracking.writeExtendedSi_PRDInfo
or
47 flags.Tracking.writeExtendedTRT_PRDInfo):
48 from DerivationFrameworkInDet.InDetToolsConfig
import (
49 GSFTSOS_CommonKernelCfg)
53 if flags.Egamma.doConversionBuilding:
54 from egammaAlgs.EMVertexBuilderConfig
import (
60 if flags.Egamma.doCentral:
61 from egammaAlgs.egammaRecBuilderConfig
import (
65 from egammaAlgs.egammaSuperClusterBuilderConfig
import (
66 electronSuperClusterBuilderCfg, photonSuperClusterBuilderCfg)
70 from egammaAlgs.xAODEgammaBuilderConfig
import (
74 from egammaAlgs.egammaLargeClusterMakerAlgConfig
import (
75 egammaLargeClusterMakerAlgCfg)
79 if flags.Egamma.doForward:
80 from egammaAlgs.egammaForwardBuilderConfig
import (
81 egammaForwardBuilderCfg)
84 from egammaAlgs.egammaLargeFWDClusterMakerAlgConfig
import (
85 egammaLargeFWDClusterMakerAlgCfg)
89 if flags.Egamma.doTruthAssociation:
90 from egammaAlgs.egammaTruthAssociationConfig
import (
91 egammaTruthAssociationCfg)
94 mlog.info(
"EGamma reconstruction configured")
99 if __name__ ==
"__main__":
100 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
101 from AthenaConfiguration.TestDefaults
import defaultTestFiles
102 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
104 flags.Input.Files = defaultTestFiles.RDO_RUN2
105 flags.Output.doWriteESD =
True
106 flags.Output.doWriteAOD =
True
111 acc.printConfig(withDetails=
True, printDefaults=
True)
113 with open(
"egammareconstructionconfig.pkl",
"wb")
as f: