ATLAS Offline Software
Loading...
Searching...
No Matches
SCTRawContByteStreamTool.h
Go to the documentation of this file.
1// -*- C++ -*-
2
3/*
4 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef SCT_RAWDATABYTESTREAMCNV_SCTRAWCONTBYTESTREAMTOOL_H
8#define SCT_RAWDATABYTESTREAMCNV_SCTRAWCONTBYTESTREAMTOOL_H
9
12
15
16#include "GaudiKernel/ToolHandle.h"
17#include "GaudiKernel/ServiceHandle.h"
18
19
20class ISCT_RodEncoder;
22class SCT_ID;
23class SrcIdMap;
24
37class SCTRawContByteStreamTool : public extends<AthAlgTool, ISCTRawContByteStreamTool>
38{
39 public:
40
42 SCTRawContByteStreamTool(const std::string& type, const std::string& name, const IInterface* parent);
43
45 virtual ~SCTRawContByteStreamTool() = default;
46
48 virtual StatusCode initialize() override;
49
51 virtual StatusCode finalize() override;
52
61 virtual StatusCode convert(const SCT_RDO_Container* sctRDOCont) const override;
62
63 private:
65 { this, "ByteStreamCnvSvc", "ByteStreamCnvSvc" };
66
68 ToolHandle<ISCT_RodEncoder> m_encoder{this, "Encoder", "SCT_RodEncoder", "SCT ROD Encoder for RDO to BS conversion"};
69
71 ToolHandle<ISCT_CablingTool> m_cabling{this, "SCT_CablingTool", "SCT_CablingTool", "Tool to retrieve SCT Cabling"};
72
75 const SCT_ID* m_sctIDHelper{nullptr};
76
77 UnsignedShortProperty m_rodBlockVersion{this, "RodBlockVersion", 0};
78};
79
80#endif // SCT_RAWDATABYTESTREAMCNV_SCTRAWCONTBYTESTREAMTOOL_H
Athena Algorithm Tool to fill Collections of SCT RDO Containers.
InDetRawDataContainer< InDetRawDataCollection< SCT_RDORawData > > SCT_RDO_Container
Client interface to the cabling, providing conversions between online and offline identifiers.
Interface for Athena Algorithm Tool to convert from SCT RDO to ROD format BysteStream.
ToolHandle< ISCT_RodEncoder > m_encoder
Algorithm Tool to decode ROB bytestream data into RDO.
virtual StatusCode initialize() override
Initialize.
virtual StatusCode convert(const SCT_RDO_Container *sctRDOCont) const override
Main Convert method.
UnsignedShortProperty m_rodBlockVersion
SCTRawContByteStreamTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor.
ToolHandle< ISCT_CablingTool > m_cabling
Providing mappings of online and offline identifiers and also serial numbers.
virtual StatusCode finalize() override
Finalize.
const SCT_ID * m_sctIDHelper
Identifier helper class for the SCT subdetector that creates compact Identifier objects and Identifie...
ServiceHandle< IByteStreamCnvSvc > m_byteStreamCnvSvc
virtual ~SCTRawContByteStreamTool()=default
Destructor.
This is an Identifier helper class for the SCT subdetector.
Definition SCT_ID.h:68
This class provides default conversion between Lower level Source ID to higher level source ID.
Definition SrcIdMap.h:23