ATLAS Offline Software
Functions
python.JETM14 Namespace Reference

Functions

def JETM14TriggerSkimmingToolCfg (flags)
 
def JETM14StringSkimmingToolCfg (flags)
 
def JETM14KernelCfg (flags, name='JETM14Kernel', **kwargs)
 
def JETM14Cfg (flags)
 

Function Documentation

◆ JETM14Cfg()

def python.JETM14.JETM14Cfg (   flags)

Definition at line 61 of file JETM14.py.

61 def JETM14Cfg(flags):
62 
63  acc = ComponentAccumulator()
64 
65  # Get the lists of triggers needed for trigger matching.
66  # This is needed at this scope (for the slimming) and further down in the config chain
67  # for actually configuring the matching, so we create it here and pass it down
68  # TODO: this should ideally be called higher up to avoid it being run multiple times in a train
69  from DerivationFrameworkPhys.TriggerListsHelper import TriggerListsHelper
70  JETM14TriggerListsHelper = TriggerListsHelper(flags)
71 
72  # Skimming, thinning, augmentation
73  acc.merge(JETM14KernelCfg(flags, name="JETM14Kernel", StreamName = 'StreamDAOD_JETM14', TriggerListsHelper = JETM14TriggerListsHelper))
74 
75  # ============================
76  # Define contents of the format
77  # =============================
78  from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
79  from xAODMetaDataCnv.InfileMetaDataConfig import SetupMetaDataForStreamCfg
80  from DerivationFrameworkCore.SlimmingHelper import SlimmingHelper
81 
82  JETM14SlimmingHelper = SlimmingHelper("JETM14SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
83 
84  from DerivationFrameworkJetEtMiss.METTriggerDerivationContentConfig import addMETTriggerDerivationContent
85  addMETTriggerDerivationContent(JETM14SlimmingHelper, isLoose=True)
86 
87  # Trigger content
88  JETM14SlimmingHelper.IncludeTriggerNavigation = False
89  JETM14SlimmingHelper.IncludeJetTriggerContent = False
90  JETM14SlimmingHelper.IncludeMuonTriggerContent = False
91  JETM14SlimmingHelper.IncludeEGammaTriggerContent = False
92  JETM14SlimmingHelper.IncludeTauTriggerContent = False
93  JETM14SlimmingHelper.IncludeEtMissTriggerContent = False
94  JETM14SlimmingHelper.IncludeBJetTriggerContent = False
95  JETM14SlimmingHelper.IncludeBPhysTriggerContent = False
96  JETM14SlimmingHelper.IncludeMinBiasTriggerContent = False
97 
98  # Output stream
99  JETM14ItemList = JETM14SlimmingHelper.GetItemList()
100  acc.merge(OutputStreamCfg(flags, "DAOD_JETM14", ItemList=JETM14ItemList, AcceptAlgs=["JETM14Kernel"]))
101  acc.merge(SetupMetaDataForStreamCfg(flags, "DAOD_JETM14", AcceptAlgs=["JETM14Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData]))
102 
103  return acc
104 

◆ JETM14KernelCfg()

def python.JETM14.JETM14KernelCfg (   flags,
  name = 'JETM14Kernel',
**  kwargs 
)
Configure the derivation framework driving algorithm (kernel) for JETM14

Definition at line 41 of file JETM14.py.

41 def JETM14KernelCfg(flags, name='JETM14Kernel', **kwargs):
42  """Configure the derivation framework driving algorithm (kernel) for JETM14"""
43  acc = ComponentAccumulator()
44 
45  # Skimming
46  skimmingTools = []
47  skimmingTools.append(acc.getPrimaryAndMerge(JETM14TriggerSkimmingToolCfg(flags)))
48  skimmingTools.append(acc.getPrimaryAndMerge(JETM14StringSkimmingToolCfg(flags)))
49 
50  # Common augmentations
51  from DerivationFrameworkPhys.PhysCommonConfig import PhysCommonAugmentationsCfg
52  acc.merge(PhysCommonAugmentationsCfg(flags, TriggerListsHelper = kwargs['TriggerListsHelper']))
53 
54  # Derivation kernel:
55  from DerivationFrameworkJetEtMiss.METTriggerDerivationContentConfig import LooseMETTriggerDerivationKernelCfg
56  acc.merge(LooseMETTriggerDerivationKernelCfg(flags, name="JETM14Kernel", skimmingTools = skimmingTools, StreamName = 'StreamDAOD_JETM14'))
57 
58  return acc
59 
60 

◆ JETM14StringSkimmingToolCfg()

def python.JETM14.JETM14StringSkimmingToolCfg (   flags)
Configure the string skimming tool

Definition at line 25 of file JETM14.py.

26  """Configure the string skimming tool"""
27 
28  acc = ComponentAccumulator()
29 
30  cutExpression = "(count(Muons.DFCommonMuonPassPreselection && Muons.pt > (20*GeV) && abs(Muons.eta) < 2.7) ) >= 2"
31 
32  JETM14StringSkimmingTool = CompFactory.DerivationFramework.xAODStringSkimmingTool(name = "JETM14StringSkimmingTool",
33  expression = cutExpression)
34 
35  acc.addPublicTool(JETM14StringSkimmingTool, primary=True)
36 
37  return(acc)
38 
39 
40 # Main algorithm config

◆ JETM14TriggerSkimmingToolCfg()

def python.JETM14.JETM14TriggerSkimmingToolCfg (   flags)
Configure the trigger skimming tool

Definition at line 11 of file JETM14.py.

12  """Configure the trigger skimming tool"""
13  acc = ComponentAccumulator()
14 
15  from DerivationFrameworkJetEtMiss import TriggerLists
16  singleMuTriggers = TriggerLists.single_mu_Trig(flags)
17 
18  JETM14TrigSkimmingTool = CompFactory.DerivationFramework.TriggerSkimmingTool( name = "JETM14TrigSkimmingTool1",
19  TriggerListOR = singleMuTriggers)
20 
21  acc.addPublicTool(JETM14TrigSkimmingTool, primary=True)
22 
23  return acc
24 
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.JETM14.JETM14TriggerSkimmingToolCfg
def JETM14TriggerSkimmingToolCfg(flags)
Definition: JETM14.py:11
python.METTriggerDerivationContentConfig.addMETTriggerDerivationContent
def addMETTriggerDerivationContent(slimmingHelper, isLoose=True)
Definition: METTriggerDerivationContentConfig.py:120
python.METTriggerDerivationContentConfig.LooseMETTriggerDerivationKernelCfg
def LooseMETTriggerDerivationKernelCfg(ConfigFlags, name, StreamName, skimmingTools)
Definition: METTriggerDerivationContentConfig.py:7
python.JETM14.JETM14KernelCfg
def JETM14KernelCfg(flags, name='JETM14Kernel', **kwargs)
Definition: JETM14.py:41
python.JETM14.JETM14StringSkimmingToolCfg
def JETM14StringSkimmingToolCfg(flags)
Definition: JETM14.py:25
python.JETM14.JETM14Cfg
def JETM14Cfg(flags)
Definition: JETM14.py:61
python.PhysCommonConfig.PhysCommonAugmentationsCfg
def PhysCommonAugmentationsCfg(flags, **kwargs)
Definition: PhysCommonConfig.py:14
InfileMetaDataConfig.SetupMetaDataForStreamCfg
def SetupMetaDataForStreamCfg(flags, streamName="", AcceptAlgs=None, createMetadata=None, propagateMetadataFromInput=True, *args, **kwargs)
Definition: InfileMetaDataConfig.py:222
SlimmingHelper
Definition: SlimmingHelper.py:1