7 std::cout <<
"Simulator hits: time_bin, endcap, sector, subsector, station, valid, "
8 <<
"quality, CLCT pattern, wiregroup, cscid, bend, halfstrip" << std::endl;
9 std::cout <<
"Expected values: 0 - 7, 1 or 0, 1 - 6, 0 / 1 - 2, 1 - 4, 0 - 1, "
10 <<
" 0 - 15, 0 - 15, 0 - ?, 1 - 18, 0 - 1, 0 - ?" << std::endl;
107 if (_csc_ID < 4)
return 1;
108 else if (_csc_ID < 10)
return 2;
111 else if (_station == 1) {
112 if (_csc_ID < 4 && _strip > 127)
return 4;
113 else if (_csc_ID < 4 && _strip >= 0)
return 1;
114 else if (_csc_ID > 3 && _csc_ID < 7)
return 2;
115 else if (_csc_ID > 6 && _csc_ID < 10)
return 3;
121 int calc_chamber (
int _station,
int _sector,
int _subsector,
int _ring,
int _csc_ID) {
122 int tmp_chamber = -999;
124 tmp_chamber = ((_sector-1) * 6) + _csc_ID + 2;
125 if (_ring == 2) tmp_chamber -= 3;
126 if (_ring == 3) tmp_chamber -= 6;
127 if (_subsector == 2) tmp_chamber += 3;
128 if (tmp_chamber > 36) tmp_chamber -= 36;
130 else if (_ring == 1) {
131 tmp_chamber = ((_sector-1) * 3) + _csc_ID + 1;
132 if (tmp_chamber > 18) tmp_chamber -= 18;
134 else if (_ring == 2) {
135 tmp_chamber = ((_sector-1) * 6) + _csc_ID - 3 + 2;
136 if (tmp_chamber > 36) tmp_chamber -= 36;
void set_neighbor(int bits)
void SetCSCLCTDigi(CSCCorrelatedLCTDigi digi)
void set_sector_index(int bits)
void set_stub_num(int bits)
int calc_subsector(int _station, int _chamber)
void set_station(int bits)
void ImportME(const emtf::ME _ME)
int calc_chamber(int _station, int _sector, int _subsector, int _ring, int _csc_ID)
void set_sync_err(int bits)
void PrintSimulatorHeader()
void set_endcap(int bits)
CSCCorrelatedLCTDigi CreateCSCCorrelatedLCTDigi()
void set_pattern(int bits)
void set_csc_ID(int bits)
void ImportCSCDetId(const CSCDetId &_detId)
void set_sector(int bits)
void set_is_CSC_hit(int bits)
void SetCSCDetId(CSCDetId id)
int triggerSector() const
void ImportCSCCorrelatedLCTDigi(const CSCCorrelatedLCTDigi &_digi)
CSCDetId CreateCSCDetId()
void set_track_num(int bits)
int calc_ring(int _station, int _csc_ID, int _strip)
void set_is_RPC_hit(int bits)
void set_quality(int bits)
void set_mpc_link(int bits)
void set_chamber(int bits)
void set_subsector(int bits)