|
ATLAS Offline Software
|
Go to the documentation of this file.
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"
48 #include "../JepByteStreamV2Tool.h"
49 #include "../ToString.h"
54 Converter(storageType(), classID(), svcloc),
56 m_name(
"CmxJetHitsByteStreamAuxCnv"),
57 m_readTool(
"LVL1BS::JepByteStreamV2Tool/JepByteStreamV2Tool")
78 return StatusCode::SUCCESS;
87 CHECK(pBS_Addr !=
nullptr);
89 const std::string
nm = *(pBS_Addr->par());
104 for (
auto jet : cmxJetHitsVector) {
108 std::vector<uint32_t> hitsVec0(
jet->hitsVec0().begin(),
jet->hitsVec0().end());
109 std::vector<uint32_t> hitsVec1(
jet->hitsVec1().begin(),
jet->hitsVec1().end());
110 std::vector<uint32_t> errorVec0(
jet->errorVec0().begin(),
jet->errorVec0().end());
111 std::vector<uint32_t> errorVec1(
jet->errorVec1().begin(),
jet->errorVec1().end());
114 hitsVec0, hitsVec1, errorVec0, errorVec1,
jet->peak());
119 ATH_MSG_DEBUG(
"Number of readed CMXJetHits: " << aux->size());
122 return StatusCode::SUCCESS;
128 return StatusCode::FAILURE;
Description of CMXJetHits_v1.
convert to and from a SG storable
Defines the ROB data entity. The ROB data is an abstract entity that is used to discase the raw event...
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj)
Create TriggerTowers from ByteStream.
std::string m_name
Converter name.
DataObject * asStorable(SG::DataObjectSharedPtr< T > pObject)
static const CLID & ID()
the CLID of T
virtual StatusCode initialize()
msgSvc
Provide convenience handles for various services.
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.
virtual StatusCode createRep(DataObject *pObj, IOpaqueAddress *&pAddr)
Create ByteStream from TriggerTowers.
CMXJetHitsAuxContainer_v1 CMXJetHitsAuxContainer
Define the latest version of the CMXJetHits class.
#define CHECK(...)
Evaluate an expression and check for errors.
static const CLID & classID()
uint32_t CLID
The Class ID type.
CmxJetHitsByteStreamAuxCnv(ISvcLocator *svcloc)
static constexpr long storageType()
Helpers for checking error return status codes and reporting errors.
static long storageType()
ToolHandle< JepByteStreamV2Tool > m_readTool
Do the main job - retrieve objects.
CMXJetHits_v1 CMXJetHits
Define the latest version of the CMXJetHits class.