15 add_suffix_with_source=True,
17 pt_priority_with_delta_r=-1,
18 particle_link_name=None,
22 if source
is not None:
24 "'source' option is deprecated, use 'sources'",
30 "Can't use 'sources' and 'source' at the same time"
37 if source_name
is None:
38 source_name =
'Or'.join(sources)
40 dr_str = f
'deltaRTo{source_name}'
41 deta_str = f
'deltaEtaTo{source_name}'
42 dphi_str = f
'deltaPhiTo{source_name}'
43 dpt_str = f
'deltaPtTo{source_name}'
44 match_str = f
'matchedTo{source_name}'
45 n_match_str = f
'numberOfMatchesTo{source_name}'
48 return f + f
'From{source_name}' if add_suffix_with_source
else f
50 ca = ComponentAccumulator()
52 CompFactory.ftag.JetMatcherAlg(
53 f
'{source_name}To{target}CopyAlg{name_suffix}',
56 floatsToCopy={f: to(f)
for f
in floats_to_copy},
57 intsToCopy={i: to(i)
for i
in ints_to_copy},
58 charsToCopy={c: to(c)
for c
in chars_to_copy},
65 ptPriorityWithDeltaR=pt_priority_with_delta_r,
66 sourceMinimumPt=source_minimum_pt,
67 particleLink=(particle_link_name
or ""),
JetMatchingCfg(flags, target, source=None, sources=[], source_name=None, floats_to_copy=[], ints_to_copy=[], chars_to_copy=[], add_suffix_with_source=True, source_minimum_pt=0, pt_priority_with_delta_r=-1, particle_link_name=None, name_suffix='')