|
ATLAS Offline Software
|
Go to the documentation of this file.
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")
63 , m_byteStreamCnvSvc(
"ByteStreamCnvSvc",
name())
64 , m_storeGate(
"StoreGateSvc",
name())
65 , m_robSvc(
"ROBDataProviderSvc",
name())
66 , m_decoder(
"TileROD_Decoder")
94 return StatusCode::SUCCESS ;
106 return StatusCode::FAILURE;
111 ATH_MSG_ERROR(
"Could not get raw event from ByteStreamInputSvc" );
112 return StatusCode::FAILURE;
118 ATH_MSG_WARNING(
"Conversion tool returned an error. TileL2Container might be empty." );
123 return StatusCode::SUCCESS;
134 std::string
key(
"Tile");
143 return StatusCode::FAILURE;
146 std::string
name = pObj->registry()->name();
154 return StatusCode::SUCCESS;
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
ToolHandle< BYTESTREAMTOOL > m_tool
Decodes the different TileCal ROD subfragment types in bytestream data and fills TileDigitsContainer,...
def finalize(self)
_info( "content of StoreGate..." ) self.sg.dump()
static long storageType()
ServiceHandle< IROBDataProviderSvc > m_robSvc
Pointer to IROBDataProviderSvc.
Template class for assembling a full atlas raw event from subfragments.
virtual StatusCode initialize() override
decoder
def channelSelection(self, channelList, groupType): if groupType == self.SingleGroup: pass elif group...
bool fromStorable(DataObject *pDObj, T *&pTrans, bool quiet=false, IRegisterTransient *irt=0, bool isConst=true)
virtual StatusCode createRepConst(DataObject *pObj, IOpaqueAddress *&pAddr) const override
Convert the transient object to the requested representation.
OFFLINE_FRAGMENTS_NAMESPACE::FullEventFragment RawEvent
data type for reading raw event
const TileHid2RESrcID * m_hid2re
Pointer to TileHid2RESrcID.
const T * get(size_type n) const
Access an element, as an rvalue.
Gaudi converter base class with const interfaces.
DataObject * asStorable(SG::DataObjectSharedPtr< T > pObject)
static const CLID & ID()
the CLID of T
ServiceHandle< IByteStreamCnvSvc > m_byteStreamCnvSvc
ServiceHandle< StoreGateSvc > m_storeGate
Pointer to StoreGateSvc.
static const CLID & classID()
::StatusCode StatusCode
StatusCode definition for legacy code.
IOpaqueAddress for ByteStreamCnvSvc, with ROB ids.
virtual StatusCode createObjConst(IOpaqueAddress *pAddr, DataObject *&pObj) const override
Create the transient representation of an object.
TileL2ContByteStreamCnv(ISvcLocator *svcloc)
ToolHandle< TileROD_Decoder > m_decoder
Pointer to TileROD_Decoder.
void clear()
Clear all vectors in TileL2.
uint32_t CLID
The Class ID type.
static constexpr long storageType()
Helpers for checking error return status codes and reporting errors.
const std::string & name() const
value_type push_back(value_type pElem)
Add an element to the end of the collection.
Incident sent after a store is cleared.
TileRecyclableL2Container(const TileROD_Decoder &decoder)
#define ATH_MSG_WARNING(x)
virtual StatusCode finalize() override
const boost::regex re(r_e)
void recycle()
Recycle this object for use in another event.
macros to associate a CLID to a type
Class to store TileMuId and Et quantities computed at the TileCal ROD DSPs.