CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes | Friends
omtf::RpcDataWord64 Class Reference

#include <OmtfRpcDataWord64.h>

Public Member Functions

unsigned int bxNum () const
 
unsigned int empty () const
 
unsigned int frame1 () const
 
unsigned int frame2 () const
 
unsigned int frame3 () const
 
unsigned int linkNum () const
 
 RpcDataWord64 (Word64 data)
 
 RpcDataWord64 ()
 
unsigned int type () const
 

Private Attributes

union {
   struct {
      uint64_t   bxNum_: 3
 
      uint64_t   empty_: 4
 
      uint64_t   frame1_: 16
 
      uint64_t   frame2_: 16
 
      uint64_t   frame3_: 16
 
      uint64_t   linkNum_: 5
 
      uint64_t   type_: 4
 
   } 
 
   uint64_t   rawData
 
}; 
 

Friends

class OmtfPacker
 
std::ostream & operator<< (std::ostream &out, const RpcDataWord64 &o)
 
class RpcPacker
 

Detailed Description

Definition at line 9 of file OmtfRpcDataWord64.h.

Constructor & Destructor Documentation

omtf::RpcDataWord64::RpcDataWord64 ( Word64  data)
inline

Definition at line 11 of file OmtfRpcDataWord64.h.

11 : rawData(data) {}
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
omtf::RpcDataWord64::RpcDataWord64 ( )
inline

Definition at line 12 of file OmtfRpcDataWord64.h.

Member Function Documentation

unsigned int omtf::RpcDataWord64::bxNum ( ) const
inline

Definition at line 18 of file OmtfRpcDataWord64.h.

References bxNum_.

Referenced by omtf::RpcUnpacker::unpack().

18 { return bxNum_; }
unsigned int omtf::RpcDataWord64::empty ( void  ) const
inline
unsigned int omtf::RpcDataWord64::frame1 ( ) const
inline

Definition at line 13 of file OmtfRpcDataWord64.h.

References frame1_.

Referenced by omtf::RpcUnpacker::unpack().

13 { return frame1_;}
unsigned int omtf::RpcDataWord64::frame2 ( ) const
inline

Definition at line 14 of file OmtfRpcDataWord64.h.

References frame2_.

Referenced by omtf::RpcUnpacker::unpack().

14 { return frame2_;}
unsigned int omtf::RpcDataWord64::frame3 ( ) const
inline

Definition at line 15 of file OmtfRpcDataWord64.h.

References frame3_.

Referenced by omtf::RpcUnpacker::unpack().

15 { return frame3_;}
unsigned int omtf::RpcDataWord64::linkNum ( ) const
inline

Definition at line 17 of file OmtfRpcDataWord64.h.

References linkNum_.

Referenced by omtf::RpcUnpacker::unpack().

17 { return linkNum_;}
unsigned int omtf::RpcDataWord64::type ( ) const
inline

Friends And Related Function Documentation

friend class OmtfPacker
friend

Definition at line 20 of file OmtfRpcDataWord64.h.

std::ostream& operator<< ( std::ostream &  out,
const RpcDataWord64 o 
)
friend

Definition at line 6 of file OmtfRpcDataWrod64.cc.

6  {
7  out << "RpcDataWord64: "
8  <<" type: "<< DataWord64::type(o.type())
9  << " bx: "<<o.bxNum_
10  << " lnk: "<< o.linkNum_;
11  out << std::hex;
12  out << " frame1: 0x"<< o.frame1_; if (o.frame1_ != 0) out <<" ("<< std::bitset<16>(o.frame1_)<<")";
13  out << " frame2: 0x"<< o.frame2_; if (o.frame2_ != 0) out <<" ("<< std::bitset<16>(o.frame2_)<<")";
14  out << " frame3: 0x"<< o.frame3_; if (o.frame3_ != 0) out <<" ("<< std::bitset<16>(o.frame3_)<<")";
15  out << std::dec;
16  return out;
17  }
Type type(const T &)
friend class RpcPacker
friend

Definition at line 21 of file OmtfRpcDataWord64.h.

Member Data Documentation

union { ... }
uint64_t omtf::RpcDataWord64::bxNum_

Definition at line 33 of file OmtfRpcDataWord64.h.

Referenced by bxNum(), omtf::operator<<(), and omtf::RpcPacker::pack().

uint64_t omtf::RpcDataWord64::empty_

Definition at line 31 of file OmtfRpcDataWord64.h.

Referenced by empty().

uint64_t omtf::RpcDataWord64::frame1_

Definition at line 30 of file OmtfRpcDataWord64.h.

Referenced by frame1(), omtf::operator<<(), and omtf::RpcPacker::pack().

uint64_t omtf::RpcDataWord64::frame2_

Definition at line 29 of file OmtfRpcDataWord64.h.

Referenced by frame2(), and omtf::operator<<().

uint64_t omtf::RpcDataWord64::frame3_

Definition at line 28 of file OmtfRpcDataWord64.h.

Referenced by frame3(), and omtf::operator<<().

uint64_t omtf::RpcDataWord64::linkNum_

Definition at line 32 of file OmtfRpcDataWord64.h.

Referenced by linkNum(), omtf::operator<<(), and omtf::RpcPacker::pack().

uint64_t omtf::RpcDataWord64::rawData

Definition at line 26 of file OmtfRpcDataWord64.h.

Referenced by omtf::RpcPacker::pack().

uint64_t omtf::RpcDataWord64::type_