ATLAS Offline Software
GNNOptions.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef GNN_OPTIONS_H
6 #define GNN_OPTIONS_H
7 
10 
11 #include <map>
12 #include <string>
13 #include <cmath>
14 
15 namespace FlavorTagDiscriminants {
16  struct GNNOptions {
18  std::map<std::string, std::string> variable_remapping = {};
20  float default_output_value = NAN;
21  std::map<std::string, float> default_output_values;
22  bool default_zero_tracks = false;
23  bool operator==(const GNNOptions&) const;
24  std::size_t hash() const;
25  };
26 }
27 
28 // some definitions to make sure we can use GNNOptions as a key
29 template<>
30 struct std::hash<FlavorTagDiscriminants::GNNOptions> {
31  std::size_t operator()(const FlavorTagDiscriminants::GNNOptions& o) const {
32  return o.hash();
33  }
34 };
35 
36 #endif
FlavorTagDiscriminants::GNNOptions::hash
std::size_t hash() const
Definition: GNNOptions.cxx:10
FlavorTagDiscriminants::GNNOptions::flip_config
FlipTagConfig flip_config
Definition: GNNOptions.h:17
FlavorTagDiscriminants::FlipTagConfig::STANDARD
@ STANDARD
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
FlipTagEnums.h
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::TrackLinkType
TrackLinkType
Definition: AssociationEnums.h:12
FlavorTagDiscriminants::GNNOptions::operator==
bool operator==(const GNNOptions &) const
Definition: GNNOptions.cxx:23
std::hash< FlavorTagDiscriminants::GNNOptions >::operator()
std::size_t operator()(const FlavorTagDiscriminants::GNNOptions &o) const
Definition: GNNOptions.h:31
CaloCondBlobAlgs_fillNoiseFromASCII.hash
dictionary hash
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:109
FlavorTagDiscriminants::FlipTagConfig
FlipTagConfig
Definition: FlipTagEnums.h:14
AssociationEnums.h
FlavorTagDiscriminants::GNNOptions::default_output_value
float default_output_value
Definition: GNNOptions.h:20
FlavorTagDiscriminants::TrackLinkType::TRACK_PARTICLE
@ TRACK_PARTICLE