ATLAS Offline Software
Functions | Variables
python.JETM42 Namespace Reference

Functions

def JETM42KernelCfg (flags, name='JETM42Kernel', **kwargs)
 
def JETM42CoreCfg (flags, name, StreamName, TriggerListsHelper)
 
def JETM42Cfg (flags)
 

Variables

 logJETM42 = logging.getLogger('JETM42')
 

Function Documentation

◆ JETM42Cfg()

def python.JETM42.JETM42Cfg (   flags)

Definition at line 151 of file JETM42.py.

151 def JETM42Cfg(flags):
152  acc = ComponentAccumulator()
153 
154  # the name_tag has to consistent between KernelCfg and CoreCfg
155  JETM42_name_tag = 'JETM42'
156 
157 
158  # Get the lists of triggers needed for trigger matching.
159  # This is needed at this scope (for the slimming) and further down in the config chain
160  # for actually configuring the matching, so we create it here and pass it down
161  # TODO: this should ideally be called higher up to avoid it being run multiple times in a train
162  from DerivationFrameworkPhys.TriggerListsHelper import TriggerListsHelper
163  JETM42TriggerListsHelper = TriggerListsHelper(flags)
164 
165  # Common augmentations
166  acc.merge(JETM42KernelCfg(flags,
167  name= JETM42_name_tag + "Kernel",
168  StreamName = 'StreamDAOD_'+JETM42_name_tag,
169  TriggerListsHelper = JETM42TriggerListsHelper,
170  ))
171 
172  # PHYS content
173  acc.merge(JETM42CoreCfg(flags,
174  name=JETM42_name_tag,
175  StreamName = 'StreamDAOD_'+JETM42_name_tag,
176  TriggerListsHelper = JETM42TriggerListsHelper,
177  ))
178 
179  return acc
180 
181 

◆ JETM42CoreCfg()

def python.JETM42.JETM42CoreCfg (   flags,
  name,
  StreamName,
  TriggerListsHelper 
)

Definition at line 110 of file JETM42.py.

110 def JETM42CoreCfg(flags, name, StreamName, TriggerListsHelper):
111 
112  acc = ComponentAccumulator()
113 
114  from DerivationFrameworkPhys.PHYS import PHYSCoreCfg
115  acc.merge(PHYSCoreCfg(flags, name, StreamName = StreamName, TriggerListsHelper = TriggerListsHelper))
116 
117  from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
118  from DerivationFrameworkCore.SlimmingHelper import SlimmingHelper
119 
120  JETM42SlimmingHelper = SlimmingHelper(name+"SlimmingHelper", flags=flags, NamesAndTypes = flags.Input.TypedCollections)
121 
122  JETM42SlimmingHelper.AllVariables = ["CaloCalTopoClusters", "CaloTopoClusters422", "CaloCalAllTopoTowers",
123  "EMTopoClusters422","EMTopoClusters422SK","TopoTowers","TopoTowersSK",
124  ]
125 
126  JETM42SlimmingHelper.AppendToDictionary.update({'EMTopoClusters422': 'xAOD::CaloClusterContainer',
127  'EMTopoClusters422Aux': 'xAOD::ShallowAuxContainer',
128  'EMTopoClusters422SK': 'xAOD::CaloClusterContainer',
129  'EMTopoClusters422SKAux': 'xAOD::ShallowAuxContainer',
130  'TopoTowers': 'xAOD::CaloClusterContainer',
131  'TopoTowersAux': 'xAOD::ShallowAuxContainer',
132  'TopoTowersSK': 'xAOD::CaloClusterContainer',
133  'TopoTowersSKAux': 'xAOD::ShallowAuxContainer',
134  })
135 
136 
137  jetOutputList = ["AntiKt4EMTopo422Jets","AntiKt4EMTopo422SKJets","AntiKt4TopoTowerJets","AntiKt4TopoTowerSKJets"]
138  from DerivationFrameworkJetEtMiss.JetCommonConfig import addJetsToSlimmingTool
139  addJetsToSlimmingTool(JETM42SlimmingHelper, jetOutputList, JETM42SlimmingHelper.SmartCollections)
140 
141  # Pass through all trigger content
142  JETM42SlimmingHelper.IncludeFullTriggerEDMLevel = "ESD"
143 
144  # Output stream
145  JETM42ItemList = JETM42SlimmingHelper.GetItemList()
146  acc.merge(OutputStreamCfg(flags, "DAOD_"+name, ItemList=JETM42ItemList, AcceptAlgs=[name+"Kernel"]))
147 
148  return acc
149 
150 

