18#include "GaudiKernel/DataObject.h"
19#include "GaudiKernel/IOpaqueAddress.h"
20#include "GaudiKernel/IRegistry.h"
21#include "GaudiKernel/ISvcLocator.h"
22#include "GaudiKernel/StatusCode.h"
37 m_tool(
"LVL1BS::PpmByteStreamV1Tool/PpmByteStreamV1Tool"),
70 if (
sc.isFailure() ) {
75 return StatusCode::SUCCESS;
81 DataObject*& pObj )
const
87 return StatusCode::FAILURE;
90 const std::string nm = *( pBS_Addr->par() );
95 const std::vector<uint32_t>& vID(
m_tool->sourceIDs(nm));
102 auto ttCollection = std::make_unique<DataVector<LVL1::TriggerTower> >(
SG::VIEW_ELEMENTS);
103 ATH_MSG_DEBUG(
" Number of ROB fragments is " << robFrags.size() );
105 if (robFrags.size() == 0) {
107 return StatusCode::SUCCESS;
114 return StatusCode::SUCCESS;
120 IOpaqueAddress*& pAddr )
const
127 return StatusCode::FAILURE;
130 const std::string nm = pObj->registry()->name();
137 return m_tool->convert( ttCollection,
re );
const boost::regex re(r_e)
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
std::vector< Identifier > ID
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.
An STL vector of pointers that by default owns its pointed-to elements.
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...
OFFLINE_FRAGMENTS_NAMESPACE_WRITE::FullEventFragment RawEventWrite
data type for writing raw event
convert to and from a SG storable
AthConstConverter(long storage_type, const CLID &class_type, ISvcLocator *svc, const std::string &name)
const std::string & name() const
IOpaqueAddress for ByteStreamCnvSvc, with ROB ids.
static constexpr long storageType()
std::vector< const ROBF * > VROBFRAG
ToolHandle< LVL1BS::PpmByteStreamV1Tool > m_tool
Tool that does the actual work.
static long storageType()
static const CLID & classID()
virtual StatusCode createRepConst(DataObject *pObj, IOpaqueAddress *&pAddr) const override
Create ByteStream from TriggerTowers.
ServiceHandle< IROBDataProviderSvc > m_robDataProvider
Service for reading bytestream.
ServiceHandle< IByteStreamEventAccess > m_ByteStreamEventAccess
Service for writing bytestream.
virtual ~PpmByteStreamV1Cnv()
virtual StatusCode createObjConst(IOpaqueAddress *pAddr, DataObject *&pObj) const override
Create TriggerTowers from ByteStream.
PpmByteStreamV1Cnv(ISvcLocator *svcloc)
virtual StatusCode initialize() override
bool fromStorable(DataObject *pDObj, T *&pTrans, bool quiet=false, IRegisterTransient *irt=0, bool isConst=true)
DataObject * asStorable(SG::DataObjectSharedPtr< T > pObject)
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts
Default, invalid implementation of ClassID_traits.