ATLAS Offline Software
Loading...
Searching...
No Matches
GNNToolifiers.cxx
Go to the documentation of this file.
1/*
2+ Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
8
9#include "AsgTools/AsgTool.h"
10
11namespace FlavorTagInference {
13 t.declareProperty("flipTagConfig", props->flipTagConfig,
14 "flip configuration used for calibration");
15 t.declareProperty("variableRemapping", props->variableRemapping,
16 "user-defined mapping to rename the vars stored in the NN");
17 t.declareProperty("trackLinkType", props->trackLinkType,
18 "access tracks as IParticleContainer or as TrackParticleContainer");
19 t.declareProperty("defaultOutputValue", props->default_output_value);
20 t.declareProperty("defaultOutputValues", props->default_output_values);
21 t.declareProperty("defaultZeroTracks", props->default_zero_tracks);
22 }
23
25 GNNOptions opts;
26 if (props.flipTagConfig.size() > 0) {
27 opts.flip_config = flipTagConfigFromString(props.flipTagConfig);
28 }
29 opts.variable_remapping = props.variableRemapping;
30 opts.default_output_value = props.default_output_value;
31 {
32 const auto& d = props.default_output_values;
33 opts.default_output_values.insert(d.begin(), d.end());
34 }
35 opts.default_zero_tracks = props.default_zero_tracks;
36 return opts;
37 }
38
39}
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
This file contains "getter" functions used for accessing tagger inputs from the EDM.
FlipTagConfig flipTagConfigFromString(const std::string &)
GNNOptions getOptions(const GNNToolProperties &)
void propify(asg::AsgTool &tool, GNNToolProperties *props)
std::map< std::string, double > default_output_values
std::map< std::string, std::string > variableRemapping