24{
25 auto l1menu = std::make_unique<TrigConf::L1Menu>();
26
28
31 std::string crest_api("");
34 dbmenuloader.setCrestTrigDB(dbname);
35 dbmenuloader.setCrestConnection(crest_server, crest_api);
36 }
39
40 }
42
43 TrigConf::JsonFileLoader fileLoader;
45
47
50 auto hltmenu = std::make_unique<TrigConf::HLTMenu>();
52 if (status) {
54 } else {
55 ATH_MSG_DEBUG(
"No HLT menu created, cannot compute a MC-SMK in this job");
56 }
57 }
58 ATH_MSG_INFO(
"Setting file-loaded L1 Menu SMK to:" << smk);
60
61
62 }
63 else {
65 <<
"'. Allowed values: " <<
m_inputType.documentation());
66 return StatusCode::FAILURE;
67 }
68
69 ServiceHandle<StoreGateSvc>
detStore(
"StoreGateSvc/DetectorStore",
name());
71 if (
detStore->record(std::move(l1menu),
"L1TriggerMenu").isSuccess()) {
72 ATH_MSG_INFO(
"Recorded L1 menu as 'L1TriggerMenu' in detector store");
73 }
74
75 return StatusCode::SUCCESS;
76}
void setLevel(MSGTC::Level lvl)
bool loadFile(const std::string &filename, boost::property_tree::ptree &data, const std::string &pathToChild="") const
Load content of json file into a ptree.
Gaudi::Property< std::string > m_hltFileName
uint32_t truncatedHash(const DataStructure &dataStructure)
Function to compute a truncated MD5 hash for a JSON file.
bool isCrestConnection(const std::string &db_connection_string, std::string &crest_server, std::string &crest_api, std::string &dbname)
Function to interpret the trigger connection string for CREST connections Format of the connections s...