ATLAS Offline Software
Functions
python.JETM11 Namespace Reference

Functions

def JETM11TriggerSkimmingToolCfg (flags)
 
def JETM11StringSkimmingToolCfg (flags)
 
def JETM11KernelCfg (flags, name='JETM11Kernel', **kwargs)
 
def JETM11Cfg (flags)
 

Function Documentation

◆ JETM11Cfg()

def python.JETM11.JETM11Cfg (   flags)

Definition at line 62 of file JETM11.py.

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

◆ JETM11KernelCfg()

def python.JETM11.JETM11KernelCfg (   flags,
  name = 'JETM11Kernel',
**  kwargs 
)
Configure the derivation framework driving algorithm (kernel) for JETM11

Definition at line 42 of file JETM11.py.

42 def JETM11KernelCfg(flags, name='JETM11Kernel', **kwargs):
43  """Configure the derivation framework driving algorithm (kernel) for JETM11"""
44  acc = ComponentAccumulator()
45 
46  # Skimming
47  skimmingTools = []
48  skimmingTools.append(acc.getPrimaryAndMerge(JETM11TriggerSkimmingToolCfg(flags)))
49  skimmingTools.append(acc.getPrimaryAndMerge(JETM11StringSkimmingToolCfg(flags)))
50 
51  # Common augmentations
52  from DerivationFrameworkPhys.PhysCommonConfig import PhysCommonAugmentationsCfg
53  acc.merge(PhysCommonAugmentationsCfg(flags, TriggerListsHelper = kwargs['TriggerListsHelper']))
54 
55  # Derivation kernel:
56  from DerivationFrameworkJetEtMiss.METTriggerDerivationContentConfig import TightMETTriggerDerivationKernelCfg
57  acc.merge(TightMETTriggerDerivationKernelCfg(flags, name="JETM11Kernel", skimmingTools = skimmingTools, StreamName = 'StreamDAOD_JETM11'))
58 
59  return acc
60 
61 

◆ JETM11StringSkimmingToolCfg()

def python.JETM11.JETM11StringSkimmingToolCfg (   flags)
Configure the string skimming tool

Definition at line 26 of file JETM11.py.

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

◆ JETM11TriggerSkimmingToolCfg()

def python.JETM11.JETM11TriggerSkimmingToolCfg (   flags)
Configure the trigger skimming tool

Definition at line 11 of file JETM11.py.

12  """Configure the trigger skimming tool"""
13  acc = ComponentAccumulator()
14 
15  from DerivationFrameworkJetEtMiss import TriggerLists
16  singleElTriggers = TriggerLists.single_el_Trig(flags)
17  singleMuTriggers = TriggerLists.single_mu_Trig(flags)
18 
19  JETM11TrigSkimmingTool = CompFactory.DerivationFramework.TriggerSkimmingTool( name = "JETM11TrigSkimmingTool1",
20  TriggerListOR = singleElTriggers + singleMuTriggers)
21 
22  acc.addPublicTool(JETM11TrigSkimmingTool, primary=True)
23 
24  return acc
25 
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.JETM11.JETM11KernelCfg
def JETM11KernelCfg(flags, name='JETM11Kernel', **kwargs)
Definition: JETM11.py:42
python.JETM11.JETM11TriggerSkimmingToolCfg
def JETM11TriggerSkimmingToolCfg(flags)
Definition: JETM11.py:11
python.METTriggerDerivationContentConfig.addMETTriggerDerivationContent
def addMETTriggerDerivationContent(slimmingHelper, isLoose=True)
Definition: METTriggerDerivationContentConfig.py:120
python.JETM11.JETM11StringSkimmingToolCfg
def JETM11StringSkimmingToolCfg(flags)
Definition: JETM11.py:26
python.METTriggerDerivationContentConfig.TightMETTriggerDerivationKernelCfg
def TightMETTriggerDerivationKernelCfg(ConfigFlags, name, StreamName, skimmingTools)
Definition: METTriggerDerivationContentConfig.py:22
python.JETM11.JETM11Cfg
def JETM11Cfg(flags)
Definition: JETM11.py:62
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