ATLAS Offline Software
Loading...
Searching...
No Matches
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:
20
21
22namespace Ringer {
23
25 virtual public IAsgRingerSelectorTool
26 {
27
28 public:
29
30 // Use ASG_TOOL macro for 2 interface base classes.
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
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
#define ASG_TOOL_CLASS2(CLASSNAME, INT1, INT2)
virtual StatusCode initialize() override
Gaudi Service Interface method implementations.
virtual asg::AcceptData accept(const xAOD::TrigRingerRings *, float discr, float mu) const override
Accept method.
virtual const asg::AcceptInfo & getAcceptInfo() const override
Method to get the plain TAccept for the last particle.
Gaudi::Property< bool > m_useTansigOutput
virtual StatusCode finalize() override
Gaudi Service Interface method implementations.
ServiceHandle< AthOnnx::IOnnxRuntimeSvc > m_onnxSvc
Gaudi::Property< std::vector< std::string > > m_configFiles
virtual ASG_TOOL_CLASS2(AsgRingerSelectorTool, IAsgRingerSelectorTool, IAsgSelectionTool) AsgRingerSelectorTool(const std ~AsgRingerSelectorTool()
Standard constructor.
virtual float predict(const xAOD::TrigRingerRings *) const override
@briel Calculation of model output for fast calorimetry or fast photon step (HLT usage only)
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
Class providing the definition of the 4-vector interface.
Namespace dedicated for Ringer utilities.
TrigRingerRings_v2 TrigRingerRings
Define the latest version of the TrigRingerRings class.
TrigElectron_v1 TrigElectron
Declare the latest version of the class.