CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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:79
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

Definition at line 16 of file OmtfRpcDataWord64.h.

References empty_.

16 { return empty_; }
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

Definition at line 19 of file OmtfRpcDataWord64.h.

References type_.

Referenced by omtf::operator<<().

19 { return type_; }

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()) << " 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  }
if(conf_.getParameter< bool >("UseStripCablingDB"))
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_