15 mlog = logging.getLogger(name)
16 mlog.info(
'Starting EGamma LRT reconstruction configuration')
21 if flags.Egamma.doTracking:
22 from egammaAlgs.egammaSelectedTrackCopyConfig
import (
23 egammaSelectedTrackCopyCfg)
24 emextLRT = acc.popToolsAndMerge(
28 name=
"LRTegammaSelectedTrackCopy",
29 TrackParticleContainerName=
"InDetLargeD0TrackParticles",
30 OutputTrkPartContainerName=
"LRTegammaSelectedTrackParticles",
31 ExtrapolationTool=emextLRT)
34 from egammaAlgs.EMBremCollectionBuilderConfig
import (
35 EMBremCollectionBuilderCfg)
38 name=
'LRTEMBremCollectionBuilder',
39 TrackParticleContainerName=
'InDetLargeD0TrackParticles',
40 SelectedTrackParticleContainerName=
'LRTegammaSelectedTrackParticles',
41 OutputTrkPartContainerName=
'LRT'+flags.Egamma.Keys.Output.GSFTrackParticles,
42 OutputTrackContainerName=
'LRT'+flags.Egamma.Keys.Output.GSFTracks)
46 if flags.Egamma.doCentral:
47 from egammaAlgs.egammaRecBuilderConfig
import (
49 from egammaTools.EMTrackMatchBuilderConfig
import (
50 EMTrackMatchBuilderCfg)
51 emextLRT = acc.popToolsAndMerge(
55 name=
'LRTEMTrackMatchBuilder',
56 TrackParticlesName=
'LRT'+flags.Egamma.Keys.Output.GSFTrackParticles,
57 ExtrapolationTool=emextLRT)
61 name=
'LRTegammaRecBuilder',
62 egammaRecContainer=
"LRT"+flags.Egamma.Keys.Internal.EgammaRecs,
63 TrackMatchBuilderTool=lrtemtrackmatch,
67 from egammaAlgs.egammaSuperClusterBuilderConfig
import (
68 electronSuperClusterBuilderCfg)
71 name=
'LRTelectronSuperClusterBuilder',
72 InputEgammaRecContainerName=
'LRT' +
73 flags.Egamma.Keys.Internal.EgammaRecs,
74 OutputEgammaRecContainerKey=
'LRT' +
75 flags.Egamma.Keys.Internal.ElectronSuperRecs,
76 SuperClusterCollectionName =
'LRT' +
77 flags.Egamma.Keys.Internal.ElectronSuperClusters,
78 TrackMatchBuilderTool=lrtemtrackmatch)
81 from egammaAlgs.xAODEgammaBuilderConfig
import (
83 from egammaTools.EMClusterToolConfig
import (
87 name=
'LRTEMClusterTool',
88 OutputClusterContainerName=
'LRT'+flags.Egamma.Keys.Output.CaloClusters)
92 name=
'LRTxAODEgammaBuilder',
93 InputElectronRecCollectionName=
'LRT' +
94 flags.Egamma.Keys.Internal.ElectronSuperRecs,
95 ElectronOutputName=
'LRT'+flags.Egamma.Keys.Output.Electrons,
96 PhotonOutputName=
"LRT"+flags.Egamma.Keys.Output.Photons,
97 EMClusterTool=LRTEMClusterTool,
102 if flags.Egamma.doTruthAssociation:
103 from egammaAlgs.egammaTruthAssociationConfig
import (
104 egammaTruthAssociationCfg)
107 name=
'LRTegammaTruthAssociationAlg',
108 ElectronContainerName=
'LRT'+flags.Egamma.Keys.Output.Electrons,
109 EgammaTruthContainerName=
'LRT'+flags.Egamma.Keys.Output.TruthParticles,
111 MatchForwardElectrons=
False)
114 mlog.info(
"EGamma LRT reconstruction configured")