ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
JetTagging
FlavorTagInference
Root
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
5
#include "
FlavorTagInference/GNNOptions.h
"
6
7
#include "
src/hash.h
"
8
9
namespace
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
}
15
hash
=
combine
(
hash
,
getHash
(
default_output_value
));
16
for
(
const
auto
& [k, v]:
default_output_values
) {
17
hash
=
combine
(
hash
,
getHash
(k) ^
getHash
(v));
18
}
19
hash
=
combine
(
hash
,
getHash
(
default_zero_tracks
));
20
return
hash
;
21
}
22
bool
GNNOptions::operator==
(
const
GNNOptions
& o)
const
{
23
return
24
flip_config
== o.
flip_config
&&
25
variable_remapping
== o.
variable_remapping
&&
26
default_output_value
== o.
default_output_value
&&
27
default_output_values
== o.
default_output_values
&&
28
default_zero_tracks
== o.
default_zero_tracks
;
29
}
30
}
31
GNNOptions.h
hash.h
FlavorTagInference
This file contains "getter" functions used for accessing tagger inputs from the EDM.
Definition
CaloClusterLoader.h:27
FlavorTagInference::combine
size_t combine(size_t lhs, size_t rhs)
Definition
hash.h:22
FlavorTagInference::getHash
std::size_t getHash(const T &obj)
Definition
hash.h:14
FlavorTagInference::GNNOptions
Definition
GNNOptions.h:15
FlavorTagInference::GNNOptions::default_output_value
float default_output_value
Definition
GNNOptions.h:18
FlavorTagInference::GNNOptions::flip_config
FlipTagConfig flip_config
Definition
GNNOptions.h:16
FlavorTagInference::GNNOptions::default_output_values
std::map< std::string, float > default_output_values
Definition
GNNOptions.h:19
FlavorTagInference::GNNOptions::hash
std::size_t hash() const
Definition
GNNOptions.cxx:10
FlavorTagInference::GNNOptions::default_zero_tracks
bool default_zero_tracks
Definition
GNNOptions.h:20
FlavorTagInference::GNNOptions::operator==
bool operator==(const GNNOptions &) const
Definition
GNNOptions.cxx:22
FlavorTagInference::GNNOptions::variable_remapping
std::map< std::string, std::string > variable_remapping
Definition
GNNOptions.h:17
Generated on
for ATLAS Offline Software by
1.17.0