16#include "GaudiKernel/DataObject.h"
17#include "GaudiKernel/IOpaqueAddress.h"
18#include "GaudiKernel/IRegistry.h"
19#include "GaudiKernel/ISvcLocator.h"
20#include "GaudiKernel/StatusCode.h"
39 AthMessaging(svcloc != 0 ? msgSvc() : 0,
"PpmByteStreamAuxCnv"),
40 m_name(
"PpmByteStreamAuxCnv"),
41 m_readTool(
"LVL1BS::PpmByteStreamReadV1V2Tool/PpmByteStreamReadV1V2Tool"),
42 m_zdcTool(
"ZdcByteStreamReadV1V2Tool/ZdcByteStreamReadV1V2Tool") {
60 CHECK(Converter::initialize());
63 return StatusCode::SUCCESS;
72 CHECK(pBS_Addr !=
nullptr);
74 const std::string nm = *(pBS_Addr->par());
79 ttCollection.setStore(
aux);
82 if (nm.substr(0,3) !=
"Zdc")
102 return StatusCode::SUCCESS;
108 return StatusCode::FAILURE;
#define ATH_MSG_VERBOSE(x)
a traits class that associates a CLID to a type T It also detects whether T inherits from Gaudi DataO...
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
uint32_t CLID
The Class ID type.
Defines the ROB data entity. The ROB data is an abstract entity that is used to decouple the raw even...
convert to and from a SG storable
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
IOpaqueAddress for ByteStreamCnvSvc, with ROB ids.
static constexpr long storageType()
virtual StatusCode initialize()
static long storageType()
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj)
Create TriggerTowers from ByteStream.
ToolHandle< ZdcByteStreamReadV1V2Tool > m_zdcTool
virtual StatusCode createRep(DataObject *pObj, IOpaqueAddress *&pAddr)
Create ByteStream from TriggerTowers.
std::string m_name
Converter name.
static const CLID & classID()
ToolHandle< PpmByteStreamReadV1V2Tool > m_readTool
Do the main job - retrieve xAOD TriggerTowers from robs.
PpmByteStreamAuxCnv(ISvcLocator *svcloc)
std::string ToString(const xAOD::TriggerTower &tt)
DataObject * asStorable(SG::DataObjectSharedPtr< T > pObject)
TriggerTowerContainer_v2 TriggerTowerContainer
Define the latest version of the TriggerTower container.
TriggerTowerAuxContainer_v2 TriggerTowerAuxContainer
Define the latest version of the TriggerTower auxiliary container.