5 '''@file InDetAlgorithmConfig.py
8 @brief CA-based python configurations for the event algorithms in this package
11 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
12 from AthenaConfiguration.ComponentFactory
import CompFactory
17 create decoration algorithm which decorates
18 truth particles with track parameters at the perigee.
22 from TrkConfig.AtlasExtrapolatorConfig
import AtlasExtrapolatorCfg
24 acc.addPublicTool( extrapolator )
25 kwargs.setdefault(
"Extrapolator", extrapolator )
27 if flags.Detector.GeometryITk :
28 kwargs.setdefault(
"PixelClusterContainerName",
"ITkPixelClusters" )
29 kwargs.setdefault(
"SCTClusterContainerName",
"ITkStripClusters" )
31 kwargs.setdefault(
'TruthParticleIndexDecoration',
'' )
35 acc.addEventAlgo( CompFactory.InDetPhysValTruthDecoratorAlg( name, **kwargs ) )
41 acc.addEventAlgo( CompFactory.IDTPM.OfflineElectronDecoratorAlg( name, **kwargs ) )
47 kwargs.setdefault(
"OfflineTrkParticleContainerName",
"GSFTrackParticles" )
48 kwargs.setdefault(
"useGSF",
True )
49 acc.addEventAlgo( CompFactory.IDTPM.OfflineElectronDecoratorAlg( name, **kwargs ) )
55 acc.addEventAlgo( CompFactory.IDTPM.OfflineMuonDecoratorAlg( name, **kwargs ) )
61 kwargs.setdefault(
"OfflineTrkParticleContainerName",
"CombinedMuonTrackParticles" )
62 kwargs.setdefault(
"useCombinedMuonTracks",
True )
63 acc.addEventAlgo( CompFactory.IDTPM.OfflineMuonDecoratorAlg( name, **kwargs ) )
69 kwargs.setdefault(
"Prefix",
"LinkedTauBDT1prong_" )
70 kwargs.setdefault(
"TauType",
"BDT" )
71 kwargs.setdefault(
"TauNprongs", 1 )
72 acc.addEventAlgo( CompFactory.IDTPM.OfflineTauDecoratorAlg( name, **kwargs ) )
78 kwargs.setdefault(
"Prefix",
"LinkedTauBDT3prong_" )
79 kwargs.setdefault(
"TauType",
"BDT" )
80 kwargs.setdefault(
"TauNprongs", 3 )
81 acc.addEventAlgo( CompFactory.IDTPM.OfflineTauDecoratorAlg( name, **kwargs ) )
87 kwargs.setdefault(
"Prefix",
"LinkedTauRNN1prong_" )
88 kwargs.setdefault(
"TauType",
"RNN" )
89 kwargs.setdefault(
"TauNprongs", 1 )
90 acc.addEventAlgo( CompFactory.IDTPM.OfflineTauDecoratorAlg( name, **kwargs ) )
96 kwargs.setdefault(
"Prefix",
"LinkedTauRNN3prong_" )
97 kwargs.setdefault(
"TauType",
"RNN" )
98 kwargs.setdefault(
"TauNprongs", 3 )
99 acc.addEventAlgo( CompFactory.IDTPM.OfflineTauDecoratorAlg( name, **kwargs ) )
105 create decoration algorithm(s) to decorate offline tracks with a link to
106 the offline object they correspond to in the event reconstruction
112 for trkAnaName
in flags.PhysVal.IDTPM.trkAnaNames:
113 objStr = getattr( flags.PhysVal.IDTPM, trkAnaName+
".SelectOfflineObject" )
114 if objStr : objStrList.append( objStr )
115 tauType = getattr( flags.PhysVal.IDTPM, trkAnaName+
".TauType" )
116 if tauType : tauTypeList.append( tauType )
118 if "Electron" in objStrList:
121 if "ElectronGSF" in objStrList:
124 if "Muon" in objStrList:
127 if "MuonComb" in objStrList:
130 if "Tau" in objStrList:
131 if "BDT" in tauTypeList:
134 if "RNN" in tauTypeList: