ATLAS Offline Software
Loading...
Searching...
No Matches
SaltModelGraphConfig.h
Go to the documentation of this file.
1/*
2Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4# pragma once
5
6#include <iostream>
7#include <fstream>
8#include <sstream>
9#include <string>
10#include <nlohmann/json.hpp>
11
12namespace FlavorTagInference {
14 struct Input
15 {
16 std::string name;
17 double offset;
18 double scale;
19 };
20
22 {
23 std::string name;
24 std::vector<Input> variables;
25 std::map<std::string, std::string> miscellaneous;
26 std::map<std::string, double> defaults;
27 };
28
30 {
31 std::vector<std::string> labels;
32 std::size_t node_index;
33 };
34
36 {
37 std::vector<InputNodeConfig> inputs;
38 std::vector<InputNodeConfig> input_sequences;
39 std::map<std::string, OutputNodeConfig> outputs;
40 };
41
42 Input get_input(const nlohmann::json& v);
43 InputNodeConfig get_input_node(const nlohmann::json& v);
44 OutputNodeConfig get_output_node(const nlohmann::json& v);
45 GraphConfig parse_json_graph(const nlohmann::json& metadata);
46 }
47}
GraphConfig parse_json_graph(const nlohmann::json &metadata)
OutputNodeConfig get_output_node(const nlohmann::json &v)
InputNodeConfig get_input_node(const nlohmann::json &v)
This file contains "getter" functions used for accessing tagger inputs from the EDM.
std::map< std::string, OutputNodeConfig > outputs