6#include "GaudiKernel/MsgStream.h"
7#include "GaudiKernel/StatusCode.h"
8#include "GaudiKernel/DataObject.h"
9#include "GaudiKernel/IRegistry.h"
10#include "GaudiKernel/IToolSvc.h"
38 for(
int i = 0; i < 256; ++i) {
39 int collId = decoder.hashFunc()->identifier(i);
40 this->
push_back (std::make_unique<TileL2> (collId));
54 for (
TileL2* elt : *
this) {
62 ,
m_tool(
"TileL2ContByteStreamTool")
94 return StatusCode::SUCCESS ;
108 ATH_MSG_ERROR(
"Could not get raw event from ByteStreamInputSvc" );
109 return StatusCode::FAILURE;
115 ATH_MSG_WARNING(
"Conversion tool returned an error. TileL2Container might be empty." );
120 return StatusCode::SUCCESS;
131 std::string key(
"Tile");
140 return StatusCode::FAILURE;
143 std::string
name = pObj->registry()->name();
151 return StatusCode::SUCCESS;
157 return Converter::finalize();
const boost::regex re(r_e)
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
macros to associate a CLID to a type
Helpers for checking error return status codes and reporting errors.
uint32_t CLID
The Class ID type.
OFFLINE_FRAGMENTS_NAMESPACE::FullEventFragment RawEvent
data type for reading raw event
Incident sent after a store is cleared.
TileContainer< TileL2 > TileL2Container
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.
const EventContext & getEventContext() const
static constexpr long storageType()
void reserve(size_type n)
value_type push_back(value_type pElem)
Template class for assembling a full atlas raw event from subfragments.
const TileHid2RESrcID * m_hid2re
Pointer to TileHid2RESrcID.
virtual StatusCode createObjConst(IOpaqueAddress *pAddr, DataObject *&pObj) const override
Create the transient representation of an object.
ServiceHandle< IROBDataProviderSvc > m_robSvc
Pointer to IROBDataProviderSvc.
virtual StatusCode createRepConst(DataObject *pObj, IOpaqueAddress *&pAddr) const override
Convert the transient object to the requested representation.
ServiceHandle< IByteStreamCnvSvc > m_byteStreamCnvSvc
TileL2ContByteStreamCnv(ISvcLocator *svcloc)
ToolHandle< TileROD_Decoder > m_decoder
Pointer to TileROD_Decoder.
virtual StatusCode finalize() override
ToolHandle< BYTESTREAMTOOL > m_tool
ServiceHandle< StoreGateSvc > m_storeGate
Pointer to StoreGateSvc.
virtual StatusCode initialize() override
static long storageType()
Class to store TileMuId and Et quantities computed at the TileCal ROD DSPs.
void clear()
Clear all vectors in TileL2.
Decodes the different TileCal ROD subfragment types in bytestream data and fills TileDigitsContainer,...
TileRecyclableL2Container(const TileROD_Decoder &decoder)
void recycle()
Recycle this object for use in another event.
bool fromStorable(DataObject *pDObj, T *&pTrans, bool quiet=false, IRegisterTransient *irt=0, bool isConst=true)
DataObject * asStorable(SG::DataObjectSharedPtr< T > pObject)
static constexpr CLID ID()