ATLAS Offline Software
Loading...
Searching...
No Matches
plugin_local_cfg.py
Go to the documentation of this file.
1# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
3# run this with: l1calo-ath-mon --postInclude GlobalSimulation/plugin_local_cfg.py --evtMax 10 --filesInput RAW_RUN3_DATA24
4#cfg and flags are already defined
5
6from AthenaCommon.Constants import DEBUG, INFO
7
8# Add algorithm to prepare LAr cells for Global
9from GlobalSimulation.LArCellPreparationAlgConfig import LArCellPreparationAlgCfg
10gblLArCellContainerKey = "GlobalLArCells"
11cfg.merge(LArCellPreparationAlgCfg(flags,
12 numberOfEnergyBits = 6,
13 valueLeastSignificantBit = 40,
14 valueGainFactor = 4,
15 GlobalLArCellsKey = gblLArCellContainerKey,
16 OutputLevel=DEBUG))
17
18# Add algorithm to simulate MUX input/output for LAr cells
19from GlobalSimulation.LArCellMuxAlgConfig import LArCellMuxAlgCfg
20cfg.merge(LArCellMuxAlgCfg(flags,
21 GlobalLArCellsKey = gblLArCellContainerKey,
22 WriteMuxInputBitstreamToFile = True,
23 WriteMuxOutputBitstreamToFile = True,
24 OutputLevel=DEBUG))
25
26# add in the Algorithm to build a LArStrip Neighborhood container
27from GlobalSimulation.Egamma1_OnlineMapNbhoodConfig import Egamma1_OnlineMapNbhoodCfg
28cfg.merge(Egamma1_OnlineMapNbhoodCfg(flags,
29 OutputLevel=DEBUG,
30 dump=False,
31 dumpTerse=False))
32
33cfg.getEventAlgo("Egamma1_OnlineMapNbhood").roiAlgTool.etMin = 5000.
34cfg.getEventAlgo("Egamma1_OnlineMapNbhood").roiAlgTool.etaMin = 0.0
35cfg.getEventAlgo("Egamma1_OnlineMapNbhood").roiAlgTool.etaMax = 5.0
36
37from GlobalSimulation.GlobalSimAlgCfg_local import GlobalSimulationAlgCfg
38cfg.merge(GlobalSimulationAlgCfg(flags, dump=True, OutputLevel=DEBUG))
39