Commit 6190e6af authored by scott snyder's avatar scott snyder Committed by scott snyder
Browse files

DerivationFrameworkHiggs: Update more thinning tools to use MT thinning.

Update JetTrackParticleThinning to use MT thinning.

In some cases, JetTrackParticleThinning was used with an AND following
a TrackParticleThinning.  This doesn't work directly with the
MT thinning scheme.  Instead, extend JetTrackParticleThinning to take
a selection string for the track particles as well, and move the
selection there.
parent 899aae7d
......@@ -29,7 +29,7 @@ def setup(HIGG4DxName, streamName, HIGG4DxThinningSvc, ToolSvc):
#jets and tracks
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__JetTrackParticleThinning
HIGG4DxJetTPThinningTool = DerivationFramework__JetTrackParticleThinning( name = HIGG4DxName+"JetTPThinningTool",
ThinningService = HIGG4DxThinningSvc,
StreamName = streamName,
JetKey = "AntiKt4EMTopoJets",
SelectionString = "AntiKt4EMTopoJets.pt > 18*GeV",
InDetTrackParticlesKey = "InDetTrackParticles",
......@@ -38,7 +38,7 @@ def setup(HIGG4DxName, streamName, HIGG4DxThinningSvc, ToolSvc):
thinningTools.append(HIGG4DxJetTPThinningTool)
HIGG4DxJetLCTPThinningTool = DerivationFramework__JetTrackParticleThinning( name = HIGG4DxName+"JetLCTPThinningTool",
ThinningService = HIGG4DxThinningSvc,
StreamName = streamName,
JetKey = "AntiKt4LCTopoJets",
SelectionString = "AntiKt4LCTopoJets.pt > 18*GeV",
InDetTrackParticlesKey = "InDetTrackParticles",
......@@ -50,7 +50,7 @@ def setup(HIGG4DxName, streamName, HIGG4DxThinningSvc, ToolSvc):
if HIGG4DxName in ['HIGG4D2', 'HIGG4D3']:
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__JetTrackParticleThinning
HIGG4DxJetTrackThinningTool1 = DerivationFramework__JetTrackParticleThinning( name = HIGG4DxName+"JetTrackThinningTool1",
ThinningService = HIGG4DxThinningSvc,
StreamName = streamName,
JetKey = "AntiKt10LCTopoTrimmedPtFrac5SmallR20Jets",
SelectionString = "AntiKt10LCTopoTrimmedPtFrac5SmallR20Jets.pt > 150*GeV",
InDetTrackParticlesKey = "InDetTrackParticles",
......@@ -61,7 +61,7 @@ def setup(HIGG4DxName, streamName, HIGG4DxThinningSvc, ToolSvc):
if HIGG4DxName in ['HIGG4D2', 'HIGG4D3']:
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__JetTrackParticleThinning
HIGG4DxJetTrackThinningTool2 = DerivationFramework__JetTrackParticleThinning( name = HIGG4DxName+"JetTrackThinningTool2",
ThinningService = HIGG4DxThinningSvc,
StreamName = streamName,
JetKey = "AntiKt2PV0TrackJets",
SelectionString = "AntiKt2PV0TrackJets.pt > 6*GeV",
InDetTrackParticlesKey = "InDetTrackParticles",
......
......@@ -82,32 +82,23 @@ print SkimmingToolHIGG1D1
thinningTools=[]
# MET/Jet tracks
thinning_expression = "(InDetTrackParticles.pt > 0.5*GeV) && (InDetTrackParticles.numberOfPixelHits > 0) && (InDetTrackParticles.numberOfSCTHits > 5) && (abs(DFCommonInDetTrackZ0AtPV) < 1.5)"
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__TrackParticleThinning
HIGG1D1MetTPThinningTool = DerivationFramework__TrackParticleThinning( name = "HIGG1D1MetTPThinningTool",
ThinningService = "HIGG1D1ThinningSvc",
SelectionString = thinning_expression,
InDetTrackParticlesKey = "InDetTrackParticles",
ApplyAnd = True)
ToolSvc += HIGG1D1MetTPThinningTool
print HIGG1D1MetTPThinningTool
#thinningTools.append(HIGG1D1MetTPThinningTool)
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__JetTrackParticleThinning
HIGG1D1JetLCTPThinningTool = DerivationFramework__JetTrackParticleThinning( name = "HIGG1D1JetLCTPThinningTool",
ThinningService = "HIGG1D1ThinningSvc",
StreamName = streamName,
JetKey = "AntiKt4LCTopoJets",
InDetTrackParticlesKey = "InDetTrackParticles",
ApplyAnd = True)
TrackSelectionString = thinning_expression)
ToolSvc += HIGG1D1JetLCTPThinningTool
print HIGG1D1JetLCTPThinningTool
#thinningTools.append(HIGG1D1JetLCTPThinningTool)
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__JetTrackParticleThinning
HIGG1D1JetEMTPThinningTool = DerivationFramework__JetTrackParticleThinning( name = "HIGG1D1JetEMTPThinningTool",
ThinningService = "HIGG1D1ThinningSvc",
StreamName = streamName,
JetKey = "AntiKt4EMTopoJets",
InDetTrackParticlesKey = "InDetTrackParticles",
ApplyAnd = True)
TrackSelectionString = thinning_expression)
ToolSvc += HIGG1D1JetEMTPThinningTool
print HIGG1D1JetEMTPThinningTool
#thinningTools.append(HIGG1D1JetEMTPThinningTool)
......@@ -143,8 +134,9 @@ print HIGG1D1PhotonTPThinningTool
#thinningTools.append(HIGG1D1PhotonTPThinningTool)
# Tracks themselves
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__TrackParticleThinning
HIGG1D1TPThinningTool = DerivationFramework__TrackParticleThinning( name = "HIGG1D1TPThinningTool",
ThinningService = "HIGG1D1ThinningSvc",
StreamName = streamName,
SelectionString = "abs( DFCommonInDetTrackZ0AtPV * sin(InDetTrackParticles.theta)) < 3.0",
InDetTrackParticlesKey = "InDetTrackParticles")
ToolSvc += HIGG1D1TPThinningTool
......
......@@ -101,32 +101,23 @@ print "HIGG1D2 skimming tool:", HIGG1D2SkimmingTool
thinningTools=[]
# MET/Jet tracks
thinning_expression = "(InDetTrackParticles.pt > 0.5*GeV) && (InDetTrackParticles.numberOfPixelHits > 0) && (InDetTrackParticles.numberOfSCTHits > 5) && (abs(DFCommonInDetTrackZ0AtPV) < 1.5)"
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__TrackParticleThinning
HIGG1D2MetTPThinningTool = DerivationFramework__TrackParticleThinning( name = "HIGG1D2MetTPThinningTool",
ThinningService = "HIGG1D2ThinningSvc",
SelectionString = thinning_expression,
InDetTrackParticlesKey = "InDetTrackParticles",
ApplyAnd = True)
ToolSvc += HIGG1D2MetTPThinningTool
print HIGG1D2MetTPThinningTool
#thinningTools.append(HIGG1D2MetTPThinningTool)
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__JetTrackParticleThinning
HIGG1D2JetLCTPThinningTool = DerivationFramework__JetTrackParticleThinning( name = "HIGG1D2JetLCTPThinningTool",
ThinningService = "HIGG1D2ThinningSvc",
StreamName = streamName,
JetKey = "AntiKt4LCTopoJets",
InDetTrackParticlesKey = "InDetTrackParticles",
ApplyAnd = True)
TrackSelectionString = thinning_expression)
ToolSvc += HIGG1D2JetLCTPThinningTool
print HIGG1D2JetLCTPThinningTool
#thinningTools.append(HIGG1D2JetLCTPThinningTool)
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__JetTrackParticleThinning
HIGG1D2JetEMTPThinningTool = DerivationFramework__JetTrackParticleThinning( name = "HIGG1D2JetEMTPThinningTool",
ThinningService = "HIGG1D2ThinningSvc",
StreamName = streamName,
JetKey = "AntiKt4EMTopoJets",
InDetTrackParticlesKey = "InDetTrackParticles",
ApplyAnd = True)
TrackSelectionString = thinning_expression)
ToolSvc += HIGG1D2JetEMTPThinningTool
print HIGG1D2JetEMTPThinningTool
#thinningTools.append(HIGG1D2JetEMTPThinningTool)
......@@ -162,8 +153,9 @@ print HIGG1D2PhotonTPThinningTool
#thinningTools.append(HIGG1D2PhotonTPThinningTool)
# Tracks themselves
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__TrackParticleThinning
HIGG1D2TPThinningTool = DerivationFramework__TrackParticleThinning( name = "HIGG1D2TPThinningTool",
ThinningService = "HIGG1D2ThinningSvc",
StreamName = streamName,
SelectionString = "abs( DFCommonInDetTrackZ0AtPV * sin(InDetTrackParticles.theta)) < 3.0",
InDetTrackParticlesKey = "InDetTrackParticles")
ToolSvc += HIGG1D2TPThinningTool
......
......@@ -36,21 +36,13 @@ HIGG2D1ThinningHelper.AppendToStream(HIGG2D1Stream)
# MET/Jet tracks
thinning_expression = "(InDetTrackParticles.pt > 0.5*GeV) && (InDetTrackParticles.numberOfPixelHits > 0) && (InDetTrackParticles.numberOfSCTHits > 5) && (abs(DFCommonInDetTrackZ0AtPV) < 1.5)"
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__TrackParticleThinning
HIGG2D1TPThinningTool = DerivationFramework__TrackParticleThinning(name = "HIGG2D1TPThinningTool",
ThinningService = HIGG2D1ThinningHelper.ThinningSvc(),
SelectionString = thinning_expression,
InDetTrackParticlesKey = "InDetTrackParticles",
ApplyAnd = True)
ToolSvc += HIGG2D1TPThinningTool
thinningTools.append(HIGG2D1TPThinningTool)
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__JetTrackParticleThinning
HIGG2D1JetTPThinningTool = DerivationFramework__JetTrackParticleThinning(name = "HIGG2D1JetTPThinningTool",
ThinningService = HIGG2D1ThinningHelper.ThinningSvc(),
StreamName = streamName,
JetKey = "AntiKt4LCTopoJets",
InDetTrackParticlesKey = "InDetTrackParticles",
ApplyAnd = True)
TrackSelectionString = thinning_expression)
ToolSvc += HIGG2D1JetTPThinningTool
thinningTools.append(HIGG2D1JetTPThinningTool)
......
......@@ -36,21 +36,13 @@ HIGG2D2ThinningHelper.AppendToStream(HIGG2D2Stream)
# MET/Jet tracks
thinning_expression = "(InDetTrackParticles.pt > 0.5*GeV) && (InDetTrackParticles.numberOfPixelHits > 0) && (InDetTrackParticles.numberOfSCTHits > 5) && (abs(DFCommonInDetTrackZ0AtPV) < 1.5)"
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__TrackParticleThinning
HIGG2D2TPThinningTool = DerivationFramework__TrackParticleThinning(name = "HIGG2D2TPThinningTool",
ThinningService = HIGG2D2ThinningHelper.ThinningSvc(),
SelectionString = thinning_expression,
InDetTrackParticlesKey = "InDetTrackParticles",
ApplyAnd = True)
ToolSvc += HIGG2D2TPThinningTool
thinningTools.append(HIGG2D2TPThinningTool)
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__JetTrackParticleThinning
HIGG2D2JetTPThinningTool = DerivationFramework__JetTrackParticleThinning(name = "HIGG2D2JetTPThinningTool",
ThinningService = HIGG2D2ThinningHelper.ThinningSvc(),
StreamName = streamName,
JetKey = "AntiKt4LCTopoJets",
InDetTrackParticlesKey = "InDetTrackParticles",
ApplyAnd = True)
TrackSelectionString = thinning_expression)
ToolSvc += HIGG2D2JetTPThinningTool
thinningTools.append(HIGG2D2JetTPThinningTool)
......
......@@ -36,21 +36,13 @@ HIGG2D3ThinningHelper.AppendToStream(HIGG2D3Stream)
# MET/Jet tracks
thinning_expression = "(InDetTrackParticles.pt > 0.5*GeV) && (InDetTrackParticles.numberOfPixelHits > 0) && (InDetTrackParticles.numberOfSCTHits > 5) && (abs(DFCommonInDetTrackZ0AtPV) < 1.5)"
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__TrackParticleThinning
HIGG2D3TPThinningTool = DerivationFramework__TrackParticleThinning(name = "HIGG2D3TPThinningTool",
ThinningService = HIGG2D3ThinningHelper.ThinningSvc(),
SelectionString = thinning_expression,
InDetTrackParticlesKey = "InDetTrackParticles",
ApplyAnd = True)
ToolSvc += HIGG2D3TPThinningTool
thinningTools.append(HIGG2D3TPThinningTool)
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__JetTrackParticleThinning
HIGG2D3JetTPThinningTool = DerivationFramework__JetTrackParticleThinning(name = "HIGG2D3JetTPThinningTool",
ThinningService = HIGG2D3ThinningHelper.ThinningSvc(),
StreamName = streamName,
JetKey = "AntiKt4LCTopoJets",
InDetTrackParticlesKey = "InDetTrackParticles",
ApplyAnd = True)
TrackSelectionString = thinning_expression)
ToolSvc += HIGG2D3JetTPThinningTool
thinningTools.append(HIGG2D3JetTPThinningTool)
......
......@@ -38,7 +38,7 @@ HIGG2D4ThinningHelper.AppendToStream(HIGG2D4Stream)
# thinning_expression = "(InDetTrackParticles.pt > 0.5*GeV) && (InDetTrackParticles.numberOfPixelHits > 0) && (InDetTrackParticles.numberOfSCTHits > 5) && (abs(DFCommonInDetTrackZ0AtPV) < 1.5)"
# from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__TrackParticleThinning
# HIGG2D4TPThinningTool = DerivationFramework__TrackParticleThinning(name = "HIGG2D4TPThinningTool",
# ThinningService = HIGG2D4ThinningHelper.ThinningSvc(),
# StreamName = streamName,
# SelectionString = thinning_expression,
# InDetTrackParticlesKey = "InDetTrackParticles",
# ApplyAnd = True)
......@@ -48,14 +48,14 @@ HIGG2D4ThinningHelper.AppendToStream(HIGG2D4Stream)
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__JetTrackParticleThinning
HIGG2D4JetTPThinningTool = DerivationFramework__JetTrackParticleThinning(name = "HIGG2D4JetTPThinningTool",
ThinningService = HIGG2D4ThinningHelper.ThinningSvc(),
StreamName = streamName,
JetKey = "AntiKt4LCTopoJets",
InDetTrackParticlesKey = "InDetTrackParticles")
ToolSvc += HIGG2D4JetTPThinningTool
thinningTools.append(HIGG2D4JetTPThinningTool)
HIGG2D4JetTPThinningTool2 = DerivationFramework__JetTrackParticleThinning(name = "HIGG2D4JetTPThinningTool2",
ThinningService = HIGG2D4ThinningHelper.ThinningSvc(),
StreamName = streamName,
JetKey = "AntiKt4EMTopoJets",
InDetTrackParticlesKey = "InDetTrackParticles")
ToolSvc += HIGG2D4JetTPThinningTool2
......
......@@ -194,21 +194,13 @@ HIGG2D5ThinningHelper.AppendToStream(HIGG2D5Stream)
# MET/Jet tracks
thinning_expression = "(InDetTrackParticles.pt > 0.5*GeV) && (InDetTrackParticles.numberOfPixelHits > 0) && (InDetTrackParticles.numberOfSCTHits > 5) && (abs(DFCommonInDetTrackZ0AtPV) < 1.5)"
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__TrackParticleThinning
HIGG2D5TPThinningTool = DerivationFramework__TrackParticleThinning(name = "HIGG2D5TPThinningTool",
ThinningService = HIGG2D5ThinningHelper.ThinningSvc(),
SelectionString = thinning_expression,
InDetTrackParticlesKey = "InDetTrackParticles",
ApplyAnd = True)
ToolSvc += HIGG2D5TPThinningTool
thinningTools.append(HIGG2D5TPThinningTool)
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__JetTrackParticleThinning
HIGG2D5JetTPThinningTool = DerivationFramework__JetTrackParticleThinning(name = "HIGG2D5JetTPThinningTool",
ThinningService = HIGG2D5ThinningHelper.ThinningSvc(),
StreamName = streamName,
JetKey = "AntiKt4LCTopoJets",
InDetTrackParticlesKey = "InDetTrackParticles",
ApplyAnd = True)
TrackSelectionString = thinning_expression)
ToolSvc += HIGG2D5JetTPThinningTool
thinningTools.append(HIGG2D5JetTPThinningTool)
......
......@@ -35,21 +35,13 @@ thinningTools=[]
# MET/Jet tracks
thinning_expression = "(InDetTrackParticles.pt > 0.5*GeV) && (InDetTrackParticles.numberOfPixelHits > 0) && (InDetTrackParticles.numberOfSCTHits > 5) && (abs(DFCommonInDetTrackZ0AtPV) < 1.5)"
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__TrackParticleThinning
HIGG3D1MetTPThinningTool = DerivationFramework__TrackParticleThinning(name = "HIGG3D1MetTPThinningTool",
ThinningService = HIGG3D1ThinningHelper.ThinningSvc(),
SelectionString = thinning_expression,
InDetTrackParticlesKey = "InDetTrackParticles",
ApplyAnd = True)
ToolSvc += HIGG3D1MetTPThinningTool
thinningTools.append(HIGG3D1MetTPThinningTool)
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__JetTrackParticleThinning
HIGG3D1JetTPThinningTool = DerivationFramework__JetTrackParticleThinning( name = "HIGG3D1JetTPThinningTool",
ThinningService = HIGG3D1ThinningHelper.ThinningSvc(),
StreamName = streamName,
JetKey = "AntiKt4EMTopoJets",
InDetTrackParticlesKey = "InDetTrackParticles",
ApplyAnd = True)
TrackSelectionString = thinning_expression)
ToolSvc += HIGG3D1JetTPThinningTool
thinningTools.append(HIGG3D1JetTPThinningTool)
......@@ -73,6 +65,7 @@ ToolSvc += HIGG3D1ElectronTPThinningTool
thinningTools.append(HIGG3D1ElectronTPThinningTool)
# Tracks themselves
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__TrackParticleThinning
HIGG3D1TPThinningTool = DerivationFramework__TrackParticleThinning(name = "HIGG3D1TPThinningTool",
ThinningService = HIGG3D1ThinningHelper.ThinningSvc(),
SelectionString = "abs( DFCommonInDetTrackZ0AtPV * sin(InDetTrackParticles.theta)) < 3.0",
......
......@@ -98,10 +98,9 @@ thinningTools=[]
# MET/Jet tracks
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__JetTrackParticleThinning
HIGG3D3JetTPThinningTool = DerivationFramework__JetTrackParticleThinning( name = "HIGG3D3JetTPThinningTool",
ThinningService = HIGG3D3ThinningHelper.ThinningSvc(),
StreamName = streamName,
JetKey = "AntiKt4EMTopoJets",
InDetTrackParticlesKey = "InDetTrackParticles",
ApplyAnd = True)
InDetTrackParticlesKey = "InDetTrackParticles")
ToolSvc += HIGG3D3JetTPThinningTool
thinningTools.append(HIGG3D3JetTPThinningTool)
......
......@@ -73,7 +73,7 @@ if globalflags.DataSource()=='geant4':
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__JetTrackParticleThinning
HIGG5D1JetTPThinningTool = DerivationFramework__JetTrackParticleThinning( name = "HIGG5D1JetTPThinningTool",
ThinningService = HIGG5D1ThinningHelper.ThinningSvc(),
StreamName = streamName,
JetKey = "AntiKt4EMTopoJets",
InDetTrackParticlesKey = "InDetTrackParticles")
ToolSvc += HIGG5D1JetTPThinningTool
......
......@@ -73,7 +73,7 @@ if globalflags.DataSource()=='geant4':
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__JetTrackParticleThinning
HIGG5D2JetTPThinningTool = DerivationFramework__JetTrackParticleThinning( name = "HIGG5D2JetTPThinningTool",
ThinningService = HIGG5D2ThinningHelper.ThinningSvc(),
StreamName = streamName,
JetKey = "AntiKt4EMTopoJets",
InDetTrackParticlesKey = "InDetTrackParticles")
ToolSvc += HIGG5D2JetTPThinningTool
......
......@@ -62,10 +62,9 @@ if (is_MC) :
# MET/Jet tracks
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__JetTrackParticleThinning
HIGG5D3JetTPThinningTool = DerivationFramework__JetTrackParticleThinning( name = "HIGG5D3JetTPThinningTool",
ThinningService = HIGG5D3ThinningHelper.ThinningSvc(),
StreamName = streamName,
JetKey = "AntiKt4EMTopoJets",
InDetTrackParticlesKey = "InDetTrackParticles",
ApplyAnd = True)
InDetTrackParticlesKey = "InDetTrackParticles")
ToolSvc += HIGG5D3JetTPThinningTool
thinningTools.append(HIGG5D3JetTPThinningTool)
......
......@@ -150,25 +150,16 @@ thinningTools=[]
# GenericTrackParticleThinning
#====================================================================
thinning_expression = "(InDetTrackParticles.pt > 0.5*GeV) && (InDetTrackParticles.numberOfPixelHits > 0) && (InDetTrackParticles.numberOfSCTHits > 5) && (abs(DFCommonInDetTrackZ0AtPV) < 1.5)"
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__TrackParticleThinning
HIGG6D1GenTPThinningTool = DerivationFramework__TrackParticleThinning(name = "HIGG6D1GenTPThinningTool",
ThinningService = "HIGG6D1ThinningSvc",
SelectionString = thinning_expression,
InDetTrackParticlesKey = "InDetTrackParticles",
ApplyAnd = True)
thinningTools.append(HIGG6D1GenTPThinningTool)
ToolSvc += HIGG6D1GenTPThinningTool
#====================================================================
# JetTrackParticleThinning
#====================================================================
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__JetTrackParticleThinning
HIGG6D1JetTPThinningTool = DerivationFramework__JetTrackParticleThinning(name = "HIGG6D1JetTPThinningTool",
ThinningService = "HIGG6D1ThinningSvc",
StreamName = streamName,
JetKey = "AntiKt4EMTopoJets",
InDetTrackParticlesKey = "InDetTrackParticles",
ApplyAnd = True)
TrackSelectionString = thinning_expression)
thinningTools.append(HIGG6D1JetTPThinningTool)
......@@ -219,6 +210,7 @@ ToolSvc += HIGG6D1ElectronTPThinningTool
#====================================================================
# Tracks themselves
#====================================================================
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__TrackParticleThinning
HIGG6D1TPThinningTool = DerivationFramework__TrackParticleThinning(name = "HIGG6D1TPThinningTool",
ThinningService = "HIGG6D1ThinningSvc",
SelectionString = "abs( DFCommonInDetTrackZ0AtPV * sin(InDetTrackParticles.theta)) < 3.0",
......
......@@ -148,24 +148,17 @@ thinningTools=[]
# GenericTrackParticleThinning
#====================================================================
thinning_expression = "(InDetTrackParticles.pt > 0.5*GeV) && (InDetTrackParticles.numberOfPixelHits > 0) && (InDetTrackParticles.numberOfSCTHits > 5) && (abs(DFCommonInDetTrackZ0AtPV) < 1.5)"
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__TrackParticleThinning
HIGG6D2GenTPThinningTool = DerivationFramework__TrackParticleThinning(name = "HIGG6D2GenTPThinningTool",
ThinningService = "HIGG6D2ThinningSvc",
SelectionString = thinning_expression,
InDetTrackParticlesKey = "InDetTrackParticles",
ApplyAnd = True)
thinningTools.append(HIGG6D2GenTPThinningTool)
ToolSvc += HIGG6D2GenTPThinningTool
#====================================================================
# JetTrackParticleThinning
#====================================================================
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__JetTrackParticleThinning
HIGG6D2JetTPThinningTool = DerivationFramework__JetTrackParticleThinning(name = "HIGG6D2JetTPThinningTool",
ThinningService = "HIGG6D2ThinningSvc",
StreamName = streamName,
JetKey = "AntiKt4EMTopoJets",
InDetTrackParticlesKey = "InDetTrackParticles",
ApplyAnd = True)
TrackSelectionString = thinning_expression)
thinningTools.append(HIGG6D2JetTPThinningTool)
......@@ -217,6 +210,7 @@ ToolSvc += HIGG6D2ElectronTPThinningTool
#====================================================================
# Tracks themselves
#====================================================================
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__TrackParticleThinning
HIGG6D2TPThinningTool = DerivationFramework__TrackParticleThinning(name = "HIGG6D2TPThinningTool",
ThinningService = "HIGG6D2ThinningSvc",
SelectionString = "abs( DFCommonInDetTrackZ0AtPV * sin(InDetTrackParticles.theta)) < 3.0",
......
......@@ -84,22 +84,14 @@ HIGG8D1ThinningHelper.AppendToStream( HIGG8D1Stream )
# MET/Jet tracks
thinning_expression = "(InDetTrackParticles.pt > 0.5*GeV) && (InDetTrackParticles.numberOfPixelHits > 0) && (InDetTrackParticles.numberOfSCTHits > 5) && (abs(DFCommonInDetTrackZ0AtPV) < 1.5)"
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__TrackParticleThinning
HIGG8D1MetTPThinningTool = DerivationFramework__TrackParticleThinning(name = "HIGG8D1MetTPThinningTool",
ThinningService = HIGG8D1ThinningHelper.ThinningSvc(), #"HIGG8D1ThinningSvc
SelectionString = thinning_expression,
InDetTrackParticlesKey = "InDetTrackParticles",
ApplyAnd = True)
ToolSvc += HIGG8D1MetTPThinningTool
thinningTools.append(HIGG8D1MetTPThinningTool)
from DerivationFrameworkInDet.DerivationFrameworkInDetConf import DerivationFramework__JetTrackParticleThinning
HIGG8D1JetTPThinningTool = DerivationFramework__JetTrackParticleThinning( name = "HIGG8D1JetTPThinningTool",
ThinningService = HIGG8D1ThinningHelper.ThinningSvc(),
StreamName = streamName,
JetKey = "AntiKt4EMTopoJets",
InDetTrackParticlesKey = "InDetTrackParticles",
ApplyAnd = True)
TrackSelectionString = thinning_expression)
ToolSvc += HIGG8D1JetTPThinningTool
thinningTools.append(HIGG8D1JetTPThinningTool)
......
Markdown is supported
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