ATLAS Offline Software
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 
20 class IdentifierHash;
21 
22 namespace Muon {
23 
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 
Muon::MM_RawDataProviderToolCore::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
The ID helper.
Definition: MM_RawDataProviderToolCore.h:48
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition: TrackSystemController.h:45
Muon::MM_RawDataContainer
Definition: MM_RawDataContainer.h:18
Muon::MM_RawDataProviderToolCore::convertIntoContainer
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.
Definition: MM_RawDataProviderToolCore.cxx:37
Muon::MM_RawDataProviderToolCore::MM_RawDataProviderToolCore
MM_RawDataProviderToolCore(const std::string &t, const std::string &n, const IInterface *p)
Default constructor.
Definition: MM_RawDataProviderToolCore.cxx:15
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
Muon::MM_RawDataProviderToolCore::m_maxhashtoUse
unsigned int m_maxhashtoUse
Definition: MM_RawDataProviderToolCore.h:56
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
Muon::MM_RawDataProviderToolCore::m_skipDecoding
Gaudi::Property< bool > m_skipDecoding
Flag to skip decoding and write empty container.
Definition: MM_RawDataProviderToolCore.h:62
beamspotman.n
n
Definition: beamspotman.py:731
RawEvent.h
Muon::MM_RawDataProviderToolCore::initialize
virtual StatusCode initialize() override
Standard AlgTool method.
Definition: MM_RawDataProviderToolCore.cxx:22
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
Muon::MM_RawDataProviderToolCore
Definition: MM_RawDataProviderToolCore.h:30
Muon::MM_RawDataProviderToolCore::m_decoder
ToolHandle< IMM_ROD_Decoder > m_decoder
Decoder for ROB fragment RDO conversion.
Definition: MM_RawDataProviderToolCore.h:51
IMM_ROD_Decoder.h
MM_RawDataContainer.h
Muon::MM_RawDataProviderToolCore::m_robDataProvider
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
Rob Data Provider handle.
Definition: MM_RawDataProviderToolCore.h:59
AthAlgTool
Definition: AthAlgTool.h:26
Muon::MM_RawDataProviderToolCore::~MM_RawDataProviderToolCore
virtual ~MM_RawDataProviderToolCore()=default
Default destructor.
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
Muon::MM_RawDataProviderToolCore::m_rdoContainerKey
SG::WriteHandleKey< MM_RawDataContainer > m_rdoContainerKey
RDO container key.
Definition: MM_RawDataProviderToolCore.h:54
IROBDataProviderSvc.h
IMuonIdHelperSvc.h
ServiceHandle< Muon::IMuonIdHelperSvc >