3 from collections
import defaultdict
4 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
5 from AthenaConfiguration.ComponentFactory
import CompFactory
9 _trkvtxPairCounter = defaultdict()
10 _trkvtxPairCounter.default_factory =
lambda :
str(len(_trkvtxPairCounter))
13 return "InDetUsedInFitDecorator_"+_trkvtxPairCounter[ (trackCont, vtxCont, vtxdeco, wdeco) ]
17 trackCont = "InDetTrackParticles", vtxCont = "PrimaryVertices",
18 vertexDeco = "TTVA_AMVFVertices_forReco", weightDeco = "TTVA_AMVFWeights_forReco"):
19 """ Create the alg to decorate the used-in-fit information for AMVF """
21 alg = CompFactory.InDet.InDetUsedInVertexFitTrackDecorator(
23 UsedInFitDecoratorTool=CompFactory.InDet.InDetUsedInFitTrackDecoratorTool(
24 AMVFVerticesDecoName=vertexDeco,
25 AMVFWeightsDecoName=weightDeco,
26 TrackContainer=trackCont,
27 VertexContainer=vtxCont)
33 flags, trackCont = 'InDetTrackParticles', vtxCont = 'PrimaryVertices'):
34 """ Create the ComponentAccumulator to decorate the used-in-fit information for AMVF """