ATLAS Offline Software
TgcDigitToTgcRDO.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 TGCDIGITTOTGCRDO_H
6 #define TGCDIGITTOTGCRDO_H
7 
9 #include "GaudiKernel/ServiceHandle.h"
12 #include "MuonRDO/TgcRdo.h"
14 #include "StoreGate/DataHandle.h"
17 
19 
21 public:
22  TgcDigitToTgcRDO(const std::string& name, ISvcLocator* pSvcLocator);
23  virtual ~TgcDigitToTgcRDO() = default;
24  virtual StatusCode initialize() override final;
25  virtual StatusCode execute(const EventContext& ctx) const override final;
26 
27 private:
29 
30  // NOTE: although this function has no clients in release 22, currently the Run2 trigger simulation is still run in
31  // release 21 on RDOs produced in release 22. Since release 21 accesses the TagInfo, it needs to be written to the
32  // RDOs produced in release 22. The fillTagInfo() function thus needs to stay in release 22 until the workflow changes
34 
35  static uint16_t getRdoId(const TgcRawData& rawData);
36 
37  BooleanProperty m_isNewTgcDigit{this, "isNewTgcDigit", true}; // to select new TgcDigit (bcTag added)
38 
39 protected:
40  ServiceHandle<ITGCcablingServerSvc> m_tgc_cabling_server{this, "CablingServer", "Muon::TGCCablingServerSvc"};
41  const ITGCcablingSvc* m_cabling{nullptr};
42 
43  SG::WriteHandleKey<TgcRdoContainer> m_rdoContainerKey{this, "OutputObjectName", "TGCRDO", "WriteHandleKey for Output TgcRdoContainer"};
44  SG::ReadHandleKey<TgcDigitContainer> m_digitContainerKey{this, "InputObjectName", "TGC_DIGITS",
45  "ReadHandleKey for Input TgcDigitContainer"};
46  ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
47 
48  std::string m_cablingType;
49 };
50 
51 #endif
TgcDigitToTgcRDO::m_digitContainerKey
SG::ReadHandleKey< TgcDigitContainer > m_digitContainerKey
Definition: TgcDigitToTgcRDO.h:44
ITGCcablingSvc
Definition: ITGCcablingSvc.h:31
TgcDigitToTgcRDO::m_rdoContainerKey
SG::WriteHandleKey< TgcRdoContainer > m_rdoContainerKey
Definition: TgcDigitToTgcRDO.h:43
TgcDigitToTgcRDO::initialize
virtual StatusCode initialize() override final
Definition: TgcDigitToTgcRDO.cxx:27
TgcDigitToTgcRDO::m_cabling
const ITGCcablingSvc * m_cabling
Definition: TgcDigitToTgcRDO.h:41
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:562
SG::ReadHandleKey< TgcDigitContainer >
TgcDigitToTgcRDO::m_cablingType
std::string m_cablingType
Definition: TgcDigitToTgcRDO.h:48
DataHandle.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
SG::WriteHandleKey< TgcRdoContainer >
ITGCcablingSvc.h
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
TgcDigitToTgcRDO::fillTagInfo
StatusCode fillTagInfo() const
Definition: TgcDigitToTgcRDO.cxx:142
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TgcRdoContainer.h
TgcRdo.h
TgcDigitToTgcRDO::m_tgc_cabling_server
ServiceHandle< ITGCcablingServerSvc > m_tgc_cabling_server
Definition: TgcDigitToTgcRDO.h:40
TgcDigitToTgcRDO::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: TgcDigitToTgcRDO.h:46
AthReentrantAlgorithm.h
TgcDigitToTgcRDO::m_isNewTgcDigit
BooleanProperty m_isNewTgcDigit
Definition: TgcDigitToTgcRDO.h:37
private
#define private
Definition: DetDescrConditionsDict_dict_fixes.cxx:13
TgcDigitToTgcRDO
Definition: TgcDigitToTgcRDO.h:20
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
TgcDigitToTgcRDO::getRdoId
static uint16_t getRdoId(const TgcRawData &rawData)
ITGCcablingServerSvc.h
TgcDigitToTgcRDO::~TgcDigitToTgcRDO
virtual ~TgcDigitToTgcRDO()=default
TgcRawData
An unit object of TGC ROD output.
Definition: TgcRawData.h:23
TgcDigitToTgcRDO::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition: TgcDigitToTgcRDO.cxx:47
TgcDigitToTgcRDO::getCabling
StatusCode getCabling()
Definition: TgcDigitToTgcRDO.cxx:158
TgcDigitContainer.h
TgcDigitToTgcRDO::TgcDigitToTgcRDO
TgcDigitToTgcRDO(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TgcDigitToTgcRDO.cxx:22
IMuonIdHelperSvc.h
ServiceHandle< ITGCcablingServerSvc >