ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
RingerSelectorTools
RingerSelectorTools
AsgRingerSelectorTool.h
Go to the documentation of this file.
1
// Dear emacs, this is -*- c++ -*-
2
/*
3
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
4
*/
5
#ifndef RINGERSELECTORTOOLS_ASGRINGERSELECTORTOOL_H
6
#define RINGERSELECTORTOOLS_ASGRINGERSELECTORTOOL_H
7
8
// STL includes:
9
#include <string>
10
11
// Athena includes
12
#include "
PATCore/AcceptData.h
"
13
#include "
PATCore/AcceptInfo.h
"
14
#include "
AsgTools/AsgTool.h
"
15
16
// xAOD includes:
17
#include "
RingerSelectorTools/IAsgRingerSelectorTool.h
"
18
#include "
RingerSelectorTools/tools/onnx/RingerSelector.h
"
19
#include "
AthOnnxInterfaces/IOnnxRuntimeSvc.h
"
20
21
22
namespace
Ringer
{
23
24
class
AsgRingerSelectorTool
:
public
asg::AsgTool
,
25
virtual
public
IAsgRingerSelectorTool
26
{
27
28
public
:
29
30
// Use ASG_TOOL macro for 2 interface base classes.
31
ASG_TOOL_CLASS2
(
AsgRingerSelectorTool
,
32
IAsgRingerSelectorTool
,
33
IAsgSelectionTool
)
34
35
36
37
AsgRingerSelectorTool
(
const
std::string& name);
38
40
virtual
~AsgRingerSelectorTool
();
41
43
virtual
StatusCode
initialize
()
override
;
44
46
virtual
StatusCode
finalize
()
override
;
47
48
52
virtual
const
asg::AcceptInfo
&
getAcceptInfo
()
const override
{
return
m_accept
; };
53
54
58
virtual
float
predict
(
const
xAOD::TrigRingerRings
* )
const override
;
59
63
virtual
float
predict
(
const
xAOD::TrigRingerRings
*,
const
xAOD::TrigElectron
*)
const override
;
64
65
69
virtual
asg::AcceptData
accept
(
const
xAOD::TrigRingerRings
*,
float
discr,
float
mu )
const override
;
70
71
72
virtual
asg::AcceptData
accept
(
const
xAOD::IParticle
*)
const override
;
73
74
75
private
:
76
77
asg::AcceptInfo
m_accept
;
78
onnx::RingerSelector
m_selector
;
79
80
Gaudi::Property<std::vector<std::string>>
m_configFiles
{
this
,
"ConfigFiles"
, {},
"Ringer Run3 Calib Path"
};
81
ServiceHandle< AthOnnx::IOnnxRuntimeSvc >
m_onnxSvc
{
this
,
"ONNXRuntimeSvc"
,
"AthOnnx::OnnxRuntimeSvc"
,
"Name of the service to use"
};
82
Gaudi::Property<bool>
m_useTansigOutput
{
this
,
"UseTansigOutput"
, {},
"Use tansig output."
};
83
84
};
85
86
}
87
#endif
AcceptData.h
AcceptInfo.h
ASG_TOOL_CLASS2
#define ASG_TOOL_CLASS2(CLASSNAME, INT1, INT2)
Definition
AsgToolMacros.h:77
AsgTool.h
IAsgRingerSelectorTool.h
IOnnxRuntimeSvc.h
RingerSelector.h
IAsgSelectionTool
Definition
IAsgSelectionTool.h:28
Ringer::AsgRingerSelectorTool
Definition
AsgRingerSelectorTool.h:26
Ringer::AsgRingerSelectorTool::initialize
virtual StatusCode initialize() override
Gaudi Service Interface method implementations.
Definition
AsgRingerSelectorTool.cxx:31
Ringer::AsgRingerSelectorTool::accept
virtual asg::AcceptData accept(const xAOD::TrigRingerRings *, float discr, float mu) const override
Accept method.
Definition
AsgRingerSelectorTool.cxx:63
Ringer::AsgRingerSelectorTool::m_accept
asg::AcceptInfo m_accept
Definition
AsgRingerSelectorTool.h:77
Ringer::AsgRingerSelectorTool::getAcceptInfo
virtual const asg::AcceptInfo & getAcceptInfo() const override
Method to get the plain TAccept for the last particle.
Definition
AsgRingerSelectorTool.h:52
Ringer::AsgRingerSelectorTool::m_useTansigOutput
Gaudi::Property< bool > m_useTansigOutput
Definition
AsgRingerSelectorTool.h:82
Ringer::AsgRingerSelectorTool::finalize
virtual StatusCode finalize() override
Gaudi Service Interface method implementations.
Definition
AsgRingerSelectorTool.cxx:48
Ringer::AsgRingerSelectorTool::m_selector
onnx::RingerSelector m_selector
Definition
AsgRingerSelectorTool.h:78
Ringer::AsgRingerSelectorTool::m_onnxSvc
ServiceHandle< AthOnnx::IOnnxRuntimeSvc > m_onnxSvc
Definition
AsgRingerSelectorTool.h:81
Ringer::AsgRingerSelectorTool::m_configFiles
Gaudi::Property< std::vector< std::string > > m_configFiles
Definition
AsgRingerSelectorTool.h:80
Ringer::AsgRingerSelectorTool::~AsgRingerSelectorTool
virtual ASG_TOOL_CLASS2(AsgRingerSelectorTool, IAsgRingerSelectorTool, IAsgSelectionTool) AsgRingerSelectorTool(const std ~AsgRingerSelectorTool()
Standard constructor.
Definition
AsgRingerSelectorTool.cxx:23
Ringer::AsgRingerSelectorTool::predict
virtual float predict(const xAOD::TrigRingerRings *) const override
@briel Calculation of model output for fast calorimetry or fast photon step (HLT usage only)
Definition
AsgRingerSelectorTool.cxx:73
Ringer::IAsgRingerSelectorTool
Definition
IAsgRingerSelectorTool.h:20
Ringer::onnx::RingerSelector
Definition
RingerSelector.h:29
ServiceHandle< AthOnnx::IOnnxRuntimeSvc >
asg::AcceptData
Definition
AcceptData.h:31
asg::AcceptInfo
Definition
AcceptInfo.h:28
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
Ringer
Namespace dedicated for Ringer utilities.
Definition
CaloRingsDefs.h:9
xAOD::TrigRingerRings
TrigRingerRings_v2 TrigRingerRings
Define the latest version of the TrigRingerRings class.
Definition
TrigRingerRings.h:17
xAOD::TrigElectron
TrigElectron_v1 TrigElectron
Declare the latest version of the class.
Definition
Event/xAOD/xAODTrigEgamma/xAODTrigEgamma/TrigElectron.h:16
Generated on
for ATLAS Offline Software by
1.17.0