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
6def setup(flags):
7 flags.DQ.doMonitoring=False # turns off any L1Mon setup for l1calo-ath-mon
8 if flags.Concurrency.NumThreads==0: flags.Concurrency.NumThreads = 1 # ensure running in MT mode
9
10
11# Add algorithm to prepare LAr cells for Global
12from GlobalSimulation.LArCellPreparationAlgConfig import LArCellPreparationAlgCfg
13gblLArCellContainerKey = "GlobalLArCells"
14
15sequenceName = "GlobalSim"
16cfg.addSequence(CompFactory.AthSequencer(sequenceName,StopOverride=True),parentName="AthAlgSeq")
17
18
19cfg.merge(LArCellPreparationAlgCfg(flags,
20 numberOfEnergyBits = 6,
21 valueLeastSignificantBit = 40,
22 valueGainFactor = 4,
23 GlobalLArCellsKey = gblLArCellContainerKey), sequenceName=sequenceName)
24
25
26
27# Add algorithm to simulate MUX input/output for LAr cells
28from GlobalSimulation.LArCellMuxAlgConfig import LArCellMuxAlgCfg
29cfg.merge(LArCellMuxAlgCfg(flags,
30 GlobalLArCellsKey = gblLArCellContainerKey,
31 WriteMuxInputBitstreamToFile = True,
32 WriteMuxOutputBitstreamToFile = True), sequenceName=sequenceName)
33
34# add in the Algorithm to build a LArStrip Neighborhood container
35from GlobalSimulation.Egamma1_OnlineMapNbhoodConfig import Egamma1_OnlineMapNbhoodCfg
36cfg.merge(Egamma1_OnlineMapNbhoodCfg(flags,
37 dump=False,
38 dumpTerse=False), sequenceName=sequenceName)
39
40cfg.getEventAlgo("Egamma1_OnlineMapNbhood").roiAlgTool.etMin = 5000.
41cfg.getEventAlgo("Egamma1_OnlineMapNbhood").roiAlgTool.etaMin = 0.0
42cfg.getEventAlgo("Egamma1_OnlineMapNbhood").roiAlgTool.etaMax = 5.0
43
44from GlobalSimulation.GlobalSimAlgCfg_local import GlobalSimulationAlgCfg
45cfg.merge(GlobalSimulationAlgCfg(flags, dump=True), sequenceName=sequenceName)
46
47# optional: scheduler the graph creator svc:
48cfg.addService( CompFactory.GlobalSim.GraphSvc(SequenceNameFilter=sequenceName,OutputLevel=3), create=True )