◆ JETM42KernelCfg()

def python.JETM42.JETM42KernelCfg (   flags,
  name = 'JETM42Kernel',
**  kwargs 
)
Configure the derivation framework driving algorithm (kernel) for JETM42

Definition at line 12 of file JETM42.py.

12 def JETM42KernelCfg(flags, name='JETM42Kernel', **kwargs):
13  """Configure the derivation framework driving algorithm (kernel) for JETM42"""
14  acc = ComponentAccumulator()
15 
16  from DerivationFrameworkPhys.PhysCommonConfig import PhysCommonAugmentationsCfg
18  flags,
19  TriggerListsHelper = kwargs['TriggerListsHelper'],
20  ))
21 
22  thinningToolsArgs = {
23  'DiTauLowPtThinningToolName' : "PHYSDiTauLowPtThinningTool",
24  }
25 
26  from DerivationFrameworkPhys.PhysCommonThinningConfig import PhysCommonThinningCfg
27 
28  acc.merge(PhysCommonThinningCfg(flags, StreamName = kwargs['StreamName'], **thinningToolsArgs))
29  # Get them from the CA so they can be added to the kernel
30  thinningTools = []
31  for key in thinningToolsArgs:
32  thinningTools.append(acc.getPublicTool(thinningToolsArgs[key]))
33 
34  # The kernel algorithm itself
35  DerivationKernel = CompFactory.DerivationFramework.DerivationKernel
36  acc.addEventAlgo(DerivationKernel(name, ThinningTools = thinningTools))
37 
38 
39  from JetRecConfig.JetRecConfig import JetRecCfg, getInputAlgs
40  from JetRecConfig.StandardJetConstits import stdConstitDic as cst, standardReco, stdInputExtDic as inpext
41  from ROOT import xAODType
42 
43  #=======================================
44  # CHS R = 0.4 422 jets
45  #=======================================
46 
47  from JetRecConfig.JetDefinition import JetDefinition, JetInputConstitSeq, JetInputExternal
48  from JetRecConfig.StandardSmallRJets import standardghosts, flavourghosts, truthmods, clustermods
49 
50  inpext["TC422"] = JetInputExternal("CaloTopoClusters422", xAODType.CaloCluster, algoBuilder= standardReco("CaloClusters"))
51  inpext["TopoTowers"] = JetInputExternal("CaloCalAllTopoTowers", xAODType.CaloCluster, algoBuilder= standardReco("CaloClusters"))
52  cst["EMTopo422"] = JetInputConstitSeq("EMTopo422", xAODType.CaloCluster, ["EM"],
53  "CaloTopoClusters422", "EMTopoClusters422", jetinputtype="EMTopo",
54  )
55  cst["EMTopo422SK"] = JetInputConstitSeq("EMTopo422SK", xAODType.CaloCluster, ["EM","SK"],
56  "CaloTopoClusters422", "EMTopoClusters422SK", jetinputtype="EMTopo",
57  )
58  cst["TopoTower"] = JetInputConstitSeq("TopoTower", xAODType.CaloCluster, ["EM"],
59  "CaloCalAllTopoTowers", "TopoTowers", jetinputtype="TopoTower",
60  )
61  cst["TopoTowerSK"] = JetInputConstitSeq("TopoTowerSK", xAODType.CaloCluster, ["EM","SK"],
62  "CaloCalAllTopoTowers", "TopoTowersSK", jetinputtype="TopoTower",
63  )
64  algs = getInputAlgs(cst["EMTopo422"], flags=flags)
65  algs += getInputAlgs(cst["EMTopo422SK"], flags=flags)
66  algs += getInputAlgs(cst["TopoTower"], flags=flags)
67  algs += getInputAlgs(cst["TopoTowerSK"], flags=flags)
68 
69  AntiKt4EMTopo422 = JetDefinition("AntiKt",0.4,cst["EMTopo422"],
70  ghostdefs = standardghosts+["TrackLRT"]+flavourghosts,
71  modifiers = truthmods+clustermods+("Filter:15000","LArHVCorr",),
72  lock = True,
73  )
74  AntiKt4EMTopo422SK = JetDefinition("AntiKt",0.4,cst["EMTopo422SK"],
75  ghostdefs = standardghosts+["TrackLRT"]+flavourghosts,
76  modifiers = truthmods+clustermods+("Filter:15000","LArHVCorr",),
77  lock = True,
78  )
79  AntiKt4TopoTowers = JetDefinition("AntiKt",0.4,cst["TopoTower"],
80  ghostdefs = standardghosts+["TrackLRT"]+flavourghosts,
81  modifiers = truthmods+clustermods+("Filter:15000","LArHVCorr",),
82  lock = True,
83  )
84  AntiKt4TopoTowersSK = JetDefinition("AntiKt",0.4,cst["TopoTowerSK"],
85  ghostdefs = standardghosts+["TrackLRT"]+flavourghosts,
86  modifiers = truthmods+clustermods+("Filter:15000","LArHVCorr",),
87  lock = True,
88  )
89 
90  jetList = [AntiKt4EMTopo422, AntiKt4EMTopo422SK, AntiKt4TopoTowers, AntiKt4TopoTowersSK]
91 
92  for jd in jetList:
93  acc.merge(JetRecCfg(flags,jd))
94 
95  # augmentation tools
96  augmentationTools = []
97 
98  # skimming tools
99  skimmingTools = []
100 
101  # thinning tools
102  thinningTools = []
103 
104  # Finally the kernel itself
105  DerivationKernel = CompFactory.DerivationFramework.DerivationKernel
106  acc.addEventAlgo(DerivationKernel(name, AugmentationTools = augmentationTools, ThinningTools = thinningTools, SkimmingTools = skimmingTools))
107  return acc
108 
109 

