ATLAS Offline Software
Functions | Variables
GlobalL1TopoSimulation Namespace Reference

Functions

def GlobalL1TopoSimulationCfg (flags, algLogLevel)
 
def add_subsystems (subsystems, acc, args)
 

Variables

 logger
 
 log
 
 algLogLevel
 
 parser
 
 formatter_class
 
 nargs
 
 action
 
 dest
 
 help
 
 required
 
 default
 
 type
 
 args
 
 flags
 
 MaxEvents
 
 Files
 
 NumThreads
 
 NumConcurrentEvents
 
 SkipEvents
 
 AODFileName
 
 triggerMenuSetup
 
 AtlasVersion
 
 acc
 
 type_names
 
 subsystems
 
 roib2topo
 
 name
 
 OutputLevel
 
 sequenceName
 

Function Documentation

◆ add_subsystems()

def GlobalL1TopoSimulation.add_subsystems (   subsystems,
  acc,
  args 
)

Definition at line 51 of file GlobalL1TopoSimulation.py.

51 def add_subsystems(subsystems, acc, args):
52 
53  decoderTools = []
54  outputEDM = []
55  maybeMissingRobs = []
56 
57  from TrigT1ResultByteStream.TrigT1ResultByteStreamConfig import RoIBResultByteStreamToolCfg
58  roibResultTool = acc.popToolsAndMerge(RoIBResultByteStreamToolCfg(flags, name="RoIBResultBSDecoderTool", writeBS=False))
59  decoderTools += [roibResultTool]
60 
61 
62  for module_id in roibResultTool.L1TopoModuleIds:
63  maybeMissingRobs.append(int(SourceIdentifier(SubDetector.TDAQ_CALO_TOPO_PROC, module_id)))
64 
65  for module_id in roibResultTool.JetModuleIds:
66  maybeMissingRobs.append(int(SourceIdentifier(SubDetector.TDAQ_CALO_JET_PROC_ROI, module_id)))
67 
68  for module_id in roibResultTool.EMModuleIds:
69  maybeMissingRobs.append(int(SourceIdentifier(SubDetector.TDAQ_CALO_CLUSTER_PROC_ROI, module_id)))
70 
71 
72  def addEDM(edmType, edmName):
73  auxType = edmType.replace('Container','AuxContainer')
74  return [f'{edmType}#{edmName}', f'{auxType}#{edmName}Aux.']
75 
76  if 'jFex' in subsystems:
77  from L1CaloFEXByteStream.L1CaloFEXByteStreamConfig import (
78  jFexRoiByteStreamToolCfg,jFexInputByteStreamToolCfg)
79 
80 
81  jFexTool = acc.popToolsAndMerge(jFexRoiByteStreamToolCfg(
82  flags, 'jFexBSDecoder', writeBS=False))
83 
84  decoderTools += [jFexTool]
85  outputEDM += addEDM('xAOD::jFexSRJetRoIContainer',
86  jFexTool.jJRoIContainerWriteKey.Path)
87 
88  outputEDM += addEDM('xAOD::jFexLRJetRoIContainer',
89  jFexTool.jLJRoIContainerWriteKey.Path)
90 
91  outputEDM += addEDM('xAOD::jFexTauRoIContainer' ,
92  jFexTool.jTauRoIContainerWriteKey.Path)
93 
94  outputEDM += addEDM('xAOD::jFexFwdElRoIContainer',
95  jFexTool.jEMRoIContainerWriteKey.Path)
96 
97  outputEDM += addEDM('xAOD::jFexSumETRoIContainer',
98  jFexTool.jTERoIContainerWriteKey.Path)
99  outputEDM += addEDM('xAOD::jFexMETRoIContainer' ,
100  jFexTool.jXERoIContainerWriteKey.Path)
101  maybeMissingRobs += jFexTool.ROBIDs
102 
103  if args.doCaloInput:
104 
105  jFexInputByteStreamTool = acc.popToolsAndMerge(
107  'jFexInputBSDecoderTool',
108  writeBS=False))
109 
110  decoderTools += [jFexInputByteStreamTool]
111  outputEDM += addEDM('xAOD::jFexTowerContainer',
112  jFexInputByteStreamTool.jTowersWriteKey.Path)
113  maybeMissingRobs += jFexInputByteStreamTool.ROBIDs
114 
115  if 'eFex' in subsystems:
116  from L1CaloFEXByteStream.L1CaloFEXByteStreamConfig import (
117  eFexByteStreamToolCfg,)
118 
119  eFexTool = acc.popToolsAndMerge(
120  eFexByteStreamToolCfg(flags,
121  'eFexBSDecoder',
122  writeBS=False,
123  decodeInputs=args.doCaloInput))
124 
125  decoderTools += [eFexTool]
126  outputEDM += addEDM('xAOD::eFexEMRoIContainer',
127  eFexTool.eEMContainerWriteKey.Path)
128  outputEDM += addEDM('xAOD::eFexTauRoIContainer',
129  eFexTool.eTAUContainerWriteKey.Path)
130 
131  if args.doCaloInput:
132  outputEDM += addEDM('xAOD::eFexTowerContainer',
133  eFexTool.eTowerContainerWriteKey.Path)
134 
135  maybeMissingRobs += eFexTool.ROBIDs
136 
137  if 'gFex' in subsystems:
138  from L1CaloFEXByteStream.L1CaloFEXByteStreamConfig import (
139  gFexByteStreamToolCfg,gFexInputByteStreamToolCfg,)
140 
141  gFexTool = acc.popToolsAndMerge(gFexByteStreamToolCfg(
142  flags, 'gFexBSDecoder', writeBS=False))
143 
144  decoderTools += [gFexTool]
145  outputEDM += addEDM(
146  'xAOD::gFexJetRoIContainer',
147  gFexTool.gFexRhoOutputContainerWriteKey.Path)
148 
149  outputEDM += addEDM(
150  'xAOD::gFexJetRoIContainer',
151  gFexTool.gFexSRJetOutputContainerWriteKey.Path)
152 
153  outputEDM += addEDM(
154  'xAOD::gFexJetRoIContainer',
155  gFexTool.gFexLRJetOutputContainerWriteKey.Path)
156 
157  outputEDM += addEDM(
158  'xAOD::gFexGlobalRoIContainer',
159  gFexTool.gScalarEJwojOutputContainerWriteKey.Path)
160 
161  outputEDM += addEDM(
162  'xAOD::gFexGlobalRoIContainer',
163  gFexTool.gMETComponentsJwojOutputContainerWriteKey.Path)
164 
165  outputEDM += addEDM(
166  'xAOD::gFexGlobalRoIContainer',
167  gFexTool.gMHTComponentsJwojOutputContainerWriteKey.Path)
168 
169  outputEDM += addEDM(
170  'xAOD::gFexGlobalRoIContainer',
171  gFexTool.gMSTComponentsJwojOutputContainerWriteKey.Path)
172 
173  outputEDM += addEDM(
174  'xAOD::gFexGlobalRoIContainer',
175  gFexTool.gMETComponentsNoiseCutOutputContainerWriteKey.Path)
176 
177  outputEDM += addEDM(
178  'xAOD::gFexGlobalRoIContainer',
179  gFexTool.gMETComponentsRmsOutputContainerWriteKey.Path)
180 
181  outputEDM += addEDM(
182  'xAOD::gFexGlobalRoIContainer',
183  gFexTool.gScalarENoiseCutOutputContainerWriteKey.Path)
184 
185  outputEDM += addEDM(
186  'xAOD::gFexGlobalRoIContainer',
187  gFexTool.gScalarERmsOutputContainerWriteKey.Path)
188 
189  maybeMissingRobs += gFexTool.ROBIDs
190 
191  if args.doCaloInput:
192  gFexInputByteStreamTool = acc.popToolsAndMerge(
194  flags, 'gFexInputByteStreamTool', writeBS=False))
195 
196  decoderTools += [gFexInputByteStreamTool]
197  outputEDM += addEDM('xAOD::gFexTowerContainer',
198  gFexInputByteStreamTool.gTowersWriteKey.Path)
199 
200  maybeMissingRobs += gFexInputByteStreamTool.ROBIDs
201 
202  decoderAlg = CompFactory.L1TriggerByteStreamDecoderAlg(
203  name="L1TriggerByteStreamDecoder",
204  DecoderTools=decoderTools,
205  MaybeMissingROBs=maybeMissingRobs,
206  OutputLevel=algLogLevel)
207 
208  from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
209  log.debug('Adding the following output EDM to ItemList: %s', outputEDM)
210 
211  acc.addEventAlgo(decoderAlg, sequenceName='AthAlgSeq')
212 
213  acc.merge(OutputStreamCfg(flags, 'AOD', ItemList=outputEDM))
214 
215 

