ATLAS Offline Software
jXEInputAlgTool.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_JXEINPUTALGTOOL_H
6 #define GLOBALSIM_JXEINPUTALGTOOL_H
7 
12 #include "../IGlobalSimAlgTool.h"
13 #include "../IO/jXETOBArray.h"
14 
19 
20 #include <string>
21 
22 namespace GlobalSim {
23 
24  class jXEInputAlgTool: public extends<AthAlgTool, IGlobalSimAlgTool> {
25 
26  public:
27  jXEInputAlgTool(const std::string& type,
28  const std::string& name,
29  const IInterface* parent);
30 
31  virtual ~jXEInputAlgTool() = 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  "jFexMETRoIKey", "L1_jFexMETRoI", "jFEX TE EDM"};
46 
48  m_jXETOBArrayWriteKey {this, "TOBArrayWriteKey", "",
49  "key to write out an jXETOBArray"};
50 
51  static constexpr int s_Et_conversion{2}; // 200 MeV to 100 MeV
52  static constexpr double s_EtDouble_conversion{0.1}; // 100 MeV to GeV;
53 
54 
55  ToolHandle<GenericMonitoringTool> m_monTool {
56  this, "monTool", "", "Monitoring tool to create histograms"};
57 
58  };
59 }
60 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
GlobalSim::jXEInputAlgTool::toString
virtual std::string toString() const override
Definition: jXEInputAlgTool.cxx:108
GlobalSim::jXEInputAlgTool::s_Et_conversion
static constexpr int s_Et_conversion
Definition: jXEInputAlgTool.h:51
GlobalSim::jXEInputAlgTool::s_EtDouble_conversion
static constexpr double s_EtDouble_conversion
Definition: jXEInputAlgTool.h:52
GlobalSim::jXEInputAlgTool::~jXEInputAlgTool
virtual ~jXEInputAlgTool()=default
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
GlobalSim::jXEInputAlgTool
Definition: jXEInputAlgTool.h:24
GlobalSim::jXEInputAlgTool::jXEInputAlgTool
jXEInputAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: jXEInputAlgTool.cxx:13
GlobalSim::jXEInputAlgTool::m_jFexMETRoIKey
SG::ReadHandleKey< xAOD::jFexMETRoIContainer > m_jFexMETRoIKey
Definition: jXEInputAlgTool.h:44
GlobalSim
AlgTool to obtain a selection of eFex RoIs read in from the event store.
Definition: dump.h:8
SG::WriteHandleKey< GlobalSim::jXETOBArray >
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
Monitored.h
Header file to be included by clients of the Monitored infrastructure.
GlobalSim::jXEInputAlgTool::m_jXETOBArrayWriteKey
SG::WriteHandleKey< GlobalSim::jXETOBArray > m_jXETOBArrayWriteKey
Definition: jXEInputAlgTool.h:48
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
GlobalSim::jXEInputAlgTool::m_monTool
ToolHandle< GenericMonitoringTool > m_monTool
Definition: jXEInputAlgTool.h:55
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
GlobalSim::jXEInputAlgTool::initialize
StatusCode initialize() override
Definition: jXEInputAlgTool.cxx:19
GlobalSim::jXEInputAlgTool::run
virtual StatusCode run(const EventContext &ctx) const override
Definition: jXEInputAlgTool.cxx:29
jFexMETRoIContainer.h