ATLAS Offline Software
Functions
python.NCB1 Namespace Reference

Functions

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

Function Documentation

◆ NCB1Cfg()

def python.NCB1.NCB1Cfg (   flags)

Definition at line 31 of file NCB1.py.

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

◆ NCB1KernelCfg()

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

Definition at line 16 of file NCB1.py.

16 def NCB1KernelCfg(flags, name='NCB1Kernel', **kwargs):
17  """Configure the derivation framework driving algorithm (kernel) for NCB1"""
18  acc = ComponentAccumulator()
19 
20  # Common augmentations
21  from DerivationFrameworkNCB.NCBCommonConfig import NCBCommonAugmentationsCfg
22  acc.merge(NCBCommonAugmentationsCfg(flags, TriggerListsHelper = kwargs['TriggerListsHelper']))
23 
24  # The kernel algorithm itself
25  DerivationKernel = CompFactory.DerivationFramework.DerivationKernel
26  acc.addEventAlgo(DerivationKernel(name))
27 
28  return acc
29 
30 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.OutputStreamConfig.OutputStreamCfg
def OutputStreamCfg(flags, streamName, ItemList=[], MetadataItemList=[], disableEventTag=False, trigNavThinningSvc=None, takeItemsFromInput=False, extendProvenanceRecord=True, AcceptAlgs=[], HelperTools=[])
Definition: OutputStreamConfig.py:12
python.NCB1.NCB1Cfg
def NCB1Cfg(flags)
Definition: NCB1.py:31
python.NCB1.NCB1KernelCfg
def NCB1KernelCfg(flags, name='NCB1Kernel', **kwargs)
Definition: NCB1.py:16
python.NCBCommonConfig.NCBCommonAugmentationsCfg
def NCBCommonAugmentationsCfg(flags, **kwargs)
Definition: NCBCommonConfig.py:32
python.MCTruthCommonConfig.addTruth3ContentToSlimmerTool
def addTruth3ContentToSlimmerTool(slimmer)
Definition: MCTruthCommonConfig.py:462
InfileMetaDataConfig.SetupMetaDataForStreamCfg
def SetupMetaDataForStreamCfg(flags, streamName="", AcceptAlgs=None, createMetadata=None, propagateMetadataFromInput=True, *args, **kwargs)
Definition: InfileMetaDataConfig.py:219
SlimmingHelper
Definition: SlimmingHelper.py:1
python.HION12.DerivationKernel
DerivationKernel
Definition: HION12.py:67