Skip to content
Snippets Groups Projects
Commit c089398e authored by Tomasz Bold's avatar Tomasz Bold
Browse files

implemented better HLT name parsing

parent c9eff747
No related branches found
No related tags found
No related merge requests found
...@@ -4,10 +4,13 @@ def get_flag_item(chainName, L1itemsChainParts, groups): ...@@ -4,10 +4,13 @@ def get_flag_item(chainName, L1itemsChainParts, groups):
PhysicsStream = 'Main' PhysicsStream = 'Main'
if L1itemsChainParts == []: if L1itemsChainParts == []:
L1item = chainName.split('_')[-1].replace('L1', 'L1_') L1item = 'L1_'+chainName.split('_L1')[-1]
L1thresholds = L1item.split('_')[1:] L1thresholds = L1item.split('_')[1:]
L1itemsChainParts = [L1item, L1thresholds ] L1itemsChainParts = [L1item, L1thresholds ]
elif L1itemsChainParts[0] == None:
L1item = 'L1_'+chainName.split('_L1')[-1]
L1itemsChainParts[0] = L1item
return [chainName, L1itemsChainParts, [PhysicsStream], groups, -1] return [chainName, L1itemsChainParts, [PhysicsStream], groups, -1]
def setupMenu(flags): def setupMenu(flags):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment