ATLAS Offline Software
Loading...
Searching...
No Matches
TileLaserObjByteStreamCnv.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5//author Renato Febbraro
6//renato.febbraro@cern.ch
7//date February 2008
8
9#ifndef TILELASEROBJ_BYTESTREAMCNV_H
10#define TILELASEROBJ_BYTESTREAMCNV_H
11
12// Gaudi includes
13#include "GaudiKernel/ToolHandle.h"
14#include "GaudiKernel/ServiceHandle.h"
15
16// Athena includes
18
19#include "eformat/ROBFragment.h"
20
21class DataObject;
22class StatusCode;
23class IAddressCreator;
26class TileROD_Decoder;
27class TileLaserObject;
28class TileHid2RESrcID;
29
30#include <vector>
31#include <stdint.h>
32
33
34// Abstract factory to create the converter
35template <class TYPE> class CnvFactory;
36
37
39 : public AthConstConverter
40 {
41 public:
42 TileLaserObjByteStreamCnv(ISvcLocator* svcloc);
43
45
46 virtual StatusCode initialize() override;
47 virtual StatusCode createObjConst(IOpaqueAddress* pAddr, DataObject*& pObj) const override;
48 virtual StatusCode createRepConst(DataObject* pObj, IOpaqueAddress*& pAddr) const override;
49
51 virtual long repSvcType() const override { return i_repSvcType(); }
52 static long storageType();
53 static const CLID& classID();
54
55 private:
58
60 ToolHandle<TileROD_Decoder> m_decoder;
61
62 std::vector<uint32_t> m_ROBID;
63
66};
67#endif
Gaudi converter base class with const interfaces.
uint32_t CLID
The Class ID type.
AthConstConverter(long storage_type, const CLID &class_type, ISvcLocator *svc, const std::string &name)
Abstract factory to create the converter.
Interface class for managing ROB for both online and offline.
This class provides conversion between fragment ID and RESrcID.
virtual StatusCode createRepConst(DataObject *pObj, IOpaqueAddress *&pAddr) const override
Convert the transient object to the requested representation.
TileLaserObjByteStreamTool BYTESTREAMTOOL
const TileHid2RESrcID * m_hid2re
Pointer to TileHid2RESrcID.
virtual long repSvcType() const override
Storage type and class ID.
ServiceHandle< IROBDataProviderSvc > m_robSvc
Pointer to IROBDataProviderSvc.
TileLaserObjByteStreamCnv(ISvcLocator *svcloc)
virtual StatusCode createObjConst(IOpaqueAddress *pAddr, DataObject *&pObj) const override
Create the transient representation of an object.
virtual StatusCode initialize() override
ToolHandle< TileROD_Decoder > m_decoder
Pointer to TileROD_Decoder.
Decodes the different TileCal ROD subfragment types in bytestream data and fills TileDigitsContainer,...