Skip to content
Snippets Groups Projects
Commit 6d11015b authored by Joerg Stelzer's avatar Joerg Stelzer Committed by Walter Lampl
Browse files

Configure L1TopoConfigSvc in MT setup

parent 54ec6c1b
No related branches found
No related tags found
No related merge requests found
......@@ -116,11 +116,34 @@ def generateL1Menu( flags ):
return outfile
# configuration of L1ConfigSvc
@memoize
def getL1TopoConfigSvc( flags ):
log = logging.getLogger('TrigConfigSvcCfg')
# configure config svc
TrigConf__L1TopoConfigSvc = CompFactory.getComp("TrigConf::L1TopoConfigSvc")
l1topoConfigSvc = TrigConf__L1TopoConfigSvc("L1TopoConfigSvc")
l1topoConfigSvc.ConfigSource = "XML"
from TriggerJobOpts.TriggerFlags import TriggerFlags
l1topoXMLFile = TriggerFlags.inputL1TopoConfigFile() if flags is None else flags.Trigger.LVL1TopoConfigFile
# check if file exists in this directory otherwise add the package to aid path resolution
# also a '/' in the file name indicates that no package needs to be added
import os.path
if not ( "/" in l1topoXMLFile or os.path.isfile(l1topoXMLFile) ):
l1topoXMLFile = "TriggerMenuMT/" + l1topoXMLFile
l1topoConfigSvc.XMLMenuFile = l1topoXMLFile
log.info( "Configured L1TopoConfigSvc with input file : %s", l1topoXMLFile )
from AthenaCommon.AppMgr import theApp
theApp.CreateSvc += [ "TrigConf::L1TopoConfigSvc/L1TopoConfigSvc" ]
return l1topoConfigSvc
# configuration of L1ConfigSvc
@memoize
def getL1ConfigSvc( flags ):
log = logging.getLogger('TrigConfigSvcCfg')
from AthenaCommon.Logging import log
# generate menu file
generatedFile = generateL1Menu( flags )
......
......@@ -11,7 +11,7 @@ using namespace std;
TrigConf::L1TopoConfigSvc::L1TopoConfigSvc(const string& name, ISvcLocator* pSvcLocator) :
base_class(name, pSvcLocator),
m_menu(new TXC::L1TopoMenu)
m_menu( nullptr )
{
base_class::declareCommonProperties();
}
......@@ -31,6 +31,8 @@ TrigConf::L1TopoConfigSvc::initialize() {
return StatusCode::SUCCESS;
}
m_menu = std::make_unique<TXC::L1TopoMenu>();
CHECK(initStorageMgr());
m_menu->setSMK( m_dbSMKey );
......@@ -40,8 +42,6 @@ TrigConf::L1TopoConfigSvc::initialize() {
CHECK(freeStorageMgr());
// m_menu->print();
return loadSuccess ? StatusCode::SUCCESS : StatusCode::FAILURE;
}
......
......@@ -752,14 +752,14 @@ TrigSignatureMoniMT INFO HLT_tau35_mediumRNN_tra
TrigSignatureMoniMT INFO -- #2456480859 Events 14 14 11 10 4 - - - - - - - - - 4
TrigSignatureMoniMT INFO -- #2456480859 Features 20 14 4 - - - - - - - - -
TrigSignatureMoniMT INFO HLT_tau35_mediumRNN_tracktwoMVA_tau25_mediumRNN_tracktwoMVA_L1DR-TAU20ITAU12I-J25 #1794354861
TrigSignatureMoniMT INFO -- #1794354861 Events 0 0 0 0 0 - - - - - - - - - 0
TrigSignatureMoniMT INFO -- #1794354861 Features 0 0 0 - - - - - - - - -
TrigSignatureMoniMT INFO -- #1794354861 Events 6 6 6 3 0 - - - - - - - - - 0
TrigSignatureMoniMT INFO -- #1794354861 Features 15 6 0 - - - - - - - - -
TrigSignatureMoniMT INFO HLT_tau80_medium1_tracktwo_L1TAU60 #598963338
TrigSignatureMoniMT INFO -- #598963338 Events 5 5 4 2 1 - - - - - - - - - 1
TrigSignatureMoniMT INFO -- #598963338 Features 5 2 1 - - - - - - - - -
TrigSignatureMoniMT INFO HLT_tau80_mediumRNN_tracktwoMVA_tau35_mediumRNN_tracktwoMVA_L1TAU60_DR-TAU20ITAU12I #1075975502
TrigSignatureMoniMT INFO -- #1075975502 Events 0 0 0 0 0 - - - - - - - - - 0
TrigSignatureMoniMT INFO -- #1075975502 Features 0 0 0 - - - - - - - - -
TrigSignatureMoniMT INFO -- #1075975502 Events 3 3 2 0 0 - - - - - - - - - 0
TrigSignatureMoniMT INFO -- #1075975502 Features 6 0 0 - - - - - - - - -
TrigSignatureMoniMT INFO HLT_tau80_mediumRNN_tracktwoMVA_tau60_mediumRNN_tracktwoMVA_L1TAU60_2TAU40 #400305971
TrigSignatureMoniMT INFO -- #400305971 Events 3 3 2 0 0 - - - - - - - - - 0
TrigSignatureMoniMT INFO -- #400305971 Features 5 0 0 - - - - - - - - -
......
......@@ -26,8 +26,9 @@ def Lvl1SimulationSequence( flags = None ):
TriggerFlags.readLVL1configFromXML = True
TriggerFlags.outputLVL1configFile = None
log.info("setting up LVL1ConfigSvc, including the menu generation")
from TrigConfigSvc.TrigConfigSvcCfg import getL1ConfigSvc
from TrigConfigSvc.TrigConfigSvcCfg import getL1ConfigSvc, getL1TopoConfigSvc
svcMgr += conf2toConfigurable(getL1ConfigSvc(flags))
svcMgr += conf2toConfigurable(getL1TopoConfigSvc(flags))
##################################################
# Calo
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment