Commit ca5e2f22 authored by Ligang Xia's avatar Ligang Xia
Browse files

update MuonDef and include more dimu chains

parent b8c22099
Pipeline #691198 passed with stage
in 0 seconds
......@@ -88,11 +88,29 @@ def setupMenu():
# ATR-19382
['mu10_ivarmedium_mu10', 'L1_2MU10', [], [PhysicsStream], ['Primary:20000','RATE:MultiMuon','BW:Muon'], -1,['serial',-1,['mu10_ivarmedium','mu10']]],
#['mu10_ivarmedium_mu10_20invm60', 'L1_2MU10', [], [PhysicsStream], ['RATE:MultiMuon','BW:Muon'], -1, ['serial', -1, ['mu10_ivarmedium', 'mu10_20invm60']]],
['mu10_ivarmedium_mu10_20invm60', 'L1_2MU10', [], [PhysicsStream], ['RATE:MultiMuon','BW:Muon'], -1, ['serial', -1, ['mu10_ivarmedium', 'mu10_20invm60']]],
['mu20_ivarmedium_mu8noL1_20invm60', 'L1_MU20MU21', ['L1_MU20',''], [PhysicsStream], ['RATE:MultiMuon','BW:Muon'], -1, ['serial', -1, ['mu20_ivarmedium', 'mu8noL1_20invm60']]],
#['mu20_ivarmedium_mu6noL1_20invm60', 'L1_MU20MU21', ['L1_MU20',''], [PhysicsStream], ['RATE:MultiMuon','BW:Muon'], -1, ['serial', -1, ['mu20_ivarmedium', 'mu6noL1_20invm60']]],
#['mu20_ivarmedium_mu4noL1_20invm60', 'L1_MU20MU21', ['L1_MU20',''], [PhysicsStream], ['Primary:20000','RATE:MultiMuon','BW:Muon'], -1, ['serial', -1, ['mu20_ivarmedium', 'mu4noL1_20invm60']]],
#['mu20_ivarmedium_mu2noL1_20invm60', 'L1_MU20MU21', ['L1_MU20',''], [PhysicsStream], ['Primary:20000','RATE:MultiMuon','BW:Muon'], -1, ['serial', -1, ['mu20_ivarmedium', 'mu2noL1_20invm60']]],
['mu20_ivarmedium_mu6noL1_20invm60', 'L1_MU20MU21', ['L1_MU20',''], [PhysicsStream], ['RATE:MultiMuon','BW:Muon'], -1, ['serial', -1, ['mu20_ivarmedium', 'mu6noL1_20invm60']]],
['mu20_ivarmedium_mu4noL1_20invm60', 'L1_MU20MU21', ['L1_MU20',''], [PhysicsStream], ['Primary:20000','RATE:MultiMuon','BW:Muon'], -1, ['serial', -1, ['mu20_ivarmedium', 'mu4noL1_20invm60']]],
['mu20_ivarmedium_mu2noL1_20invm60', 'L1_MU20MU21', ['L1_MU20',''], [PhysicsStream], ['Primary:20000','RATE:MultiMuon','BW:Muon'], -1, ['serial', -1, ['mu20_ivarmedium', 'mu2noL1_20invm60']]],
['mu10_ivarmedium_mu10_10invm60', 'L1_2MU10', [], [PhysicsStream], ['RATE:MultiMuon','BW:Muon'], -1, ['serial', -1, ['mu10_ivarmedium', 'mu10_10invm60']]],
['mu20_ivarmedium_mu8noL1_10invm60', 'L1_MU20MU21', ['L1_MU20',''], [PhysicsStream], ['RATE:MultiMuon','BW:Muon'], -1, ['serial', -1, ['mu20_ivarmedium', 'mu8noL1_10invm60']]],
['mu20_ivarmedium_mu6noL1_10invm60', 'L1_MU20MU21', ['L1_MU20',''], [PhysicsStream], ['RATE:MultiMuon','BW:Muon'], -1, ['serial', -1, ['mu20_ivarmedium', 'mu6noL1_10invm60']]],
['mu20_ivarmedium_mu4noL1_10invm60', 'L1_MU20MU21', ['L1_MU20',''], [PhysicsStream], ['Primary:20000','RATE:MultiMuon','BW:Muon'], -1, ['serial', -1, ['mu20_ivarmedium', 'mu4noL1_10invm60']]],
['mu20_ivarmedium_mu2noL1_10invm60', 'L1_MU20MU21', ['L1_MU20',''], [PhysicsStream], ['Primary:20000','RATE:MultiMuon','BW:Muon'], -1, ['serial', -1, ['mu20_ivarmedium', 'mu2noL1_10invm60']]],
['mu10_ivarmedium_mu10_0invm60', 'L1_2MU10', [], [PhysicsStream], ['RATE:MultiMuon','BW:Muon'], -1, ['serial', -1, ['mu10_ivarmedium', 'mu10_0invm60']]],
['mu20_ivarmedium_mu8noL1_0invm60', 'L1_MU20MU21', ['L1_MU20',''], [PhysicsStream], ['RATE:MultiMuon','BW:Muon'], -1, ['serial', -1, ['mu20_ivarmedium', 'mu8noL1_0invm60']]],
['mu20_ivarmedium_mu6noL1_0invm60', 'L1_MU20MU21', ['L1_MU20',''], [PhysicsStream], ['RATE:MultiMuon','BW:Muon'], -1, ['serial', -1, ['mu20_ivarmedium', 'mu6noL1_0invm60']]],
['mu20_ivarmedium_mu4noL1_0invm60', 'L1_MU20MU21', ['L1_MU20',''], [PhysicsStream], ['Primary:20000','RATE:MultiMuon','BW:Muon'], -1, ['serial', -1, ['mu20_ivarmedium', 'mu4noL1_0invm60']]],
['mu20_ivarmedium_mu2noL1_0invm60', 'L1_MU20MU21', ['L1_MU20',''], [PhysicsStream], ['Primary:20000','RATE:MultiMuon','BW:Muon'], -1, ['serial', -1, ['mu20_ivarmedium', 'mu2noL1_0invm60']]],
['mu10_ivarmedium_mu10_20invm80', 'L1_2MU10', [], [PhysicsStream], ['RATE:MultiMuon','BW:Muon'], -1, ['serial', -1, ['mu10_ivarmedium', 'mu10_20invm80']]],
['mu20_ivarmedium_mu8noL1_20invm80', 'L1_MU20MU21', ['L1_MU20',''], [PhysicsStream], ['RATE:MultiMuon','BW:Muon'], -1, ['serial', -1, ['mu20_ivarmedium', 'mu8noL1_20invm80']]],
['mu20_ivarmedium_mu6noL1_20invm80', 'L1_MU20MU21', ['L1_MU20',''], [PhysicsStream], ['RATE:MultiMuon','BW:Muon'], -1, ['serial', -1, ['mu20_ivarmedium', 'mu6noL1_20invm80']]],
['mu20_ivarmedium_mu4noL1_20invm80', 'L1_MU20MU21', ['L1_MU20',''], [PhysicsStream], ['Primary:20000','RATE:MultiMuon','BW:Muon'], -1, ['serial', -1, ['mu20_ivarmedium', 'mu4noL1_20invm80']]],
['mu20_ivarmedium_mu2noL1_20invm80', 'L1_MU20MU21', ['L1_MU20',''], [PhysicsStream], ['Primary:20000','RATE:MultiMuon','BW:Muon'], -1, ['serial', -1, ['mu20_ivarmedium', 'mu2noL1_20invm80']]],
['mu24_mu8noL1', 'L1_MU20MU21', ['L1_MU20',''], [PhysicsStream, 'express'], ['Primary:20000','RATE:MultiMuon','BW:Muon'], -1,['serial',-1,['mu24','mu8noL1']]],
......
......@@ -1256,38 +1256,46 @@ class L2EFChain_mu(L2EFChainDef):
[theTrigMuonEFCombinerMultiHypoConfig],
'EF_CB_FS']]
if 'invm' in str(self.chainPart['addInfo']) and 'noL1' in self.chainPart['extra']:
if '20invm60' in self.chainPart['addInfo'] or '10invm60' in self.chainPart['addInfo'] or '0invm60' in self.chainPart['addInfo'] or '20invm80' in self.chainPart['addInfo']:
dimuon_name = '0'
muon_name = 'mu'
mass_low = 0.
mass_high = 0.
hypocut = '0GeV_0GeV'
if '20invm60' in self.chainPart['addInfo']:
mass_low = 20.
mass_high = 60.
hypocut = '20GeV_60GeV'
elif '10invm60' in self.chainPart['addInfo']:
mass_low = 10.
mass_high = 60.
hypocut = '10GeV_60GeV'
elif '0invm60' in self.chainPart['addInfo']:
mass_low = 0.
mass_high = 60.
hypocut = '0GeV_60GeV'
elif '20invm80' in self.chainPart['addInfo']:
mass_low = 20.
mass_high = 80.
if 'mu8noL1' in self.chainName:
hypocut = '20GeV_80GeV'
if '_mu10_' in self.chainName:
muon_name = 'mu10'
elif 'mu8noL1' in self.chainName:
muon_name = 'mu8noL1'
elif 'mu6noL1' in self.chainName:
muon_name = 'mu6noL1'
elif 'mu4noL1' in self.chainName:
muon_name = 'mu4noL1'
elif 'mu2noL1' in self.chainName:
muon_name = 'mu2noL1'
muon_name = 'mu2noL1'
hypocutEF = muon_name + '_DiMuonMass_Zveto'
dimuon_name = muon_name+'_'+str(int(mass_low))+'invm'+str(int(mass_high))
theTrigMuonEFCombinerDiMuonMassPtImpactsHypoConfig = TrigMuonEFCombinerDiMuonMassPtImpactsHypoConfig("DiMuon",dimuon_name)
theTrigMuonEFCombinerDiMuonMassPtImpactsHypoConfig.massThresLow = mass_low
theTrigMuonEFCombinerDiMuonMassPtImpactsHypoConfig.massThresHigh = mass_high
self.EFsequenceList += [[['EF_CB_FS'],
[theTrigMuonEFCombinerDiMuonMassPtImpactsHypoConfig],
'EF_mu_step3']]
'EF_CB_FSINVM']]
if 'TagandProbe' in self.chainPart['FSinfo']:
TrigMuonEFTagandProbeInstance = TrigMuonEFTagandProbeConfig()
......@@ -1324,6 +1332,8 @@ class L2EFChain_mu(L2EFChainDef):
self.EFsignatureList += [ [['EF_CB_FS','EF_SA_FS2']] ]
if 'TagandProbe' in self.chainPart['FSinfo']:
self.EFsignatureList += [ [['EF_CB_FSTaP']] ]
if '20invm60' in self.chainPart['addInfo'] or '10invm60' in self.chainPart['addInfo'] or '0invm60' in self.chainPart['addInfo'] or '20invm80' in self.chainPart['addInfo']:
self.EFsignatureList += [ [['EF_CB_FSINVM']] ]
if run_isolation:
self.EFsignatureList += [ [['EF_ID_FS']] ]
......@@ -1351,6 +1361,8 @@ class L2EFChain_mu(L2EFChainDef):
self.TErenamingDict['EF_CB_FS'] = mergeRemovingOverlap('EF_CB_FS_', 'SAFSHypo'+hypocut+'_'+hypocutEF)
if 'TagandProbe' in self.chainPart['FSinfo'] : self.TErenamingDict['EF_CB_FSTaP'] = mergeRemovingOverlap('EF_CB_FSTaP_', 'SAFSHypo'+hypocut+'_'+hypocutEF)
if '20invm60' in self.chainPart['addInfo'] or '10invm60' in self.chainPart['addInfo'] or '0invm60' in self.chainPart['addInfo'] or '20invm80' in self.chainPart['addInfo']:
self.TErenamingDict['EF_CB_FSINVM'] = mergeRemovingOverlap('EF_CB_FSINVM_', 'SAFSHypo'+hypocut+'_'+hypocutEF)
if run_isolation:
self.TErenamingDict['EF_ID_FS_single'] = mergeRemovingOverlap('EF_trkIso_', chainPartNameNoMultNoDS+'EFFSID')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment