3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
12 options[
"coneSizeFitPar1"] = +0.239
13 options[
"coneSizeFitPar2"] = -1.220
14 options[
"coneSizeFitPar3"] = -1.64e-5
15 options[
"InputParticleContainer"] = partcollname
16 options[
"OutputDecoration"] = assocname
20 CompFactory.JetParticleShrinkingConeAssociation(
21 JetContainer=jetCollName, **options))
29 InputParticleCollection,
30 OutputParticleDecoration,
32 MinimumJetPtFlag=None):
35 jetcol = JetCollection
36 name=(jetcol +
"_" + OutputParticleDecoration +
"_assoc").lower()
37 if MinimumJetPt
is None:
38 MinimumJetPt = ConfigFlags.BTagging.minimumJetPtForTrackAssociation
39 if MinimumJetPt > 0.0
and MinimumJetPtFlag
is None:
40 ptflag = f
'{OutputParticleDecoration}OverPtThreshold'
41 elif MinimumJetPtFlag
is not None:
42 ptflag = MinimumJetPtFlag
47 acc.addEventAlgo(CompFactory.JetDecorationAlg(
55 InputParticleCollection,
56 OutputParticleDecoration,
57 MinimumJetPt=MinimumJetPt,
68 jetcol = JetCollection
70 options[
'JetContainer'] = jetcol
71 options[
'Decorators'] = [CompFactory.JetParticleShrinkingConeAssociation(
72 InputParticleContainer=InputParticleCollection,
73 OutputDecoration=OutputParticleDecoration,
74 coneSizeFitPar1=fixedConeRadius,
78 options[
'name'] = (jetcol +
"_" + OutputParticleDecoration +
"_assoc").lower()
81 acc.addEventAlgo(CompFactory.JetDecorationAlg(**options))