216 from TrigEDMConfig.DataScoutingInfo
import getFullHLTResultID
217 from TrigEDMConfig.TriggerEDMRun3
import EDMDetailsRun3
218 from TrigEDMConfig.TriggerEDM
import getRawTriggerEDMList
219 from TrigOutputHandling.TrigOutputHandlingConfig
import TriggerEDMSerialiserToolCfg, StreamTagMakerToolCfg, TriggerBitsMakerToolCfg
224 serialiser.addCollectionListToMainResult([
225 coll[0]
for coll
in getRawTriggerEDMList(flags, runVersion=3)
if 'BS' in coll[1]
and coll[2]==
'Steer' and not coll[0].
split(
'#')[0]
in EDMDetailsRun3
227 for hypo
in hypo_algs:
228 serialiser.addCollectionListToMainResult([
229 'xAOD::TrigCompositeContainer_v1#%s' % hypo.HypoOutputDecisions,
230 'xAOD::TrigCompositeAuxContainer_v2#%sAux.' % hypo.HypoOutputDecisions,
237 for hypo
in hypo_algs:
238 for hypo_tool
in hypo.HypoTools:
239 chain_names.append(hypo_tool.name)
240 if hasattr(hypo_tool,
'CreateRandomData'):
241 for coll_name
in hypo_tool.CreateRandomData.keys():
242 collections.add(coll_name)
243 for coll_name
in collections:
244 serialiser.addCollectionListToResults([
245 'xAOD::TrigCompositeContainer_v1#{:s}'.
format(coll_name),
246 'xAOD::TrigCompositeAuxContainer_v2#{:s}Aux.'.
format(coll_name)
250 streamPhysicsMain = {
254 'forceFullEventBuilding':
True
257 'name':
'ExamplePEB',
258 'type':
'calibration',
260 'forceFullEventBuilding':
False
262 streamExampleDataScoutingPEB = {
263 'name':
'ExampleDataScoutingPEB',
266 'forceFullEventBuilding':
False
268 chain_to_streams = {}
269 for counter, ch
in enumerate(chain_names, start=1):
271 chain_to_streams[ch] = [streamPhysicsMain]
272 elif counter % 3 == 2:
273 chain_to_streams[ch] = [streamExamplePEB]
274 elif counter % 3 == 0:
275 chain_to_streams[ch] = [streamExampleDataScoutingPEB]
282 from TrigConfigSvc.TrigConfigSvcCfg
import HLTConfigSvcCfg
284 hltConfigSvcCfg.getService(
"HLTConfigSvc").HLTJsonFileName = menu_json
285 acc.merge(hltConfigSvcCfg)
289 stmaker.ChainDecisions =
'HLTNav_Summary'
290 stmaker.PEBDecisionKeys = [
str(hypo.HypoOutputDecisions)
for hypo
in hypo_algs]
294 bitsmaker.ChainDecisions =
'HLTNav_Summary'
297 from TrigServices.TrigServicesConfig
import TrigServicesCfg
299 hltEventLoopMgr = trigServicesCfg.getPrimary()
300 hltEventLoopMgr.ResultMaker.StreamTagMaker = stmaker
301 hltEventLoopMgr.ResultMaker.MakerTools = [bitsmaker, serialiser]
302 acc.merge(trigServicesCfg)