Variable Documentation

◆ logJETM42

python.JETM42.logJETM42 = logging.getLogger('JETM42')

Definition at line 9 of file JETM42.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.JetRecConfig.getInputAlgs
def getInputAlgs(jetOrConstitdef, flags, context="default", monTool=None)
Definition: JetRecConfig.py:279
python.OutputStreamConfig.OutputStreamCfg
def OutputStreamCfg(flags, streamName, ItemList=[], MetadataItemList=[], disableEventTag=False, trigNavThinningSvc=None, takeItemsFromInput=False, extendProvenanceRecord=True, AcceptAlgs=[], HelperTools=[])
Definition: OutputStreamConfig.py:12
python.JETM42.JETM42KernelCfg
def JETM42KernelCfg(flags, name='JETM42Kernel', **kwargs)
Definition: JETM42.py:12
python.PhysCommonThinningConfig.PhysCommonThinningCfg
def PhysCommonThinningCfg(flags, StreamName="StreamDAOD_PHYS", **kwargs)
Definition: PhysCommonThinningConfig.py:9
python.StandardJetConstits.standardReco
def standardReco(input)
Definition: StandardJetConstits.py:50
python.JetRecConfig.JetRecCfg
def JetRecCfg(flags, jetdef, returnConfiguredDef=False)
Top level functions returning ComponentAccumulator out of JetDefinition.
Definition: JetRecConfig.py:36
python.JetCommonConfig.addJetsToSlimmingTool
def addJetsToSlimmingTool(slimhelper, contentlist, smartlist=[])
Definition: JetCommonConfig.py:262
python.JETM42.JETM42Cfg
def JETM42Cfg(flags)
Definition: JETM42.py:151
python.JETM42.JETM42CoreCfg
def JETM42CoreCfg(flags, name, StreamName, TriggerListsHelper)
Definition: JETM42.py:110
python.PhysCommonConfig.PhysCommonAugmentationsCfg
def PhysCommonAugmentationsCfg(flags, **kwargs)
Definition: PhysCommonConfig.py:14
SlimmingHelper
Definition: SlimmingHelper.py:1
python.HION12.DerivationKernel
DerivationKernel
Definition: HION12.py:66
python.PHYS.PHYSCoreCfg
def PHYSCoreCfg(flags, name_tag='PHYS', StreamName='StreamDAOD_PHYS', TriggerListsHelper=None)
Definition: PHYS.py:57