1 #ifndef EventFilter_RPCRawToDigi_RPCMP7Record_h 2 #define EventFilter_RPCRawToDigi_RPCMP7Record_h 24 Header(
unsigned int amc_number
25 ,
unsigned int event_counter
26 ,
unsigned int bx_counter
27 ,
unsigned int data_length
28 ,
unsigned int orbit_counter
29 ,
unsigned int board_id
30 ,
unsigned int event_type = l1a_type_);
46 static unsigned int const algo_rev_offset_ = 32;
47 static unsigned int const fw_rev_offset_ = 0;
57 unsigned int getAlgoVersion()
const;
58 unsigned int getFirmwareVersion()
const;
60 void setAlgoVersion(
unsigned int algo_rev);
61 void setFirmwareVersion(
unsigned int fw_rev);
70 static std::uint32_t
const id_mask_ = 0xff000000;
71 static std::uint32_t
const length_mask_ = 0x00ff0000;
72 static std::uint32_t
const caption_id_mask_ = 0x0000ff00;
73 static std::uint32_t
const zs_per_bx_mask_ = 0x00000002;
74 static std::uint32_t
const is_zs_mask_ = 0x00000001;
76 static unsigned int const id_offset_ = 24;
77 static unsigned int const length_offset_ = 16;
78 static unsigned int const caption_id_offset_ = 8;
79 static unsigned int const zs_per_bx_offset_ = 1;
80 static unsigned int const is_zs_offset_ = 0;
85 void set(std::uint32_t
const record);
90 unsigned int getId()
const;
91 unsigned int getLength()
const;
92 unsigned int getCaptionId()
const;
93 bool hasZeroSuppressionPerBX()
const;
94 bool isZeroSuppressed()
const;
96 bool isZeroSuppressionInverted()
const;
98 void setId(
unsigned int id);
99 void setLength(
unsigned int length);
100 void setCaptionId(
unsigned int caption_id);
101 void setZeroSuppressionPerBX(
bool zs_per_bx);
102 void setZeroSuppressed(
bool is_zs);
104 void setZeroSuppressionInverted(
bool zs_inverted);
113 static std::uint32_t
const first_word_mask_ = 0xff000000;
114 static std::uint32_t
const total_length_mask_ = 0x00ff0000;
115 static std::uint32_t
const is_zs_mask_ = 0x00000001;
117 static unsigned int const first_word_offset_ = 24;
118 static unsigned int const total_length_offset_ = 16;
119 static unsigned int const is_zs_offset_ = 0;
124 void set(std::uint32_t
const record);
129 unsigned int getFirstWord()
const;
130 unsigned int getTotalLength()
const;
131 bool isZeroSuppressed()
const;
134 unsigned int getBXId()
const;
135 unsigned int getTotalBX()
const;
137 void setFirstWord(
unsigned int first_word);
138 void setTotalLength(
unsigned int length);
139 void setZeroSuppressed(
bool zs);
147 #include "EventFilter/RPCRawToDigi/interface/RPCMP7Record.icc" 149 #endif // EventFilter_RPCRawToDigi_RPCMP7Record_h
static unsigned int getId()
unsigned long long uint64_t