ATLAS Offline Software
JSSWTopTaggerDNN.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef JSSWTOPTAGGERDNN_H_
6 #define JSSWTOPTAGGERDNN_H_
7 
9 
10 #include "lwtnn/LightweightNeuralNetwork.hh"
11 #include "lwtnn/parse_json.hh"
12 
14  public JSSTaggerBase {
16 
17  public:
18 
20  JSSWTopTaggerDNN( const std::string& name );
21 
23  virtual StatusCode initialize() override;
24 
26  virtual StatusCode tag( const xAOD::Jet& jet ) const override;
27 
28  private:
29 
31  std::unique_ptr<lwt::LightweightNeuralNetwork> m_lwnn;
33  std::map<std::string, double> m_DNN_inputValues;
34 
36  double getScore( const xAOD::Jet& jet ) const;
37 
39  std::map<std::string,double> getJetProperties( const xAOD::Jet& jet ) const;
40 
41  };
42 
43 #endif
JSSWTopTaggerDNN::JSSWTopTaggerDNN
JSSWTopTaggerDNN(const std::string &name)
Constructor.
Definition: JSSWTopTaggerDNN.cxx:9
JSSWTopTaggerDNN::m_DNN_inputValues
std::map< std::string, double > m_DNN_inputValues
Variables for DNN.
Definition: JSSWTopTaggerDNN.h:33
JSSWTopTaggerDNN
Definition: JSSWTopTaggerDNN.h:14
JSSWTopTaggerDNN::initialize
virtual StatusCode initialize() override
Run once at the start of the job to setup everything.
Definition: JSSWTopTaggerDNN.cxx:17
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ASG_TOOL_CLASS0
#define ASG_TOOL_CLASS0(CLASSNAME)
Definition: AsgToolMacros.h:62
JSSWTopTaggerDNN::m_lwnn
std::unique_ptr< lwt::LightweightNeuralNetwork > m_lwnn
DNN tools.
Definition: JSSWTopTaggerDNN.h:31
JSSTaggerBase
Definition: JSSTaggerBase.h:39
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
JSSWTopTaggerDNN::getScore
double getScore(const xAOD::Jet &jet) const
Retrieve score for a given DNN type (top/W)
Definition: JSSWTopTaggerDNN.cxx:289
JSSWTopTaggerDNN::getJetProperties
std::map< std::string, double > getJetProperties(const xAOD::Jet &jet) const
Update the jet substructure variables for each jet to use in DNN.
Definition: JSSWTopTaggerDNN.cxx:324
JSSWTopTaggerDNN::tag
virtual StatusCode tag(const xAOD::Jet &jet) const override
Decorate single jet with tagging info.
Definition: JSSWTopTaggerDNN.cxx:208
JSSTaggerBase.h