ATLAS Offline Software
Loading...
Searching...
No Matches
GNNOptions.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef GNN_OPTIONS_H
6#define GNN_OPTIONS_H
7
9
10#include <map>
11#include <string>
12#include <cmath>
13
14namespace FlavorTagInference {
15 struct GNNOptions {
17 std::map<std::string, std::string> variable_remapping = {};
19 std::map<std::string, float> default_output_values;
20 bool default_zero_tracks = false;
21 bool operator==(const GNNOptions&) const;
22 std::size_t hash() const;
23 };
24}
25
26// some definitions to make sure we can use GNNOptions as a key
27template<>
28struct std::hash<FlavorTagInference::GNNOptions> {
29 std::size_t operator()(const FlavorTagInference::GNNOptions& o) const {
30 return o.hash();
31 }
32};
33
34#endif
This file contains "getter" functions used for accessing tagger inputs from the EDM.
std::map< std::string, float > default_output_values
Definition GNNOptions.h:19
bool operator==(const GNNOptions &) const
std::map< std::string, std::string > variable_remapping
Definition GNNOptions.h:17
std::size_t operator()(const FlavorTagInference::GNNOptions &o) const
Definition GNNOptions.h:29