ATLAS Offline Software
PhysDESDM_Hips.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
2 
3 
7 
8 
9 from DerivationFrameworkTools.DerivationFrameworkToolsConf import DerivationFramework__xAODStringSkimmingTool as skimtool
10 from DerivationFrameworkCore.DerivationFrameworkCoreConf import DerivationFramework__DerivationKernel as kernel
11 from LongLivedParticleDPDMaker.HipsFlags import primHIPsDESD
12 
13 # ##########################################################################################
14 # HIP trigger filter
15 # ##########################################################################################
16 
18  cutString=""
19  if flags.triggers.__len__() >=1:
20  cutString+=flags.triggers[0]
21  if flags.triggers.__len__() >1:
22  for trigger in flags.triggers[1:]:
23  cutString+=" || "+trigger
24  return cutString
25 
26 HipTriggerFilterTool = skimtool( name = "HipTriggerFilterTool",
27  expression = HipTriggerSelectionString(primHIPsDESD.HipsTriggerFilterExpression) )
28 
29 
30 ToolSvc += HipTriggerFilterTool
31 topSequence += kernel( "RPVLL_HipTriggerFilterKernel",
32  SkimmingTools = [HipTriggerFilterTool] )
33 
34 RPVLLfilterNames.extend(["RPVLL_HipTriggerFilterKernel"])
PhysDESDM_Hips.HipTriggerSelectionString
def HipTriggerSelectionString(flags)
Definition: PhysDESDM_Hips.py:17