|
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(
"JemEtSumsByteStreamAuxCnv"),
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 item->initialize(etSums->crate(), etSums->module(),
119 ATH_MSG_DEBUG(
"Number of readed JEMEtSums: " << aux->size());
122 return StatusCode::SUCCESS;
128 return StatusCode::FAILURE;
static const CLID & classID()
JEMEtSums_v2 JEMEtSums
Define the latest version of the JEMEtSums class.
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...
JEMEtSumsAuxContainer_v2 JEMEtSumsAuxContainer
Define the latest version of the JEMEtSums auxiliary container.
std::vector< size_t > vec
std::string m_name
Converter name.
ToolHandle< JepByteStreamV2Tool > m_readTool
Do the main job - retrieve objects from robs.
typename vecDetail::vec_typedef< T, N >::type vec
Define a nice alias for the vectorized type.
DataObject * asStorable(SG::DataObjectSharedPtr< T > pObject)
static const CLID & ID()
the CLID of T
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj)
Create TriggerTowers from ByteStream.
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.
Description of JEMEtSums_v2.
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.
virtual StatusCode createRep(DataObject *pObj, IOpaqueAddress *&pAddr)
Create ByteStream from TriggerTowers.
static long storageType()
JemEtSumsByteStreamAuxCnv(ISvcLocator *svcloc)
virtual StatusCode initialize()