CMS 3D CMS Logo

OmtfDtDataWord64.h
Go to the documentation of this file.
1 #ifndef EventFilter_L1TRawToDigi_Omtf_DtDataWord64_H
2 #define EventFilter_L1TRawToDigi_Omtf_DtDataWord64_H
3 
4 #include<iostream>
6 
7 namespace omtf {
8 
9 class DtDataWord64 {
10 public:
12  DtDataWord64() : rawData(Word64(DataWord64::dt)<<60) {}
13  int phi() const { return st_phi_; }
14  int phiB() const { return st_phib_; }
15  unsigned int quality() const { return st_q_; }
16  unsigned int eta() const { return eta_hit_; }
17  unsigned int etaQuality() const { return eta_qbit_; }
18  unsigned int bcnt_st() const { return bcnt_st_; }
19  unsigned int bcnt_e0() const { return bcnt_e0_; }
20  unsigned int bcnt_e1() const { return bcnt_e1_; }
21  unsigned int valid() const { return valid_; }
22  unsigned int station() const { return st_; }
23  unsigned int fiber() const { return fiber_; }
24  unsigned int sector() const { return sector_; }
25  unsigned int bxNum() const { return bxNum_; }
26  unsigned int type() const { return type_;}
27  friend class OmtfPacker;
28  friend class DtPacker;
29  friend std::ostream & operator<< (std::ostream &out, const DtDataWord64 &o);
30 
31 private:
32  union {
34  struct {
35  int64_t st_phi_ : 12;
36  int64_t st_phib_ : 10;
51  };
52  };
53 };
54 
55 } //namespace Omtf
56 #endif
57 
58 
unsigned int quality() const
float dt
Definition: AMPTWrapper.h:126
unsigned int bcnt_st() const
unsigned int valid() const
unsigned int station() const
unsigned int type() const
unsigned int bxNum() const
unsigned int bcnt_e0() const
unsigned int bcnt_e1() const
unsigned int etaQuality() const
DtDataWord64(Word64 data)
uint64_t Word64
unsigned long long uint64_t
Definition: Time.h:15
unsigned int eta() const
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
unsigned int sector() const
friend std::ostream & operator<<(std::ostream &out, const DtDataWord64 &o)
unsigned int fiber() const