7 from DerivationFrameworkTools.DerivationFrameworkToolsConf
import DerivationFramework__xAODStringSkimmingTool
8 from DerivationFrameworkTools.DerivationFrameworkToolsConf
import DerivationFramework__TriggerSkimmingTool
9 from DerivationFrameworkCore.DerivationFrameworkCoreConf
import DerivationFramework__DerivationKernel
10 from DerivationFrameworkTools.DerivationFrameworkToolsConf
import DerivationFramework__FilterCombinationAND
14 if flags.triggerNames:
15 triggers =
list(
set(flags.triggerNames))
16 selectionString +=
'(' +
' || '.
join(triggers) +
')'
18 return selectionString
22 VHJetTriggerFilterTool = DerivationFramework__TriggerSkimmingTool( name =
"VHJetTriggerFilterTool",
23 TriggerListOR = primRPVLLDESDM.VHLowTrackJet_FilterFlags.triggerNames)
25 ToolSvc += VHJetTriggerFilterTool
28 from LongLivedParticleDPDMaker.LongLivedParticleDPDMakerConf
import DerivationFramework__VHLowTrackJetFilterTool
30 VHLowTrackJetFilterTool=DerivationFramework__VHLowTrackJetFilterTool(name=
"VHLowTrackJetFilterTool",
31 Debug =primRPVLLDESDM.VHLowTrackJet_FilterFlags.debug,
32 JetPtCut =primRPVLLDESDM.VHLowTrackJet_FilterFlags.cutJet ,
33 JetEtaCut =primRPVLLDESDM.VHLowTrackJet_FilterFlags.cutJetEta,
34 NJetsRequired =primRPVLLDESDM.VHLowTrackJet_FilterFlags.nJets ,
35 ElectronPtCut =primRPVLLDESDM.VHLowTrackJet_FilterFlags.cutEl ,
36 MuonPtCut =primRPVLLDESDM.VHLowTrackJet_FilterFlags.cutMu )
38 ToolSvc += VHLowTrackJetFilterTool
40 VHLTrkJetFilterTool=DerivationFramework__FilterCombinationAND(name=
"VHLTrkJetFilterTool",
41 FilterList=[VHJetTriggerFilterTool,VHLowTrackJetFilterTool],
44 ToolSvc += VHLTrkJetFilterTool
46 topSequence += DerivationFramework__DerivationKernel(
"RPVLL_VHLowTrackJetFilterKernel",
47 SkimmingTools = [VHLTrkJetFilterTool] )
49 RPVLLfilterNames.extend([
"RPVLL_VHLowTrackJetFilterKernel"])