5 #include "GaudiKernel/ServiceHandle.h"
24 auto l1menu = std::make_unique<TrigConf::L1Menu>();
26 if (m_inputType ==
"DB") {
33 else if (m_inputType ==
"FILE") {
41 if (!m_hltFileName.empty() &&
smk == 0
u) {
42 auto hltmenu = std::make_unique<TrigConf::HLTMenu>();
47 ATH_MSG_DEBUG(
"No HLT menu created, cannot compute a MC-SMK in this job");
57 <<
"'. Allowed values: " << m_inputType.documentation());
58 return StatusCode::FAILURE;
63 if (
detStore->record(std::move(
l1menu),
"L1TriggerMenu").isSuccess()) {
64 ATH_MSG_INFO(
"Recorded L1 menu as 'L1TriggerMenu' in detector store");
67 return StatusCode::SUCCESS;
73 if (
auto joSvc = serviceLocator()->service<TrigConf::IJobOptionsSvc>(
"JobOptionsSvc")) {
74 if (joSvc->superMasterKey() > 0) {
76 m_smk = joSvc->superMasterKey();
77 m_dbConnection = joSvc->server();
81 ATH_MSG_DEBUG(
"Did not locate TrigConf::JobOptionsSvc, not running athenaHLT");
86 if (m_inputType ==
"FILE") {
89 else if (m_inputType ==
"DB") {
96 return StatusCode::SUCCESS;