ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
Muon::TgcROD_Encoder Class Reference

#include <TgcROD_Encoder.h>

Collaboration diagram for Muon::TgcROD_Encoder:

Public Member Functions

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

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 18 of file TgcROD_Encoder.cxx.

18  : m_tgcRdo(nullptr)
19 {}

◆ ~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 32 of file TgcROD_Encoder.cxx.

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

◆ setRdo()

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

Set TgcRdo.

Definition at line 27 of file TgcROD_Encoder.cxx.

27  {
28  m_tgcRdo = rdo;
29 }

Member Data Documentation

◆ m_tgcRdo

const TgcRdo* Muon::TgcROD_Encoder::m_tgcRdo
private

Definition at line 44 of file TgcROD_Encoder.h.


The documentation for this class was generated from the following files:
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
skel.it
it
Definition: skel.GENtoEVGEN.py:396
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition: getMessageSvc.cxx:20
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
debug
const bool debug
Definition: MakeUncertaintyPlots.cxx:53
python.PyAthena.v
v
Definition: PyAthena.py:154
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
Muon::TgcROD_Encoder::m_tgcRdo
const TgcRdo * m_tgcRdo
Definition: TgcROD_Encoder.h:44