![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 "../CpByteStreamV2Tool.h"
50 #include "../ToString.h"
55 Converter(storageType(), classID(), svcloc),
57 m_name(
"CmxCpTobByteStreamAuxCnv"),
58 m_readTool(
"LVL1BS::CpByteStreamV2Tool/CpByteStreamV2Tool")
79 return StatusCode::SUCCESS;
88 CHECK(pBS_Addr !=
nullptr);
90 const std::string
nm = *(pBS_Addr->par());
95 cpmCollection.setStore(aux);
105 for (
auto ct : cmxCpTobVector) {
108 std::vector<uint8_t> energyVec(
ct->energyVec().begin(),
ct->energyVec().end());
109 std::vector<uint8_t> isolationVec(
ct->isolationVec().begin(),
ct->isolationVec().end());
110 std::vector<uint32_t> errorVec(
ct->errorVec().begin(),
ct->errorVec().end());
111 std::vector<uint16_t> presenceMapVec(
ct->presenceMapVec().begin(),
ct->presenceMapVec().end());
113 item->initialize(
ct->crate(),
ct->cmx(),
114 ct->cpm(),
ct->chip(),
ct->location(),
127 return StatusCode::SUCCESS;
133 return StatusCode::FAILURE;
CMXCPTobAuxContainer_v1 CMXCPTobAuxContainer
Define the latest version of the CMXCPTob 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...
CMXCPTob_v1 CMXCPTob
Define the latest version of the CMXCPTob class.
DataObject * asStorable(T *pObject)
Description of CMXCPTob_v1.
static const CLID & ID()
the CLID of T
msgSvc
Provide convenience handles for various services.
static long storageType()
a traits class that associates a CLID to a type T It also detects whether T inherits from Gaudi DataO...
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj)
Create TriggerTowers from ByteStream.
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode initialize()
IOpaqueAddress for ByteStreamCnvSvc, with ROB ids.
Class to provide easy MsgStream access and capabilities.
#define CHECK(...)
Evaluate an expression and check for errors.
CmxCpTobByteStreamAuxCnv(ISvcLocator *svcloc)
uint32_t CLID
The Class ID type.
static constexpr long storageType()
Helpers for checking error return status codes and reporting errors.
ToolHandle< CpByteStreamV2Tool > m_readTool
Do the main job - retrieve xAOD TriggerTowers from robs.
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 const CLID & classID()
std::string m_name
Converter name.