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

◆ DtDataWord64() [1/2]

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

◆ DtDataWord64() [2/2]

omtf::DtDataWord64::DtDataWord64 ( )
inline

Definition at line 12 of file OmtfDtDataWord64.h.

Member Function Documentation

◆ bcnt_e0()

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

Definition at line 19 of file OmtfDtDataWord64.h.

References bcnt_e0_.

19 { return bcnt_e0_; }

◆ bcnt_e1()

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

Definition at line 20 of file OmtfDtDataWord64.h.

References bcnt_e1_.

20 { return bcnt_e1_; }

◆ bcnt_st()

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

Definition at line 18 of file OmtfDtDataWord64.h.

References bcnt_st_.

18 { return bcnt_st_; }

◆ bxNum()

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

Definition at line 25 of file OmtfDtDataWord64.h.

References bxNum_.

25 { return bxNum_; }

◆ eta()

unsigned int omtf::DtDataWord64::eta ( void  ) const
inline

◆ etaQuality()

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

Definition at line 17 of file OmtfDtDataWord64.h.

References eta_qbit_.

17 { return eta_qbit_; }

◆ fiber()

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

Definition at line 23 of file OmtfDtDataWord64.h.

References fiber_.

23 { return fiber_; }

◆ phi()

int omtf::DtDataWord64::phi ( void  ) const
inline

◆ phiB()

int omtf::DtDataWord64::phiB ( ) const
inline

Definition at line 14 of file OmtfDtDataWord64.h.

References st_phib_.

14 { return st_phib_; }

◆ quality()

unsigned int omtf::DtDataWord64::quality ( void  ) const
inline

Definition at line 15 of file OmtfDtDataWord64.h.

References st_q_.

15 { return st_q_; }

◆ sector()

unsigned int omtf::DtDataWord64::sector ( void  ) const
inline

Definition at line 24 of file OmtfDtDataWord64.h.

References sector_.

Referenced by geometryXMLparser.DTAlignable::index().

24 { return sector_; }

◆ station()

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

Definition at line 22 of file OmtfDtDataWord64.h.

References st_.

Referenced by geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().

22 { return st_; }

◆ type()

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

Definition at line 26 of file OmtfDtDataWord64.h.

References type_.

26 { return type_; }

◆ valid()

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

◆ DtPacker

friend class DtPacker
friend

Definition at line 28 of file OmtfDtDataWord64.h.

◆ OmtfPacker

friend class OmtfPacker
friend

Definition at line 27 of file OmtfDtDataWord64.h.

◆ operator<<

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()) << " bx: " << o.bxNum() << " station: " << o.station()
7  << " sector: " << o.sector() << " fiber: " << o.fiber() << " phi: " << o.phi() << " quality: " << o.quality()
8  << " eta: " << o.eta() << " etaQ: " << o.etaQuality() << " bcnt: " << o.bcnt_st() << "_" << o.bcnt_e0() << "_"
9  << o.bcnt_e1() << "";
10  return out;
11  }
Type type(const T &)

Member Data Documentation

◆ @507

union { ... }

◆ bcnt_e0_

uint64_t omtf::DtDataWord64::bcnt_e0_

Definition at line 43 of file OmtfDtDataWord64.h.

Referenced by bcnt_e0().

◆ bcnt_e1_

uint64_t omtf::DtDataWord64::bcnt_e1_

Definition at line 44 of file OmtfDtDataWord64.h.

Referenced by bcnt_e1().

◆ bcnt_st_

uint64_t omtf::DtDataWord64::bcnt_st_

Definition at line 42 of file OmtfDtDataWord64.h.

Referenced by bcnt_st().

◆ bxNum_

uint64_t omtf::DtDataWord64::bxNum_

Definition at line 49 of file OmtfDtDataWord64.h.

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

◆ dummy1_

uint64_t omtf::DtDataWord64::dummy1_

Definition at line 41 of file OmtfDtDataWord64.h.

◆ eta_hit_

uint64_t omtf::DtDataWord64::eta_hit_

Definition at line 40 of file OmtfDtDataWord64.h.

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

◆ eta_qbit_

uint64_t omtf::DtDataWord64::eta_qbit_

Definition at line 39 of file OmtfDtDataWord64.h.

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

◆ fiber_

uint64_t omtf::DtDataWord64::fiber_

Definition at line 47 of file OmtfDtDataWord64.h.

Referenced by fiber().

◆ rawData

uint64_t omtf::DtDataWord64::rawData

Definition at line 33 of file OmtfDtDataWord64.h.

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

◆ sector_

uint64_t omtf::DtDataWord64::sector_

Definition at line 48 of file OmtfDtDataWord64.h.

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

◆ st_

uint64_t omtf::DtDataWord64::st_

Definition at line 46 of file OmtfDtDataWord64.h.

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

◆ st_cal_

uint64_t omtf::DtDataWord64::st_cal_

Definition at line 38 of file OmtfDtDataWord64.h.

◆ st_phi_

int64_t omtf::DtDataWord64::st_phi_

Definition at line 35 of file OmtfDtDataWord64.h.

Referenced by phi().

◆ st_phib_

int64_t omtf::DtDataWord64::st_phib_

Definition at line 36 of file OmtfDtDataWord64.h.

Referenced by phiB().

◆ st_q_

uint64_t omtf::DtDataWord64::st_q_

Definition at line 37 of file OmtfDtDataWord64.h.

Referenced by quality().

◆ type_

uint64_t omtf::DtDataWord64::type_

◆ valid_

uint64_t omtf::DtDataWord64::valid_

Definition at line 45 of file OmtfDtDataWord64.h.

Referenced by valid().