2 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
3 from AthenaConfiguration.ComponentFactory
import CompFactory
4 from AthenaConfiguration.Enums
import Format
9 if not flags.Input.isMC:
10 kwargs.setdefault(
"PixelTruthMap",
"")
11 the_tool = CompFactory.JiveXML.PixelClusterRetriever(name, **kwargs)
12 result.addPublicTool(the_tool, primary=
True)
18 if not flags.Input.isMC:
19 kwargs.setdefault(
"SCT_TruthMap",
"")
20 the_tool = CompFactory.JiveXML.SiClusterRetriever(name, **kwargs)
21 result.addPublicTool(the_tool, primary=
True)
27 if not flags.Input.isMC:
28 kwargs.setdefault(
"PRD_TruthPixel",
"")
29 kwargs.setdefault(
"PRD_TruthSCT",
"")
30 the_tool = CompFactory.JiveXML.SiSpacePointRetriever(name, **kwargs)
31 result.addPublicTool(the_tool, primary=
True)
37 if not flags.Input.isMC:
38 kwargs.setdefault(
"TRTTruthMap",
"")
39 the_tool = CompFactory.JiveXML.TRTRetriever(name, **kwargs)
40 result.addPublicTool(the_tool, primary=
True)
48 from MuonConfig.MuonRecToolsConfig
import MuonTrackSummaryHelperToolCfg
51 from TrkConfig.TrkTrackSummaryToolConfig
import InDetTrackSummaryToolCfg
52 InDetTrackSummaryTool=result.popToolsAndMerge(
InDetTrackSummaryToolCfg(flags,MuonSummaryHelperTool=muonSummaryHelperTool))
53 kwargs.setdefault(
"TrackSummaryTool", InDetTrackSummaryTool)
55 from TrkConfig.TrkResidualPullCalculatorConfig
import (ResidualPullCalculatorCfg)
57 kwargs.setdefault(
"ResidualPullCalculator", ResidualPullCalculator)
59 kwargs.setdefault(
"PriorityTrackCollection",
"Tracks")
61 "OtherTrackCollections",
64 "MuonSpectrometerTracks",
65 "ConvertedStacoTracks",
66 "ConvertedMuIdCBTracks",
67 "CombinedInDetTracks",
75 kwargs.setdefault(
"DoWriteResiduals",
False)
76 the_tool = CompFactory.JiveXML.TrackRetriever(name, **kwargs)
77 result.addPublicTool(the_tool, primary=
True)
83 the_tool = CompFactory.JiveXML.VertexRetriever(name=
"VertexRetriever", **kwargs)
84 result.addPublicTool(the_tool, primary=
True)
90 the_tool = CompFactory.JiveXML.SegmentRetriever(name=
"SegmentRetriever", **kwargs)
91 result.addPublicTool(the_tool, primary=
True)
97 the_tool = CompFactory.JiveXML.BeamSpotRetriever(name=
"BeamSpotRetriever", **kwargs)
98 result.addPublicTool(the_tool, primary=
True)
104 the_tool = CompFactory.JiveXML.PixelRDORetriever(name=
"PixelRDORetriever", **kwargs)
105 result.addPublicTool(the_tool, primary=
True)
111 the_tool = CompFactory.JiveXML.SCTRDORetriever(name=
"SCTRDORetriever", **kwargs)
112 result.addPublicTool(the_tool, primary=
True)
123 flags.Input.Format
is Format.BS
or "StreamRDO" in flags.Input.ProcessingTags
126 if flags.Detector.EnablePixel
and flags.Detector.GeometryPixel:
131 if flags.Detector.EnableID
and flags.Detector.GeometryID
and flags.Detector.EnablePixel
and flags.Detector.GeometryPixel
and flags.Detector.EnableSCT
and flags.Detector.GeometrySCT:
138 if flags.Detector.EnableTRT
and flags.Detector.GeometryTRT:
141 if haveRDO
and flags.Detector.EnableSCT
and flags.Detector.GeometrySCT:
144 if not flags.OnlineEventDisplays.OfflineTest: