 |
ATLAS Offline Software
|
Go to the documentation of this file.
9 #include "GaudiKernel/ServiceHandle.h"
25 auto l1menu = std::make_unique<TrigConf::L1Menu>();
27 if (m_inputType ==
"DB") {
31 std::string crest_api(
"");
41 else if (m_inputType ==
"FILE") {
49 if (!m_hltFileName.empty() &&
smk == 0
u) {
50 auto hltmenu = std::make_unique<TrigConf::HLTMenu>();
55 ATH_MSG_DEBUG(
"No HLT menu created, cannot compute a MC-SMK in this job");
65 <<
"'. Allowed values: " << m_inputType.documentation());
66 return StatusCode::FAILURE;
71 if (
detStore->record(std::move(
l1menu),
"L1TriggerMenu").isSuccess()) {
72 ATH_MSG_INFO(
"Recorded L1 menu as 'L1TriggerMenu' in detector store");
75 return StatusCode::SUCCESS;
81 if (
auto joSvc = serviceLocator()->service<TrigConf::IJobOptionsSvc>(
"JobOptionsSvc")) {
82 if (joSvc->superMasterKey() > 0) {
84 m_smk = joSvc->superMasterKey();
85 m_dbConnection = joSvc->server();
89 ATH_MSG_DEBUG(
"Did not locate TrigConf::JobOptionsSvc, not running athenaHLT");
94 if (m_inputType ==
"FILE") {
97 else if (m_inputType ==
"DB") {
104 return StatusCode::SUCCESS;
Loader class for Trigger configuration (L1 prescales set) from the Trigger DB.
bool loadFile(const std::string &filename, boost::property_tree::ptree &data, const std::string &pathToChild="") const
Load content of json file into a ptree.
void setCrestConnection(const std::string &server, const std::string &version="")
declare CREST as the source of the configuration An empty crest server makes it use Oracle
virtual StatusCode initialize() override
@ u
Enums for curvilinear frames.
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode loadRun3StyleMenu()
void setCrestTrigDB(const std::string &crestTrigDB)
set trigger db for the crest connection
void setLevel(MSGTC::Level lvl)
LVL1ConfigSvc(const std::string &name, ISvcLocator *pSvcLocator)
uint32_t truncatedHash(const DataStructure &dataStructure)
Function to compute a truncated MD5 hash for a JSON file.
void setLevel(MSGTC::Level lvl)
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...
Loader class for Trigger configuration from Json.
Loader of trigger configurations from Json files.