ATLAS Offline Software
Loading...
Searching...
No Matches
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"
16
18
20public:
21 TgcDigitToTgcRDO(const std::string& name, ISvcLocator* pSvcLocator);
22 virtual ~TgcDigitToTgcRDO() = default;
23 virtual StatusCode initialize() override final;
24 virtual StatusCode execute(const EventContext& ctx) const override final;
25
27 StatusCode getCabling();
28
29 // NOTE: although this function has no clients in release 22, currently the Run2 trigger simulation is still run in
30 // release 21 on RDOs produced in release 22. Since release 21 accesses the TagInfo, it needs to be written to the
31 // RDOs produced in release 22. The fillTagInfo() function thus needs to stay in release 22 until the workflow changes
32 StatusCode fillTagInfo() const;
33
34 static uint16_t getRdoId(const TgcRawData& rawData);
35
36 BooleanProperty m_isNewTgcDigit{this, "isNewTgcDigit", true}; // to select new TgcDigit (bcTag added)
37
38protected:
39 ServiceHandle<MuonTGC_CablingSvc> m_cabling{this, "CablingSvc", "MuonTGC_CablingSvc"};
40
41 SG::WriteHandleKey<TgcRdoContainer> m_rdoContainerKey{this, "OutputObjectName", "TGCRDO", "WriteHandleKey for Output TgcRdoContainer"};
42 SG::ReadHandleKey<TgcDigitContainer> m_digitContainerKey{this, "InputObjectName", "TGC_DIGITS",
43 "ReadHandleKey for Input TgcDigitContainer"};
44 ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc{this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
45
46 std::string m_cablingType;
47};
48
49#endif
defines an "iterator" over instances of a given type in StoreGateSvc
An algorithm that can be simultaneously executed in multiple threads.
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
ServiceHandle< MuonTGC_CablingSvc > m_cabling
virtual StatusCode initialize() override final
BooleanProperty m_isNewTgcDigit
static uint16_t getRdoId(const TgcRawData &rawData)
SG::WriteHandleKey< TgcRdoContainer > m_rdoContainerKey
SG::ReadHandleKey< TgcDigitContainer > m_digitContainerKey
virtual ~TgcDigitToTgcRDO()=default
std::string m_cablingType
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
virtual StatusCode execute(const EventContext &ctx) const override final
StatusCode fillTagInfo() const
TgcDigitToTgcRDO(const std::string &name, ISvcLocator *pSvcLocator)
An unit object of TGC ROD output.
Definition TgcRawData.h:23
#define private