ATLAS Offline Software
jJetInputAlgTool.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 GLOBALSIM_JJETINPUTALGTOOL_H
6 #define GLOBALSIM_JJETINPUTALGTOOL_H
7 
13 #include "../IGlobalSimAlgTool.h"
14 #include "../IO/jJetTOBArray.h"
15 
18 
19 
20 #include <string>
21 
22 namespace GlobalSim {
23 
24  class jJetInputAlgTool: public extends<AthAlgTool, IGlobalSimAlgTool> {
25 
26  public:
27  jJetInputAlgTool(const std::string& type,
28  const std::string& name,
29  const IInterface* parent);
30 
31  virtual ~jJetInputAlgTool() = default;
32 
33  StatusCode initialize() override;
34 
35  // adapted from L1TopoSimulation jFexInputProvider
36 
37  virtual StatusCode run(const EventContext& ctx) const override;
38 
39  virtual std::string toString() const override;
40 
41 
42  private:
43 
45  "jFexSRJetRoIKey", "L1_jFexSRJetRoI", "jFEX Jet EDM"};
46 
48  m_jJetTOBArrayWriteKey {this, "TOBArrayWriteKey", "",
49  "key to write out an jJetTOBArray"};
50 
51 
52  static constexpr int s_Et_conversion{2}; // 200 MeV to 100 MeV
53  static constexpr double s_EtDouble_conversion{0.1}; // 100 MeV to GeV
54  static constexpr double s_phiDouble_conversion{0.05}; // 20 x phi to phi
55  static constexpr double s_etaDouble_conversion{0.025}; // 40 x eta to eta
56 
57  };
58 }
59 #endif
GlobalSim::jJetInputAlgTool::s_EtDouble_conversion
static constexpr double s_EtDouble_conversion
Definition: jJetInputAlgTool.h:53
GlobalSim::jJetInputAlgTool::s_etaDouble_conversion
static constexpr double s_etaDouble_conversion
Definition: jJetInputAlgTool.h:55
GlobalSim::jJetInputAlgTool::initialize
StatusCode initialize() override
Definition: jJetInputAlgTool.cxx:20
GlobalSim::jJetInputAlgTool::~jJetInputAlgTool
virtual ~jJetInputAlgTool()=default
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
GlobalSim::jJetInputAlgTool::m_jJetTOBArrayWriteKey
SG::WriteHandleKey< GlobalSim::jJetTOBArray > m_jJetTOBArrayWriteKey
Definition: jJetInputAlgTool.h:48
GlobalSim
AlgTool to obtain a selection of eFex RoIs read in from the event store.
Definition: dump.h:8
SG::WriteHandleKey< GlobalSim::jJetTOBArray >
jFexSRJetRoIContainer.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
GlobalSim::jJetInputAlgTool::m_jJetRoIKey
SG::ReadHandleKey< xAOD::jFexSRJetRoIContainer > m_jJetRoIKey
Definition: jJetInputAlgTool.h:44
test_pyathena.parent
parent
Definition: test_pyathena.py:15
GlobalSim::jJetInputAlgTool::toString
virtual std::string toString() const override
Definition: jJetInputAlgTool.cxx:85
GlobalSim::jJetInputAlgTool::s_Et_conversion
static constexpr int s_Et_conversion
Definition: jJetInputAlgTool.h:52
GlobalSim::jJetInputAlgTool::jJetInputAlgTool
jJetInputAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: jJetInputAlgTool.cxx:14
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
GlobalSim::jJetInputAlgTool::s_phiDouble_conversion
static constexpr double s_phiDouble_conversion
Definition: jJetInputAlgTool.h:54
GlobalSim::jJetInputAlgTool::run
virtual StatusCode run(const EventContext &ctx) const override
Definition: jJetInputAlgTool.cxx:28
GlobalSim::jJetInputAlgTool
Definition: jJetInputAlgTool.h:24