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; }
36 return ((
bits.hmt_nhits_bit0 & 0
x1) + ((
bits.hmt_nhits_bit1 & 0
x1) << 1) +
37 ((
bits.hmt_nhits_bits_high & 0x1F) << 2));
41 uint16_t
clctHMT()
const override {
return bits.cathode_hmt; }
47 return ((
bits.lct0_nogem) + (
bits.lct0_with_gemA << 1) + (
bits.lct0_with_gemB << 2) + (
bits.lct0_with_copad << 3) +
48 (
bits.lct1_nogem << 4) + (
bits.lct1_with_gemA << 5) + (
bits.lct1_with_gemB << 6) +
49 (
bits.lct1_with_copad << 7) + (
bits.gemA_vpf << 8) + (
bits.gemB_vpf << 9) + (
bits.gemA_over_flow << 10) +
50 (
bits.gemB_over_flow << 11) + (
bits.gemA_sync << 12) + (
bits.gemB_sync << 13) + (
bits.gems_sync << 14));
53 return ((
bits.num_copad & 0xF) + ((
bits.gem_delay & 0xF) << 4) + ((
bits.gem_clct_win & 0xF) << 8) +
54 ((
bits.alct_gem_win & 0x7) << 12));
57 return (
bits.MPC_Muon_clct_pattern_low | (
bits.MPC_Muon_clct_pattern_bit5 << 4));
62 std::vector<CSCCLCTDigi>
CLCTDigis(uint32_t idlayer)
override;
78 unsigned short*
data()
override {
return (
unsigned short*)(&
bits); }
79 bool check()
const override {
return bits.e0bline == 0x6e0b; }
94 void print(std::ostream& os)
const override;