ATLAS Offline Software
Functions
JetParticleAssociationAlgConfig Namespace Reference

Functions

def JetParticleAssociationCfg (ConfigFlags, jetCollName, partcollname, assocname, **options)
 
def JetParticleAssociationAlgCfg (ConfigFlags, JetCollection, InputParticleCollection, OutputParticleDecoration, MinimumJetPt=None, MinimumJetPtFlag=None)
 
def JetParticleFixedConeAssociationAlgCfg (ConfigFlags, fixedConeRadius, JetCollection="", InputParticleCollection="", OutputParticleDecoration="", **options)
 

Function Documentation

◆ JetParticleAssociationAlgCfg()

def JetParticleAssociationAlgConfig.JetParticleAssociationAlgCfg (   ConfigFlags,
  JetCollection,
  InputParticleCollection,
  OutputParticleDecoration,
  MinimumJetPt = None,
  MinimumJetPtFlag = None 
)

Definition at line 26 of file AnalysisCommon/ParticleJetTools/python/JetParticleAssociationAlgConfig.py.

27  ConfigFlags,
28  JetCollection,
29  InputParticleCollection,
30  OutputParticleDecoration,
31  MinimumJetPt=None,
32  MinimumJetPtFlag=None):
33 
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
43  else:
44  ptflag = ''
45 
46  # -- create the association algorithm
47  acc.addEventAlgo(CompFactory.JetDecorationAlg(
48  name=name,
49  JetContainer=jetcol,
50  Decorators=[
51  acc.popToolsAndMerge(
53  ConfigFlags,
54  jetcol,
55  InputParticleCollection,
56  OutputParticleDecoration,
57  MinimumJetPt=MinimumJetPt,
58  PassPtFlag=ptflag,
59  ))
60  ]
61  ))
62 
63  return acc
64 

◆ JetParticleAssociationCfg()

def JetParticleAssociationAlgConfig.JetParticleAssociationCfg (   ConfigFlags,
  jetCollName,
  partcollname,
  assocname,
**  options 
)

Definition at line 8 of file AnalysisCommon/ParticleJetTools/python/JetParticleAssociationAlgConfig.py.

8 def JetParticleAssociationCfg(ConfigFlags, jetCollName, partcollname, assocname, **options):
9 
11 
12  options["coneSizeFitPar1"] = +0.239
13  options["coneSizeFitPar2"] = -1.220
14  options["coneSizeFitPar3"] = -1.64e-5
15  options["InputParticleContainer"] = partcollname
16  options["OutputDecoration"] = assocname
17 
18  # -- create the association tool
19  acc.setPrivateTools(
20  CompFactory.JetParticleShrinkingConeAssociation(
21  JetContainer=jetCollName, **options))
22 
23  return acc
24 
25 

◆ JetParticleFixedConeAssociationAlgCfg()

def JetParticleAssociationAlgConfig.JetParticleFixedConeAssociationAlgCfg (   ConfigFlags,
  fixedConeRadius,
  JetCollection = "",
  InputParticleCollection = "",
  OutputParticleDecoration = "",
**  options 
)

Definition at line 65 of file AnalysisCommon/ParticleJetTools/python/JetParticleAssociationAlgConfig.py.

65 def JetParticleFixedConeAssociationAlgCfg(ConfigFlags, fixedConeRadius, JetCollection="", InputParticleCollection="", OutputParticleDecoration="", **options):
66 
68  jetcol = JetCollection
69 
70  options['JetContainer'] = jetcol
71  options['Decorators'] = [CompFactory.JetParticleShrinkingConeAssociation(
72  InputParticleContainer=InputParticleCollection,
73  OutputDecoration=OutputParticleDecoration,
74  coneSizeFitPar1=fixedConeRadius,
75  coneSizeFitPar2=-inf,
76  coneSizeFitPar3=0,
77  **options)]
78  options['name'] = (jetcol + "_" + OutputParticleDecoration + "_assoc").lower()
79 
80  # -- create the association algorithm
81  acc.addEventAlgo(CompFactory.JetDecorationAlg(**options))
82 
83  return acc
JetParticleAssociationAlgConfig.JetParticleFixedConeAssociationAlgCfg
def JetParticleFixedConeAssociationAlgCfg(ConfigFlags, fixedConeRadius, JetCollection="", InputParticleCollection="", OutputParticleDecoration="", **options)
Definition: AnalysisCommon/ParticleJetTools/python/JetParticleAssociationAlgConfig.py:65
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
JetParticleAssociationAlgConfig.JetParticleAssociationCfg
def JetParticleAssociationCfg(ConfigFlags, jetCollName, partcollname, assocname, **options)
Definition: AnalysisCommon/ParticleJetTools/python/JetParticleAssociationAlgConfig.py:8
JetParticleAssociationAlgConfig.JetParticleAssociationAlgCfg
def JetParticleAssociationAlgCfg(ConfigFlags, JetCollection, InputParticleCollection, OutputParticleDecoration, MinimumJetPt=None, MinimumJetPtFlag=None)
Definition: AnalysisCommon/ParticleJetTools/python/JetParticleAssociationAlgConfig.py:26