ATLAS Offline Software
EventBuildingInfo.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaCommon.Logging import logging
4 log = logging.getLogger( __name__ )
5 
6 '''
7 This file defines Event Building identifiers which can be used in chain names.
8 
9 When adding new identifiers, please follow the naming convention
10  SomeNamePEBVariant for Partial Event Building (here) or
11  SomeNameDSVariant for Data Scouting (in DataScoutingInfo),
12 where SomeName and Variant are generally camel-case unless they're acronyms
13 like LAr or RPC. Variant is normally empty unless there are several variants
14 like RPCPEB.
15 
16 Possible examples:
17 LArPEB, 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  'PhysicsTLA': False,
39  'DarkJetPEBTLA' : True,
40  'FTagPEBTLA' : True,
41  'EgammaPEBTLA' : True,
42 }
43 
44 
46  return _PartialEventBuildingIdentifiers.keys()
47 
48 
49 def isRoIBasedPEB(eventBuildType):
50  """Helper function to determine if eventBuildType corresponds to RoI-based PEB"""
51  try:
52  return _PartialEventBuildingIdentifiers[eventBuildType]
53  except KeyError:
54  log.error("'%s' is not a known event building identifier", eventBuildType)
55  raise
python.HLT.Menu.EventBuildingInfo.isRoIBasedPEB
def isRoIBasedPEB(eventBuildType)
Definition: EventBuildingInfo.py:49
python.HLT.Menu.EventBuildingInfo.getAllEventBuildingIdentifiers
def getAllEventBuildingIdentifiers()
Definition: EventBuildingInfo.py:45