13def EoverP_PerfAlgCfg(flags, **kwargs):
14 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
15 acc = ComponentAccumulator()
16
17
18 from AthenaConfiguration.ComponentFactory import CompFactory
19 histsvc = CompFactory.THistSvc(name="THistSvc", Output=flags.Output.HISTFileName)
20 acc.addService ( histsvc )
21
22
23 from TrkConfig.AtlasExtrapolatorConfig import InDetExtrapolatorCfg
24 InDetExtrapolator = acc.popToolsAndMerge(InDetExtrapolatorCfg(flags))
25 acc.addPublicTool(InDetExtrapolator)
26
27
28 from TrackToVertex.TrackToVertexConfig import TrackToVertexCfg
29 TrackToVertexTool = acc.popToolsAndMerge(TrackToVertexCfg(flags))
30 acc.addPublicTool(TrackToVertexTool)
31
32
33 from TrkConfig.TrkVertexFitterUtilsConfig import TrackToVertexIPEstimatorCfg
34 TrackToVertexIPEstimatorTool = acc.popToolsAndMerge(TrackToVertexIPEstimatorCfg(flags))
35 acc.addPublicTool(TrackToVertexIPEstimatorTool)
36
37
38 from TrkConfig.TrkGlobalChi2FitterConfig import InDetGlobalChi2FitterCfg
39 GX2TrackFitter = acc.popToolsAndMerge(InDetGlobalChi2FitterCfg(flags, TrackChi2PerNDFCut = 10))
40
41
42 ElectronRefitterTool = CompFactory.egammaTrkRefitterTool (name = 'ElectronRefitterTool',
43 FitterTool = GX2TrackFitter,
44 matEffects = 2,
45 OutputLevel = 4)
46 acc.addPublicTool(ElectronRefitterTool)
47
48
49 SiOnlyRefitterTool = CompFactory.egammaTrkRefitterTool (name = 'SiOnlyRefitterTool',
50 FitterTool = GX2TrackFitter,
51 matEffects = 2,
52 RemoveTRTHits = True,
53 OutputLevel = 4)
54 acc.addPublicTool(SiOnlyRefitterTool)
55
56
57
58 theIDPerfMonEoverP = CompFactory.IDPerfMonEoverP (name = "IDPerfMonEoverP",
59 ReFitterTool = ElectronRefitterTool,
60 ReFitterTool2 = SiOnlyRefitterTool,
61 InputElectronContainerName = "Electrons",
62
63
64 RefitTracks = False,
65 isDATA = True,
66 ValidationMode = True,
67 FillDetailedTree = True,
68 **kwargs)
69 acc.addEventAlgo( theIDPerfMonEoverP )
70
71 return acc
72