CMS 3D CMS Logo

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

#include <OmtfDtDataWord64.h>

Public Member Functions

unsigned int bcnt_e0 () const
 
unsigned int bcnt_e1 () const
 
unsigned int bcnt_st () const
 
unsigned int bxNum () const
 
 DtDataWord64 (Word64 data)
 
 DtDataWord64 ()
 
unsigned int eta () const
 
unsigned int etaQuality () const
 
unsigned int fiber () const
 
int phi () const
 
int phiB () const
 
unsigned int quality () const
 
unsigned int sector () const
 
unsigned int station () const
 
unsigned int type () const
 
unsigned int valid () const
 

Private Attributes

union {
   struct {
      uint64_t   bcnt_e0_: 2
 
      uint64_t   bcnt_e1_: 2
 
      uint64_t   bcnt_st_: 2
 
      uint64_t   bxNum_: 3
 
      uint64_t   dummy1_: 1
 
      uint64_t   eta_hit_: 7
 
      uint64_t   eta_qbit_: 7
 
      uint64_t   fiber_: 1
 
      uint64_t   sector_: 2
 
      uint64_t   st_: 2
 
      uint64_t   st_cal_: 1
 
      int64_t   st_phi_: 12
 
      int64_t   st_phib_: 10
 
      uint64_t   st_q_: 5
 
      uint64_t   type_: 4
 
      uint64_t   valid_: 3
 
   } 
 
   uint64_t   rawData
 
}; 
 

Friends

class DtPacker
 
class OmtfPacker
 
std::ostream & operator<< (std::ostream &out, const DtDataWord64 &o)
 

Detailed Description

Definition at line 9 of file OmtfDtDataWord64.h.

Constructor & Destructor Documentation

omtf::DtDataWord64::DtDataWord64 ( Word64  data)
inline

Definition at line 11 of file OmtfDtDataWord64.h.

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

Definition at line 12 of file OmtfDtDataWord64.h.

Member Function Documentation

unsigned int omtf::DtDataWord64::bcnt_e0 ( ) const
inline

Definition at line 19 of file OmtfDtDataWord64.h.

References bcnt_e0_.

Referenced by omtf::operator<<().

19 { return bcnt_e0_; }
unsigned int omtf::DtDataWord64::bcnt_e1 ( ) const
inline

Definition at line 20 of file OmtfDtDataWord64.h.

References bcnt_e1_.

Referenced by omtf::operator<<().

20 { return bcnt_e1_; }
unsigned int omtf::DtDataWord64::bcnt_st ( ) const
inline

Definition at line 18 of file OmtfDtDataWord64.h.

References bcnt_st_.

Referenced by omtf::operator<<(), and omtf::DtUnpacker::unpack().

18 { return bcnt_st_; }
unsigned int omtf::DtDataWord64::bxNum ( ) const
inline

Definition at line 25 of file OmtfDtDataWord64.h.

References bxNum_.

Referenced by omtf::operator<<(), and omtf::DtUnpacker::unpack().

25 { return bxNum_; }
unsigned int omtf::DtDataWord64::eta ( void  ) const
inline
unsigned int omtf::DtDataWord64::etaQuality ( ) const
inline

Definition at line 17 of file OmtfDtDataWord64.h.

References eta_qbit_.

Referenced by omtf::operator<<(), and omtf::DtUnpacker::unpack().

17 { return eta_qbit_; }
unsigned int omtf::DtDataWord64::fiber ( ) const
inline

Definition at line 23 of file OmtfDtDataWord64.h.

References fiber_.

Referenced by omtf::operator<<(), and omtf::DtUnpacker::unpack().

23 { return fiber_; }
int omtf::DtDataWord64::phi ( void  ) const
inline
int omtf::DtDataWord64::phiB ( ) const
inline

Definition at line 14 of file OmtfDtDataWord64.h.

References st_phib_.

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

14 { return st_phib_; }
unsigned int omtf::DtDataWord64::quality ( void  ) const
inline

Definition at line 15 of file OmtfDtDataWord64.h.

References st_q_.

Referenced by omtf::operator<<(), and omtf::DtUnpacker::unpack().

15 { return st_q_; }
unsigned int omtf::DtDataWord64::sector ( void  ) const
inline

Definition at line 24 of file OmtfDtDataWord64.h.

