ATLAS Offline Software
Loading...
Searching...
No Matches
TauGNN.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7
8
10 asg::AsgMessaging("TauGNN"),
11 m_saltModel(std::make_shared<FlavorTagInference::SaltModel>(config.nnFile)),
13{
14 ATH_MSG_INFO("TauGNN object initialized successfully!");
15}
16
17std::tuple<
18 std::map<std::string, float>,
19 std::map<std::string, std::vector<char>>,
20 std::map<std::string, std::vector<float>> >
21TauGNN::compute(const xAOD::TauJet &tau) const {
22 ATH_MSG_DEBUG("Computing TauGNN features...");
23 auto salt_model_input_data = m_dataloader.loadInputs(&tau);
24 // m_dataloader.DumpGnnInputs(salt_model_input_data.gnn_inputs);
25 ATH_MSG_DEBUG("Running inference...");
26 auto [out_f, out_vc, out_vf] = m_saltModel->runInference(salt_model_input_data.gnn_inputs);
27 ATH_MSG_DEBUG("Inference done.");
28 return std::make_tuple(out_f, out_vc, out_vf);
29}
#define ATH_MSG_INFO(x)
#define ATH_MSG_DEBUG(x)
TauGNNDataLoader m_dataloader
Definition TauGNN.h:39
std::tuple< std::map< std::string, float >, std::map< std::string, std::vector< char > >, std::map< std::string, std::vector< float > > > compute(const xAOD::TauJet &tau) const
Definition TauGNN.cxx:21
TauGNN(const TauGNNDataLoader::Config &config)
Definition TauGNN.cxx:9
std::shared_ptr< const FlavorTagInference::SaltModel > m_saltModel
Definition TauGNN.h:38
AsgMessaging(const std::string &name)
Constructor with a name.
This file contains "getter" functions used for accessing tagger inputs from the EDM.
STL namespace.
TauJet_v3 TauJet
Definition of the current "tau version".