12 """Configure the skimming tool"""
15 from DerivationFrameworkJetEtMiss
import TriggerLists
16 electronTriggers = TriggerLists.single_el_Trig(flags)
17 muonTriggers = TriggerLists.single_mu_Trig(flags)
18 photonTriggers = TriggerLists.single_photon_Trig(flags)
20 jetTriggers = TriggerLists.get_jetTrig(flags)
23 jetsofflinesel =
'(count( AntiKt10LCTopoJets.pt > 400.*GeV && abs(AntiKt10LCTopoJets.eta) < 2.5 ) >=1 || count( AntiKt10UFOCSSKJets.pt > 400.*GeV && abs(AntiKt10UFOCSSKJets.eta) < 2.5 ) >= 1)'
25 jetsofflinesel =
'(count( AntiKt10LCTopoJets.pt > 180.*GeV && abs(AntiKt10LCTopoJets.eta) < 2.5 ) >=1 || count( AntiKt10UFOCSSKJets.pt > 180.*GeV && abs(AntiKt10UFOCSSKJets.eta) < 2.5 ) >= 1)'
28 jetsel_lep =
'(count( AntiKt10LCTopoJets.pt > 150.*GeV && abs(AntiKt10LCTopoJets.eta) < 2.5 ) >=1 || count( AntiKt10UFOCSSKJets.pt > 150.*GeV && abs(AntiKt10UFOCSSKJets.eta) < 2.5 ) >= 1)'
29 elofflinesel = andstr.join([
'count((Electrons.pt > 20*GeV) && (Electrons.DFCommonElectronsLHLoose)) >= 1',jetsel_lep])
30 muofflinesel = andstr.join([
'count((Muons.pt > 20*GeV) && (Muons.DFCommonMuonPassPreselection)) >= 1',jetsel_lep])
31 gammaofflinesel = andstr.join([
'count(Photons.pt > 150*GeV) >= 1',jetsel_lep])
35 JETM6OfflineSkimmingTool_ele = CompFactory.DerivationFramework.xAODStringSkimmingTool( name =
"JETM6OfflineSkimmingTool_ele",
36 expression = elofflinesel,
38 JETM6OfflineSkimmingTool_mu = CompFactory.DerivationFramework.xAODStringSkimmingTool( name =
"JETM6OfflineSkimmingTool_mu",
39 expression = muofflinesel,
41 JETM6OfflineSkimmingTool_gamma = CompFactory.DerivationFramework.xAODStringSkimmingTool( name =
"JETM6OfflineSkimmingTool_gamma",
42 expression = gammaofflinesel,
44 JETM6OfflineSkimmingTool_jets = CompFactory.DerivationFramework.xAODStringSkimmingTool( name =
"JETM6OfflineSkimmingTool_jets",
45 expression = jetsofflinesel,
48 acc.addPublicTool(JETM6OfflineSkimmingTool_ele)
49 acc.addPublicTool(JETM6OfflineSkimmingTool_mu)
50 acc.addPublicTool(JETM6OfflineSkimmingTool_gamma)
51 acc.addPublicTool(JETM6OfflineSkimmingTool_jets)
53 if not flags.Input.isMC:
54 JETM6TriggerSkimmingTool_ele = CompFactory.DerivationFramework.TriggerSkimmingTool(name =
"JETM6TriggerSkimmingTool_ele", TriggerListOR = electronTriggers)
55 acc.addPublicTool(JETM6TriggerSkimmingTool_ele)
56 JETM6TriggerSkimmingTool_mu = CompFactory.DerivationFramework.TriggerSkimmingTool(name =
"JETM6TriggerSkimmingTool_mu", TriggerListOR = muonTriggers)
57 acc.addPublicTool(JETM6TriggerSkimmingTool_mu)
58 JETM6TriggerSkimmingTool_gamma = CompFactory.DerivationFramework.TriggerSkimmingTool(name =
"JETM6TriggerSkimmingTool_gamma", TriggerListOR = photonTriggers)
59 acc.addPublicTool(JETM6TriggerSkimmingTool_gamma)
60 JETM6TriggerSkimmingTool_jets = CompFactory.DerivationFramework.TriggerSkimmingTool(name =
"JETM6TriggerSkimmingTool_jets", TriggerListOR = jetTriggers)
61 acc.addPublicTool(JETM6TriggerSkimmingTool_jets)
64 JETM6SkimmingTool_ele = CompFactory.DerivationFramework.FilterCombinationAND(name=
"JETM6SkimmingTool_ele", FilterList=[JETM6OfflineSkimmingTool_ele, JETM6TriggerSkimmingTool_ele] )
65 JETM6SkimmingTool_mu = CompFactory.DerivationFramework.FilterCombinationAND(name=
"JETM6SkimmingTool_mu", FilterList=[JETM6OfflineSkimmingTool_mu, JETM6TriggerSkimmingTool_mu] )
66 JETM6SkimmingTool_gamma = CompFactory.DerivationFramework.FilterCombinationAND(name=
"JETM6SkimmingTool_gamma", FilterList=[JETM6OfflineSkimmingTool_gamma, JETM6TriggerSkimmingTool_gamma] )
67 JETM6SkimmingTool_jets = CompFactory.DerivationFramework.FilterCombinationAND(name=
"JETM6SkimmingTool_jets", FilterList=[JETM6OfflineSkimmingTool_jets, JETM6TriggerSkimmingTool_jets] )
69 acc.addPublicTool(JETM6SkimmingTool_ele)
70 acc.addPublicTool(JETM6SkimmingTool_mu)
71 acc.addPublicTool(JETM6SkimmingTool_gamma)
72 acc.addPublicTool(JETM6SkimmingTool_jets)
75 JETM6SkimmingTool = CompFactory.DerivationFramework.FilterCombinationOR(name=
"JETM6SkimmingTool",
76 FilterList=[JETM6SkimmingTool_ele, JETM6SkimmingTool_mu, JETM6SkimmingTool_gamma, JETM6SkimmingTool_jets])
77 acc.addPublicTool(JETM6SkimmingTool, primary =
True)
80 JETM6SkimmingTool = CompFactory.DerivationFramework.FilterCombinationOR(
81 name=
"JETM6SkimmingTool",
82 FilterList=[JETM6OfflineSkimmingTool_ele,JETM6OfflineSkimmingTool_mu,JETM6OfflineSkimmingTool_gamma,JETM6OfflineSkimmingTool_jets])
84 acc.addPublicTool(JETM6SkimmingTool, primary =
True)