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