From 29846fb6b803df7f17ee9ac98d8310932f8d128e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Javier=20Jim=C3=A9nez=20Pe=C3=B1a?=
 <javier.jimenez.pena@cern.ch>
Date: Fri, 17 Nov 2023 17:06:54 +0100
Subject: [PATCH] Small fix for muon overflows in simulation and adding option
 to read the correct L1Menu by default

---
 .../TrigT1/L1Topo/L1TopoAlgorithms/Root/MuonSelect.cxx    | 2 +-
 .../L1TopoSimulation/python/L1TopoSimulationConfig.py     | 8 +++++---
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/Trigger/TrigT1/L1Topo/L1TopoAlgorithms/Root/MuonSelect.cxx b/Trigger/TrigT1/L1Topo/L1TopoAlgorithms/Root/MuonSelect.cxx
index 1aa2034da656..f2426483b63d 100644
--- a/Trigger/TrigT1/L1Topo/L1TopoAlgorithms/Root/MuonSelect.cxx
+++ b/Trigger/TrigT1/L1Topo/L1TopoAlgorithms/Root/MuonSelect.cxx
@@ -37,7 +37,7 @@ TCS::MuonSelect::~MuonSelect() {}
 
 TCS::StatusCode
 TCS::MuonSelect::initialize() {
-  m_numberOfMuons = parameter("InputWidth").value();
+  m_numberOfMuons = parameter("OutputWidth").value();
   m_minEta = parameter("MinEta").value();
   m_maxEta = parameter("MaxEta").value();
   m_MinEtTGC = parameter("MinEtTGC").value();	    
diff --git a/Trigger/TrigT1/L1Topo/L1TopoSimulation/python/L1TopoSimulationConfig.py b/Trigger/TrigT1/L1Topo/L1TopoSimulation/python/L1TopoSimulationConfig.py
index bdd0fd3b6fea..b57ed657e6b2 100644
--- a/Trigger/TrigT1/L1Topo/L1TopoSimulation/python/L1TopoSimulationConfig.py
+++ b/Trigger/TrigT1/L1Topo/L1TopoSimulation/python/L1TopoSimulationConfig.py
@@ -253,7 +253,7 @@ def L1TopoSimulationStandaloneCfg(flags, outputEDM=[], doMuons = False):
 if __name__ == '__main__':
   from AthenaConfiguration.AllConfigFlags import initConfigFlags
   from AthenaCommon.Logging import logging
-  from AthenaCommon.Constants import VERBOSE,DEBUG,WARNING
+  from AthenaCommon.Constants import VERBOSE,DEBUG,WARNING,INFO
   import argparse
   from argparse import RawTextHelpFormatter
   import sys
@@ -285,17 +285,19 @@ if __name__ == '__main__':
 
   if len(subsystem)==0:
       log.warning(f'subsystem not given or the given subsystem not supported with one of the: {supportedSubsystems}')
-  
+
+  if args.log == 'info': algLogLevel = INFO  
   if args.log == 'warning': algLogLevel = WARNING
   if args.log == 'debug': algLogLevel = DEBUG
   if args.log == 'verbose': algLogLevel = VERBOSE
 
   flags = initConfigFlags()
 
-  flags.Exec.OutputLevel = WARNING
+  flags.Exec.OutputLevel = algLogLevel
   if(args.nevent > 0):
     flags.Exec.MaxEvents = args.nevent
   flags.Trigger.triggerMenuSetup = 'PhysicsP1_pp_run3_v1'
+  flags.Trigger.triggerConfig = 'DB'
   flags.Input.Files = args.inputs
   flags.Concurrency.NumThreads = 1
   flags.Concurrency.NumConcurrentEvents = 1
-- 
GitLab