4 while '@' in repr(seqList)
and level<maxLevel:
6 for specifiedCommand
in seqList:
7 if specifiedCommand.startswith(
'@'):
8 location=specifiedCommand[1:]
9 if not location
in mapping:
10 raise Exception(
"Impossible to map "+location+
" from "+repr(mapping))
11 mappedTo=mapping[location]
16 seqList.remove(specifiedCommand)
17 if key
in mappedTo
and mappedTo[key]
is not None:
18 seqList.extend(mappedTo[key].
split(
'+'))
21 raise Exception(
"Could not fully expand "+repr(seqList)+
" from "+repr(mapping))
26 'PHYS': {
'sequence':
'',
29 'L1' : {
'customize':
'nanoL1TrigObjCustomize'},
30 'L1FULL' : {
'customize':
'nanoL1TrigObjCustomizeFull'},
32 'Scout' : {
'sequence':
'PhysicsTools/NanoAOD/custom_run3scouting_cff'},
33 'JME' : {
'sequence':
'@PHYS',
34 'customize':
'@PHYS+PhysicsTools/NanoAOD/custom_jme_cff.PrepJMECustomNanoAOD'},
36 'MUPOG' : {
'sequence':
'@PHYS',
37 'customize' :
'@PHYS+PhysicsTools/NanoAOD/custom_muon_cff.PrepMuonCustomNanoAOD'},
39 'MUDPG' : {
'sequence':
'DPGAnalysis/MuonTools/muNtupleProducer_cff.muDPGNanoProducer',
40 'customize':
'DPGAnalysis/MuonTools/muNtupleProducer_cff.muDPGNanoCustomize'},
41 'MUDPGBKG' : {
'sequence':
'DPGAnalysis/MuonTools/muNtupleProducerBkg_cff.muDPGNanoProducerBkg',
42 'customize':
'DPGAnalysis/MuonTools/muNtupleProducerBkg_cff.muDPGNanoBkgCustomize'},
44 'EGM' : {
'sequence':
'@PHYS',
45 'customize' :
'@PHYS+PhysicsTools/NanoAOD/egamma_custom_cff.addExtraEGammaVarsCustomize'},
47 'Prompt' : {
'sequence':
'@PHYS',
48 'customize':
'@PHYS+@L1'},
50 'LepTimeLife' : {
'sequence':
'@PHYS',
51 'customize':
'@PHYS+PhysicsTools/NanoAOD/leptonTimeLifeInfo_common_cff.addTimeLifeInfo'},
def expandNanoMapping(seqList, mapping, key)
def split(sequence, size)