ATLAS Offline Software
Loading...
Searching...
No Matches
plugin_Jet1_Multi.py
Go to the documentation of this file.
1# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2from AthenaCommon.Constants import DEBUG
3
4# Add algorithm to prepare LAr cells for Global
5from GlobalSimulation.LArCellPreparationAlgConfig import LArCellPreparationAlgCfg
6gblLArCellContainerKey = "GlobalLArCells"
7cfg.merge(LArCellPreparationAlgCfg(flags,
8 numberOfEnergyBits = 6,
9 valueLeastSignificantBit = 40,
10 valueGainFactor = 4,
11 GlobalLArCellsKey = gblLArCellContainerKey,
12 OutputLevel=DEBUG))
13
14# Add algorithm to simulate MUX input/output for LAr cells
15from GlobalSimulation.LArCellMuxAlgConfig import LArCellMuxAlgCfg
16cfg.merge(LArCellMuxAlgCfg(flags,
17 GlobalLArCellsKey = gblLArCellContainerKey,
18 WriteMuxInputBitstreamToFile = True,
19 WriteMuxOutputBitstreamToFile = True,
20 OutputLevel=DEBUG))
21
22# Add the GlobalSim Algorithm
23alg = CompFactory.GlobalSim.GlobalSimulationAlg('GlobalSimulationAlg')
24
25# Attach the CellTower AlgTool
26cellTowerTool = CompFactory.GlobalSim.GlobalCellTowerAlgTool('GlobalCellTowerAlgTool')
27cellTowerTool.GlobalCellTowersKey = "GlobalCellTowers"
28cellTowerTool.OutputLevel = DEBUG
29
30alg.globalsim_algs += [cellTowerTool]
31
32# Attach the gFexRho AlgTool (Currently output is unused)
33gFexRhoCvtrTool = CompFactory.GlobalSim.gFexRhoCvtrAlgTool('gFexRhoCvtrAlgTool')
34gFexRhoCvtrTool.OutputLevel = DEBUG
35
36alg.globalsim_algs += [gFexRhoCvtrTool]
37
38# Attach the WTAConeJet AlgTool
39jet1Tool = CompFactory.GlobalSim.GlobalJet1AlgTool('GlobalJet1AlgTool')
40jet1Tool.GlobalCellTowersKey = "GlobalCellTowers"
41jet1Tool.OutputLevel = DEBUG
42
43alg.globalsim_algs += [jet1Tool]
44
45# add in the CommonMultiplicity AlgTool To count Jets
46tool = CompFactory.GlobalSim.CommonMultAlgTool('CommonMultAlgTool')
47
48tool.et_low = '2500'
49tool.CommonTOBsKey = "GlobalJet1Jets"
50tool.enable_dump=True
51tool.OutputLevel = DEBUG
52
53alg.TIPwriters = [tool]
54
55cfg.addEventAlgo(alg)