ATLAS Offline Software
PhysicsAnalysis
JetTagging
FlavorTagDiscriminants
Root
GNNOptions.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
FlavorTagDiscriminants/GNNOptions.h
"
6
7
#include "
src/hash.h
"
8
9
namespace
FlavorTagDiscriminants
{
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
(
track_link_type
));
16
hash
=
combine
(
hash
,
getHash
(
default_output_value
));
17
for
(
const
auto
& [
k
,
v
]:
default_output_values
) {
18
hash
=
combine
(
hash
,
getHash
(
k
) ^
getHash
(
v
));
19
}
20
hash
=
combine
(
hash
,
getHash
(
default_zero_tracks
));
21
return
hash
;
22
}
23
bool
GNNOptions::operator==
(
const
GNNOptions
& o)
const
{
24
return
25
flip_config
== o.
flip_config
&&
26
variable_remapping
== o.
variable_remapping
&&
27
track_link_type
== o.
track_link_type
&&
28
default_output_value
== o.
default_output_value
&&
29
default_output_values
== o.
default_output_values
&&
30
default_zero_tracks
== o.
default_zero_tracks
;
31
}
32
}
33
FlavorTagDiscriminants::GNNOptions::hash
std::size_t hash() const
Definition:
GNNOptions.cxx:10
FlavorTagDiscriminants::GNNOptions::flip_config
FlipTagConfig flip_config
Definition:
GNNOptions.h:17
FlavorTagDiscriminants
This file contains "getter" functions used for accessing tagger inputs from the EDM.
Definition:
AssociationEnums.h:11
FlavorTagDiscriminants::GNNOptions
Definition:
GNNOptions.h:16
FlavorTagDiscriminants::GNNOptions::default_output_values
std::map< std::string, float > default_output_values
Definition:
GNNOptions.h:21
GNNOptions.h
FlavorTagDiscriminants::combine
size_t combine(size_t lhs, size_t rhs)
Definition:
hash.h:21
FlavorTagDiscriminants::GNNOptions::variable_remapping
std::map< std::string, std::string > variable_remapping
Definition:
GNNOptions.h:18
FlavorTagDiscriminants::GNNOptions::default_zero_tracks
bool default_zero_tracks
Definition:
GNNOptions.h:22
FlavorTagDiscriminants::GNNOptions::track_link_type
TrackLinkType track_link_type
Definition:
GNNOptions.h:19
FlavorTagDiscriminants::GNNOptions::operator==
bool operator==(const GNNOptions &) const
Definition:
GNNOptions.cxx:23
python.PyAthena.v
v
Definition:
PyAthena.py:154
FlavorTagDiscriminants::getHash
std::size_t getHash(const T &obj)
Definition:
hash.h:13
hash.h
FlavorTagDiscriminants::GNNOptions::default_output_value
float default_output_value
Definition:
GNNOptions.h:20
fitman.k
k
Definition:
fitman.py:528
Generated on Sun Dec 22 2024 21:10:58 for ATLAS Offline Software by
1.8.18