38 from DerivationFrameworkInDet.InDetToolsConfig
import TrackParticleThinningCfg, MuonTrackParticleThinningCfg, EgammaTrackParticleThinningCfg, TauTrackParticleThinningCfg
40 thinning_expression =
"InDetTrackParticles.pt > {0}".
format(kwargs[
'trackThreshold'])
41 if kwargs[
'trackSel']
is not None:
42 thinning_expression =
"("+thinning_expression+
" || (InDetTrackParticles.DFMETTrig"+kwargs[
'trackSel']+
"))"
46 name = kwargs[
'StreamName']+
"TrackParticleThinningTool",
47 StreamName = kwargs[
'StreamName'],
48 SelectionString = thinning_expression,
49 InDetTrackParticlesKey =
"InDetTrackParticles"))
53 name = kwargs[
'StreamName']+
"MuonTPThinningTool",
54 StreamName = kwargs[
'StreamName'],
56 InDetTrackParticlesKey =
"InDetTrackParticles"))
60 name = kwargs[
'StreamName']+
"ElectronTPThinningTool",
61 StreamName = kwargs[
'StreamName'],
63 InDetTrackParticlesKey =
"InDetTrackParticles"))
67 name = kwargs[
'StreamName']+
"PhotonTPThinningTool",
68 StreamName = kwargs[
'StreamName'],
70 InDetTrackParticlesKey =
"InDetTrackParticles",
71 GSFConversionVerticesKey =
"GSFConversionVertices"))
75 name = kwargs[
'StreamName']+
"TauTPThinningTool",
76 StreamName = kwargs[
'StreamName'],
78 InDetTrackParticlesKey =
"InDetTrackParticles",
79 DoTauTracksThinning =
True,
80 TauTracksKey =
"TauTracks"))
82 thinningTools = [trackParticleThinningTool,
84 electronTPThinningTool,
88 DerivationKernel = CompFactory.DerivationFramework.DerivationKernel
90 ThinningTools = thinningTools,
91 SkimmingTools = kwargs[
'skimmingTools']))