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;
142 if (_csc_ID < 4)
return 1;
143 else if (_csc_ID < 10)
return 2;
146 else if (_station == 1) {
147 if (_csc_ID < 4 && _strip > 127)
return 4;
148 else if (_csc_ID < 4 && _strip >= 0)
return 1;
149 else if (_csc_ID > 3 && _csc_ID < 7)
return 2;
150 else if (_csc_ID > 6 && _csc_ID < 10)
return 3;
156 int calc_chamber (
int _station,
int _sector,
int _subsector,
int _ring,
int _csc_ID) {
157 int tmp_chamber = -999;
159 tmp_chamber = ((_sector-1) * 6) + _csc_ID + 2;
160 if (_ring == 2) tmp_chamber -= 3;
161 if (_ring == 3) tmp_chamber -= 6;
162 if (_subsector == 2) tmp_chamber += 3;
163 if (tmp_chamber > 36) tmp_chamber -= 36;
165 else if (_ring == 1) {
166 tmp_chamber = ((_sector-1) * 3) + _csc_ID + 1;
167 if (tmp_chamber > 18) tmp_chamber -= 18;
169 else if (_ring == 2) {
170 tmp_chamber = ((_sector-1) * 6) + _csc_ID - 3 + 2;
171 if (tmp_chamber > 36) tmp_chamber -= 36;
void set_neighbor(int bits)
void SetCSCLCTDigi(CSCCorrelatedLCTDigi digi)
void set_sector_index(int bits)
void SetRPCDetId(RPCDetId id)
RPCDetId CreateRPCDetId()
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)
void ImportRPCDigi(const RPCDigi &_digi)
void set_strip_low(int bits)
CSCCorrelatedLCTDigi CreateCSCCorrelatedLCTDigi()
void set_pattern(int bits)
void set_csc_ID(int bits)
void set_strip_hi(int bits)
void ImportRPCDetId(const RPCDetId &_detId)
void ImportCSCDetId(const CSCDetId &_detId)
void set_sector(int bits)
void set_is_CSC_hit(int bits)
void SetCSCDetId(CSCDetId id)
void SetRPCDigi(RPCDigi digi)
int triggerSector() const
void ImportCSCCorrelatedLCTDigi(const CSCCorrelatedLCTDigi &_digi)
int sector() const
Sector id: the group of chambers at same phi (and increasing r)
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)
int subsector() const
SubSector id : some sectors are divided along the phi direction in subsectors (from 1 to 4 in Barrel...
void set_quality(int bits)
void set_mpc_link(int bits)
void set_chamber(int bits)
void set_subsector(int bits)
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.