ATLAS Offline Software
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 
14 namespace FlavorTagInference {
15  struct GNNOptions {
17  std::map<std::string, std::string> variable_remapping = {};
18  float default_output_value = NAN;
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
27 template<>
28 struct std::hash<FlavorTagInference::GNNOptions> {
29  std::size_t operator()(const FlavorTagInference::GNNOptions& o) const {
30  return o.hash();
31  }
32 };
33 
34 #endif
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
This file contains "getter" functions used for accessing tagger inputs from the EDM.
Definition: PhysicsAnalysis/JetTagging/FlavorTagInference/FlavorTagInference/ConstituentsLoader.h:27
FlavorTagInference::GNNOptions::operator==
bool operator==(const GNNOptions &) const
Definition: GNNOptions.cxx:22
FlavorTagInference::GNNOptions::hash
std::size_t hash() const
Definition: GNNOptions.cxx:10
std::hash< FlavorTagInference::GNNOptions >::operator()
std::size_t operator()(const FlavorTagInference::GNNOptions &o) const
Definition: GNNOptions.h:29
FlipTagEnums.h
FlavorTagInference::FlipTagConfig
FlipTagConfig
Definition: FlipTagEnums.h:14
FlavorTagInference::GNNOptions::default_output_values
std::map< std::string, float > default_output_values
Definition: GNNOptions.h:19
FlavorTagInference::GNNOptions::default_zero_tracks
bool default_zero_tracks
Definition: GNNOptions.h:20
FlavorTagInference::GNNOptions
Definition: GNNOptions.h:15
FlavorTagInference::FlipTagConfig::STANDARD
@ STANDARD
CaloCondBlobAlgs_fillNoiseFromASCII.hash
dictionary hash
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:108
FlavorTagInference::GNNOptions::variable_remapping
std::map< std::string, std::string > variable_remapping
Definition: GNNOptions.h:17