ATLAS Offline Software
Loading...
Searching...
No Matches
MM_RawDataProviderToolCore.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MUONMM_CNVTOOLS_MM_RAWDATAPROVIDERTOOLCORE_H
6#define MUONMM_CNVTOOLS_MM_RAWDATAPROVIDERTOOLCORE_H
7
9#include "GaudiKernel/ServiceHandle.h"
10#include "GaudiKernel/ToolHandle.h"
14
16#include "ByteStreamData/RawEvent.h" //OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment (typedef)
17#include <string>
18#include <vector>
19
20class IdentifierHash;
21
22namespace Muon {
23
28
30 {
31 public:
33 MM_RawDataProviderToolCore(const std::string& t, const std::string& n, const IInterface* p);
34
36 virtual ~MM_RawDataProviderToolCore() = default;
37
39 virtual StatusCode initialize() override;
40
42 virtual StatusCode convertIntoContainer(const EventContext& ctx, const std::vector<const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment*>&,
43 const std::vector<IdentifierHash>&, MM_RawDataContainer&) const;
44
45 protected:
46
48 ServiceHandle<Muon::IMuonIdHelperSvc> m_idHelperSvc {this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"};
49
51 ToolHandle<IMM_ROD_Decoder> m_decoder{this, "Decoder", "Muon::MmROD_Decoder/MmROD_Decoder"};
52
54 SG::WriteHandleKey<MM_RawDataContainer> m_rdoContainerKey{ this, "RdoLocation", "MMRDO", "Name of the MMRDO produced by RawDataProvider"}; //MT
55
56 unsigned int m_maxhashtoUse{0}; //MT
57
60
62 Gaudi::Property<bool> m_skipDecoding{this, "SkipDecoding", false, "Skip the decoding but still write the container"};
63 };
64} // end of namespace
65
66#endif // MUONMM_CNVTOOLS_MM_RAWDATAPROVIDERTOOLCORE_H
67
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
This is a "hash" representation of an Identifier.
virtual StatusCode initialize() override
Standard AlgTool method.
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
The ID helper.
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
Rob Data Provider handle.
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 > &, MM_RawDataContainer &) const
Method that converts the ROBFragments into the passed container.
virtual ~MM_RawDataProviderToolCore()=default
Default destructor.
ToolHandle< IMM_ROD_Decoder > m_decoder
Decoder for ROB fragment RDO conversion.
MM_RawDataProviderToolCore(const std::string &t, const std::string &n, const IInterface *p)
Default constructor.
SG::WriteHandleKey< MM_RawDataContainer > m_rdoContainerKey
RDO container key.
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.