ATLAS Offline Software
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 
17 namespace Muon {
18 
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
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
ISTGC_ROD_Decoder.h
Muon::STGC_RawDataProviderToolCore::m_decoder
ToolHandle< ISTGC_ROD_Decoder > m_decoder
Decoder for ROB fragment RDO conversion.
Definition: STGC_RawDataProviderToolCore.h:47
Muon::STGC_RawDataProviderToolCore::~STGC_RawDataProviderToolCore
virtual ~STGC_RawDataProviderToolCore()=default
Default destructor.
Muon::STGC_RawDataProviderToolCore::convertIntoContainer
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.
Definition: STGC_RawDataProviderToolCore.cxx:28
Muon::STGC_RawDataContainer
Definition: STGC_RawDataContainer.h:18
Muon::STGC_RawDataProviderToolCore::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
The ID helper.
Definition: STGC_RawDataProviderToolCore.h:44
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
Muon::STGC_RawDataProviderToolCore::m_skipDecoding
Gaudi::Property< bool > m_skipDecoding
Flag to skip decoding and write empty container.
Definition: STGC_RawDataProviderToolCore.h:58
Muon
This class provides conversion from CSC RDO data to CSC Digits.
Definition: TrackSystemController.h:49
Muon::STGC_RawDataProviderToolCore::m_maxhashtoUse
unsigned int m_maxhashtoUse
Definition: STGC_RawDataProviderToolCore.h:52
STGC_RawDataContainer.h
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
Muon::STGC_RawDataProviderToolCore::STGC_RawDataProviderToolCore
STGC_RawDataProviderToolCore(const std::string &t, const std::string &n, const IInterface *p)
Default constructor.
Definition: STGC_RawDataProviderToolCore.cxx:10
Muon::STGC_RawDataProviderToolCore::initialize
virtual StatusCode initialize() override
Standard AlgTool method.
Definition: STGC_RawDataProviderToolCore.cxx:16
Muon::STGC_RawDataProviderToolCore
Definition: STGC_RawDataProviderToolCore.h:25
Muon::STGC_RawDataProviderToolCore::m_robDataProvider
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
Rob Data Provider handle.
Definition: STGC_RawDataProviderToolCore.h:55
Muon::STGC_RawDataProviderToolCore::m_rdoContainerKey
SG::WriteHandleKey< STGC_RawDataContainer > m_rdoContainerKey
RDO container key.
Definition: STGC_RawDataProviderToolCore.h:50
AthAlgTool
Definition: AthAlgTool.h:26
IROBDataProviderSvc.h
IMuonIdHelperSvc.h
ServiceHandle< Muon::IMuonIdHelperSvc >