ATLAS Offline Software
Loading...
Searching...
No Matches
GNNOptions.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7#include "src/hash.h"
8
9namespace FlavorTagInference {
10 std::size_t GNNOptions::hash() const {
11 size_t hash = getHash(flip_config);
12 for (const auto& [k, v]: variable_remapping) {
13 hash = combine(hash, getHash(k) ^ getHash(v));
14 }
16 for (const auto& [k, v]: default_output_values) {
17 hash = combine(hash, getHash(k) ^ getHash(v));
18 }
20 return hash;
21 }
30}
31
This file contains "getter" functions used for accessing tagger inputs from the EDM.
size_t combine(size_t lhs, size_t rhs)
Definition hash.h:21
std::size_t getHash(const T &obj)
Definition hash.h:13
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