ATLAS Offline Software
eEmInputAlgTool.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_EEMINPUTALGTOOL_H
6 #define GLOBALSIM_EEMINPUTALGTOOL_H
7 
12 #include "../IL1TopoAlgTool.h"
13 #include "../IO/eEmTOBArray.h"
14 
15 
18 
19 
20 #include <string>
21 
22 namespace GlobalSim {
23 
24  class eEmInputAlgTool: public extends<AthAlgTool, IL1TopoAlgTool> {
25 
26  public:
27  eEmInputAlgTool(const std::string& type,
28  const std::string& name,
29  const IInterface* parent);
30 
31  virtual ~eEmInputAlgTool() = default;
32 
33  StatusCode initialize() override;
34 
35  // adapted from L1TopoSimulation eFexInputProvider
36 
37  virtual StatusCode run(const EventContext& ctx) const override;
38 
39  virtual std::string toString() const override;
40 
41 
42  private:
43 
45  m_eEmRoIKey {this, "eFexEMRoIKey", "L1_eEMRoI", "eFEXEM EDM"};
46 
48  m_eEmTOBArrayWriteKey {this, "TOBArrayWriteKey", "",
49  "key to write out an eEmTOBArray"};
50 
51  static constexpr double s_EtDouble_conversion{0.1}; // 100 MeV to GeV
52  static constexpr double s_phiDouble_conversion{0.05}; // 20 x phi to phi
53  static constexpr double s_etaDouble_conversion{0.025}; // 40 x eta to eta
54 
55  };
56 }
57 #endif
GlobalSim::eEmInputAlgTool::eEmInputAlgTool
eEmInputAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: eEmInputAlgTool.cxx:12
GlobalSim::eEmInputAlgTool::initialize
StatusCode initialize() override
Definition: eEmInputAlgTool.cxx:18
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
GlobalSim::eEmInputAlgTool::m_eEmTOBArrayWriteKey
SG::WriteHandleKey< GlobalSim::eEmTOBArray > m_eEmTOBArrayWriteKey
Definition: eEmInputAlgTool.h:48
GlobalSim
AlgTool to obtain a GlobalSim::cTAUTOBArray This class uses ReadHandls to jFex and eFex Tau Rois If t...
Definition: dump.h:8
SG::WriteHandleKey< GlobalSim::eEmTOBArray >
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
GlobalSim::eEmInputAlgTool::s_phiDouble_conversion
static constexpr double s_phiDouble_conversion
Definition: eEmInputAlgTool.h:52
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
GlobalSim::eEmInputAlgTool::run
virtual StatusCode run(const EventContext &ctx) const override
Definition: eEmInputAlgTool.cxx:25
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
GlobalSim::eEmInputAlgTool::~eEmInputAlgTool
virtual ~eEmInputAlgTool()=default
GlobalSim::eEmInputAlgTool::m_eEmRoIKey
SG::ReadHandleKey< xAOD::eFexEMRoIContainer > m_eEmRoIKey
Definition: eEmInputAlgTool.h:45
GlobalSim::eEmInputAlgTool
Definition: eEmInputAlgTool.h:24
GlobalSim::eEmInputAlgTool::toString
virtual std::string toString() const override
Definition: eEmInputAlgTool.cxx:97
GlobalSim::eEmInputAlgTool::s_EtDouble_conversion
static constexpr double s_EtDouble_conversion
Definition: eEmInputAlgTool.h:51
GlobalSim::eEmInputAlgTool::s_etaDouble_conversion
static constexpr double s_etaDouble_conversion
Definition: eEmInputAlgTool.h:53
eFexEMRoIContainer.h