ATLAS Offline Software
Functions
python.NCBCommonConfig Namespace Reference

Functions

def StandardJetsInDerivCfg (flags)
 
def NCBCommonAugmentationsCfg (flags, **kwargs)
 

Function Documentation

◆ NCBCommonAugmentationsCfg()

def python.NCBCommonConfig.NCBCommonAugmentationsCfg (   flags,
**  kwargs 
)
Configure the common augmentation

Definition at line 32 of file NCBCommonConfig.py.

32 def NCBCommonAugmentationsCfg(flags,**kwargs):
33  """Configure the common augmentation"""
34  acc = ComponentAccumulator()
35 
36  # MC truth
37  if flags.Input.isMC:
38  from DerivationFrameworkMCTruth.MCTruthCommonConfig import (
39  AddStandardTruthContentsCfg,
40  AddHFAndDownstreamParticlesCfg,
41  AddMiniTruthCollectionLinksCfg,
42  AddPVCollectionCfg,
43  AddTruthCollectionNavigationDecorationsCfg)
44  from DerivationFrameworkMCTruth.TruthDerivationToolsConfig import TruthCollectionMakerCfg
45  NCBCommonTruthCharmTool = acc.getPrimaryAndMerge(TruthCollectionMakerCfg(
46  flags,
47  name = "NCBCommonTruthCharmTool",
48  NewCollectionName = "TruthCharm",
49  KeepNavigationInfo = False,
50  ParticleSelectionString = "(abs(TruthParticles.pdgId) == 4)",
51  Do_Compress = True))
52  CommonAugmentation = CompFactory.DerivationFramework.CommonAugmentation
53  acc.addEventAlgo(CommonAugmentation("NCBCommonTruthCharmKernel",AugmentationTools=[NCBCommonTruthCharmTool]))
54  acc.merge(AddHFAndDownstreamParticlesCfg(flags))
55  acc.merge(AddStandardTruthContentsCfg(flags))
57  flags,
58  TruthCollections=["TruthElectrons",
59  "TruthMuons",
60  "TruthPhotons",
61  "TruthTaus",
62  "TruthNeutrinos",
63  "TruthBSM",
64  "TruthBottom",
65  "TruthTop",
66  "TruthBoson",
67  "TruthCharm",
68  "TruthHFWithDecayParticles"],
69  prefix = 'NCB_'))
70  # Re-point links on reco objects
71  acc.merge(AddMiniTruthCollectionLinksCfg(flags))
72  acc.merge(AddPVCollectionCfg(flags))
73 
74  # InDet, Muon, Egamma common augmentations
75  from DerivationFrameworkMuons.MuonsCommonConfig import MuonsCommonCfg
76  acc.merge(MuonsCommonCfg(flags))
77  # TODO: need to find the new flags equivalent for the missing settings below, then we can
78  # drop these kwargs and do everything via the flags
79  from DerivationFrameworkInDet.InDetCommonConfig import InDetCommonCfg
80  acc.merge(InDetCommonCfg(flags,
81  DoVertexFinding = flags.Tracking.doVertexFinding,
82  AddPseudoTracks = flags.Tracking.doPseudoTracking,
83  DecoLRTTTVA = False,
84  DoR3LargeD0 = flags.Tracking.doLargeD0,
85  StoreSeparateLargeD0Container = flags.Tracking.storeSeparateLargeD0Container,
86  MergeLRT = False))
87  # Jets, di-taus, tau decorations, flavour tagging, MET association
88  from DerivationFrameworkJetEtMiss.METCommonConfig import METCommonCfg
89  acc.merge(METCommonCfg(flags))
90  acc.merge(StandardJetsInDerivCfg(flags))
91 
92  # Trigger matching
93  if flags.Reco.EnableTrigger or flags.Trigger.triggerConfig == 'INFILE':
94  from DerivationFrameworkPhys.TriggerMatchingCommonConfig import TriggerMatchingCommonRun2Cfg
95  from DerivationFrameworkPhys.TriggerMatchingCommonConfig import TriggerMatchingCommonRun2ToRun3Cfg
96  from DerivationFrameworkPhys.TriggerMatchingCommonConfig import TriggerMatchingCommonRun3Cfg
97  # requires some wrangling due to the difference between run 2 and 3
98  triggerListsHelper = kwargs['TriggerListsHelper']
99  if flags.Trigger.EDMVersion == 2:
100  # NOTE: Once Run-2 -> Run-3 trigger navigation is validated and doEDMVersionConversion is on by default, we will only want to do ONE of
101  # TriggerMatchingCommonRun2Cfg(s) OR TriggerMatchingCommonRun2ToRun3Cfg
102  # Otherwise we are doubling up on the analysis trigger data in both the Run-2 and Run-3 formats.
103 
104  # This sets up the Run-2 style matching during the derivation process
106  flags,
107  name = "PhysCommonTrigMatchNoTau",
108  OutputContainerPrefix = "TrigMatch_",
109  ChainNames = triggerListsHelper.Run2TriggerNamesNoTau))
111  flags,
112  name = "PhysCommonTrigMatchTau",
113  OutputContainerPrefix = "TrigMatch_",
114  ChainNames = triggerListsHelper.Run2TriggerNamesTau,
115  DRThreshold = 0.2))
116  # This sets up a conversion of the Run-2 trigger navigation to the Run-3 style,
117  # followed by Run-3 style navigation slimming for trigger-matching from DAOD.
118  # This function is a noop if doEDMVersionConversion=False
120  flags,
121  TriggerList = triggerListsHelper.Run2TriggerNamesNoTau +
122  triggerListsHelper.Run2TriggerNamesTau))
123  if flags.Trigger.EDMVersion == 3:
124  # This sets up the Run-3 style navigation slimming for trigger-matching from DAOD
126  flags, TriggerList = triggerListsHelper.Run3TriggerNames))
127 
128  return acc
129 

