10#include "nlohmann/json.hpp"
19 return StatusCode::FAILURE;
24 if (resolved.empty()) {
26 return StatusCode::FAILURE;
30 std::ifstream
file(resolved);
31 if (!
file.is_open()) {
33 return StatusCode::FAILURE;
36 nlohmann::json config;
39 }
catch (
const nlohmann::json::parse_error& e) {
40 ATH_MSG_ERROR(
"JSON parse error in " << resolved <<
": " << e.what());
41 return StatusCode::FAILURE;
46 auto model = std::make_shared<const PassThroughSaltModel>(config);
54 m_gnn = std::make_shared<const GNN>(salt_model, opts);
55 }
catch (
const std::exception& e) {
56 ATH_MSG_ERROR(
"Failed to create PassThroughSaltModel: " << e.what());
57 return StatusCode::FAILURE;
60 ATH_MSG_INFO(
"PassThroughModelSvc initialized from " << resolved);
61 return StatusCode::SUCCESS;
71 if (!(opts == default_opts)) {
72 return std::make_shared<const GNN>(*
m_gnn, opts);
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
Gaudi::Property< std::string > m_jsonFile
virtual StatusCode initialize() override
Gaudi::Property< std::map< std::string, std::string > > m_variableRemapping
virtual std::shared_ptr< const GNN > get(const std::string &nn_name, const GNNOptions &opts) override
std::shared_ptr< const GNN > m_gnn
This file contains "getter" functions used for accessing tagger inputs from the EDM.
std::shared_ptr< const ISaltModel > ISaltModelPtr