![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
25 #include "GaudiKernel/DataObject.h"
26 #include "GaudiKernel/IOpaqueAddress.h"
27 #include "GaudiKernel/IRegistry.h"
28 #include "GaudiKernel/ISvcLocator.h"
29 #include "GaudiKernel/StatusCode.h"
49 #include "../CpByteStreamV2Tool.h"
50 #include "../ToString.h"
55 Converter(storageType(), classID(), svcloc),
57 m_name(
"CmxCpHitsByteStreamAuxCnv"),
58 m_readTool(
"LVL1BS::CpByteStreamV2Tool/CpByteStreamV2Tool")
79 return StatusCode::SUCCESS;
88 CHECK(pBS_Addr !=
nullptr);
90 const std::string
nm = *(pBS_Addr->par());
95 cmxCpHitsContainer.setStore(aux);
105 for (
auto ch : cmxCpHitsVector) {
108 std::vector<uint32_t> hitsVec0(
ch->hitsVec0().begin(),
ch->hitsVec0().end());
109 std::vector<uint32_t> hitsVec1(
ch->hitsVec1().begin(),
ch->hitsVec1().end());
110 std::vector<uint32_t> errorVec0(
ch->errorVec0().begin(),
ch->errorVec0().end());
111 std::vector<uint32_t> errorVec1(
ch->errorVec1().begin(),
ch->errorVec1().end());
113 item->initialize(
ch->crate(),
ch->cmx(),
ch->source(),
114 hitsVec0, hitsVec1, errorVec0, errorVec1,
ch->peak());
119 ATH_MSG_DEBUG(
"Number of readed CMXCPHits: " << aux->size());
122 return StatusCode::SUCCESS;
128 return StatusCode::FAILURE;
convert to and from a SG storable
std::string m_name
Converter name.
Defines the ROB data entity. The ROB data is an abstract entity that is used to discase the raw event...
virtual StatusCode initialize()
DataObject * asStorable(T *pObject)
CmxCpHitsByteStreamAuxCnv(ISvcLocator *svcloc)
CMXCPHits_v1 CMXCPHits
Define the latest version of the CMMCPHits class.
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj)
Create TriggerTowers from ByteStream.
static const CLID & ID()
the CLID of T
static long storageType()
static const CLID & classID()
CMXCPHitsAuxContainer_v1 CMXCPHitsAuxContainer
Define the latest version of the CMMCPHits class.
msgSvc
Provide convenience handles for various services.
virtual StatusCode createRep(DataObject *pObj, IOpaqueAddress *&pAddr)
Create ByteStream from TriggerTowers.
a traits class that associates a CLID to a type T It also detects whether T inherits from Gaudi DataO...
::StatusCode StatusCode
StatusCode definition for legacy code.
IOpaqueAddress for ByteStreamCnvSvc, with ROB ids.
Class to provide easy MsgStream access and capabilities.
#define CHECK(...)
Evaluate an expression and check for errors.
uint32_t CLID
The Class ID type.
static constexpr long storageType()
Helpers for checking error return status codes and reporting errors.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
Description of CMXCPHits_v1.
ToolHandle< CpByteStreamV2Tool > m_readTool
Do the main job - retrieve xAOD TriggerTowers from robs.