Commit 75b2ab4e authored by Ligang Xia's avatar Ligang Xia
Browse files

update jet track thinning

parent 01e9e622
......@@ -142,9 +142,9 @@ ToolSvc += FTAG2StringSkimmingTool
printfunc (FTAG2StringSkimmingTool)
SeqPHYS += CfgMgr.DerivationFramework__DerivationKernel("FTAG2SkimKernel",
SkimmingTools = [FTAG2StringSkimmingTool],
)
#SeqPHYS += CfgMgr.DerivationFramework__DerivationKernel("FTAG2SkimKernel",
# SkimmingTools = [FTAG2StringSkimmingTool],
# )
#====================================================================
......@@ -161,8 +161,8 @@ PHYSTrackParticleThinningTool = DerivationFramework__TrackParticleThinning(name
SelectionString = PHYS_thinning_expression,
InDetTrackParticlesKey = "InDetTrackParticles")
ToolSvc += PHYSTrackParticleThinningTool
thinningTools.append(PHYSTrackParticleThinningTool)
#ToolSvc += PHYSTrackParticleThinningTool
#thinningTools.append(PHYSTrackParticleThinningTool)
# Include inner detector tracks associated with muons
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__MuonTrackParticleThinning
......@@ -171,8 +171,8 @@ PHYSMuonTPThinningTool = DerivationFramework__MuonTrackParticleThinning(name
MuonKey = "Muons",
InDetTrackParticlesKey = "InDetTrackParticles")
ToolSvc += PHYSMuonTPThinningTool
thinningTools.append(PHYSMuonTPThinningTool)
#ToolSvc += PHYSMuonTPThinningTool
#thinningTools.append(PHYSMuonTPThinningTool)
# TauJets thinning
tau_thinning_expression = "(TauJets.ptFinalCalib >= 13.*GeV) && (TauJets.nTracks>=1) && (TauJets.nTracks<=3) && (TauJets.RNNJetScoreSigTrans>0.01)"
......@@ -183,8 +183,8 @@ PHYSTauJetsThinningTool = DerivationFramework__GenericObjectThinning(name
StreamName = PHYSStream.Name,
ContainerName = "TauJets",
SelectionString = tau_thinning_expression)
ToolSvc += PHYSTauJetsThinningTool
thinningTools.append(PHYSTauJetsThinningTool)
#ToolSvc += PHYSTauJetsThinningTool
#thinningTools.append(PHYSTauJetsThinningTool)
# Only keep tau tracks (and associated ID tracks) classified as charged tracks
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__TauTrackParticleThinning
......@@ -195,8 +195,8 @@ PHYSTauTPThinningTool = DerivationFramework__TauTrackParticleThinning(name
SelectionString = tau_thinning_expression,
DoTauTracksThinning = True,
TauTracksKey = "TauTracks")
ToolSvc += PHYSTauTPThinningTool
thinningTools.append(PHYSTauTPThinningTool)
#ToolSvc += PHYSTauTPThinningTool
#thinningTools.append(PHYSTauTPThinningTool)
# ID tracks associated with high-pt di-tau
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__DiTauTrackParticleThinning
......@@ -204,8 +204,8 @@ PHYSDiTauTPThinningTool = DerivationFramework__DiTauTrackParticleThinning(name
StreamName = PHYSStream.Name,
DiTauKey = "DiTauJets",
InDetTrackParticlesKey = "InDetTrackParticles")
ToolSvc += PHYSDiTauTPThinningTool
thinningTools.append(PHYSDiTauTPThinningTool)
#ToolSvc += PHYSDiTauTPThinningTool
#thinningTools.append(PHYSDiTauTPThinningTool)
#====================================================================
# JET/MET
......@@ -236,6 +236,26 @@ addQGTaggerTool(jetalg="AntiKt4EMPFlow",sequence=SeqPHYS,algname="QGTaggerToolPF
# fJVT
getPFlowfJVT(jetalg='AntiKt4EMPFlow',sequence=SeqPHYS, algname='PHYSJetForwardPFlowJvtToolAlg')
# jet track thinning
track_particle_thinning_jetpt_cut = ""
if DerivationFrameworkIsMonteCarlo:
track_particle_thinning_jetpt_cut = "(AntiKt4EMPFlowJets.DFCommonJets_Calib_pt > 15*GeV)"
else:
track_particle_thinning_jetpt_cut = "(AntiKt4EMPFlowJets.DFCommonJets_Calib_pt > 20*GeV)"
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__JetTrackParticleThinning
TOPQJetTPThinningTool = DerivationFramework__JetTrackParticleThinning(
name = "TOPQJetTPThinningTool",
StreamName = PHYSStream.Name,
JetKey = "AntiKt4EMPFlowJets",
InDetTrackParticlesKey = "InDetTrackParticles",
SelectionString = track_particle_thinning_jetpt_cut,
)
ToolSvc += TOPQJetTPThinningTool
thinningTools.append(TOPQJetTPThinningTool)
#====================================================================
# EGAMMA
#====================================================================
......@@ -268,8 +288,8 @@ PHYSDiTauLowPtThinningTool = DerivationFramework__GenericObjectThinning(name
StreamName = PHYSStream.Name,
ContainerName = "DiTauJetsLowPt",
SelectionString = "DiTauJetsLowPt.nSubjets > 1")
ToolSvc += PHYSDiTauLowPtThinningTool
thinningTools.append(PHYSDiTauLowPtThinningTool)
#ToolSvc += PHYSDiTauLowPtThinningTool
#thinningTools.append(PHYSDiTauLowPtThinningTool)
# ID tracks associated with low-pt ditau
PHYSDiTauLowPtTPThinningTool = DerivationFramework__DiTauTrackParticleThinning(name = "PHYSDiTauLowPtTPThinningTool",
......@@ -277,8 +297,8 @@ PHYSDiTauLowPtTPThinningTool = DerivationFramework__DiTauTrackParticleThinning(n
DiTauKey = "DiTauJetsLowPt",
InDetTrackParticlesKey = "InDetTrackParticles",
SelectionString = "DiTauJetsLowPt.nSubjets > 1")
ToolSvc += PHYSDiTauLowPtTPThinningTool
thinningTools.append(PHYSDiTauLowPtTPThinningTool)
#ToolSvc += PHYSDiTauLowPtTPThinningTool
#thinningTools.append(PHYSDiTauLowPtTPThinningTool)
#====================================================================
......@@ -320,7 +340,7 @@ PHYSSlimmingHelper.SmartCollections = ["Electrons",
#"PrimaryVertices",
#"InDetTrackParticles",
#"AntiKt4EMTopoJets",
#"AntiKt4EMPFlowJets",
"AntiKt4EMPFlowJets",
#"BTagging_AntiKt4EMPFlow",
#"MET_Baseline_AntiKt4EMTopo",
"MET_Baseline_AntiKt4EMPFlow",
......
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