|
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(
"CmxEtSumsByteStreamAuxCnv"),
57 m_readTool(
"LVL1BS::JepByteStreamV2Tool/JepByteStreamV2Tool")
78 return StatusCode::SUCCESS;
87 CHECK(pBS_Addr !=
nullptr);
89 const std::string
nm = *(pBS_Addr->par());
94 container.setStore(aux);
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 std::vector<uint32_t> etErrorVec(etSums->EtErrorVec().begin(), etSums->EtErrorVec().end());
113 std::vector<uint32_t> exErrorVec(etSums->ExErrorVec().begin(), etSums->ExErrorVec().end());
114 std::vector<uint32_t> eyErrorVec(etSums->EyErrorVec().begin(), etSums->EyErrorVec().end());
116 item->initialize(etSums->crate(), etSums->source(),
118 etErrorVec, exErrorVec, eyErrorVec,
124 ATH_MSG_DEBUG(
"Number of readed CMXEtSums: " << aux->size());
127 return StatusCode::SUCCESS;
133 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()