17 bool isTPInSector(
int sp_endcap,
int sp_sector,
int tp_endcap,
int tp_sector) {
18 return sp_endcap == tp_endcap && sp_sector == tp_sector;
22 int sp_endcap,
int sp_sector,
int tp_endcap,
int tp_sector,
int tp_subsector,
int tp_station,
int tp_id) {
24 int neighbor_sector = ((sp_sector == 1) ? 6 : sp_sector - 1);
26 if ((sp_endcap != tp_endcap) || (neighbor_sector != tp_sector))
31 return (tp_subsector == 2) && (tp_id == 3 || tp_id == 6 || tp_id == 9);
34 return tp_id == 3 || tp_id == 9;
74 result = ((
static_cast<unsigned>(
chamber - 3) & 0x7f) / 6) + 1;
76 result = ((
static_cast<unsigned>(
chamber - 3) & 0x7f) / 6) + 1;
78 result = ((
static_cast<unsigned>(
chamber - 2) & 0x1f) / 3) + 1;
101 bool is_not_overlapping = (
station == 1 &&
ring == 3);
104 if (is_not_overlapping)
109 bool is_even = (
chamber % 2 == 0);
158 return std::make_pair(max_strip, max_wire);
162 int max_pattern = 11;
163 int max_quality = 16;
165 return std::make_pair(max_pattern, max_quality);
bool isTPInSector(int match_endcap, int match_sector, int tp_endcap, int tp_sector)
std::pair< int, int > getMaxPatternAndQuality(int station, int ring)
int getId(int ring, int station, int chamber)
int getNext20DegChamber(int chamber)
int getTriggerSubsector(int station, int chamber)
std::pair< int, int > getMaxStripAndWire(int station, int ring)
int getNext10DegChamber(int chamber)
int getTriggerSector(int ring, int station, int chamber)
Facing getFaceDirection(int station, int ring, int chamber)
bool isTPInNeighborSector(int match_endcap, int match_sector, int tp_endcap, int tp_sector, int tp_subsector, int tp_station, int tp_id)
int getPrev10DegChamber(int chamber)
int getPrev20DegChamber(int chamber)