Skip to content
Snippets Groups Projects
Commit 4f5ca80c authored by James Beacham's avatar James Beacham
Browse files

Merge branch 'revert-b719f0af' into '21.0'

Revert "Merge branch '21.0-tightening-of-DRAW_ZMUMU' into '21.0'"

See merge request atlas/athena!12207

Former-commit-id: ab24e77fbd49896599c4ff659708582c593ff13f
parents c260b730 bd344105
No related branches found
No related tags found
No related merge requests found
...@@ -4,10 +4,6 @@ ...@@ -4,10 +4,6 @@
### derivation framework / event selection ### derivation framework / event selection
#################################################### ####################################################
# needed for dynamic determination of lowest-unprescaled single-muon and dimuon triggers
from TriggerMenu.api.TriggerAPI import TriggerAPI
from TriggerMenu.api.TriggerEnums import TriggerPeriod, TriggerType
# Sequence # Sequence
from AthenaCommon.AlgSequence import AlgSequence from AthenaCommon.AlgSequence import AlgSequence
topSequence = AlgSequence() topSequence = AlgSequence()
...@@ -18,7 +14,7 @@ sel_muon1 = 'Muons.pt > 25*GeV && Muons.ptcone40/Muons.pt < 0.3' ...@@ -18,7 +14,7 @@ sel_muon1 = 'Muons.pt > 25*GeV && Muons.ptcone40/Muons.pt < 0.3'
sel_muon2 = 'Muons.pt > 20*GeV && Muons.ptcone40/Muons.pt < 0.3' sel_muon2 = 'Muons.pt > 20*GeV && Muons.ptcone40/Muons.pt < 0.3'
# Event selection string # Event selection string
dimuonMassString = '( count ( DRZmumuMass > 70*GeV && DRZmumuMass < 110*GeV ) >= 1 )' draw_zmumu = '( count ( DRZmumuMass > 70*GeV && DRZmumuMass < 110*GeV ) >= 1 )'
# Invariant masses in various configurations # Invariant masses in various configurations
from DerivationFrameworkTools.DerivationFrameworkToolsConf import DerivationFramework__InvariantMassTool from DerivationFrameworkTools.DerivationFrameworkToolsConf import DerivationFramework__InvariantMassTool
...@@ -30,33 +26,12 @@ DRZmumuMassTool = DerivationFramework__InvariantMassTool(name = "DRZmumuMassTool ...@@ -30,33 +26,12 @@ DRZmumuMassTool = DerivationFramework__InvariantMassTool(name = "DRZmumuMassTool
SecondMassHypothesis = 105.66, SecondMassHypothesis = 105.66,
StoreGateEntryName = "DRZmumuMass") StoreGateEntryName = "DRZmumuMass")
ToolSvc += DRZmumuMassTool ToolSvc += DRZmumuMassTool
from DerivationFrameworkTools.DerivationFrameworkToolsConf import DerivationFramework__xAODStringSkimmingTool
dimuonMassSkimmingTool = DerivationFramework__xAODStringSkimmingTool(name = "DRAW_ZMUMU_DiMuonMass_SkimmingTool",
expression = dimuonMassString)
ToolSvc += dimuonMassSkimmingTool
# Tightening by requiring at least one good (i.e. preselected) muon and either a single-muon or dimuon trigger to have passed
from DerivationFrameworkMuons.MuonsCommon import *
goodMuonString = 'count((Muons.DFCommonGoodMuon) && (Muons.pt > 20*GeV)) >= 1'
goodMuonSkimmingTool = DerivationFramework__xAODStringSkimmingTool(name = "DRAW_ZMUMU_GoodMuon_SkimmingTool",
expression = goodMuonString)
ToolSvc += goodMuonSkimmingTool
periods = TriggerPeriod.future | TriggerPeriod.y2015 | TriggerPeriod.y2016 | TriggerPeriod.y2017
allUnprescaledTriggers = TriggerAPI.getLowestUnprescaledAnyPeriod(periods, TriggerType.mu)
print "DRAW_ZMUMU: will skim on an OR of the following muon triggers (list provided at run-time by the TriggerAPI):"
print allUnprescaledTriggers
from DerivationFrameworkTools.DerivationFrameworkToolsConf import DerivationFramework__TriggerSkimmingTool
triggerSkimmingTool = DerivationFramework__TriggerSkimmingTool(name = "DRAWZMUMUTriggerSkimmingTool",
TriggerListOR = allUnprescaledTriggers)
ToolSvc += triggerSkimmingTool
# Event selection tool # Event selection tool
from DerivationFrameworkTools.DerivationFrameworkToolsConf import DerivationFramework__FilterCombinationAND from DerivationFrameworkTools.DerivationFrameworkToolsConf import DerivationFramework__xAODStringSkimmingTool
DRAW_ZMUMU_SkimmingTool = DerivationFramework__FilterCombinationAND( name = "DRAW_ZMUMU_FinalFilter", DRAW_ZMUMU_SkimmingTool = DerivationFramework__xAODStringSkimmingTool(name = "DRAW_ZMUMU_SkimmingTool",
FilterList=[dimuonMassSkimmingTool, expression = draw_zmumu)
goodMuonSkimmingTool,
triggerSkimmingTool] )
ToolSvc += DRAW_ZMUMU_SkimmingTool ToolSvc += DRAW_ZMUMU_SkimmingTool
print DRAW_ZMUMU_SkimmingTool print DRAW_ZMUMU_SkimmingTool
......
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