![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"
51 #include "../CpByteStreamV2Tool.h"
52 #include "../ToString.h"
57 Converter(storageType(), classID(), svcloc),
59 m_name(
"CpmTowerByteStreamAuxCnv"),
60 m_cpmReadTool(
"LVL1BS::CpByteStreamV2Tool/CpByteStreamV2Tool")
81 return StatusCode::SUCCESS;
90 CHECK(pBS_Addr !=
nullptr);
92 const std::string
nm = *(pBS_Addr->par());
97 cpmCollection.setStore(aux);
101 if (
sc.isFailure()) {
107 for (
auto ct : cpmTowerVector) {
110 std::vector<uint8_t> emEnergyVec(
ct->emEnergyVec().begin(),
ct->emEnergyVec().end());
111 std::vector<uint8_t> hadEnergyVec(
ct->hadEnergyVec().begin(),
ct->hadEnergyVec().end());
112 std::vector<uint32_t> emErrorVec(
ct->emErrorVec().begin(),
ct->emErrorVec().end());
113 std::vector<uint32_t> hadErrorVec(
ct->hadErrorVec().begin(),
ct->hadErrorVec().end());
115 item->initialize(
ct->eta(),
ct->phi(),
125 ATH_MSG_DEBUG(
"Number of readed CPM towers: " << aux->size());
128 return StatusCode::SUCCESS;
134 return StatusCode::FAILURE;
virtual StatusCode createRep(DataObject *pObj, IOpaqueAddress *&pAddr)
Create ByteStream from TriggerTowers.
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj)
Create TriggerTowers from ByteStream.
static const CLID & classID()
convert to and from a SG storable
std::string m_name
Converter name.
Defines the ROB data entity. The ROB data is an abstract entity that is used to discase the raw event...
CPMTowerAuxContainer_v2 CPMTowerAuxContainer
Define the latest version of the CPMHits auxiliary container.
DataObject * asStorable(T *pObject)
CPMTower_v2 CPMTower
Define the latest version of the CPMTower class.
static const CLID & ID()
the CLID of T
CpmTowerByteStreamAuxCnv(ISvcLocator *svcloc)
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.
static long storageType()
IOpaqueAddress for ByteStreamCnvSvc, with ROB ids.
ToolHandle< CpByteStreamV2Tool > m_cpmReadTool
Do the main job - retrieve xAOD TriggerTowers from robs.
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 initialize()
Description of CPMTower_v2.