73 kwargs_InDetTrackSelectionTool = {}
75 if flags.PhysVal.IDTPM.currentTrkAna.offlMinPt!=-9999.:
76 kwargs_InDetTrackSelectionTool.setdefault(
"minPt", flags.PhysVal.IDTPM.currentTrkAna.offlMinPt )
77 if flags.PhysVal.IDTPM.currentTrkAna.offlMaxAbsEta!=-9999.:
78 kwargs_InDetTrackSelectionTool.setdefault(
"maxAbsEta", flags.PhysVal.IDTPM.currentTrkAna.offlMaxAbsEta )
79 if flags.PhysVal.IDTPM.currentTrkAna.offlMaxZ0SinTheta!=-9999.:
80 kwargs_InDetTrackSelectionTool.setdefault(
"maxZ0SinTheta", flags.PhysVal.IDTPM.currentTrkAna.offlMaxZ0SinTheta )
81 if flags.PhysVal.IDTPM.currentTrkAna.offlMaxZ0!=-9999.:
82 kwargs_InDetTrackSelectionTool.setdefault(
"maxZ0", flags.PhysVal.IDTPM.currentTrkAna.offlMaxZ0 )
83 if flags.PhysVal.IDTPM.currentTrkAna.offlMaxD0!=-9999.:
84 kwargs_InDetTrackSelectionTool.setdefault(
"maxD0", flags.PhysVal.IDTPM.currentTrkAna.offlMaxD0 )
85 if flags.PhysVal.IDTPM.currentTrkAna.offlMinNInnermostLayerHits!=-9999.:
86 kwargs_InDetTrackSelectionTool.setdefault(
"minNInnermostLayerHits", flags.PhysVal.IDTPM.currentTrkAna.offlMinNInnermostLayerHits )
87 if flags.PhysVal.IDTPM.currentTrkAna.offlMinNBothInnermostLayersHits!=-9999.:
88 kwargs_InDetTrackSelectionTool.setdefault(
"minNBothInnermostLayersHits", flags.PhysVal.IDTPM.currentTrkAna.offlMinNBothInnermostLayersHits )
89 if flags.PhysVal.IDTPM.currentTrkAna.offlMaxNInnermostLayerSharedHits!=-9999.:
90 kwargs_InDetTrackSelectionTool.setdefault(
"maxNInnermostLayerSharedHits", flags.PhysVal.IDTPM.currentTrkAna.offlMaxNInnermostLayerSharedHits )
91 if flags.PhysVal.IDTPM.currentTrkAna.offlMinNSiHits!=-9999.:
92 kwargs_InDetTrackSelectionTool.setdefault(
"minNSiHits", flags.PhysVal.IDTPM.currentTrkAna.offlMinNSiHits )
93 if flags.PhysVal.IDTPM.currentTrkAna.offlMaxNSiSharedHits!=-9999.:
94 kwargs_InDetTrackSelectionTool.setdefault(
"maxNSiSharedHits", flags.PhysVal.IDTPM.currentTrkAna.offlMaxNSiSharedHits )
95 if flags.PhysVal.IDTPM.currentTrkAna.offlMaxNSiHoles!=-9999.:
96 kwargs_InDetTrackSelectionTool.setdefault(
"maxNSiHoles", flags.PhysVal.IDTPM.currentTrkAna.offlMaxNSiHoles )
97 if flags.PhysVal.IDTPM.currentTrkAna.offlMinNPixelHits!=-9999.:
98 kwargs_InDetTrackSelectionTool.setdefault(
"minNPixelHits", flags.PhysVal.IDTPM.currentTrkAna.offlMinNPixelHits )
99 if flags.PhysVal.IDTPM.currentTrkAna.offlMaxNPixelSharedHits!=-9999.:
100 kwargs_InDetTrackSelectionTool.setdefault(
"maxNPixelSharedHits", flags.PhysVal.IDTPM.currentTrkAna.offlMaxNPixelSharedHits )
101 if flags.PhysVal.IDTPM.currentTrkAna.offlMaxNPixelHoles!=-9999.:
102 kwargs_InDetTrackSelectionTool.setdefault(
"maxNPixelHoles", flags.PhysVal.IDTPM.currentTrkAna.offlMaxNPixelHoles )
103 if flags.PhysVal.IDTPM.currentTrkAna.offlMinNSctHits!=-9999.:
104 kwargs_InDetTrackSelectionTool.setdefault(
"minNSctHits", flags.PhysVal.IDTPM.currentTrkAna.offlMinNSctHits )
105 if flags.PhysVal.IDTPM.currentTrkAna.offlMaxNSctSharedHits!=-9999.:
106 kwargs_InDetTrackSelectionTool.setdefault(
"maxNSctSharedHits", flags.PhysVal.IDTPM.currentTrkAna.offlMaxNSctSharedHits )
107 if flags.PhysVal.IDTPM.currentTrkAna.offlMaxNSctHoles!=-9999.:
108 kwargs_InDetTrackSelectionTool.setdefault(
"maxNSctHoles", flags.PhysVal.IDTPM.currentTrkAna.offlMaxChiSq )
109 if flags.PhysVal.IDTPM.currentTrkAna.offlMaxChiSq!=-9999.:
110 kwargs_InDetTrackSelectionTool.setdefault(
"maxChiSq", flags.PhysVal.IDTPM.currentTrkAna.offlMaxAbsEta )
111 if flags.PhysVal.IDTPM.currentTrkAna.offlMaxChiSqperNdf!=-9999.:
112 kwargs_InDetTrackSelectionTool.setdefault(
"maxChiSqperNdf", flags.PhysVal.IDTPM.currentTrkAna.offlMaxChiSqperNdf )
113 if flags.PhysVal.IDTPM.currentTrkAna.offlMinProb!=-9999.:
114 kwargs_InDetTrackSelectionTool.setdefault(
"minProb", flags.PhysVal.IDTPM.currentTrkAna.offlMinProb )
115 kwargs_InDetTrackSelectionTool.setdefault(
"CutLevel", flags.PhysVal.IDTPM.currentTrkAna.OfflineQualityWP )
117 from InDetConfig.InDetTrackSelectionToolConfig
import InDetTrackSelectionToolCfg
120 kwargs.setdefault(
"offlineTool", offlineSelectionTool )
121 kwargs.setdefault(
"maxPt", flags.PhysVal.IDTPM.currentTrkAna.offlMaxPt )
122 kwargs.setdefault(
"minEta", flags.PhysVal.IDTPM.currentTrkAna.offlMinEta )
123 kwargs.setdefault(
"minPhi", flags.PhysVal.IDTPM.currentTrkAna.offlMinPhi )
124 kwargs.setdefault(
"maxPhi", flags.PhysVal.IDTPM.currentTrkAna.offlMaxPhi )
125 kwargs.setdefault(
"minD0", flags.PhysVal.IDTPM.currentTrkAna.offlMinD0 )
126 kwargs.setdefault(
"minZ0", flags.PhysVal.IDTPM.currentTrkAna.offlMinZ0 )
127 kwargs.setdefault(
"minQoPT", flags.PhysVal.IDTPM.currentTrkAna.offlMinQoPT )
128 kwargs.setdefault(
"maxQoPT", flags.PhysVal.IDTPM.currentTrkAna.offlMaxQoPT )
129 kwargs.setdefault(
"minAbsEta", flags.PhysVal.IDTPM.currentTrkAna.offlMinAbsEta )
130 kwargs.setdefault(
"minAbsPhi", flags.PhysVal.IDTPM.currentTrkAna.offlMinAbsPhi )
131 kwargs.setdefault(
"maxAbsPhi", flags.PhysVal.IDTPM.currentTrkAna.offlMaxAbsPhi )
132 kwargs.setdefault(
"minAbsD0", flags.PhysVal.IDTPM.currentTrkAna.offlMinAbsD0 )
133 kwargs.setdefault(
"maxAbsD0", flags.PhysVal.IDTPM.currentTrkAna.offlMaxAbsD0 )
134 kwargs.setdefault(
"minAbsZ0", flags.PhysVal.IDTPM.currentTrkAna.offlMinAbsZ0 )
135 kwargs.setdefault(
"maxAbsZ0", flags.PhysVal.IDTPM.currentTrkAna.offlMaxAbsZ0 )
136 kwargs.setdefault(
"minAbsQoPT", flags.PhysVal.IDTPM.currentTrkAna.offlMinAbsQoPT )
137 kwargs.setdefault(
"maxAbsQoPT", flags.PhysVal.IDTPM.currentTrkAna.offlMaxAbsQoPT )
139 acc.setPrivateTools( CompFactory.IDTPM.OfflineTrackQualitySelectionTool( name, **kwargs ) )