ATLAS Offline Software
Loading...
Searching...
No Matches
TGC_RawDataProviderToolCore.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 MUONTGC_CNVTOOLS_TGC_RAWDATAPROVIDERTOOLCORE_H
6#define MUONTGC_CNVTOOLS_TGC_RAWDATAPROVIDERTOOLCORE_H
7
9#include "GaudiKernel/ServiceHandle.h"
10#include "GaudiKernel/ToolHandle.h"
11
12#include "TGC_Hid2RESrcID.h"
19
20class TgcRdoContainer;
21
22namespace Muon {
23
30
32 {
33 public:
35 TGC_RawDataProviderToolCore(const std::string& t, const std::string& n, const IInterface* p);
38
40 virtual StatusCode initialize();
41
43 virtual StatusCode convertIntoContainer(const std::vector<const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment*>& vecRobs, TgcRdoContainer& tgcRdoContainer) const;
44
45
46 protected:
48 std::vector<const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment*> getROBData(const std::vector<IdentifierHash>& rdoIdhVect, const EventContext& ctx) const;
49
50 ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
52 ToolHandle<ITGC_RodDecoder> m_decoder{this,"Decoder","Muon::TGC_RodDecoderReadout/TGC_RodDecoderReadout"};
54 SG::WriteHandleKey<TgcRdoContainer> m_rdoContainerKey{ this, "RdoLocation", "TGCRDO", "Name of the TGCRDO produced by RawDataProvider"}; //MT
55
56 unsigned int m_maxhashtoUse = 0U; //MT
57
64
65 const MuonTGC_CablingSvc* getCabling() const;
66 };
67} // end of namespace
68
69#endif // MUONTGC_CNVTOOLS_TGC_RAWDATAPROVIDERTOOLCORE_H
Cached pointer with atomic update.
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
This class provides conversion between TGC RDO Id and RESrcID.
CxxUtils::CachedPointer< const MuonTGC_CablingSvc > m_cabling
TGC cabling Svc.
std::vector< const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment * > getROBData(const std::vector< IdentifierHash > &rdoIdhVect, const EventContext &ctx) const
Function to get the ROB data from a vector of IdentifierHash.
const MuonTGC_CablingSvc * getCabling() const
ToolHandle< ITGC_RodDecoder > m_decoder
Decoder for ROB fragment RDO conversion.
TGC_RawDataProviderToolCore(const std::string &t, const std::string &n, const IInterface *p)
Default constructor.
SG::WriteHandleKey< TgcRdoContainer > m_rdoContainerKey
RDO container key.
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
Rob Data Provider handle.
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
virtual StatusCode convertIntoContainer(const std::vector< const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment * > &vecRobs, TgcRdoContainer &tgcRdoContainer) const
Method that converts the ROBFragments into the passed container.
virtual ~TGC_RawDataProviderToolCore()=default
Default destructor.
virtual StatusCode initialize()
Standard AlgTool method.
Property holding a SG store/key/clid from which a WriteHandle is made.
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Cached pointer with atomic update.