ATLAS Offline Software
Loading...
Searching...
No Matches
Muon::TgcROD_Encoder Class Reference

This class provides conversion from TgcRdo to ROD format. More...

#include <TgcROD_Encoder.h>

Collaboration diagram for Muon::TgcROD_Encoder:

Public Member Functions

 TgcROD_Encoder ()
 Constructor.
 ~TgcROD_Encoder ()
 Destructor.
void setRdo (const TgcRdo *rdo)
 Set TgcRdo.
void fillROD (std::vector< uint32_t > &v)
 Convert all ROB fragment in the current list to a vector of 32bit words.

Private Attributes

const TgcRdom_tgcRdo

Detailed Description

This class provides conversion from TgcRdo to ROD format.

Author
Susumu Oda Susum.nosp@m.u.Od.nosp@m.a@cer.nosp@m.n.ch

This class was devloped by Tadashi Maeno based on RpcROD_Encoder written by Ketevi A. Assamagan

Definition at line 25 of file TgcROD_Encoder.h.

Constructor & Destructor Documentation

◆ TgcROD_Encoder()

Muon::TgcROD_Encoder::TgcROD_Encoder ( )

Constructor.

Definition at line 17 of file TgcROD_Encoder.cxx.

17: m_tgcRdo(nullptr) {}
const TgcRdo * m_tgcRdo

◆ ~TgcROD_Encoder()

Muon::TgcROD_Encoder::~TgcROD_Encoder ( )
default

Destructor.

Member Function Documentation

◆ fillROD()

void Muon::TgcROD_Encoder::fillROD ( std::vector< uint32_t > & v)

Convert all ROB fragment in the current list to a vector of 32bit words.

Definition at line 28 of file TgcROD_Encoder.cxx.

28 {
29 MsgStream log(Athena::getMessageSvc(), "TgcROD_Encoder::fillROD");
30 bool debug = (log.level() <= MSG::DEBUG);
31
32 // ROD encoder
33 // // set RDO and encode to ROD data
34 std::vector<uint32_t> t_vData;
35
36 TgcByteStream bs;
37 bs.rdo2ByteStream(m_tgcRdo, t_vData, log);
38
39 // append to vector and dump
40 std::vector<uint32_t>::const_iterator it = t_vData.begin();
41 std::vector<uint32_t>::const_iterator it_e = t_vData.end();
42 uint32_t iWord = 0;
43 if (debug) {
44 log << MSG::DEBUG << "************** dumping the words ************"
45 << endmsg;
46 }
47 for (; it != it_e; ++it) {
48 v.push_back(*it);
49 if (debug) {
50 log << MSG::DEBUG << "word " << MSG::dec << std::setw(3) << iWord
51 << " = " << MSG::hex << std::setw(8) << *it << endmsg;
52 }
53 ++iWord;
54 }
55}
#define endmsg
const bool debug
IMessageSvc * getMessageSvc(bool quiet=false)
setEventNumber uint32_t

◆ setRdo()

void Muon::TgcROD_Encoder::setRdo ( const TgcRdo * rdo)

Set TgcRdo.

Definition at line 23 of file TgcROD_Encoder.cxx.

23 {
24 m_tgcRdo = rdo;
25}

Member Data Documentation

◆ m_tgcRdo

const TgcRdo* Muon::TgcROD_Encoder::m_tgcRdo
private

Definition at line 42 of file TgcROD_Encoder.h.


The documentation for this class was generated from the following files: