ATLAS Offline Software
Loading...
Searching...
No Matches
JetToolConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory import CompFactory
5
6def BadBatmanToolCfg(ConfigFlags):
7 """Configure the bad batman augmentation tool"""
8 acc = ComponentAccumulator()
9 badBatmanTool = CompFactory.DerivationFramework.BadBatmanAugmentationTool("BadBatmanAugmentationTool")
10 acc.addPublicTool(badBatmanTool, primary=True)
11 return acc
12
13def 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
22def 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
31def 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
DistanceInTrainToolCfg(ConfigFlags)
BadBatmanToolCfg(ConfigFlags)
TVAAugmentationToolCfg(ConfigFlags, preFix, workingPoint="Nominal")
PFlowAugmentationToolCfg(ConfigFlags)