ATLAS Offline Software
Loading...
Searching...
No Matches
STGC_RawDataProviderToolCore.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MUONSTGC_CNVTOOLS_STGC_RAWDATAPROVIDERTOOLCORE_H
6#define MUONSTGC_CNVTOOLS_STGC_RAWDATAPROVIDERTOOLCORE_H
7
9#include "GaudiKernel/ServiceHandle.h"
10#include "GaudiKernel/ToolHandle.h"
14
16
17namespace Muon {
18
23
25 {
26 public:
28 STGC_RawDataProviderToolCore(const std::string& t, const std::string& n, const IInterface* p);
29
31 virtual ~STGC_RawDataProviderToolCore() = default;
32
34 virtual StatusCode initialize() override;
35
37 virtual StatusCode convertIntoContainer (const EventContext& ctx,
38 const std::vector<const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment*>&,
39 const std::vector<IdentifierHash>&, STGC_RawDataContainer&) const;
40
41 protected:
42
44 ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
45
47 ToolHandle<ISTGC_ROD_Decoder> m_decoder{this, "Decoder", "Muon::STGC_ROD_Decoder/STGC_ROD_Decoder"};
48
50 SG::WriteHandleKey<STGC_RawDataContainer> m_rdoContainerKey{ this, "RdoLocation", "sTGCRDO", "Name of the sTGCRDO produced by RawDataProvider"}; //MT
51
52 unsigned int m_maxhashtoUse{0}; //MT
53
56
58 Gaudi::Property<bool> m_skipDecoding{this, "SkipDecoding", false, "Skip the decoding but still write the container"};
59
60 };
61} // end of namespace
62
63#endif // MUONSTGC_CNVTOOLS_STGC_RAWDATAPROVIDERTOOLCORE_H
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Gaudi::Property< bool > m_skipDecoding
Flag to skip decoding and write empty container.
virtual StatusCode convertIntoContainer(const EventContext &ctx, const std::vector< const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment * > &, const std::vector< IdentifierHash > &, STGC_RawDataContainer &) const
Method that converts the ROBFragments into the passed container.
STGC_RawDataProviderToolCore(const std::string &t, const std::string &n, const IInterface *p)
Default constructor.
ToolHandle< ISTGC_ROD_Decoder > m_decoder
Decoder for ROB fragment RDO conversion.
virtual ~STGC_RawDataProviderToolCore()=default
Default destructor.
SG::WriteHandleKey< STGC_RawDataContainer > m_rdoContainerKey
RDO container key.
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
Rob Data Provider handle.
virtual StatusCode initialize() override
Standard AlgTool method.
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
The ID helper.
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.