ATLAS Offline Software
eFexInputProvider.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 
3 #ifndef L1TOPOSIMULATION_EFEXINPUTPROVIDER_H
4 #define L1TOPOSIMULATION_EFEXINPUTPROVIDER_H
5 
9 #include "GaudiKernel/LockedHandle.h"
10 
11 //EM/Tau EDMs
14 
15 namespace LVL1 {
16 
17  class eFexInputProvider : public extends<AthAlgTool, IInputTOBConverter> {
18  public:
19  eFexInputProvider(const std::string& type, const std::string& name,
20  const IInterface* parent);
21 
22  virtual ~eFexInputProvider();
23 
24  virtual StatusCode initialize() override final;
25 
26  virtual StatusCode fillTopoInputEvent(TCS::TopoInputEvent& ) const override final;
27 
28  private:
29 
31  void CalculateCoordinates(int32_t roiWord, double & eta, double & phi) const;
32 
33  StatusCode fillEM(TCS::TopoInputEvent& inputEvent) const;
34  StatusCode fillTau(TCS::TopoInputEvent& inputEvent) const;
35 
36  ToolHandle<GenericMonitoringTool> m_monTool {this, "MonTool", "", "Monitoring tool to create online histograms"};
37 
38  SG::ReadHandleKey<xAOD::eFexEMRoIContainer> m_eEM_EDMKey {this, "eFexEMRoIKey", "L1_eEMRoI", "eFEXEM EDM"};
39  SG::ReadHandleKey<xAOD::eFexTauRoIContainer> m_eTau_EDMKey {this, "eFexTauRoIKey", "L1_eTauRoI", "eFEXTau EDM"};
40 
41  // eFex to L1Topo conversion factors
42  static const double m_EtDouble_conversion;
43  static const double m_phiDouble_conversion;
44  static const double m_etaDouble_conversion;
45 
46  };
47 }
48 
49 #endif
LVL1::eFexInputProvider::initialize
virtual StatusCode initialize() override final
Definition: eFexInputProvider.cxx:38
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
LVL1::eFexInputProvider::fillEM
StatusCode fillEM(TCS::TopoInputEvent &inputEvent) const
Definition: eFexInputProvider.cxx:48
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
LVL1::eFexInputProvider::m_phiDouble_conversion
static const double m_phiDouble_conversion
Definition: eFexInputProvider.h:43
eFexTauRoIContainer.h
LVL1::eFexInputProvider::~eFexInputProvider
virtual ~eFexInputProvider()
Definition: eFexInputProvider.cxx:34
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
LVL1::eFexInputProvider
Definition: eFexInputProvider.h:17
LVL1::eFexInputProvider::m_eTau_EDMKey
SG::ReadHandleKey< xAOD::eFexTauRoIContainer > m_eTau_EDMKey
Definition: eFexInputProvider.h:39
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
xAOD::roiWord
roiWord
Definition: TrigMissingET_v1.cxx:36
LVL1::eFexInputProvider::m_EtDouble_conversion
static const double m_EtDouble_conversion
Definition: eFexInputProvider.h:42
LVL1::eFexInputProvider::m_monTool
ToolHandle< GenericMonitoringTool > m_monTool
Definition: eFexInputProvider.h:36
LVL1::eFexInputProvider::fillTopoInputEvent
virtual StatusCode fillTopoInputEvent(TCS::TopoInputEvent &) const override final
Definition: eFexInputProvider.cxx:177
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TCS::TopoInputEvent
Definition: TopoInputEvent.h:42
AthAlgTool.h
LVL1::eFexInputProvider::fillTau
StatusCode fillTau(TCS::TopoInputEvent &inputEvent) const
Definition: eFexInputProvider.cxx:115
test_pyathena.parent
parent
Definition: test_pyathena.py:15
Monitored.h
Header file to be included by clients of the Monitored infrastructure.
TrigConf::name
Definition: HLTChainList.h:35
LVL1::eFexInputProvider::m_eEM_EDMKey
SG::ReadHandleKey< xAOD::eFexEMRoIContainer > m_eEM_EDMKey
Definition: eFexInputProvider.h:38
LVL1::eFexInputProvider::m_etaDouble_conversion
static const double m_etaDouble_conversion
Definition: eFexInputProvider.h:44
LVL1::eFexInputProvider::CalculateCoordinates
void CalculateCoordinates(int32_t roiWord, double &eta, double &phi) const
calculates eta and phi from roiWord
Definition: eFexInputProvider.cxx:185
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
LVL1::eFexInputProvider::eFexInputProvider
eFexInputProvider(const std::string &type, const std::string &name, const IInterface *parent)
Definition: eFexInputProvider.cxx:27
IInputTOBConverter.h
eFexEMRoIContainer.h