ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
JetTagging
FlavorTagInference
FlavorTagInference
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
"
10
#include "
AsgServices/ServiceHandle.h
"
11
#include "
FlavorTagInference/INNSharingSvc.h
"
12
#include "
FlavorTagInference/IJetTagConditionalDecorator.h
"
13
14
#include "
FlavorTagInference/GNNToolifiers.h
"
15
16
// EDM includes
17
#include "
xAODJet/JetFwd.h
"
18
19
#include <memory>
20
#include <string>
21
#include <map>
22
23
namespace
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
34
ASG_TOOL_CLASS
(
35
GNNTool
,
36
IJetTagConditionalDecorator
)
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
50
ServiceHandle<INNSharingSvc>
m_nnsvc
{
51
this
,
"nnSharingService"
,
""
,
"NN sharing service"
};
52
std::string
m_nn_file
;
53
GNNToolProperties
m_props
;
54
std::shared_ptr<const GNN>
m_gnn
;
55
};
56
}
57
#endif
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition
AsgToolMacros.h:68
AsgTool.h
GNNToolifiers.h
IJetTagConditionalDecorator.h
INNSharingSvc.h
JetFwd.h
ServiceHandle.h
FlavorTagInference::GNNTool
Definition
GNNTool.h:32
FlavorTagInference::GNNTool::decorateWithDefaults
virtual void decorateWithDefaults(const xAOD::IParticle &i_jet) const override
Method to decorate a jet with defaults.
Definition
GNNTool.cxx:39
FlavorTagInference::GNNTool::m_nnsvc
ServiceHandle< INNSharingSvc > m_nnsvc
Definition
GNNTool.h:50
FlavorTagInference::GNNTool::m_gnn
std::shared_ptr< const GNN > m_gnn
Definition
GNNTool.h:54
FlavorTagInference::GNNTool::initialize
StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition
GNNTool.cxx:22
FlavorTagInference::GNNTool::m_props
GNNToolProperties m_props
Definition
GNNTool.h:53
FlavorTagInference::GNNTool::decorate
virtual void decorate(const xAOD::IParticle &i_jet) const override
Method to decorate a jet.
Definition
GNNTool.cxx:36
FlavorTagInference::GNNTool::m_nn_file
std::string m_nn_file
Definition
GNNTool.h:52
FlavorTagInference::GNNTool::getDependencies
virtual FTagDataDependencyNames getDependencies() const override
Definition
GNNTool.cxx:44
FlavorTagInference::GNNTool::~GNNTool
ASG_TOOL_CLASS(GNNTool, IJetTagConditionalDecorator) public ~GNNTool()
Definition
GNNTool.cxx:20
FlavorTagInference::GNN
Definition
GNN.h:36
IJetTagConditionalDecorator
Definition
IJetTagConditionalDecorator.h:27
ServiceHandle
Definition
ClusterMakerTool.h:36
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition
AsgTool.h:47
xAOD::IParticle
Class providing the definition of the 4-vector interface.
Definition
Event/xAOD/xAODBase/xAODBase/IParticle.h:41
FlavorTagInference
This file contains "getter" functions used for accessing tagger inputs from the EDM.
Definition
CaloClusterLoader.h:27
FlavorTagInference::FTagDataDependencyNames
Definition
FTagDataDependencyNames.h:12
FlavorTagInference::GNNToolProperties
Definition
GNNToolifiers.h:22
Generated on
for ATLAS Offline Software by
1.17.0