ATLAS Offline Software
ITkStripRawDataProviderTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ITKSTRIPSBYTETREAMCNV_ITKSTRIPRAWDATAPROVIDERTOOL_H
6 #define ITKSTRIPSBYTETREAMCNV_ITKSTRIPRAWDATAPROVIDERTOOL_H
7 
10 
11 #include "GaudiKernel/ToolHandle.h"
12 
13 #include <atomic>
14 
15 
17 
27 class ITkStripRawDataProviderTool : public extends<AthAlgTool, IITkStripRawDataProviderTool>
28 {
29  public:
30 
31  using base_class::base_class;
32 
34  virtual ~ITkStripRawDataProviderTool() = default;
35 
37  virtual StatusCode initialize() override;
38 
49  virtual StatusCode convert(std::vector<const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment*>& vecROBFrags,
50  SCT_RDO_Container& rdoIDCont,
52  DataPool<SCT3_RawData>* dataItemsPool,
53  const EventContext& ctx) const override;
54 
55  private:
56 
58  ToolHandle<IITkStripsRodDecoder> m_decoder{this, "Decoder", "ITkStripsRodDecoder", "Decoder"};
59 
62  mutable std::atomic_int m_decodeErrCount{0};
63 
64 };
65 
66 #endif // ITKSTRIPSBYTETREAMCNV_ITKSTRIPRAWDATAPROVIDERTOOL_H
ITkStripRawDataProviderTool::~ITkStripRawDataProviderTool
virtual ~ITkStripRawDataProviderTool()=default
Destructor.
IDCInDetBSErrContainer
IDC like storage for BS errors, TODO, customise implementation further so that we store int rather th...
Definition: IDCInDetBSErrContainer.h:19
InDetRawDataContainer
Definition: InDetRawDataContainer.h:27
ITkStripRawDataProviderTool::m_decoder
ToolHandle< IITkStripsRodDecoder > m_decoder
Algorithm Tool to decode ROD byte stream into RDO.
Definition: ITkStripRawDataProviderTool.h:58
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IITkStripRawDataProviderTool.h
ITkStripRawDataProviderTool::m_decodeErrCount
std::atomic_int m_decodeErrCount
Number of decode errors encountered in decoding.
Definition: ITkStripRawDataProviderTool.h:62
AthAlgTool.h
ITkStripRawDataProviderTool::initialize
virtual StatusCode initialize() override
Initialize.
Definition: ITkStripRawDataProviderTool.cxx:13
ITkStripRawDataProviderTool::convert
virtual StatusCode convert(std::vector< const OFFLINE_FRAGMENTS_NAMESPACE::ROBFragment * > &vecROBFrags, SCT_RDO_Container &rdoIDCont, IDCInDetBSErrContainer &errs, DataPool< SCT3_RawData > *dataItemsPool, const EventContext &ctx) const override
Main decoding method.
Definition: ITkStripRawDataProviderTool.cxx:22
DataPool
a typed memory pool that saves time spent allocation small object. This is typically used by containe...
Definition: DataPool.h:63
IITkStripsRodDecoder
Definition: IITkStripsRodDecoder.h:29
ITkStripRawDataProviderTool
Athena Algorithm Tool to fill Collections of ITk Strips RDO Containers.
Definition: ITkStripRawDataProviderTool.h:28