Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Ligang Xia
athena
Commits
a05f32fc
Commit
a05f32fc
authored
Dec 05, 2022
by
Ligang Xia
Browse files
add jet track particle thinning in FTAG1
parent
3ad8bae1
Changes
1
Hide whitespace changes
Inline
Side-by-side
PhysicsAnalysis/DerivationFramework/DerivationFrameworkFlavourTag/python/FTAG1.py
View file @
a05f32fc
...
...
@@ -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
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment