ATLAS Offline Software
Functions
python.JETM10 Namespace Reference

Functions

def JETM10MetTrigSkimmingToolCfg (flags)
 
def JETM10MuTrigSkimmingToolCfg (flags)
 
def JETM10StringSkimmingToolCfg (flags)
 
def JETM10KernelCfg (flags, name='JETM10Kernel', **kwargs)
 
def JETM10Cfg (flags)
 

Function Documentation

◆ JETM10Cfg()

def python.JETM10.JETM10Cfg (   flags)

Definition at line 78 of file JETM10.py.

78 def JETM10Cfg(flags):
79 
80  acc = ComponentAccumulator()
81 
82  # Get the lists of triggers needed for trigger matching.
83  # This is needed at this scope (for the slimming) and further down in the config chain
84  # for actually configuring the matching, so we create it here and pass it down
85  # TODO: this should ideally be called higher up to avoid it being run multiple times in a train
86  from DerivationFrameworkPhys.TriggerListsHelper import TriggerListsHelper
87  JETM10TriggerListsHelper = TriggerListsHelper(flags)
88 
89  # Skimming, thinning, augmentation
90  acc.merge(JETM10KernelCfg(flags, name="JETM10Kernel", StreamName = 'StreamDAOD_JETM10', TriggerListsHelper = JETM10TriggerListsHelper))
91 
92  # ============================
93  # Define contents of the format
94  # =============================
95  from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
96  from xAODMetaDataCnv.InfileMetaDataConfig import SetupMetaDataForStreamCfg
97  from DerivationFrameworkCore.SlimmingHelper import SlimmingHelper
98 
99  JETM10SlimmingHelper = SlimmingHelper("JETM10SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
100 
101  from DerivationFrameworkJetEtMiss.METTriggerDerivationContentConfig import addMETTriggerDerivationContent
102  addMETTriggerDerivationContent(JETM10SlimmingHelper, isLoose=True)
103 
104  # Trigger content
105  JETM10SlimmingHelper.IncludeTriggerNavigation = False
106  JETM10SlimmingHelper.IncludeJetTriggerContent = False
107  JETM10SlimmingHelper.IncludeMuonTriggerContent = False
108  JETM10SlimmingHelper.IncludeEGammaTriggerContent = False
109  JETM10SlimmingHelper.IncludeTauTriggerContent = False
110  JETM10SlimmingHelper.IncludeEtMissTriggerContent = False
111  JETM10SlimmingHelper.IncludeBJetTriggerContent = False
112  JETM10SlimmingHelper.IncludeBPhysTriggerContent = False
113  JETM10SlimmingHelper.IncludeMinBiasTriggerContent = False
114 
115  JETM10SlimmingHelper.AllVariables += ['HLT_MET_tcpufit','HLT_MET_cell','HLT_MET_trkmht','HLT_MET_cvfpufit','HLT_MET_pfopufit','HLT_MET_mhtpufit_em','HLT_MET_mhtpufit_pf','HLT_MET_pfsum','HLT_MET_pfsum_vssk','HLT_MET_pfsum_cssk','HLT_MET_nn','L1_jFexMETRoI','L1_jFexMETxRoI','L1_gMETComponentsJwoj','L1_gMETComponentsRms','L1_gMETComponentsNoiseCut']
116 
117  # Output stream
118  JETM10ItemList = JETM10SlimmingHelper.GetItemList()
119  acc.merge(OutputStreamCfg(flags, "DAOD_JETM10", ItemList=JETM10ItemList, AcceptAlgs=["JETM10Kernel"]))
120  acc.merge(SetupMetaDataForStreamCfg(flags, "DAOD_JETM10", AcceptAlgs=["JETM10Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData]))
121 
122  return acc
123 

◆ JETM10KernelCfg()

def python.JETM10.JETM10KernelCfg (   flags,
  name = 'JETM10Kernel',
**  kwargs 
)
Configure the derivation framework driving algorithm (kernel) for JETM10

Definition at line 52 of file JETM10.py.

52 def JETM10KernelCfg(flags, name='JETM10Kernel', **kwargs):
53  """Configure the derivation framework driving algorithm (kernel) for JETM10"""
54  acc = ComponentAccumulator()
55 
56  # Skimming
57  JETM10MetTrigSkimmingTool = acc.getPrimaryAndMerge(JETM10MetTrigSkimmingToolCfg(flags))
58  JETM10MuTrigSkimmingTool = acc.getPrimaryAndMerge(JETM10MuTrigSkimmingToolCfg(flags))
59  JETM10StringSkimmingTool = acc.getPrimaryAndMerge(JETM10StringSkimmingToolCfg(flags))
60 
61  JETM10MuTrigStringSkimmingTool = CompFactory.DerivationFramework.FilterCombinationAND(name="JETM10MuTrigStringSkimmingTool", FilterList=[JETM10MuTrigSkimmingTool, JETM10StringSkimmingTool] )
62  acc.addPublicTool(JETM10MuTrigStringSkimmingTool)
63  JETM10SkimmingTool = CompFactory.DerivationFramework.FilterCombinationOR(name="JETM10SkimmingTool",
64  FilterList=[JETM10MuTrigStringSkimmingTool, JETM10MetTrigSkimmingTool])
65  acc.addPublicTool(JETM10SkimmingTool, primary = True)
66 
67  # Common augmentations
68  from DerivationFrameworkPhys.PhysCommonConfig import PhysCommonAugmentationsCfg
69  acc.merge(PhysCommonAugmentationsCfg(flags, TriggerListsHelper = kwargs['TriggerListsHelper']))
70 
71  # Derivation kernel:
72  from DerivationFrameworkJetEtMiss.METTriggerDerivationContentConfig import LooseMETTriggerDerivationKernelCfg
73  acc.merge(LooseMETTriggerDerivationKernelCfg(flags, name="JETM10Kernel", skimmingTools = [JETM10SkimmingTool], StreamName = 'StreamDAOD_JETM10'))
74 
75  return acc
76 
77 

◆ JETM10MetTrigSkimmingToolCfg()

def python.JETM10.JETM10MetTrigSkimmingToolCfg (   flags)
Configure the skimming tool

Definition at line 12 of file JETM10.py.

13  """Configure the skimming tool"""
14  acc = ComponentAccumulator()
15 
16  JETM10MetTrigSkimmingTool = CompFactory.DerivationFramework.TriggerSkimmingTool( name = "JETM10MetTrigSkimmingTool1",
17  TriggerListOR = ["HLT_noalg_L1XE.*","HLT_noalg_L1jXE.*","HLT.*ZeroBias","HLT.*zb.*","HLT.*_eb_.*","HLT.*noPS.*","HLT_noalg_L1RD3.*"] )
18  acc.addPublicTool(JETM10MetTrigSkimmingTool, primary = True)
19 
20  return(acc)
21 

◆ JETM10MuTrigSkimmingToolCfg()

def python.JETM10.JETM10MuTrigSkimmingToolCfg (   flags)
Configure the trigger skimming tool

Definition at line 22 of file JETM10.py.

23  """Configure the trigger skimming tool"""
24  acc = ComponentAccumulator()
25 
26  from DerivationFrameworkJetEtMiss import TriggerLists
27  singleMuTriggers = TriggerLists.single_mu_Trig(flags)
28 
29  JETM10MuTrigSkimmingTool = CompFactory.DerivationFramework.TriggerSkimmingTool( name = "JETM10MuTrigSkimmingTool1",
30  TriggerListOR = singleMuTriggers)
31 
32  acc.addPublicTool(JETM10MuTrigSkimmingTool, primary = True)
33 
34  return acc
35 

◆ JETM10StringSkimmingToolCfg()

def python.JETM10.JETM10StringSkimmingToolCfg (   flags)
Configure the string skimming tool

Definition at line 36 of file JETM10.py.

37  """Configure the string skimming tool"""
38 
39  acc = ComponentAccumulator()
40 
41  cutExpression = "(count(Muons.DFCommonMuonPassPreselection && Muons.pt > (20*GeV) && abs(Muons.eta) < 2.7) ) >= 2"
42 
43  JETM10StringSkimmingTool = CompFactory.DerivationFramework.xAODStringSkimmingTool(name = "JETM10StringSkimmingTool",
44  expression = cutExpression)
45 
46  acc.addPublicTool(JETM10StringSkimmingTool, primary = True)
47 
48  return(acc)
49 
50 
51 # Main algorithm config
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.JETM10.JETM10MuTrigSkimmingToolCfg
def JETM10MuTrigSkimmingToolCfg(flags)
Definition: JETM10.py:22
python.JETM10.JETM10StringSkimmingToolCfg
def JETM10StringSkimmingToolCfg(flags)
Definition: JETM10.py:36
python.JETM10.JETM10Cfg
def JETM10Cfg(flags)
Definition: JETM10.py:78
python.METTriggerDerivationContentConfig.addMETTriggerDerivationContent
def addMETTriggerDerivationContent(slimmingHelper, isLoose=True)
Definition: METTriggerDerivationContentConfig.py:120
python.JETM10.JETM10KernelCfg
def JETM10KernelCfg(flags, name='JETM10Kernel', **kwargs)
Definition: JETM10.py:52
python.METTriggerDerivationContentConfig.LooseMETTriggerDerivationKernelCfg
def LooseMETTriggerDerivationKernelCfg(ConfigFlags, name, StreamName, skimmingTools)
Definition: METTriggerDerivationContentConfig.py:7
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:219
SlimmingHelper
Definition: SlimmingHelper.py:1
python.JETM10.JETM10MetTrigSkimmingToolCfg
def JETM10MetTrigSkimmingToolCfg(flags)
Definition: JETM10.py:12