ATLAS Offline Software
Loading...
Searching...
No Matches
python.ContainerRemapping_Run2Run3 Namespace Reference

Functions

 remapHLTContainerNames ()

Variables

 log = logging.getLogger('TriggerEDM')
dict HLT_Name_Changes

Function Documentation

◆ remapHLTContainerNames()

python.ContainerRemapping_Run2Run3.remapHLTContainerNames ( )

Definition at line 35 of file ContainerRemapping_Run2Run3.py.

35def remapHLTContainerNames():
36 for containertype, renamelist in HLT_Name_Changes.items():
37 for run3name, run2name in renamelist:
38 log.info("Remapping {} object SG Keys: {} --> {}".format(containertype,run3name,run2name))
39
40 auxcontainertype = containertype.replace("Container","AuxContainer")
41 if containertype=="xAOD::CaloClusterContainer":
42 auxcontainertype = "xAOD::CaloClusterTrigAuxContainer"
43 if containertype=="xAOD::JetContainer" and run3name.startswith("HLT"):
44 isShallow = True
45 for expr in ["RCJets","Trimmed","SoftDrop","nojcalib"]:
46 if expr in run3name:
47 isShallow=False
48 if isShallow:
49 auxcontainertype = "xAOD::ShallowAuxContainer"
50
51 #AddressRemappingSvc.addInputRename(containertype,run3name,run2name)
52 ars = AddressRemappingSvc.getAddressRemappingSvc()
53 ars.TypeKeyOverwriteMaps += [ '%s#%s->%s#%s' % (containertype, run3name,
54 containertype, run2name) ]
55
56 #AddressRemappingSvc.addInputRename(auxcontainertype,run3name+"Aux.",run2name+"Aux.")
57 ars.TypeKeyOverwriteMaps += [ '%s#%s->%s#%s' % (auxcontainertype, run3name+"Aux.",
58 auxcontainertype, run2name+"Aux.") ]
59

Variable Documentation

◆ HLT_Name_Changes

dict python.ContainerRemapping_Run2Run3.HLT_Name_Changes
Initial value:
1= {
2 "xAOD::JetContainer":
3 [
4 # Small-R
5 ('HLT_AntiKt4EMTopoJets_subjesIS', 'HLT_xAOD__JetContainer_a4tcemsubjesISFS'),
6 ('HLT_AntiKt4EMTopoJets_subjes', 'HLT_xAOD__JetContainer_a4tcemsubjesFS'),
7 ('HLT_AntiKt4EMTopoJets_nojcalib', 'HLT_xAOD__JetContainer_a4tcemnojcalibISFS'),
8 # Large-R reclustered
9 ('HLT_AntiKt10JetRCJets_subjesIS', 'HLT_xAOD__JetContainer_a10r_tcemsubjesISFS'),
10 # Large-R ungroomed
11 ('HLT_AntiKt10LCTopoJets_subjes', 'HLT_xAOD__JetContainer_a10tclcwsubjesFS'),
12 ('HLT_AntiKt10LCTopoJets_nojcalib', 'HLT_xAOD__JetContainer_a10tclcwnojcalibFS'),
13 # Large-R groomed
14 ('HLT_AntiKt10LCTopoTrimmedPtFrac4SmallR20Jets_jes', 'HLT_xAOD__JetContainer_a10ttclcwjesFS'),
15 ],
16
17 'xAOD::CaloClusterContainer':
18 [('HLT_TopoCaloClustersFS', 'HLT_TrigCaloClusterMaker_topo')],
19
20}

Definition at line 12 of file ContainerRemapping_Run2Run3.py.

◆ log

python.ContainerRemapping_Run2Run3.log = logging.getLogger('TriggerEDM')

Definition at line 8 of file ContainerRemapping_Run2Run3.py.