◆ GlobalL1TopoSimulationCfg()

def GlobalL1TopoSimulation.GlobalL1TopoSimulationCfg (   flags,
  algLogLevel 
)

Definition at line 18 of file GlobalL1TopoSimulation.py.

18 def GlobalL1TopoSimulationCfg(flags, algLogLevel):
19 
20  acc = ComponentAccumulator()
21 
22  globalSimAlg = CompFactory.GlobalSim.GlobalL1TopoSimulation("GlobalSimTest")
23  globalSimAlg.OutputLevel = algLogLevel
24 
25  if 'GSDEBUG' in os.environ:
26  globalSimAlg.enableDumps = True
27 
28  # for now, only run a small sub graph corresponding to
29  # existing L1Topo Algorithms.
30  root_names = [
31  'SC111-CjJ40abpETA26',
32  '0DR03-eEM9ab-CjJ40ab',
33  'Mult_jXESPARE8', # cTauMultiplicity COUNT
34  'Mult_cTAU30M',
35  'Mult_cTAU35M',
36  'Mult_cTAUSPARE2',
37  ]
38 
39  alg_data_list = algdata_from_menu(flags, root_names=root_names, do_dot=True)
40  logger.info("number of alg_data " + str(len(alg_data_list)))
41 
42  [globalSimAlg.topo_algs.append(toolFromAlgData(flags, ad)) for
43  ad in alg_data_list]
44 
45  acc.addEventAlgo(globalSimAlg)
46 
47  histSvc = CompFactory.THistSvc(Output =["EXPERT DATAFILE='expert-monitoring.root', OPT='RECREATE'"])
48  acc.addService(histSvc)
49  return acc
50 

