ATLAS Offline Software
Loading...
Searching...
No Matches
python.NCB1 Namespace Reference

Functions

 NCB1KernelCfg (flags, name='NCB1Kernel', **kwargs)
 NCB1Cfg (flags)

Function Documentation

◆ NCB1Cfg()

python.NCB1.NCB1Cfg ( flags)

Definition at line 30 of file NCB1.py.

30def NCB1Cfg(flags):
31
32 from AthenaCommon.Logging import logging
33 logNCB1 = logging.getLogger('NCB1')
34 logNCB1.info('****************** STARTING NCB1 *****************')
35
36 acc = ComponentAccumulator()
37
38 from DerivationFrameworkPhys.TriggerListsHelper import TriggerListsHelper
39 NCB1TriggerListsHelper = TriggerListsHelper(flags)
40
41 acc.merge(NCB1KernelCfg(flags, name='NCB1Kernel', StreamName = 'StreamDAOD_NCB1', TriggerListsHelper = NCB1TriggerListsHelper))
42
43
44 # ============================
45 # Define contents of the format
46 # =============================
47
48 from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
49 from xAODMetaDataCnv.InfileMetaDataConfig import SetupMetaDataForStreamCfg
50 from DerivationFrameworkCore.SlimmingHelper import SlimmingHelper
51
52 NCB1SlimmingHelper = SlimmingHelper("NCB1SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
53
54 NCB1SlimmingHelper.SmartCollections = [
55 "MET_Baseline_AntiKt4EMTopo",
56 "Electrons",
57 "Photons"
58 ]
59
60 NCB1SlimmingHelper.AllVariables = [
61 "EventInfo",
62 "InDetTrackParticles",
63 "CombinedMuonTrackParticles",
64 "AntiKt4EMTopoJets",
65 "CaloCalTopoClusters",
66 "Muons",
67 "MuonSegments",
68 "MuonSpectrometerTrackParticles",
69 "ExtrapolatedMuonTrackParticles",
70 "NCB_MuonSegments",
71 ]
72
73
74 # Truth extra content
75 if flags.Input.isMC:
76 from DerivationFrameworkMCTruth.MCTruthCommonConfig import addTruth3ContentToSlimmerTool
77 addTruth3ContentToSlimmerTool(NCB1SlimmingHelper)
78 NCB1SlimmingHelper.AllVariables += [
79 "TruthEvents",
80 "TruthVertices",
81 "TruthParticles",
82 "MET_Truth"
83 ]
84
85 # Trigger content
86 NCB1SlimmingHelper.IncludeTriggerNavigation = False
87 NCB1SlimmingHelper.IncludeJetTriggerContent = False
88 NCB1SlimmingHelper.IncludeMuonTriggerContent = False
89 NCB1SlimmingHelper.IncludeEGammaTriggerContent = False
90 NCB1SlimmingHelper.IncludeTauTriggerContent = False
91 NCB1SlimmingHelper.IncludeEtMissTriggerContent = False
92 NCB1SlimmingHelper.IncludeBJetTriggerContent = False
93 NCB1SlimmingHelper.IncludeBPhysTriggerContent = False
94 NCB1SlimmingHelper.IncludeMinBiasTriggerContent = False
95
96 # Output stream
97 NCB1ItemList = NCB1SlimmingHelper.GetItemList()
98 acc.merge(OutputStreamCfg(flags, "DAOD_NCB1", ItemList=NCB1ItemList, AcceptAlgs=["NCB1Kernel"]))
99 acc.merge(SetupMetaDataForStreamCfg(flags, "DAOD_NCB1", AcceptAlgs=["NCB1Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData]))
100
101 return acc

◆ NCB1KernelCfg()

python.NCB1.NCB1KernelCfg ( flags,
name = 'NCB1Kernel',
** kwargs )
Configure the derivation framework driving algorithm (kernel) for NCB1

Definition at line 15 of file NCB1.py.

15def NCB1KernelCfg(flags, name='NCB1Kernel', **kwargs):
16 """Configure the derivation framework driving algorithm (kernel) for NCB1"""
17 acc = ComponentAccumulator()
18
19 # Common augmentations
20 from DerivationFrameworkNCB.NCBCommonConfig import NCBCommonAugmentationsCfg
21 acc.merge(NCBCommonAugmentationsCfg(flags, TriggerListsHelper = kwargs['TriggerListsHelper']))
22
23 # The kernel algorithm itself
24 DerivationKernel = CompFactory.DerivationFramework.DerivationKernel
25 acc.addEventAlgo(DerivationKernel(name))
26
27 return acc
28
29