References sector_.

Referenced by geometryXMLparser.DTAlignable::index(), omtf::operator<<(), and omtf::DtUnpacker::unpack().

24 { return sector_; }
unsigned int omtf::DtDataWord64::station ( ) const
inline
unsigned int omtf::DtDataWord64::type ( ) const
inline
unsigned int omtf::DtDataWord64::valid ( ) const
inline

Definition at line 21 of file OmtfDtDataWord64.h.

References valid_.

21 { return valid_; }

Friends And Related Function Documentation

friend class DtPacker
friend

Definition at line 28 of file OmtfDtDataWord64.h.

friend class OmtfPacker
friend

Definition at line 27 of file OmtfDtDataWord64.h.

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

Definition at line 4 of file OmtfDtDataWord64.cc.

4  {
5  out << "DtDataWord64: "
6  <<" type: "<< DataWord64::type(o.type())
7  << " bx: "<<o.bxNum()
8  << " station: " << o.station()
9  << " sector: " << o.sector()
10  << " fiber: " << o.fiber()
11  << " phi: "<<o.phi()
12  << " quality: "<<o.quality()
13  << " eta: "<<o.eta()
14  << " etaQ: "<<o.etaQuality()
15  << " bcnt: "<<o.bcnt_st()<<"_"<<o.bcnt_e0()<<"_"<<o.bcnt_e1()
16  << "";
17  return out;
18  }
Type type(const T &)

Member Data Documentation

union { ... }
uint64_t omtf::DtDataWord64::bcnt_e0_

Definition at line 43 of file OmtfDtDataWord64.h.

Referenced by bcnt_e0(), and omtf::DtPacker::pack().

uint64_t omtf::DtDataWord64::bcnt_e1_

Definition at line 44 of file OmtfDtDataWord64.h.

Referenced by bcnt_e1(), and omtf::DtPacker::pack().

uint64_t omtf::DtDataWord64::bcnt_st_

Definition at line 42 of file OmtfDtDataWord64.h.

Referenced by bcnt_st(), and omtf::DtPacker::pack().

uint64_t omtf::DtDataWord64::bxNum_

Definition at line 49 of file OmtfDtDataWord64.h.

Referenced by bxNum(), and omtf::DtPacker::pack().

uint64_t omtf::DtDataWord64::dummy1_

Definition at line 41 of file OmtfDtDataWord64.h.

uint64_t omtf::DtDataWord64::eta_hit_

Definition at line 40 of file OmtfDtDataWord64.h.

Referenced by eta(), and omtf::DtPacker::pack().

uint64_t omtf::DtDataWord64::eta_qbit_

Definition at line 39 of file OmtfDtDataWord64.h.

Referenced by etaQuality(), and omtf::DtPacker::pack().

uint64_t omtf::DtDataWord64::fiber_

Definition at line 47 of file OmtfDtDataWord64.h.

Referenced by fiber(), and omtf::DtPacker::pack().

uint64_t omtf::DtDataWord64::rawData

Definition at line 33 of file OmtfDtDataWord64.h.

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

uint64_t omtf::DtDataWord64::sector_

Definition at line 48 of file OmtfDtDataWord64.h.

Referenced by omtf::DtPacker::pack(), and sector().

uint64_t omtf::DtDataWord64::st_

Definition at line 46 of file OmtfDtDataWord64.h.

Referenced by omtf::DtPacker::pack(), and station().

uint64_t omtf::DtDataWord64::st_cal_

Definition at line 38 of file OmtfDtDataWord64.h.

int64_t omtf::DtDataWord64::st_phi_

Definition at line 35 of file OmtfDtDataWord64.h.

Referenced by omtf::DtPacker::pack(), and phi().

int64_t omtf::DtDataWord64::st_phib_

Definition at line 36 of file OmtfDtDataWord64.h.

Referenced by omtf::DtPacker::pack(), and phiB().

uint64_t omtf::DtDataWord64::st_q_

Definition at line 37 of file OmtfDtDataWord64.h.

Referenced by omtf::DtPacker::pack(), and quality().

uint64_t omtf::DtDataWord64::type_
uint64_t omtf::DtDataWord64::valid_

Definition at line 45 of file OmtfDtDataWord64.h.

Referenced by omtf::DtPacker::pack(), and valid().