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

◆ RpcDataWord64() [1/2]

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:80

◆ RpcDataWord64() [2/2]

omtf::RpcDataWord64::RpcDataWord64 ( )
inline

Definition at line 12 of file OmtfRpcDataWord64.h.

Member Function Documentation

◆ bxNum()

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

Definition at line 18 of file OmtfRpcDataWord64.h.

References bxNum_.

18 { return bxNum_; }

◆ empty()

unsigned int omtf::RpcDataWord64::empty ( void  ) const
inline

Definition at line 16 of file OmtfRpcDataWord64.h.

References empty_.

16 { return empty_; }

◆ frame1()

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

Definition at line 13 of file OmtfRpcDataWord64.h.

References frame1_.

13 { return frame1_; }

◆ frame2()

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

Definition at line 14 of file OmtfRpcDataWord64.h.

References frame2_.

14 { return frame2_; }

◆ frame3()

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

Definition at line 15 of file OmtfRpcDataWord64.h.

References frame3_.

15 { return frame3_; }

◆ linkNum()

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

Definition at line 17 of file OmtfRpcDataWord64.h.

References linkNum_.

17 { return linkNum_; }

◆ type()

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

Definition at line 19 of file OmtfRpcDataWord64.h.

References type_.

19 { return type_; }

Friends And Related Function Documentation

◆ OmtfPacker

friend class OmtfPacker
friend

Definition at line 20 of file OmtfRpcDataWord64.h.

◆ operator<<

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()) << " bx: " << o.bxNum_ << " lnk: " << o.linkNum_;
9  out << std::hex;
10  out << " frame1: 0x" << o.frame1_;
11  if (o.frame1_ != 0)
12  out << " (" << std::bitset<16>(o.frame1_) << ")";
13  out << " frame2: 0x" << o.frame2_;
14  if (o.frame2_ != 0)
15  out << " (" << std::bitset<16>(o.frame2_) << ")";
16  out << " frame3: 0x" << o.frame3_;
17  if (o.frame3_ != 0)
18  out << " (" << std::bitset<16>(o.frame3_) << ")";
19  out << std::dec;
20  return out;
21  }
Type type(const T &)

◆ RpcPacker

friend class RpcPacker
friend

Definition at line 21 of file OmtfRpcDataWord64.h.

Member Data Documentation

◆ @516

union { ... }

◆ bxNum_

uint64_t omtf::RpcDataWord64::bxNum_

Definition at line 33 of file OmtfRpcDataWord64.h.

Referenced by bxNum().

◆ empty_

uint64_t omtf::RpcDataWord64::empty_

Definition at line 31 of file OmtfRpcDataWord64.h.

Referenced by empty().

◆ frame1_

uint64_t omtf::RpcDataWord64::frame1_

Definition at line 30 of file OmtfRpcDataWord64.h.

Referenced by frame1().

◆ frame2_

uint64_t omtf::RpcDataWord64::frame2_

Definition at line 29 of file OmtfRpcDataWord64.h.

Referenced by frame2().

◆ frame3_

uint64_t omtf::RpcDataWord64::frame3_

Definition at line 28 of file OmtfRpcDataWord64.h.

Referenced by frame3().

◆ linkNum_

uint64_t omtf::RpcDataWord64::linkNum_

Definition at line 32 of file OmtfRpcDataWord64.h.

Referenced by linkNum().

◆ rawData

uint64_t omtf::RpcDataWord64::rawData

Definition at line 26 of file OmtfRpcDataWord64.h.

◆ type_

uint64_t omtf::RpcDataWord64::type_