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::MuonDataWord64 Class Reference

#include <OmtfMuonDataWord64.h>

Public Member Functions

unsigned int bxNum () const
 
unsigned int ch () const
 
int eta () const
 
unsigned int layers () const
 
 MuonDataWord64 (Word64 data=0)
 
int phi () const
 
unsigned int pT () const
 
unsigned int quality () const
 
unsigned int type () const
 
unsigned int vch () const
 
unsigned int weight_lowBits () const
 

Private Attributes

union {
   struct {
      uint64_t   bc0_: 1
 
      uint64_t   bxNum_: 3
 
      uint64_t   ch_: 1
 
      uint64_t   empty_: 1
 
      int64_t   eta_: 9
 
      uint64_t   layers_: 18
 
      int64_t   phi_: 8
 
      uint64_t   pT_: 9
 
      uint64_t   quality_: 4
 
      uint64_t   type_: 4
 
      uint64_t   vch_: 1
 
      uint64_t   weight_: 5
 
   } 
 
   uint64_t   rawData
 
}; 
 

Friends

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

Detailed Description

Definition at line 8 of file OmtfMuonDataWord64.h.

Constructor & Destructor Documentation

omtf::MuonDataWord64::MuonDataWord64 ( Word64  data = 0)
inline

Definition at line 10 of file OmtfMuonDataWord64.h.

10 : rawData(data) {}
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79

Member Function Documentation

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

Definition at line 19 of file OmtfMuonDataWord64.h.

References bxNum_.

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

19 { return bxNum_; }
unsigned int omtf::MuonDataWord64::ch ( ) const
inline

Definition at line 13 of file OmtfMuonDataWord64.h.

References ch_.

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

13 { return ch_; }
int omtf::MuonDataWord64::eta ( void  ) const
inline
unsigned int omtf::MuonDataWord64::layers ( ) const
inline

Definition at line 12 of file OmtfMuonDataWord64.h.

References layers_.

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

12 { return layers_; }
int omtf::MuonDataWord64::phi ( void  ) const
inline
unsigned int omtf::MuonDataWord64::pT ( ) const
inline

Definition at line 17 of file OmtfMuonDataWord64.h.

References pT_.

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

17 { return pT_; }
unsigned int omtf::MuonDataWord64::quality ( void  ) const
inline

Definition at line 18 of file OmtfMuonDataWord64.h.

References quality_.

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

18 { return quality_; }
unsigned int omtf::MuonDataWord64::type ( ) const
inline

Definition at line 20 of file OmtfMuonDataWord64.h.

References type_.

Referenced by omtf::operator<<().

20 { return type_; }
unsigned int omtf::MuonDataWord64::vch ( ) const
inline

Definition at line 14 of file OmtfMuonDataWord64.h.

References vch_.

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

14 { return vch_; }
unsigned int omtf::MuonDataWord64::weight_lowBits ( ) const
inline

Definition at line 11 of file OmtfMuonDataWord64.h.

References weight_.

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

11 { return weight_; }

Friends And Related Function Documentation

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

Definition at line 6 of file OmtfMuonDataWord64.cc.

6  {
7  out << "MuonDataWord64: "
8  << " type: " << DataWord64::type(o.type()) << " bx: " << o.bxNum() << " pT: " << o.pT() << " eta: " << o.eta()
9  << " phi: " << o.phi() << " quality: " << o.quality() << " layers: " << std::bitset<18>(o.layers()) << "";
10  return out;
11  }
Type type(const T &)

Member Data Documentation

union { ... }
uint64_t omtf::MuonDataWord64::bc0_

Definition at line 32 of file OmtfMuonDataWord64.h.

uint64_t omtf::MuonDataWord64::bxNum_

Definition at line 37 of file OmtfMuonDataWord64.h.

Referenced by bxNum().

uint64_t omtf::MuonDataWord64::ch_

Definition at line 33 of file OmtfMuonDataWord64.h.

Referenced by ch().

uint64_t omtf::MuonDataWord64::empty_

Definition at line 30 of file OmtfMuonDataWord64.h.

int64_t omtf::MuonDataWord64::eta_

Definition at line 29 of file OmtfMuonDataWord64.h.

Referenced by eta().

uint64_t omtf::MuonDataWord64::layers_

Definition at line 35 of file OmtfMuonDataWord64.h.

Referenced by layers().

int64_t omtf::MuonDataWord64::phi_

Definition at line 31 of file OmtfMuonDataWord64.h.

Referenced by phi().

uint64_t omtf::MuonDataWord64::pT_

Definition at line 27 of file OmtfMuonDataWord64.h.

Referenced by pT().

uint64_t omtf::MuonDataWord64::quality_

Definition at line 28 of file OmtfMuonDataWord64.h.

Referenced by quality().

uint64_t omtf::MuonDataWord64::rawData

Definition at line 25 of file OmtfMuonDataWord64.h.

uint64_t omtf::MuonDataWord64::type_
uint64_t omtf::MuonDataWord64::vch_

Definition at line 34 of file OmtfMuonDataWord64.h.

Referenced by vch().

uint64_t omtf::MuonDataWord64::weight_

Definition at line 36 of file OmtfMuonDataWord64.h.

Referenced by weight_lowBits().