1 #ifndef EventFilter_CSCRawToDigi_CSCTMBHeader2020_GEM_h 2 #define EventFilter_CSCRawToDigi_CSCTMBHeader2020_GEM_h 18 uint16_t
Bxn0Diff()
const override {
return 0; }
19 uint16_t
Bxn1Diff()
const override {
return 0; }
23 void setNCFEBs(uint16_t ncfebs)
override {
bits.nCFEBs = ncfebs & 0x7F; }
37 return ((
bits.hmt_nhits_bit0 & 0
x1) + ((
bits.hmt_nhits_bit1 & 0
x1) << 1) +
38 ((
bits.hmt_nhits_bits_high & 0x1F) << 2));
42 uint16_t
clctHMT()
const override {
return bits.cathode_hmt; }
48 return ((
bits.lct0_nogem) + (
bits.lct0_with_gemA << 1) + (
bits.lct0_with_gemB << 2) + (
bits.lct0_with_copad << 3) +
49 (
bits.lct1_nogem << 4) + (
bits.lct1_with_gemA << 5) + (
bits.lct1_with_gemB << 6) +
50 (
bits.lct1_with_copad << 7) + (
bits.gemA_vpf << 8) + (
bits.gemB_vpf << 9) + (
bits.gemA_over_flow << 10) +
51 (
bits.gemB_over_flow << 11) + (
bits.gemA_sync << 12) + (
bits.gemB_sync << 13) + (
bits.gems_sync << 14));
54 return ((
bits.num_copad & 0xF) + ((
bits.gem_delay & 0xF) << 4) + ((
bits.gem_clct_win & 0xF) << 8) +
55 ((
bits.alct_gem_win & 0x7) << 12));
58 return (
bits.MPC_Muon_clct_pattern_low | (
bits.MPC_Muon_clct_pattern_bit5 << 4));
63 std::vector<CSCCLCTDigi>
CLCTDigis(uint32_t idlayer)
override;
79 unsigned short*
data()
override {
return (
unsigned short*)(&
bits); }
80 bool check()
const override {
return bits.e0bline == 0x6e0b; }
95 void print(std::ostream& os)
const override;