Commit a05f32fc authored by Ligang Xia's avatar Ligang Xia
Browse files

add jet track particle thinning in FTAG1

parent 3ad8bae1
......@@ -23,7 +23,32 @@ def FTAG1KernelCfg(ConfigFlags, name='FTAG1Kernel', **kwargs):
# thinning tools
thinningTools = []
from DerivationFrameworkInDet.InDetToolsConfig import JetTrackParticleThinningCfg
#from DerivationFrameworkInDet.InDetToolsConfig import InDetTrackSelectionToolWrapperCfg
#DFCommonTrackSelection = acc.getPrimaryAndMerge(InDetTrackSelectionToolWrapperCfg(
# ConfigFlags,
# name = "DFCommonTrackSelectionLoose",
# ContainerName = "InDetTrackParticles",
# DecorationName = "DFJETM1Loose"))
#DFCommonTrackSelection.TrackSelectionTool.CutLevel = "Loose"
#acc.addEventAlgo(CompFactory.DerivationFramework.CommonAugmentation("JETM1CommonKernel", AugmentationTools = [DFCommonTrackSelection]))
#FTAG1_thinning_expression = "InDetTrackParticles.DFJETM1Loose && ( abs(InDetTrackParticles.d0) < 5.0*mm ) && ( abs(DFCommonInDetTrackZ0AtPV*sin(InDetTrackParticles.theta)) < 5.0*mm )"
FTAG1_thinning_expression = "( abs(InDetTrackParticles.d0) < 5.0*mm ) && ( abs(DFCommonInDetTrackZ0AtPV*sin(InDetTrackParticles.theta)) < 5.0*mm )"
FTAG1Akt4PFlowJetTPThinningTool = acc.getPrimaryAndMerge(JetTrackParticleThinningCfg(
ConfigFlags,
name = "FTAG1Akt4PFlowJetTPThinningTool",
StreamName = kwargs['StreamName'],
JetKey = "AntiKt4EMPFlowJets",
SelectionString = "",
#SelectionString = "AntiKt4EMPFlowJets.pt > 18*GeV",
TrackSelectionString = FTAG1_thinning_expression,
InDetTrackParticlesKey = "InDetTrackParticles"))
thinningTools = [
FTAG1Akt4PFlowJetTPThinningTool,
]
# Finally the kernel itself
DerivationKernel = CompFactory.DerivationFramework.DerivationKernel
acc.addEventAlgo(DerivationKernel(name, ThinningTools = thinningTools))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment