9 #include "GaudiKernel/ServiceHandle.h"
26 std::unique_ptr<TrigConf::HLTMenu> hltmenu = std::make_unique<TrigConf::HLTMenu>();
27 std::unique_ptr<TrigConf::HLTMonitoring> monitoring;
29 if (m_inputType ==
"DB") {
33 std::string crest_api(
"");
42 else if (m_inputType ==
"FILE") {
50 if (!m_l1FileName.empty() &&
smk == 0
u) {
51 auto l1menu = std::make_unique<TrigConf::L1Menu>();
56 ATH_MSG_DEBUG(
"No L1 menu created, cannot compute a MC-SMK in this job");
62 if (!m_monitoringFileName.empty()) {
64 const bool success = fileLoader.
loadFile(m_monitoringFileName, *monitoring);
66 if (m_monitoringOptional) {
68 <<
", but the monitoring collection is flagged as optional. Continuing.");
72 <<
", the monitoring collection flagged as non-optional in this job.");
73 return StatusCode::FAILURE;
82 <<
"'. Allowed values: " << m_inputType.documentation());
83 return StatusCode::FAILURE;
88 if (
detStore->record(std::move(hltmenu),
"HLTTriggerMenu").isSuccess()) {
89 ATH_MSG_INFO(
"Recorded HLT menu as 'HLTTriggerMenu' in detector store");
91 if (monitoring and
detStore->record(std::move(monitoring),
"HLTMonitoringMenu").isSuccess()) {
92 ATH_MSG_INFO(
"Recorded HLT monitoring menu as 'HLTMonitoringMenu' in detector store");
95 return StatusCode::SUCCESS;
101 if (
auto joSvc = serviceLocator()->service<TrigConf::IJobOptionsSvc>(
"JobOptionsSvc")) {
102 if (joSvc->superMasterKey() > 0) {
104 m_smk = joSvc->superMasterKey();
105 m_dbConnection = joSvc->server();
109 ATH_MSG_DEBUG(
"Did not locate TrigConf::JobOptionsSvc, not running athenaHLT");
114 if (m_inputType ==
"FILE") {
118 else if (m_inputType ==
"DB") {
122 ATH_CHECK( writeConfigToDetectorStore() );
124 return StatusCode::SUCCESS;