|
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(
"CmxJetTobByteStreamAuxCnv"),
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);
108 std::vector<uint16_t> energyLarge(
jet->energyLgVec().begin(),
jet->energyLgVec().end());
109 std::vector<uint16_t> energySmall(
jet->energySmVec().begin(),
jet->energySmVec().end());
110 std::vector<uint32_t> errorVec(
jet->errorVec().begin(),
jet->errorVec().end());
111 std::vector<uint16_t> presenceMapVec(
jet->presenceMapVec().begin(),
jet->presenceMapVec().end());
114 jet->frame(),
jet->location(),
124 ATH_MSG_DEBUG(
"Number of readed CMXJetTob: " << aux->size());
127 return StatusCode::SUCCESS;
133 return StatusCode::FAILURE;
virtual StatusCode createRep(DataObject *pObj, IOpaqueAddress *&pAddr)
Create ByteStream from TriggerTowers.
CMXJetTobAuxContainer_v1 CMXJetTobAuxContainer
Define the latest version of the CMXJetTob class.
ToolHandle< JepByteStreamV2Tool > m_readTool
Do the main job - retrieve objects from robs.
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()
CmxJetTobByteStreamAuxCnv(ISvcLocator *svcloc)
CMXJetTob_v1 CMXJetTob
Define the latest version of the CMXJetTob 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.
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.
std::string m_name
Converter name.
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.
Description of CMXJetTob_v1.
virtual StatusCode initialize()
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.
static long storageType()