ATLAS Offline Software
Loading...
Searching...
No Matches
PassThroughSaltModel.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef FLAVORTAGINFERENCE_PASSTHROUGHSALTMODEL_H
6#define FLAVORTAGINFERENCE_PASSTHROUGHSALTMODEL_H
7
10#include "nlohmann/json.hpp"
11
12#include <string>
13#include <vector>
14#include <map>
15
16namespace FlavorTagInference {
17
26 public:
47 PassThroughSaltModel(const nlohmann::json& config);
48 virtual ~PassThroughSaltModel() = default;
49
50 InferenceOutput runInference(InputMap& gnn_inputs) const override;
51
53 const OutputConfig& getOutputConfig() const override;
55 const std::string& getModelName() const override;
56
57 private:
58 std::string m_model_name;
61
63 std::vector<std::string> m_jet_input_names;
65 std::vector<std::string> m_jet_output_names;
66
69 std::string node_name;
70 std::string input_key;
71 size_t num_vars;
72 std::vector<std::string> output_names;
73 std::vector<std::string> var_types;
74 };
75 std::vector<ConstituentNode> m_constituent_nodes;
76 };
77
78} // namespace FlavorTagInference
79
80#endif
const std::string & getModelName() const override
std::vector< ConstituentNode > m_constituent_nodes
SaltModelGraphConfig::GraphConfig m_graph_config
std::vector< std::string > m_jet_output_names
Scalar jet variables: output names (matching by index).
PassThroughSaltModel(const nlohmann::json &config)
Construct from a JSON config with the format: { "model_name": "PassThrough", "jet_variables": [ {"inp...
const SaltModelGraphConfig::GraphConfig getGraphConfig() const override
InferenceOutput runInference(InputMap &gnn_inputs) const override
const OutputConfig & getOutputConfig() const override
SaltModelVersion getSaltModelVersion() const override
std::vector< std::string > m_jet_input_names
Scalar jet variables: input names (graph config order).
This file contains "getter" functions used for accessing tagger inputs from the EDM.
std::vector< SaltModelOutput > OutputConfig
Definition ISaltModel.h:38
std::map< std::string, Inputs, std::less<> > InputMap
Definition ISaltModel.h:37
std::vector< std::string > output_names
per-variable output names
std::string node_name
e.g. "tracks_r22loose_sd0sort" (drives ConstituentsLoader sort/select regex)
std::vector< std::string > var_types
per-variable: "float", "int", or "char"
std::string input_key
key in gnn_inputs, read from JSON "input_key" (e.g. "tracks", "flows")