Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Functions
ParentDecoratorConfig Namespace Reference

Functions

def TruthParentDecoratorCfg (flags, name="TruthParentDecoratorAlg", **kwargs)
 
def HiggsParentDecoratorCfg (flags, name="HiggsParentDecoratorAlg", **kwargs)
 
def ZParentDecoratorCfg (flags, name="ZParentDecoratorAlg", **kwargs)
 
def ScalarParentDecoratorCfg (flags, name="ScalarParentDecoratorAlg", **kwargs)
 
def TopParentDecoratorCfg (flags, name="TopParentDecoratorAlg", **kwargs)
 

Function Documentation

◆ HiggsParentDecoratorCfg()

def ParentDecoratorConfig.HiggsParentDecoratorCfg (   flags,
  name = "HiggsParentDecoratorAlg",
**  kwargs 
)

Definition at line 36 of file ParentDecoratorConfig.py.

36 def HiggsParentDecoratorCfg(flags, name="HiggsParentDecoratorAlg", **kwargs):
37  kwargs.setdefault("decoratorPrefix", "parentHiggs")
38  kwargs.setdefault("parentPdgIds", [25])
39  return TruthParentDecoratorCfg(flags, name, **kwargs)
40 
41 

◆ ScalarParentDecoratorCfg()

def ParentDecoratorConfig.ScalarParentDecoratorCfg (   flags,
  name = "ScalarParentDecoratorAlg",
**  kwargs 
)

Definition at line 48 of file ParentDecoratorConfig.py.

48 def ScalarParentDecoratorCfg(flags, name="ScalarParentDecoratorAlg", **kwargs):
49  kwargs.setdefault("parents", "TruthBSMWithDecayParticles")
50  kwargs.setdefault("decoratorPrefix", "parentScalar")
51  kwargs.setdefault("parentPdgIds", [35])
52  return TruthParentDecoratorCfg(flags, name, **kwargs)
53 
54 

◆ TopParentDecoratorCfg()

def ParentDecoratorConfig.TopParentDecoratorCfg (   flags,
  name = "TopParentDecoratorAlg",
**  kwargs 
)

Definition at line 55 of file ParentDecoratorConfig.py.

55 def TopParentDecoratorCfg(flags, name="TopParentDecoratorAlg", **kwargs):
56  kwargs.setdefault("parents", "TruthTop")
57  kwargs.setdefault("decoratorPrefix", "parentTop")
58  kwargs.setdefault("parentPdgIds", [-6, 6])
59 
60  kwargs.setdefault("cascades", ["TruthBoson", "TruthBosonsWithDecayParticles",
61  "TruthBottom", "TruthCharm",
62  "TruthTaus", "TruthElectrons",
63  "TruthForwardProtons", "TruthHFWithDecayParticles"])
64  # not really clear why, but sometimes the electron decay products
65  # of a top have missing children. The 'missing' list will throw a
66  # warning on every entry. This can can be silenced by moving these
67  # values to the "allow" list below.
68  kwargs.setdefault("warnMissingChildrenPdgIds", set())
69  kwargs.setdefault("allowMissingChildrenPdgIds", {-11, 11})
70  kwargs.setdefault("missingChildrenFractionWarningThreshold", 0.001)
71 
72  # Jets
73  if "AntiKt" in kwargs.get("targetContainer", ""):
74  # we want to label any jet coming via a W to a quark, tau, or electron
75  decay_pdgids = [24, 5, 4, 3, 2, 1, 11, 15]
76  kwargs.setdefault("cascadePdgIds", [-x for x in decay_pdgids] + decay_pdgids)
77 
78  kwargs.setdefault("countChildrenInCascadeWithPdgIds",
79  {"nTopToWChildren": [-24, 24],
80  "nTopToBChildren": [-5, 5]})
81  else:
82  kwargs.setdefault("countChildrenInCascadeWithPdgIds",
83  {"nTopToWChildren": [-24, 24]})
84  kwargs.setdefault("vetoSoftLeptonCascade", False)
85  kwargs.setdefault("vetoSoftCharmCascade", False)
86 
87  return TruthParentDecoratorCfg(flags, name, **kwargs)

◆ TruthParentDecoratorCfg()

def ParentDecoratorConfig.TruthParentDecoratorCfg (   flags,
  name = "TruthParentDecoratorAlg",
**  kwargs 
)

Definition at line 7 of file ParentDecoratorConfig.py.

7 def TruthParentDecoratorCfg(flags, name="TruthParentDecoratorAlg", **kwargs):
9 
10  kwargs.setdefault("parents", "TruthBosonsWithDecayParticles")
11  kwargs.setdefault("vetoSoftLeptonCascade", True)
12  kwargs.setdefault("vetoSoftCharmCascade", True)
13  kwargs.setdefault("matchDeltaR", 0.3)
14 
15  # Jets
16  if "AntiKt" in kwargs.get("targetContainer", ""):
17  kwargs.setdefault("cascades", ["TruthBottom", "TruthCharm",
18  "TruthHFWithDecayParticles"])
19  kwargs.setdefault("cascadePdgIds", [-5, 5])
20 
21  kwargs.setdefault("addBsToCascade", True)
22  kwargs.setdefault("addCsToCascade", True)
23  # Other objects
24  else:
25  kwargs.setdefault("cascades", ["TruthBoson", "TruthBosonsWithDecayParticles",
26  "TruthTaus", "TruthMuons", "TruthElectrons",
27  "TruthNeutrinos"])
28  # add in leptonic tau decay via a W to neutrino and other lepton+nu
29  decay_pdgIds = [24, 11, 12, 13, 14, 15, 16]
30  kwargs.setdefault("cascadePdgIds", [-x for x in decay_pdgIds] + decay_pdgIds)
31 
32  cfg.addEventAlgo(CompFactory.TruthParentDecoratorAlg(name, **kwargs))
33  return cfg
34 
35 

◆ ZParentDecoratorCfg()

def ParentDecoratorConfig.ZParentDecoratorCfg (   flags,
  name = "ZParentDecoratorAlg",
**  kwargs 
)

Definition at line 42 of file ParentDecoratorConfig.py.

42 def ZParentDecoratorCfg(flags, name="ZParentDecoratorAlg", **kwargs):
43  kwargs.setdefault("decoratorPrefix", "parentZ")
44  kwargs.setdefault("parentPdgIds", [23])
45  return TruthParentDecoratorCfg(flags, name, **kwargs)
46 
47 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
ParentDecoratorConfig.TruthParentDecoratorCfg
def TruthParentDecoratorCfg(flags, name="TruthParentDecoratorAlg", **kwargs)
Definition: ParentDecoratorConfig.py:7
ParentDecoratorConfig.HiggsParentDecoratorCfg
def HiggsParentDecoratorCfg(flags, name="HiggsParentDecoratorAlg", **kwargs)
Definition: ParentDecoratorConfig.py:36
ParentDecoratorConfig.ZParentDecoratorCfg
def ZParentDecoratorCfg(flags, name="ZParentDecoratorAlg", **kwargs)
Definition: ParentDecoratorConfig.py:42
ParentDecoratorConfig.TopParentDecoratorCfg
def TopParentDecoratorCfg(flags, name="TopParentDecoratorAlg", **kwargs)
Definition: ParentDecoratorConfig.py:55
CxxUtils::set
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.
Definition: bitmask.h:232
ParentDecoratorConfig.ScalarParentDecoratorCfg
def ScalarParentDecoratorCfg(flags, name="ScalarParentDecoratorAlg", **kwargs)
Definition: ParentDecoratorConfig.py:48