24#include "GaudiKernel/DataObject.h"
25#include "GaudiKernel/IOpaqueAddress.h"
26#include "GaudiKernel/IRegistry.h"
27#include "GaudiKernel/ISvcLocator.h"
28#include "GaudiKernel/StatusCode.h"
55 AthMessaging(svcloc != 0 ? msgSvc() : 0,
"JemEtSumsByteStreamAuxCnv"),
56 m_name(
"JemEtSumsByteStreamAuxCnv"),
57 m_readTool(
"LVL1BS::JepByteStreamV2Tool/JepByteStreamV2Tool")
75 CHECK(Converter::initialize());
78 return StatusCode::SUCCESS;
87 CHECK(pBS_Addr !=
nullptr);
89 const std::string nm = *(pBS_Addr->par());
104 for (
auto etSums :
vec) {
108 std::vector<uint16_t> etVec(etSums->EtVec().begin(), etSums->EtVec().end());
109 std::vector<uint16_t> exVec(etSums->ExVec().begin(), etSums->ExVec().end());
110 std::vector<uint16_t> eyVec(etSums->EyVec().begin(), etSums->EyVec().end());
112 item->initialize(etSums->crate(), etSums->module(),
122 return StatusCode::SUCCESS;
128 return StatusCode::FAILURE;
std::vector< size_t > vec
a traits class that associates a CLID to a type T It also detects whether T inherits from Gaudi DataO...
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
uint32_t CLID
The Class ID type.
Defines the ROB data entity. The ROB data is an abstract entity that is used to decouple the raw even...
convert to and from a SG storable
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
IOpaqueAddress for ByteStreamCnvSvc, with ROB ids.
static constexpr long storageType()
ToolHandle< JepByteStreamV2Tool > m_readTool
Do the main job - retrieve objects from robs.
virtual StatusCode initialize()
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj)
Create TriggerTowers from ByteStream.
virtual StatusCode createRep(DataObject *pObj, IOpaqueAddress *&pAddr)
Create ByteStream from TriggerTowers.
static long storageType()
std::string m_name
Converter name.
static const CLID & classID()
JemEtSumsByteStreamAuxCnv(ISvcLocator *svcloc)
DataObject * asStorable(SG::DataObjectSharedPtr< T > pObject)
JEMEtSumsAuxContainer_v2 JEMEtSumsAuxContainer
Define the latest version of the JEMEtSums auxiliary container.
JEMEtSums_v2 JEMEtSums
Define the latest version of the JEMEtSums class.
JEMEtSumsContainer_v2 JEMEtSumsContainer
Define the latest version of the JEMEtSums container.