47 const IInterface* parent)
52 declareInterface<TileMuRcvContByteStreamTool>(
this);
62 ATH_MSG_INFO (
"Initializing TileMuRcvContByteStreamTool");
66 ToolHandle<TileROD_Decoder> dec(
"TileROD_Decoder");
74 return StatusCode::SUCCESS;
78 ATH_MSG_INFO (
"Finalizing TileMuRcvContByteStreamTool successfuly");
79 return StatusCode::SUCCESS;
84 ATH_MSG_INFO (
"Executing TileMuRcvContByteStreamTool::convert method");
89 uint32_t frag_id = 0x0;
99 std::map<uint32_t, TileROD_Encoder> mapEncoder;
101 for (; it_cont != end_cont; ++it_cont)
104 frag_id = (*it_cont)->identify();
105 reid = hid2re->getRodTileMuRcvID(frag_id);
108 mapEncoder[reid].addTileMuRcvObj(tileMuRcv);
111 ATH_MSG_DEBUG(
" Number of TileMuonReceiverObj objects counted " << n <<
" out of the possible " << cont->
size()-1 );
115 std::map<uint32_t, TileROD_Encoder>::iterator map_it = mapEncoder.begin();
116 std::map<uint32_t, TileROD_Encoder>::iterator map_end = mapEncoder.end();
122 for (; map_it != map_end; ++map_it)
125 theEncoder = &( (*map_it).second );
126 theEncoder -> fillRODTileMuRcvObj( *theROD );
127 ATH_MSG_DEBUG(
" Number of words in ROD " <<MSG::hex<< (*map_it).first <<MSG::dec<<
": " << theROD->size() );
128 ATH_MSG_DEBUG(
" ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ " );
131 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
macros to associate a CLID to a type
Helpers for checking error return status codes and reporting errors.
TileContainer< TileMuonReceiverObj > TileMuonReceiverContainer
const ServiceHandle< StoreGateSvc > & detStore() const
DataModel_detail::const_iterator< DataVector > const_iterator
const_iterator end() const noexcept
const_iterator begin() const noexcept
size_type size() const noexcept
Template class for assembling a full atlas raw event from subfragments.
std::vector< uint32_t > RODDATA
ROD data as a vector of unsigned int.
RODDATA * getRodData(uint32_t id)
get a block of ROD data
static const TileCablingService * getInstance()
get pointer to service instance
Provides conversion from TileRawChannel, TileL2 and TMDB (digits,MF raw channel,decision) to ROD form...