ATLAS Offline Software
JetToolConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 
6 def BadBatmanToolCfg(ConfigFlags):
7  """Configure the bad batman augmentation tool"""
9  badBatmanTool = CompFactory.DerivationFramework.BadBatmanAugmentationTool("BadBatmanAugmentationTool")
10  acc.addPublicTool(badBatmanTool, primary=True)
11  return acc
12 
13 def DistanceInTrainToolCfg(ConfigFlags):
14  """Configure the distance in train augmentation tool"""
15  acc = ComponentAccumulator()
16  from LumiBlockComps.BunchCrossingCondAlgConfig import BunchCrossingCondAlgCfg
17  acc.merge(BunchCrossingCondAlgCfg(ConfigFlags))
18  distanceInTrainTool = CompFactory.DerivationFramework.DistanceInTrainAugmentationTool("DistanceInTrainAugmentationTool")
19  acc.addPublicTool(distanceInTrainTool, primary=True)
20  return acc
21 
22 def PFlowAugmentationToolCfg(ConfigFlags):
23  """Configure the PFlow augmentation tool"""
24  acc = ComponentAccumulator()
25  wPFOTool = CompFactory.getComp('CP::WeightPFOTool')("PFAugmentationWeightTool",DoEoverPWeight=True)
26  pfoAugTool = CompFactory.DerivationFramework.PFlowAugmentationTool("PFlowAugmentationTool",
27  WeightPFOTool=wPFOTool)
28  acc.addPublicTool(pfoAugTool, primary=True)
29  return acc
30 
31 def TVAAugmentationToolCfg(ConfigFlags, preFix, workingPoint="Nominal"):
32  """Configure the TVA augmentation tool"""
33  acc = ComponentAccumulator()
34 
35  tvaTool = CompFactory.getComp('CP::TrackVertexAssociationTool')(workingPoint+"TVATool",
36  WorkingPoint=workingPoint)
37 
38  tvaAugTool = CompFactory.DerivationFramework.TVAAugmentationTool(workingPoint+"TVAAugmentationTool",
39  LinkName = preFix+workingPoint+"TVA",
40  TrackName = "InDetTrackParticles",
41  TVATool = tvaTool)
42 
43  acc.addPublicTool(tvaAugTool, primary=True)
44  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.JetToolConfig.PFlowAugmentationToolCfg
def PFlowAugmentationToolCfg(ConfigFlags)
Definition: JetToolConfig.py:22
python.BunchCrossingCondAlgConfig.BunchCrossingCondAlgCfg
def BunchCrossingCondAlgCfg(flags)
Definition: BunchCrossingCondAlgConfig.py:8
python.JetToolConfig.DistanceInTrainToolCfg
def DistanceInTrainToolCfg(ConfigFlags)
Definition: JetToolConfig.py:13
python.JetToolConfig.TVAAugmentationToolCfg
def TVAAugmentationToolCfg(ConfigFlags, preFix, workingPoint="Nominal")
Definition: JetToolConfig.py:31
python.JetToolConfig.BadBatmanToolCfg
def BadBatmanToolCfg(ConfigFlags)
Definition: JetToolConfig.py:6