99 CA-based configuration for the test-reference matching Tool
101 log = logging.getLogger(
"TrackMatchingToolCfg" )
104 if flags.PhysVal.IDTPM.currentTrkAna.MatchingType ==
"DeltaRMatch":
107 if "Truth" in flags.PhysVal.IDTPM.currentTrkAna.RefType :
109 flags, name =
"DeltaRMatchingTool_trkTruth" +
110 flags.PhysVal.IDTPM.currentTrkAna.anaTag, **kwargs )
113 if "Truth" in flags.PhysVal.IDTPM.currentTrkAna.TestType :
115 flags, name =
"DeltaRMatchingTool_truthTrk" +
116 flags.PhysVal.IDTPM.currentTrkAna.anaTag, **kwargs )
120 flags, name=
"DeltaRMatchingTool_trk" +
121 flags.PhysVal.IDTPM.currentTrkAna.anaTag, **kwargs )
124 if flags.PhysVal.IDTPM.currentTrkAna.MatchingType ==
"TruthMatch":
127 if "Truth" in flags.PhysVal.IDTPM.currentTrkAna.RefType :
129 flags, name=
"TrackTruthMatchingTool" +
130 flags.PhysVal.IDTPM.currentTrkAna.anaTag, **kwargs )
133 if "Truth" in flags.PhysVal.IDTPM.currentTrkAna.TestType :
135 flags, name=
"TruthTrackMatchingTool" +
136 flags.PhysVal.IDTPM.currentTrkAna.anaTag, **kwargs )
138 log.warning(
"TruthMatch via decorations not configurable if Test or Ref isn't Truth" )
139 log.warning(
"Matching will not be executed for TrkAnalysis %s",
140 flags.PhysVal.IDTPM.currentTrkAna.anaTag )
144 if flags.PhysVal.IDTPM.currentTrkAna.MatchingType ==
"EFTruthMatch":
145 if "EFTrigger" in flags.PhysVal.IDTPM.currentTrkAna.TestType
and "Offline" in flags.PhysVal.IDTPM.currentTrkAna.RefType:
147 flags, name=
"EFTrackMatchingTool" +
148 flags.PhysVal.IDTPM.currentTrkAna.anaTag, **kwargs )
149 log.warning(
"EFTruthMatch via decorations configurable only with EFTrigger as Test Offline as Ref" )
150 log.warning(
"Matching will not be executed for TrkAnalysis %s",
151 flags.PhysVal.IDTPM.currentTrkAna.anaTag )
154 log.warning(
"Requested not supported matching type: %s",
155 flags.PhysVal.IDTPM.currentTrkAna.MatchingType )
156 log.warning(
"Matching will not be executed for TrkAnalysis %s",
157 flags.PhysVal.IDTPM.currentTrkAna.anaTag )