ATLAS Offline Software
CpReadByteStreamV1V2Cnv.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 #ifndef TRIGT1CALOBYTESTREAM_CPREADBYTESTREAMV1V2CNV_H
6 #define TRIGT1CALOBYTESTREAM_CPREADBYTESTREAMV1V2CNV_H
7 
8 #include <string>
9 
11 #include "GaudiKernel/ClassID.h"
12 #include "GaudiKernel/ServiceHandle.h"
13 #include "GaudiKernel/ToolHandle.h"
14 
15 class DataObject;
16 class IOpaqueAddress;
18 class ISvcLocator;
19 class StatusCode;
20 
21 template <typename> class CnvFactory;
22 
23 
24 namespace LVL1BS {
25 
26 class CpByteStreamV1Tool;
27 class CpByteStreamV2Tool;
28 
37 
38 public:
39  CpReadByteStreamV1V2Cnv(ISvcLocator* svcloc);
40 
41  virtual ~CpReadByteStreamV1V2Cnv();
42 
43  virtual StatusCode initialize() override;
45  virtual StatusCode createObjConst (IOpaqueAddress* pAddr, DataObject*& pObj) const override;
46 
47  // Storage type and class ID
48  virtual long repSvcType() const override { return i_repSvcType(); }
49  static long storageType();
50  static const CLID& classID();
51 
52 private:
54  ToolHandle<LVL1BS::CpByteStreamV1Tool> m_tool1;
56  ToolHandle<LVL1BS::CpByteStreamV2Tool> m_tool2;
57 
60 };
61 
62 } // end namespace
63 
64 #endif
LVL1BS::CpReadByteStreamV1V2Cnv::createObjConst
virtual StatusCode createObjConst(IOpaqueAddress *pAddr, DataObject *&pObj) const override
Create CPM Towers from ByteStream.
Definition: CpReadByteStreamV1V2Cnv.cxx:74
LVL1BS::CpReadByteStreamV1V2Cnv::CpReadByteStreamV1V2Cnv
CpReadByteStreamV1V2Cnv(ISvcLocator *svcloc)
Definition: CpReadByteStreamV1V2Cnv.cxx:35
LVL1BS::CpReadByteStreamV1V2Cnv::storageType
static long storageType()
Definition: CpReadByteStreamV1V2Cnv.cxx:54
LVL1BS::CpReadByteStreamV1V2Cnv::~CpReadByteStreamV1V2Cnv
virtual ~CpReadByteStreamV1V2Cnv()
Definition: CpReadByteStreamV1V2Cnv.cxx:43
AthConstConverter
Gaudi converter base class with const interfaces.
Definition: AthConstConverter.h:33
LVL1BS::CpReadByteStreamV1V2Cnv::classID
static const CLID & classID()
Definition: CpReadByteStreamV1V2Cnv.cxx:49
IROBDataProviderSvc
Interface class for managing ROB for both online and offline.
Definition: IROBDataProviderSvc.h:23
LVL1BS::CpReadByteStreamV1V2Cnv
ByteStream converter for Cluster Processor Module Towers allowing for data containing pre-LS1 or post...
Definition: CpReadByteStreamV1V2Cnv.h:36
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
LVL1BS::CpReadByteStreamV1V2Cnv::m_robDataProvider
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
Service for reading bytestream.
Definition: CpReadByteStreamV1V2Cnv.h:59
AthConstConverter.h
Gaudi converter base class with const interfaces.
CnvFactory
Abstract factory to create the converter.
Definition: ToyConverter.h:16
CLID
uint32_t CLID
The Class ID type.
Definition: Event/xAOD/xAODCore/xAODCore/ClassID_traits.h:47
LVL1BS::CpReadByteStreamV1V2Cnv::m_tool2
ToolHandle< LVL1BS::CpByteStreamV2Tool > m_tool2
Tool that does the actual work post-LS1.
Definition: CpReadByteStreamV1V2Cnv.h:56
LVL1BS::CpReadByteStreamV1V2Cnv::initialize
virtual StatusCode initialize() override
Definition: CpReadByteStreamV1V2Cnv.cxx:62
LVL1BS
Definition: ZdcModifySlices.h:10
LVL1BS::CpReadByteStreamV1V2Cnv::repSvcType
virtual long repSvcType() const override
Definition: CpReadByteStreamV1V2Cnv.h:48
LVL1BS::CpReadByteStreamV1V2Cnv::m_tool1
ToolHandle< LVL1BS::CpByteStreamV1Tool > m_tool1
Tool that does the actual work pre-LS1.
Definition: CpReadByteStreamV1V2Cnv.h:54
ServiceHandle< IROBDataProviderSvc >