5 #include "GaudiKernel/ServiceHandle.h"
25 std::unique_ptr<TrigConf::HLTMenu> hltmenu = std::make_unique<TrigConf::HLTMenu>();
26 std::unique_ptr<TrigConf::HLTMonitoring> monitoring;
28 if (m_inputType ==
"DB") {
35 else if (m_inputType ==
"FILE") {
43 if (!m_l1FileName.empty() &&
smk == 0
u) {
44 auto l1menu = std::make_unique<TrigConf::L1Menu>();
49 ATH_MSG_DEBUG(
"No L1 menu created, cannot compute a MC-SMK in this job");
55 if (!m_monitoringFileName.empty()) {
57 const bool success = fileLoader.
loadFile(m_monitoringFileName, *monitoring);
59 if (m_monitoringOptional) {
61 <<
", but the monitoring collection is flagged as optional. Continuing.");
65 <<
", the monitoring collection flagged as non-optional in this job.");
66 return StatusCode::FAILURE;
75 <<
"'. Allowed values: " << m_inputType.documentation());
76 return StatusCode::FAILURE;
81 if (
detStore->record(std::move(hltmenu),
"HLTTriggerMenu").isSuccess()) {
82 ATH_MSG_INFO(
"Recorded HLT menu as 'HLTTriggerMenu' in detector store");
84 if (monitoring and
detStore->record(std::move(monitoring),
"HLTMonitoringMenu").isSuccess()) {
85 ATH_MSG_INFO(
"Recorded HLT monitoring menu as 'HLTMonitoringMenu' in detector store");
88 return StatusCode::SUCCESS;
94 if (
auto joSvc = serviceLocator()->service<TrigConf::IJobOptionsSvc>(
"JobOptionsSvc")) {
95 if (joSvc->superMasterKey() > 0) {
97 m_smk = joSvc->superMasterKey();
98 m_dbConnection = joSvc->server();
102 ATH_MSG_DEBUG(
"Did not locate TrigConf::JobOptionsSvc, not running athenaHLT");
107 if (m_inputType ==
"FILE") {
111 else if (m_inputType ==
"DB") {
115 ATH_CHECK( writeConfigToDetectorStore() );
117 return StatusCode::SUCCESS;