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 ()
 
 RpcDataWord64 (Word64 data)
 
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) {}

◆ RpcDataWord64() [2/2]

omtf::RpcDataWord64::RpcDataWord64 ( )
inline

Definition at line 12 of file OmtfRpcDataWord64.h.

12 : rawData(Word64(DataWord64::rpc) << 60) {}

Member Function Documentation

◆ bxNum()

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

Definition at line 18 of file OmtfRpcDataWord64.h.

18 { return bxNum_; }

References bxNum_.

◆ empty()

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

Definition at line 16 of file OmtfRpcDataWord64.h.

16 { return empty_; }

References empty_.

◆ frame1()

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

Definition at line 13 of file OmtfRpcDataWord64.h.

13 { return frame1_; }

References frame1_.

◆ frame2()

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

Definition at line 14 of file OmtfRpcDataWord64.h.

14 { return frame2_; }

References frame2_.

◆ frame3()

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

Definition at line 15 of file OmtfRpcDataWord64.h.

15 { return frame3_; }

References frame3_.

◆ linkNum()

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

Definition at line 17 of file OmtfRpcDataWord64.h.

17 { return linkNum_; }

References linkNum_.

◆ type()

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

Definition at line 19 of file OmtfRpcDataWord64.h.

19 { return type_; }

References 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  }

◆ RpcPacker

friend class RpcPacker
friend

Definition at line 21 of file OmtfRpcDataWord64.h.

Member Data Documentation

◆ @471

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_
omtf::RpcDataWord64::type_
uint64_t type_
Definition: OmtfRpcDataWord64.h:34
omtf::RpcDataWord64::rawData
uint64_t rawData
Definition: OmtfRpcDataWord64.h:26
omtf::Word64
uint64_t Word64
Definition: OmtfDataWord64.h:11
omtf::RpcDataWord64::linkNum_
uint64_t linkNum_
Definition: OmtfRpcDataWord64.h:32
omtf::RpcDataWord64::empty_
uint64_t empty_
Definition: OmtfRpcDataWord64.h:31
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
omtf::RpcDataWord64::frame1_
uint64_t frame1_
Definition: OmtfRpcDataWord64.h:30
omtf::DataWord64::type
Type type(const T &)
omtf::RpcDataWord64::bxNum_
uint64_t bxNum_
Definition: OmtfRpcDataWord64.h:33
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
omtf::RpcDataWord64::frame2_
uint64_t frame2_
Definition: OmtfRpcDataWord64.h:29
omtf::DataWord64::rpc
Definition: OmtfDataWord64.h:16
TauDecayModes.dec
dec
Definition: TauDecayModes.py:143
omtf::RpcDataWord64::frame3_
uint64_t frame3_
Definition: OmtfRpcDataWord64.h:28