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 WTAConeJet AlgTool
33jet1Tool = CompFactory.GlobalSim.GlobalJet1AlgTool('GlobalJet1AlgTool')
34jet1Tool.GlobalCellTowersKey = "GlobalCellTowers"
35jet1Tool.OutputLevel = DEBUG
36
37alg.globalsim_algs += [jet1Tool]
38
39# add in the JetMultiplicity AlgTool
40tool = CompFactory.GlobalSim.JetMultAlgTool('JetMultAlgTool')
41
42tool.et_low = '2500'
43tool.enable_dump=True
44tool.OutputLevel = DEBUG
45
46alg.TIPwriters = [tool]
47
48cfg.addEventAlgo(alg)