1 """Define method to configure VrtSecInclusive algorithm
3 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
6 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
7 from AthenaConfiguration.ComponentFactory
import CompFactory
12 """Return a configured VrtSecInclusive algorithm instance"""
15 from TrkConfig.AtlasExtrapolatorConfig
import AtlasExtrapolatorCfg
16 from TrkConfig.TrkVertexFitterUtilsConfig
import TrackToVertexIPEstimatorCfg
17 from TrackToVertex.TrackToVertexConfig
import TrackToVertexCfg
18 from TrkConfig.TrkVKalVrtFitterConfig
import TrkVKalVrtFitterCfg
21 kwargs.setdefault(
"VertexFitterTool" , acc.popToolsAndMerge(
TrkVKalVrtFitterCfg(flags, IterationNumber = 30)))
23 if flags.Detector.GeometryPixel:
24 from PixelConditionsTools.PixelConditionsSummaryConfig
import (
25 PixelConditionsSummaryCfg)
26 kwargs.setdefault(
"PixelConditionsSummaryTool", acc.popToolsAndMerge(
28 UseByteStreamFEI4 =
False,
29 UseByteStreamFEI3 =
False)))
30 elif flags.Detector.GeometryITkPixel:
31 from PixelConditionsTools.ITkPixelConditionsSummaryConfig
import (
32 ITkPixelConditionsSummaryCfg)
33 kwargs.setdefault(
"PixelConditionsSummaryTool", acc.popToolsAndMerge(
35 UseByteStreamFEI4 =
False,
36 UseByteStreamFEI3 =
False)))
39 acc.addPublicTool(TrackToVertexTool)
40 kwargs.setdefault(
"TrackToVertexTool" , TrackToVertexTool)
43 acc.addPublicTool(TrackToVertexIPEstimatorTool)
44 kwargs.setdefault(
"TrackToVertexIPEstimatorTool" , TrackToVertexIPEstimatorTool)
46 kwargs.setdefault(
"AugmentingVersionString" ,
"")
47 kwargs.setdefault(
"TrackLocation" ,
"InDetTrackParticles")
48 kwargs.setdefault(
"OutputLevel" , Lvl.INFO)
49 kwargs.setdefault(
"do_PVvetoCut" ,
True)
50 kwargs.setdefault(
"do_d0Cut" ,
False)
51 kwargs.setdefault(
"do_z0Cut" ,
False)
52 kwargs.setdefault(
"do_d0errCut" ,
False)
53 kwargs.setdefault(
"do_z0errCut" ,
False)
54 kwargs.setdefault(
"do_d0signifCut" ,
False)
55 kwargs.setdefault(
"do_z0signifCut" ,
False)
56 kwargs.setdefault(
"doTRTPixCut" ,
True)
57 kwargs.setdefault(
"DoSAloneTRT" ,
False)
58 kwargs.setdefault(
"ImpactWrtBL" ,
True)
59 kwargs.setdefault(
"DoPVcompatibility" ,
True)
60 kwargs.setdefault(
"DoTightPVcompatibility" ,
False)
61 kwargs.setdefault(
"RemoveFake2TrkVrt" ,
True)
62 kwargs.setdefault(
"CheckHitPatternStrategy" ,
'ExtrapolationAssist')
63 kwargs.setdefault(
"doReassembleVertices" ,
True)
64 kwargs.setdefault(
"doMergeByShuffling" ,
True)
65 kwargs.setdefault(
"doMergeFinalVerticesDistance" ,
True)
66 kwargs.setdefault(
"doAssociateNonSelectedTracks" ,
True)
67 kwargs.setdefault(
"doFinalImproveChi2" ,
False)
68 kwargs.setdefault(
"DoTruth" , flags.Input.isMC)
69 kwargs.setdefault(
"FillHist" ,
True)
70 kwargs.setdefault(
"FillNtuple" ,
False)
71 kwargs.setdefault(
"TruthParticleFilter" ,
"Higgs")
72 kwargs.setdefault(
"FillIntermediateVertices" ,
False)
73 kwargs.setdefault(
"CutPixelHits" , 0)
74 kwargs.setdefault(
"CutSctHits" , 2)
75 kwargs.setdefault(
"TrkA0ErrCut" , 200000)
76 kwargs.setdefault(
"TrkZErrCut" , 200000)
77 kwargs.setdefault(
"a0TrkPVDstMinCut" , 2.0)
78 kwargs.setdefault(
"a0TrkPVDstMaxCut" , 300.0)
79 kwargs.setdefault(
"zTrkPVDstMinCut" , 0.0)
80 kwargs.setdefault(
"zTrkPVDstMaxCut" , 1500.0)
81 kwargs.setdefault(
"twoTrkVtxFormingD0Cut" , 2.0)
82 kwargs.setdefault(
"TrkPtCut" , 1000)
83 kwargs.setdefault(
"SelVrtChi2Cut" , 5.)
84 kwargs.setdefault(
"CutSharedHits" , 2)
85 kwargs.setdefault(
"TrkChi2Cut" , 50)
86 kwargs.setdefault(
"TruthTrkLen" , 1)
87 kwargs.setdefault(
"SelTrkMaxCutoff" , 2000)
88 kwargs.setdefault(
"mergeByShufflingAllowance" , 10.)
89 kwargs.setdefault(
"associatePtCut" , 1000.)
90 kwargs.setdefault(
"associateMinDistanceToPV" , 2.)
91 kwargs.setdefault(
"associateMaxD0Signif" , 5.)
92 kwargs.setdefault(
"associateMaxZ0Signif" , 5.)
93 kwargs.setdefault(
"VertexMergeFinalDistCut" , 1.)
94 kwargs.setdefault(
"VertexMergeFinalDistScaling" , 0.)
95 kwargs.setdefault(
"improveChi2ProbThreshold" , 0.0001)
96 kwargs.setdefault(
"doRemoveNonLeptonVertices" ,
False)
97 kwargs.setdefault(
"doAugmentDVimpactParametersToMuons" ,
False)
98 kwargs.setdefault(
"doAugmentDVimpactParametersToElectrons" ,
False)
100 acc.addEventAlgo(CompFactory.VKalVrtAthena.VrtSecInclusive(name, **kwargs))