ATLAS Offline Software
Loading...
Searching...
No Matches
GNNTool.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_TOOL_H
6#define GNN_TOOL_H
7
8// Tool includes
9#include "AsgTools/AsgTool.h"
13
15
16// EDM includes
17#include "xAODJet/JetFwd.h"
18
19#include <memory>
20#include <string>
21#include <map>
22
23namespace FlavorTagInference {
24
25 class GNN;
26
27 //
28 // Tool to to flavor tag jet/btagging object
29 // using GNN based taggers
30 class GNNTool : public asg::AsgTool,
31 virtual public IJetTagConditionalDecorator
32 {
33
35 GNNTool,
37 public:
38 GNNTool(const std::string& name);
39 ~GNNTool();
40
41 StatusCode initialize() override;
42
43 virtual void decorate(const xAOD::IParticle& i_jet) const override;
44 virtual void decorateWithDefaults(const xAOD::IParticle& i_jet) const override;
45
46 virtual FTagDataDependencyNames getDependencies() const override;
47
48 private:
49
51 this, "nnSharingService", "", "NN sharing service"};
52 std::string m_nn_file;
54 std::shared_ptr<const GNN> m_gnn;
55 };
56}
57#endif
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
virtual void decorateWithDefaults(const xAOD::IParticle &i_jet) const override
Method to decorate a jet with defaults.
Definition GNNTool.cxx:39
ServiceHandle< INNSharingSvc > m_nnsvc
Definition GNNTool.h:50
std::shared_ptr< const GNN > m_gnn
Definition GNNTool.h:54
StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition GNNTool.cxx:22
GNNToolProperties m_props
Definition GNNTool.h:53
virtual void decorate(const xAOD::IParticle &i_jet) const override
Method to decorate a jet.
Definition GNNTool.cxx:36
virtual FTagDataDependencyNames getDependencies() const override
Definition GNNTool.cxx:44
ASG_TOOL_CLASS(GNNTool, IJetTagConditionalDecorator) public ~GNNTool()
Definition GNNTool.cxx:20
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
Class providing the definition of the 4-vector interface.
This file contains "getter" functions used for accessing tagger inputs from the EDM.