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
11#include "nlohmann/json.hpp"
12
13#include <string>
14#include <vector>
15
16namespace FlavorTagInference {
17
26 public:
47 PassThroughSaltModel(const nlohmann::json& config);
48 virtual ~PassThroughSaltModel() = default;
49
51 std::map<std::string, Inputs>& gnn_inputs) const override;
52
54 const OutputConfig& getOutputConfig() const override;
56 const std::string& getModelName() const override;
57
58 private:
59 std::string m_model_name;
62
64 std::vector<std::string> m_jet_input_names;
66 std::vector<std::string> m_jet_output_names;
67
70 std::string node_name;
71 std::string input_key;
72 size_t num_vars;
73 std::vector<std::string> output_names;
74 std::vector<std::string> var_types;
75 };
76 std::vector<ConstituentNode> m_constituent_nodes;
77 };
78
79} // namespace FlavorTagInference
80
81#endif
InferenceOutput runInference(std::map< std::string, Inputs > &gnn_inputs) const override
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
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:36
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")