◆ StandardJetsInDerivCfg()

def python.NCBCommonConfig.StandardJetsInDerivCfg (   flags)
Jet reconstruction needed for NCB1

Definition at line 11 of file NCBCommonConfig.py.

11 def StandardJetsInDerivCfg(flags):
12  """Jet reconstruction needed for NCB1"""
13 
14  from JetRecConfig.StandardSmallRJets import AntiKt4EMTopo
15  from JetRecConfig.JetRecConfig import JetRecCfg
16 
17  acc = ComponentAccumulator()
18 
19  AntiKt4EMTopo_deriv = AntiKt4EMTopo.clone(
20  modifiers = AntiKt4EMTopo.modifiers+("JetPtAssociation","QGTagging")
21  )
22 
23  jetList = [AntiKt4EMTopo_deriv]
24 
25 
26  for jd in jetList:
27  acc.merge(JetRecCfg(flags,jd))
28 
29  return acc
30 
31 
python.TriggerMatchingCommonConfig.TriggerMatchingCommonRun2Cfg
def TriggerMatchingCommonRun2Cfg(flags, name, **kwargs)
Definition: TriggerMatchingCommonConfig.py:91
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.MCTruthCommonConfig.AddStandardTruthContentsCfg
def AddStandardTruthContentsCfg(flags, decorationDressing='dressedPhoton', includeTausInDressingPhotonRemoval=False, prefix='')
Definition: MCTruthCommonConfig.py:164
python.MCTruthCommonConfig.AddMiniTruthCollectionLinksCfg
def AddMiniTruthCollectionLinksCfg(flags, **kwargs)
Definition: MCTruthCommonConfig.py:427
python.MCTruthCommonConfig.AddPVCollectionCfg
def AddPVCollectionCfg(flags)
Definition: MCTruthCommonConfig.py:315
python.TruthDerivationToolsConfig.TruthCollectionMakerCfg
def TruthCollectionMakerCfg(flags, name, **kwargs)
Definition: TruthDerivationToolsConfig.py:19
python.TriggerMatchingCommonConfig.TriggerMatchingCommonRun2ToRun3Cfg
def TriggerMatchingCommonRun2ToRun3Cfg(flags, **kwargs)
Definition: TriggerMatchingCommonConfig.py:106
python.NCBCommonConfig.NCBCommonAugmentationsCfg
def NCBCommonAugmentationsCfg(flags, **kwargs)
Definition: NCBCommonConfig.py:32
python.JetRecConfig.JetRecCfg
def JetRecCfg(flags, jetdef, returnConfiguredDef=False)
Top level functions returning ComponentAccumulator out of JetDefinition.
Definition: JetRecConfig.py:36
python.MuonsCommonConfig.MuonsCommonCfg
def MuonsCommonCfg(flags, suff="")
Definition: MuonsCommonConfig.py:13
python.NCBCommonConfig.StandardJetsInDerivCfg
def StandardJetsInDerivCfg(flags)
Definition: NCBCommonConfig.py:11
python.MCTruthCommonConfig.AddHFAndDownstreamParticlesCfg
def AddHFAndDownstreamParticlesCfg(flags, **kwargs)
Add electrons, photons, and their downstream particles in a special collection def addEgammaAndDownst...
Definition: MCTruthCommonConfig.py:292
python.MCTruthCommonConfig.AddTruthCollectionNavigationDecorationsCfg
def AddTruthCollectionNavigationDecorationsCfg(flags, TruthCollections=[], prefix='')
Definition: MCTruthCommonConfig.py:331
python.TriggerMatchingCommonConfig.TriggerMatchingCommonRun3Cfg
def TriggerMatchingCommonRun3Cfg(flags, **kwargs)
Definition: TriggerMatchingCommonConfig.py:129
python.InDetCommonConfig.InDetCommonCfg
def InDetCommonCfg(flags, **kwargs)
Definition: InDetCommonConfig.py:16
python.METCommonConfig.METCommonCfg
def METCommonCfg(ConfigFlags)
Definition: METCommonConfig.py:11