|
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 "../CpByteStreamV2Tool.h"
49 #include "../ToString.h"
54 Converter(storageType(), classID(), svcloc),
56 m_name(
"CmxCpTobByteStreamAuxCnv"),
57 m_readTool(
"LVL1BS::CpByteStreamV2Tool/CpByteStreamV2Tool")
78 return StatusCode::SUCCESS;
87 CHECK(pBS_Addr !=
nullptr);
89 const std::string
nm = *(pBS_Addr->par());
94 cpmCollection.setStore(aux);
104 for (
auto ct : cmxCpTobVector) {
107 std::vector<uint8_t> energyVec(
ct->energyVec().begin(),
ct->energyVec().end());
108 std::vector<uint8_t> isolationVec(
ct->isolationVec().begin(),
ct->isolationVec().end());
109 std::vector<uint32_t> errorVec(
ct->errorVec().begin(),
ct->errorVec().end());
110 std::vector<uint16_t> presenceMapVec(
ct->presenceMapVec().begin(),
ct->presenceMapVec().end());
112 item->initialize(
ct->crate(),
ct->cmx(),
113 ct->cpm(),
ct->chip(),
ct->location(),
126 return StatusCode::SUCCESS;
132 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.