3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
7 """Configure the seed jet builder"""
9 acc.setPrivateTools(CompFactory.SeedJetBuilder(name, **kwargs))
14 """Configure the subjet builder"""
17 kwargs.setdefault(
"Rsubjet", 0.2)
18 kwargs.setdefault(
"ptminsubjet", 10000)
20 acc.setPrivateTools(CompFactory.SubjetBuilder(name, **kwargs))
23 def TVAToolCfg(flags, name="TVATool_forDiTaus", **kwargs):
24 """Configure the TVA tool"""
27 kwargs.setdefault(
"TrackParticleContainer",
"InDetTrackParticles")
28 kwargs.setdefault(
"TrackVertexAssociation",
"JetTrackVtxAssoc_forDiTaus")
29 kwargs.setdefault(
"VertexContainer",
"PrimaryVertices")
30 kwargs.setdefault(
"MaxTransverseDistance", 2.5)
31 kwargs.setdefault(
"MaxLongitudinalDistance", 2)
33 acc.setPrivateTools(CompFactory.TrackVertexAssociationTool(name, **kwargs))
36 def JetAlgCfg(flags, name="DiTauRec_JetAlgorithm", **kwargs):
37 """Configure the JetAlgorithm"""
40 tools = [acc.popToolsAndMerge(
TVAToolCfg(flags))]
41 kwargs.setdefault(
"Tools", tools)
43 acc.addEventAlgo(CompFactory.JetAlgorithm(name, **kwargs))
48 """Configure the vertex finder"""
51 kwargs.setdefault(
"PrimVtxContainerName",
"PrimaryVertices")
52 kwargs.setdefault(
"AssociatedTracks",
"GhostTrack")
53 kwargs.setdefault(
"TrackVertexAssociation",
"JetTrackVtxAssoc_forDiTaus")
55 acc.setPrivateTools(CompFactory.VertexFinder(name, **kwargs))
59 """Configure the di-tau track finder"""
62 kwargs.setdefault(
"MaxDrJet", 1.0)
63 kwargs.setdefault(
"MaxDrSubjet", 0.2)
64 kwargs.setdefault(
"MaxNTracksSubjet", -1)
65 kwargs.setdefault(
"TrackParticleContainer",
"InDetTrackParticles")
67 if "TrackSelectorTool" not in kwargs:
68 from InDetConfig.InDetTrackSelectorToolConfig
import TauRecInDetTrackSelectorToolCfg
70 acc.addPublicTool(InDetTrackSelectorTool)
71 kwargs.setdefault(
"TrackSelectorTool", InDetTrackSelectorTool)
73 acc.setPrivateTools(CompFactory.DiTauTrackFinder(name, **kwargs))
77 """Configure the cluster finder"""
80 kwargs.setdefault(
"ClusterContainer",
"CaloCalTopoClusters")
81 kwargs.setdefault(
"Rsubjet", 0.2)
83 ClusterFinder = CompFactory.ClusterFinder(name, **kwargs)
84 acc.setPrivateTools(ClusterFinder)
88 """Configure the cell finder"""
91 kwargs.setdefault(
"ClusterContainer",
"CaloCalTopoClusters")
92 kwargs.setdefault(
"CellContainer",
"AllCalo")
93 kwargs.setdefault(
"Rsubjet", 0.2)
95 CellFinder = CompFactory.CellFinder(name, **kwargs)
96 acc.setPrivateTools(CellFinder)
101 """Configure the IDVarCalculator"""
103 acc.setPrivateTools(CompFactory.IDVarCalculator(name, **kwargs))