ATLAS Offline Software
Loading...
Searching...
No Matches
EventBuildingInfo.py
Go to the documentation of this file.
1# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
3from AthenaCommon.Logging import logging
4log = logging.getLogger( __name__ )
5
6'''
7This file defines Event Building identifiers which can be used in chain names.
8
9When adding new identifiers, please follow the naming convention
10 SomeNamePEBVariant for Partial Event Building (here) or
11 SomeNameDSVariant for Data Scouting (in DataScoutingInfo),
12where SomeName and Variant are generally camel-case unless they're acronyms
13like LAr or RPC. Variant is normally empty unless there are several variants
14like RPCPEB.
15
16Possible examples:
17LArPEB, LumiPEB, RPCPEB, TrkPEB, PhysicsTLA
18'''
19
20# Dictionary with PEB identifiers and if RoI-based PEB is used:
21_PartialEventBuildingIdentifiers = {
22 'BeamSpotPEB' : False,
23 'MuonTrkPEB' : True,
24 'IDCalibPEB' : True,
25 'LArPEB' : True,
26 'LArPEBCalib' : False,
27 'LArPEBHLT' : True,
28 'LArPEBNoise' : True,
29 'LATOMEPEB' : False,
30 'SCTPEB' : False,
31 'TilePEB' : False,
32 'ZDCPEB' : False,
33 'AFPPEB' : False,
34 'LumiPEB' : False,
35 'Lvl1CaloPEB' : False,
36 # DataScouting identifiers from TrigEDMConfig.DataScoutingInfo:
37 'CostMonDS': False,
38 'MuonDS': False,
39 'PhysicsTLA': False,
40 'DarkJetPEBTLA' : True,
41 'FTagPEBTLA' : True,
42 'EgammaPEBTLA' : True,
43}
44
45
47 return _PartialEventBuildingIdentifiers.keys()
48
49
50def isRoIBasedPEB(eventBuildType):
51 """Helper function to determine if eventBuildType corresponds to RoI-based PEB"""
52 try:
53 return _PartialEventBuildingIdentifiers[eventBuildType]
54 except KeyError:
55 log.error("'%s' is not a known event building identifier", eventBuildType)
56 raise