13 """Configure the skimming tool"""
16 from DerivationFrameworkJetEtMiss
import TriggerLists
17 electronTriggers = TriggerLists.single_el_Trig(flags)
18 muonTriggers = TriggerLists.single_mu_Trig(flags)
19 photonTriggers = TriggerLists.single_photon_Trig(flags)
21 jetTriggers = TriggerLists.get_jetTrig(flags)
24 jetsofflinesel =
'(count( AntiKt10LCTopoJets.pt > 400.*GeV && abs(AntiKt10LCTopoJets.eta) < 2.5 ) >=1 || count( AntiKt10UFOCSSKJets.pt > 400.*GeV && abs(AntiKt10UFOCSSKJets.eta) < 2.5 ) >= 1)'
26 jetsofflinesel =
'(count( AntiKt10LCTopoJets.pt > 180.*GeV && abs(AntiKt10LCTopoJets.eta) < 2.5 ) >=1 || count( AntiKt10UFOCSSKJets.pt > 180.*GeV && abs(AntiKt10UFOCSSKJets.eta) < 2.5 ) >= 1)'
29 jetsel_lep =
'(count( AntiKt10LCTopoJets.pt > 150.*GeV && abs(AntiKt10LCTopoJets.eta) < 2.5 ) >=1 || count( AntiKt10UFOCSSKJets.pt > 150.*GeV && abs(AntiKt10UFOCSSKJets.eta) < 2.5 ) >= 1)'
30 elofflinesel = andstr.join([
'count((Electrons.pt > 20*GeV) && (Electrons.DFCommonElectronsLHLoose)) >= 1',jetsel_lep])
31 muofflinesel = andstr.join([
'count((Muons.pt > 20*GeV) && (Muons.DFCommonMuonPassPreselection)) >= 1',jetsel_lep])
32 gammaofflinesel = andstr.join([
'count(Photons.pt > 150*GeV) >= 1',jetsel_lep])
36 JETM6OfflineSkimmingTool_ele = CompFactory.DerivationFramework.xAODStringSkimmingTool( name =
"JETM6OfflineSkimmingTool_ele",
37 expression = elofflinesel,
39 JETM6OfflineSkimmingTool_mu = CompFactory.DerivationFramework.xAODStringSkimmingTool( name =
"JETM6OfflineSkimmingTool_mu",
40 expression = muofflinesel,
42 JETM6OfflineSkimmingTool_gamma = CompFactory.DerivationFramework.xAODStringSkimmingTool( name =
"JETM6OfflineSkimmingTool_gamma",
43 expression = gammaofflinesel,
45 JETM6OfflineSkimmingTool_jets = CompFactory.DerivationFramework.xAODStringSkimmingTool( name =
"JETM6OfflineSkimmingTool_jets",
46 expression = jetsofflinesel,
49 acc.addPublicTool(JETM6OfflineSkimmingTool_ele)
50 acc.addPublicTool(JETM6OfflineSkimmingTool_mu)
51 acc.addPublicTool(JETM6OfflineSkimmingTool_gamma)
52 acc.addPublicTool(JETM6OfflineSkimmingTool_jets)
54 if not flags.Input.isMC:
55 JETM6TriggerSkimmingTool_ele = CompFactory.DerivationFramework.TriggerSkimmingTool(name =
"JETM6TriggerSkimmingTool_ele", TriggerListOR = electronTriggers)
56 acc.addPublicTool(JETM6TriggerSkimmingTool_ele)
57 JETM6TriggerSkimmingTool_mu = CompFactory.DerivationFramework.TriggerSkimmingTool(name =
"JETM6TriggerSkimmingTool_mu", TriggerListOR = muonTriggers)
58 acc.addPublicTool(JETM6TriggerSkimmingTool_mu)
59 JETM6TriggerSkimmingTool_gamma = CompFactory.DerivationFramework.TriggerSkimmingTool(name =
"JETM6TriggerSkimmingTool_gamma", TriggerListOR = photonTriggers)
60 acc.addPublicTool(JETM6TriggerSkimmingTool_gamma)
61 JETM6TriggerSkimmingTool_jets = CompFactory.DerivationFramework.TriggerSkimmingTool(name =
"JETM6TriggerSkimmingTool_jets", TriggerListOR = jetTriggers)
62 acc.addPublicTool(JETM6TriggerSkimmingTool_jets)
65 JETM6SkimmingTool_ele = CompFactory.DerivationFramework.FilterCombinationAND(name=
"JETM6SkimmingTool_ele", FilterList=[JETM6OfflineSkimmingTool_ele, JETM6TriggerSkimmingTool_ele] )
66 JETM6SkimmingTool_mu = CompFactory.DerivationFramework.FilterCombinationAND(name=
"JETM6SkimmingTool_mu", FilterList=[JETM6OfflineSkimmingTool_mu, JETM6TriggerSkimmingTool_mu] )
67 JETM6SkimmingTool_gamma = CompFactory.DerivationFramework.FilterCombinationAND(name=
"JETM6SkimmingTool_gamma", FilterList=[JETM6OfflineSkimmingTool_gamma, JETM6TriggerSkimmingTool_gamma] )
68 JETM6SkimmingTool_jets = CompFactory.DerivationFramework.FilterCombinationAND(name=
"JETM6SkimmingTool_jets", FilterList=[JETM6OfflineSkimmingTool_jets, JETM6TriggerSkimmingTool_jets] )
70 acc.addPublicTool(JETM6SkimmingTool_ele)
71 acc.addPublicTool(JETM6SkimmingTool_mu)
72 acc.addPublicTool(JETM6SkimmingTool_gamma)
73 acc.addPublicTool(JETM6SkimmingTool_jets)
76 JETM6SkimmingTool = CompFactory.DerivationFramework.FilterCombinationOR(name=
"JETM6SkimmingTool",
77 FilterList=[JETM6SkimmingTool_ele, JETM6SkimmingTool_mu, JETM6SkimmingTool_gamma, JETM6SkimmingTool_jets])
78 acc.addPublicTool(JETM6SkimmingTool, primary =
True)
81 JETM6SkimmingTool = CompFactory.DerivationFramework.FilterCombinationOR(
82 name=
"JETM6SkimmingTool",
83 FilterList=[JETM6OfflineSkimmingTool_ele,JETM6OfflineSkimmingTool_mu,JETM6OfflineSkimmingTool_gamma,JETM6OfflineSkimmingTool_jets])
85 acc.addPublicTool(JETM6SkimmingTool, primary =
True)