2 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
3 from AthenaConfiguration.ComponentFactory
import CompFactory
7 from TrkConfig.TrkVertexAnalysisUtilsConfig
import V0ToolsCfg
8 kwargs.setdefault(
"V0Tools", result.popToolsAndMerge(
V0ToolsCfg(flags,
"RecoMumuToolV0Tools")))
9 from JpsiUpsilonTools.JpsiUpsilonToolsConfig
import PrimaryVertexRefittingToolCfg
11 the_tool = CompFactory.DerivationFramework.Reco_mumu(name, **kwargs)
12 result.setPrivateTools(the_tool)
17 from JpsiUpsilonTools.JpsiUpsilonToolsConfig
import JpsiFinderCfg
18 jpsi_finder_tool = result.popToolsAndMerge(
JpsiFinderCfg(flags,
23 invMassUpper = 3500.0,
24 invMassLower = 2700.0,
26 allChargeCombinations =
True,
27 oppChargesOnly =
False,
28 sameChargesOnly=
False,
29 trackThresholdPt = 2500,
30 muonThresholdPt= 4000,
31 atLeastOneComb =
False,
32 useCombinedMeasurement =
False,
33 muonCollectionKey = MuonContainer,
34 TrackParticleCollection = IdTrkContainer,
41 name = prefix+
"MuonTP_Reco_mumu",
42 JpsiFinder = jpsi_finder_tool,
43 OutputVtxContainerName = prefix+
"JpsiCandidates",
44 PVContainerName =
"PrimaryVertices",
45 RefPVContainerName = prefix+
"RefittedPrimaryVertices",
49 result.addPublicTool(MuonTP_Reco_mumu)
50 the_alg = CompFactory.DerivationFramework.DerivationKernel(prefix +
"JPsiVertexFitKernel",
51 AugmentationTools = [MuonTP_Reco_mumu])
52 result.addEventAlgo(the_alg, primary =
True)
58 from TrkConfig.TrkVertexAnalysisUtilsConfig
import V0ToolsCfg
59 v0_tools = result.popToolsAndMerge(
V0ToolsCfg(flags, name+
"JPsiSelV0Tools"))
60 kwargs.setdefault(
"V0Tools", v0_tools)
61 kwargs.setdefault(
"HypothesisName",
"Jpsi")
62 kwargs.setdefault(
"VtxMassHypo", 3096.916)
63 kwargs.setdefault(
"MassMin", 2700.0)
64 kwargs.setdefault(
"MassMax", 3500.0)
65 kwargs.setdefault(
"Chi2Max", 200)
66 kwargs.setdefault(
"DoVertexType", 7)
67 MuonTP_Select_Jpsi2mumu = CompFactory.DerivationFramework.Select_onia2mumu(name = name, **kwargs)
68 result.addPublicTool(v0_tools)
69 result.setPrivateTools(MuonTP_Select_Jpsi2mumu)
75 MuonTP_Select_Jpsi2mumu =result.popToolsAndMerge(
MuonTPOniaSelToolCfg(flags, prefix +
"MuonTP_Select_Jpsi2mumu",
76 InputVtxContainerName = prefix+
"JpsiCandidates" ))
77 result.addPublicTool(MuonTP_Select_Jpsi2mumu)
78 the_alg = CompFactory.DerivationFramework.DerivationKernel(prefix +
"JPsiVertexFitSelector",
79 AugmentationTools = [MuonTP_Select_Jpsi2mumu])
80 result.addEventAlgo(the_alg, primary =
True)
85 result.merge(
AddJPsiVertexingFitterCfg(flags, prefix = prefix, IdTrkContainer = IdTrkContainer, MuonContainer = MuonContainer))