Variable Documentation

◆ acc

GlobalL1TopoSimulation.acc

Definition at line 305 of file GlobalL1TopoSimulation.py.

◆ action

GlobalL1TopoSimulation.action

Definition at line 237 of file GlobalL1TopoSimulation.py.

◆ algLogLevel

GlobalL1TopoSimulation.algLogLevel

Definition at line 224 of file GlobalL1TopoSimulation.py.

◆ AODFileName

GlobalL1TopoSimulation.AODFileName

Definition at line 293 of file GlobalL1TopoSimulation.py.

◆ args

GlobalL1TopoSimulation.args

Definition at line 272 of file GlobalL1TopoSimulation.py.

◆ AtlasVersion

GlobalL1TopoSimulation.AtlasVersion

Definition at line 296 of file GlobalL1TopoSimulation.py.

◆ default

GlobalL1TopoSimulation.default

Definition at line 249 of file GlobalL1TopoSimulation.py.

◆ dest

GlobalL1TopoSimulation.dest

Definition at line 238 of file GlobalL1TopoSimulation.py.

◆ Files

GlobalL1TopoSimulation.Files

Definition at line 284 of file GlobalL1TopoSimulation.py.

◆ flags

GlobalL1TopoSimulation.flags

Definition at line 278 of file GlobalL1TopoSimulation.py.

◆ formatter_class

GlobalL1TopoSimulation.formatter_class

Definition at line 231 of file GlobalL1TopoSimulation.py.

◆ help

GlobalL1TopoSimulation.help

Definition at line 239 of file GlobalL1TopoSimulation.py.

◆ log

GlobalL1TopoSimulation.log

Definition at line 222 of file GlobalL1TopoSimulation.py.

◆ logger

GlobalL1TopoSimulation.logger

Definition at line 12 of file GlobalL1TopoSimulation.py.

◆ MaxEvents

GlobalL1TopoSimulation.MaxEvents

Definition at line 281 of file GlobalL1TopoSimulation.py.

