ATLAS Offline Software
cTauInputAlgTool.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_CTAUINPUTALGTOOL_H
6 #define GLOBALSIM_CTAUINPUTALGTOOL_H
7 
16 #include "../IL1TopoAlgTool.h"
17 #include "../IO/cTauTOBArray.h"
18 
23 
24 #include "../IO/cTauTOBArray.h"
25 
26 
27 #include <string>
28 
29 
30 namespace GlobalSim {
31  class cTauInputAlgTool: public extends<AthAlgTool, IL1TopoAlgTool> {
32 
33  public:
34  cTauInputAlgTool(const std::string& type,
35  const std::string& name,
36  const IInterface* parent);
37 
38  virtual ~cTauInputAlgTool() = default;
39 
40  StatusCode initialize() override;
41 
42  // adapted from L1TopoSimulation eFexInputProvider
43 
44  virtual StatusCode
45  run(const EventContext& ctx) const override;
46 
47  virtual std::string toString() const override;
48 
49 
50  private:
51 
53  m_jTauRoIKey {this, "jTauRoIKey", "L1_jFexTauRoI",
54  "jFex jTau container key"};
55 
57  m_cTauTOBArrayWriteKey {this, "TOBArrayWriteKey", "",
58  "key to write out a cTauTOBArray"};
59 
61  m_eTauRoIKey {this, "eTauRoIKey", "L1_eTauRoI", "eFex eTau container key"};
62 
63  // used for jFex RoI to cTau TOB Conversion
64  static constexpr int s_Et_conversion{2}; // 200 MeV to 100 MeV
65 
66  // used for eFex and jFex RoI to cTau TOB Conversion
67  static constexpr double s_EtDouble_conversion{0.1}; // 100 MeV to GeV
68  static constexpr double s_phiDouble_conversion{0.05}; // 20 x phi to phi
69  static constexpr double s_etaDouble_conversion{0.025}; // 40 x eta to eta
70 
71  // j/eFex_cTaus fill a cTauTOBArray using inputs from jFex and eFEx
72 
74  const EventContext& ) const;
76  const EventContext&) const;
77  };
78 }
79 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
GlobalSim::cTauTOBArray
Definition: Global/GlobalSimulation/src/IO/cTauTOBArray.h:17
GlobalSim::cTauInputAlgTool::m_jTauRoIKey
SG::ReadHandleKey< xAOD::jFexTauRoIContainer > m_jTauRoIKey
Definition: cTauInputAlgTool.h:53
GlobalSim::cTauInputAlgTool::s_EtDouble_conversion
static constexpr double s_EtDouble_conversion
Definition: cTauInputAlgTool.h:67
eFexTauRoIContainer.h
GlobalSim::cTauInputAlgTool::m_cTauTOBArrayWriteKey
SG::WriteHandleKey< GlobalSim::cTauTOBArray > m_cTauTOBArrayWriteKey
Definition: cTauInputAlgTool.h:57
GlobalSim::cTauInputAlgTool::toString
virtual std::string toString() const override
Definition: cTauInputAlgTool.cxx:184
GlobalSim::cTauInputAlgTool::~cTauInputAlgTool
virtual ~cTauInputAlgTool()=default
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
jFexTauRoIContainer.h
GlobalSim::cTauInputAlgTool::jFex_cTaus
StatusCode jFex_cTaus(GlobalSim::cTauTOBArray &, const EventContext &) const
Definition: cTauInputAlgTool.cxx:120
GlobalSim
AlgTool to obtain a GlobalSim::cTAUTOBArray This class uses ReadHandls to jFex and eFex Tau Rois If t...
Definition: dump.h:8
GlobalSim::cTauInputAlgTool::s_etaDouble_conversion
static constexpr double s_etaDouble_conversion
Definition: cTauInputAlgTool.h:69
SG::WriteHandleKey< GlobalSim::cTauTOBArray >
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
GlobalSim::cTauInputAlgTool::eFex_cTaus
StatusCode eFex_cTaus(GlobalSim::cTauTOBArray &, const EventContext &) const
Definition: cTauInputAlgTool.cxx:45
AthAlgTool.h
test_pyathena.parent
parent
Definition: test_pyathena.py:15
GlobalSim::cTauInputAlgTool::s_Et_conversion
static constexpr int s_Et_conversion
Definition: cTauInputAlgTool.h:64
GlobalSim::cTauInputAlgTool::cTauInputAlgTool
cTauInputAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: cTauInputAlgTool.cxx:16
GlobalSim::cTauInputAlgTool::s_phiDouble_conversion
static constexpr double s_phiDouble_conversion
Definition: cTauInputAlgTool.h:68
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
GlobalSim::cTauInputAlgTool
Definition: cTauInputAlgTool.h:31
GlobalSim::cTauInputAlgTool::m_eTauRoIKey
SG::ReadHandleKey< xAOD::eFexTauRoIContainer > m_eTauRoIKey
Definition: cTauInputAlgTool.h:61
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
GlobalSim::cTauInputAlgTool::run
virtual StatusCode run(const EventContext &ctx) const override
Definition: cTauInputAlgTool.cxx:30
GlobalSim::cTauInputAlgTool::initialize
StatusCode initialize() override
Definition: cTauInputAlgTool.cxx:22