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 77 of file JETM10.py.

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

◆ JETM10KernelCfg()

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

Definition at line 51 of file JETM10.py.

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

◆ JETM10MetTrigSkimmingToolCfg()

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

Definition at line 11 of file JETM10.py.

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

◆ JETM10MuTrigSkimmingToolCfg()

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

Definition at line 21 of file JETM10.py.

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

◆ JETM10StringSkimmingToolCfg()

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

Definition at line 35 of file JETM10.py.

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