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
omtf::DtDataWord64::bcnt_st_
uint64_t bcnt_st_
Definition: OmtfDtDataWord64.h:42
omtf::DtDataWord64::st_
uint64_t st_
Definition: OmtfDtDataWord64.h:46
omtf::DtDataWord64::eta_hit_
uint64_t eta_hit_
Definition: OmtfDtDataWord64.h:40
omtf::DtDataWord64::eta_qbit_
uint64_t eta_qbit_
Definition: OmtfDtDataWord64.h:39
omtf::DtDataWord64::bxNum
unsigned int bxNum() const
Definition: OmtfDtDataWord64.h:25
omtf::DtDataWord64::bcnt_e1
unsigned int bcnt_e1() const
Definition: OmtfDtDataWord64.h:20
omtf::DtDataWord64::bxNum_
uint64_t bxNum_
Definition: OmtfDtDataWord64.h:49
omtf::DtDataWord64::st_q_
uint64_t st_q_
Definition: OmtfDtDataWord64.h:37
omtf::DtDataWord64::type_
uint64_t type_
Definition: OmtfDtDataWord64.h:50
omtf::DtDataWord64::bcnt_e0_
uint64_t bcnt_e0_
Definition: OmtfDtDataWord64.h:43
omtf::Word64
uint64_t Word64
Definition: OmtfDataWord64.h:11
omtf::DtDataWord64::bcnt_e0
unsigned int bcnt_e0() const
Definition: OmtfDtDataWord64.h:19
omtf::DtDataWord64::sector_
uint64_t sector_
Definition: OmtfDtDataWord64.h:48
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:42
omtf::DtDataWord64::DtDataWord64
DtDataWord64()
Definition: OmtfDtDataWord64.h:12
omtf::DtDataWord64::fiber_
uint64_t fiber_
Definition: OmtfDtDataWord64.h:47
dt
float dt
Definition: AMPTWrapper.h:136
omtf::DtDataWord64::DtDataWord64
DtDataWord64(Word64 data)
Definition: OmtfDtDataWord64.h:11
omtf::DtDataWord64::phi
int phi() const
Definition: OmtfDtDataWord64.h:13
omtf::DtDataWord64::st_phib_
int64_t st_phib_
Definition: OmtfDtDataWord64.h:36
omtf::DtDataWord64::dummy1_
uint64_t dummy1_
Definition: OmtfDtDataWord64.h:41
omtf::OmtfPacker
Definition: OmtfPacker.cc:46
omtf::DtDataWord64::eta
unsigned int eta() const
Definition: OmtfDtDataWord64.h:16
omtf::DtDataWord64::valid
unsigned int valid() const
Definition: OmtfDtDataWord64.h:21
omtf::DtDataWord64::st_cal_
uint64_t st_cal_
Definition: OmtfDtDataWord64.h:38
omtf::DtDataWord64::valid_
uint64_t valid_
Definition: OmtfDtDataWord64.h:45
omtf::DtDataWord64::etaQuality
unsigned int etaQuality() const
Definition: OmtfDtDataWord64.h:17
omtf::DtDataWord64::bcnt_st
unsigned int bcnt_st() const
Definition: OmtfDtDataWord64.h:18
omtf::DtDataWord64::st_phi_
int64_t st_phi_
Definition: OmtfDtDataWord64.h:35
omtf::DtPacker
Definition: OmtfDtPacker.h:13
omtf::DtDataWord64::quality
unsigned int quality() const
Definition: OmtfDtDataWord64.h:15
omtf::DtDataWord64
Definition: OmtfDtDataWord64.h:9
omtf::DtDataWord64::fiber
unsigned int fiber() const
Definition: OmtfDtDataWord64.h:23
omtf::DtDataWord64::station
unsigned int station() const
Definition: OmtfDtDataWord64.h:22
omtf::DtDataWord64::operator<<
friend std::ostream & operator<<(std::ostream &out, const DtDataWord64 &o)
Definition: OmtfDtDataWord64.cc:4
OmtfDataWord64.h
omtf::DtDataWord64::phiB
int phiB() const
Definition: OmtfDtDataWord64.h:14
omtf::DtDataWord64::rawData
uint64_t rawData
Definition: OmtfDtDataWord64.h:33
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
cond::uint64_t
unsigned long long uint64_t
Definition: Time.h:13
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
omtf::DtDataWord64::bcnt_e1_
uint64_t bcnt_e1_
Definition: OmtfDtDataWord64.h:44
omtf::DtDataWord64::type
unsigned int type() const
Definition: OmtfDtDataWord64.h:26
omtf
Definition: OmtfCscDataWord64.h:7
omtf::DtDataWord64::sector
unsigned int sector() const
Definition: OmtfDtDataWord64.h:24