◆ name

GlobalL1TopoSimulation.name

Definition at line 322 of file GlobalL1TopoSimulation.py.

◆ nargs

GlobalL1TopoSimulation.nargs

Definition at line 236 of file GlobalL1TopoSimulation.py.

◆ NumConcurrentEvents

GlobalL1TopoSimulation.NumConcurrentEvents

Definition at line 290 of file GlobalL1TopoSimulation.py.

◆ NumThreads

GlobalL1TopoSimulation.NumThreads

Definition at line 289 of file GlobalL1TopoSimulation.py.

◆ OutputLevel

GlobalL1TopoSimulation.OutputLevel

Definition at line 324 of file GlobalL1TopoSimulation.py.

◆ parser

GlobalL1TopoSimulation.parser

Definition at line 229 of file GlobalL1TopoSimulation.py.

◆ required

GlobalL1TopoSimulation.required

Definition at line 240 of file GlobalL1TopoSimulation.py.

◆ roib2topo

GlobalL1TopoSimulation.roib2topo

Definition at line 321 of file GlobalL1TopoSimulation.py.

◆ sequenceName

GlobalL1TopoSimulation.sequenceName

Definition at line 325 of file GlobalL1TopoSimulation.py.

◆ SkipEvents

GlobalL1TopoSimulation.SkipEvents

Definition at line 291 of file GlobalL1TopoSimulation.py.

◆ subsystems

GlobalL1TopoSimulation.subsystems

Definition at line 315 of file GlobalL1TopoSimulation.py.

◆ triggerMenuSetup

GlobalL1TopoSimulation.triggerMenuSetup

Definition at line 294 of file GlobalL1TopoSimulation.py.

◆ type

GlobalL1TopoSimulation.type

Definition at line 255 of file GlobalL1TopoSimulation.py.

◆ type_names

GlobalL1TopoSimulation.type_names

Definition at line 308 of file GlobalL1TopoSimulation.py.

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
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
GlobalL1TopoSimulation.GlobalL1TopoSimulationCfg
def GlobalL1TopoSimulationCfg(flags, algLogLevel)
Definition: GlobalL1TopoSimulation.py:18
L1CaloFEXByteStreamConfig.jFexInputByteStreamToolCfg
def jFexInputByteStreamToolCfg(flags, name, *writeBS=False)
Definition: L1CaloFEXByteStreamConfig.py:232
GlobalL1TopoSimulation.add_subsystems
def add_subsystems(subsystems, acc, args)
Definition: GlobalL1TopoSimulation.py:51
TrigT1ResultByteStreamConfig.RoIBResultByteStreamToolCfg
def RoIBResultByteStreamToolCfg(flags, name, writeBS=False)
Definition: TrigT1ResultByteStreamConfig.py:19
L1CaloFEXByteStreamConfig.gFexByteStreamToolCfg
def gFexByteStreamToolCfg(flags, name, *writeBS=False)
Definition: L1CaloFEXByteStreamConfig.py:148
getAlgData.algdata_from_menu
def algdata_from_menu(flags, do_dot=False, root_names=[])
Definition: getAlgData.py:12
L1CaloFEXByteStreamConfig.gFexInputByteStreamToolCfg
def gFexInputByteStreamToolCfg(flags, name, *writeBS=False)
Definition: L1CaloFEXByteStreamConfig.py:275
FexEmulatedTowersConfig.addEDM
def addEDM(edmType, edmName)
Definition: FexEmulatedTowersConfig.py:107
L1CaloFEXByteStreamConfig.jFexRoiByteStreamToolCfg
def jFexRoiByteStreamToolCfg(flags, name, *writeBS=False, xTOBs=False)
Definition: L1CaloFEXByteStreamConfig.py:87
str
Definition: BTagTrackIpAccessor.cxx:11
L1CaloFEXByteStreamConfig.eFexByteStreamToolCfg
def eFexByteStreamToolCfg(flags, name, *writeBS=False, TOBs=True, xTOBs=False, multiSlice=False, decodeInputs=False)
Definition: L1CaloFEXByteStreamConfig.py:8
toolFromAlgData
Definition: toolFromAlgData.py:1