ATLAS Offline Software
Loading...
Searching...
No Matches
SubjetBuilderConfig Namespace Reference

Functions

 SubjetBuilderCfg (flags, target_jets, output_container=None, ghost_association='GhostTruth', radius=0.2, pt_min=5000, link_name=None, count_name=None, name_suffix='')

Function Documentation

◆ SubjetBuilderCfg()

SubjetBuilderCfg ( flags,
target_jets,
output_container = None,
ghost_association = 'GhostTruth',
radius = 0.2,
pt_min = 5000,
link_name = None,
count_name = None,
name_suffix = '' )
Recluster ghost-associated constituents of a jet into small-R subjets.

Subjets above ``pt_min`` are written to their own container and linked back
from the parent jet.

Fails outright if the ghost association is missing from the jets.

Parameters
----------
target_jets : str
    Jet collection whose ghost constituents are reclustered.
output_container : str, optional
    Output subjet container. Defaults to
    ``<target_jets><ghost_association>Subjets``.
ghost_association : str
    Ghost-associated constituent links read off ``target_jets``.
radius : float
    Anti-kt clustering radius.
pt_min : float
    Minimum subjet pT in MeV.
link_name, count_name : str, optional
    Decorations written on ``target_jets``. Bare names, not prefixed.

Definition at line 7 of file SubjetBuilderConfig.py.

15 name_suffix=''):
16 """Recluster ghost-associated constituents of a jet into small-R subjets.
17
18 Subjets above ``pt_min`` are written to their own container and linked back
19 from the parent jet.
20
21 Fails outright if the ghost association is missing from the jets.
22
23 Parameters
24 ----------
25 target_jets : str
26 Jet collection whose ghost constituents are reclustered.
27 output_container : str, optional
28 Output subjet container. Defaults to
29 ``<target_jets><ghost_association>Subjets``.
30 ghost_association : str
31 Ghost-associated constituent links read off ``target_jets``.
32 radius : float
33 Anti-kt clustering radius.
34 pt_min : float
35 Minimum subjet pT in MeV.
36 link_name, count_name : str, optional
37 Decorations written on ``target_jets``. Bare names, not prefixed.
38 """
39 if output_container is None:
40 output_container = f'{target_jets}{ghost_association}Subjets'
41 if link_name is None:
42 link_name = f'{output_container}Links'
43 if count_name is None:
44 count_name = f'{output_container}Count'
45
46 ca = ComponentAccumulator()
47 ca.addEventAlgo(
48 CompFactory.ftag.SubjetBuilderAlg(
49 f'{output_container}BuilderAlg{name_suffix}',
50 targetJets=target_jets,
51 outputContainer=output_container,
52 linkName=link_name,
53 countName=count_name,
54 ghostAssociation=ghost_association,
55 radius=radius,
56 ptMin=pt_min,
57 )
58 )
59 return ca