![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 "../JepByteStreamV2Tool.h"
50 #include "../ToString.h"
55 Converter(storageType(), classID(), svcloc),
57 m_name(
"CmxEtSumsByteStreamAuxCnv"),
58 m_readTool(
"LVL1BS::JepByteStreamV2Tool/JepByteStreamV2Tool")
79 return StatusCode::SUCCESS;
88 CHECK(pBS_Addr !=
nullptr);
90 const std::string
nm = *(pBS_Addr->par());
95 container.setStore(aux);
105 for (
auto etSums :
vec) {
109 std::vector<uint16_t> etVec(etSums->EtVec().begin(), etSums->EtVec().end());
110 std::vector<uint16_t> exVec(etSums->ExVec().begin(), etSums->ExVec().end());
111 std::vector<uint16_t> eyVec(etSums->EyVec().begin(), etSums->EyVec().end());
113 std::vector<uint32_t> etErrorVec(etSums->EtErrorVec().begin(), etSums->EtErrorVec().end());
114 std::vector<uint32_t> exErrorVec(etSums->ExErrorVec().begin(), etSums->ExErrorVec().end());
115 std::vector<uint32_t> eyErrorVec(etSums->EyErrorVec().begin(), etSums->EyErrorVec().end());
117 item->initialize(etSums->crate(), etSums->source(),
119 etErrorVec, exErrorVec, eyErrorVec,
125 ATH_MSG_DEBUG(
"Number of readed CMXEtSums: " << aux->size());
128 return StatusCode::SUCCESS;
134 return StatusCode::FAILURE;
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...
DataObject * asStorable(T *pObject)
std::vector< size_t > vec
static const CLID & classID()
CMXEtSumsAuxContainer_v1 CMXEtSumsAuxContainer
Define the latest version of the CMXEtSums class.
typename vecDetail::vec_typedef< T, N >::type vec
Define a nice alias for the vectorized type.
static const CLID & ID()
the CLID of T
msgSvc
Provide convenience handles for various services.
Description of CMXEtSums_v1.
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.
static long storageType()
uint32_t CLID
The Class ID type.
CMXEtSums_v1 CMXEtSums
Define the latest version of the CMXEtSums class.
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.
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj)
Create TriggerTowers from ByteStream.
std::string m_name
Converter name.
ToolHandle< JepByteStreamV2Tool > m_readTool
Do the main job - retrieve xAOD TriggerTowers from robs.
CmxEtSumsByteStreamAuxCnv(ISvcLocator *svcloc)
virtual StatusCode createRep(DataObject *pObj, IOpaqueAddress *&pAddr)
Create ByteStream from TriggerTowers.
virtual StatusCode initialize()