9 <<
"CSCTriggerNumbering::ringFromTriggerLabels():"
10 <<
" Station: " << station <<
" TriggerCSCID: " << triggerCSCID <<
" is not a valid set of labels."
11 <<
" Cannot Convert!!";
16 if (triggerCSCID <= 3)
18 else if (triggerCSCID <= 6)
22 else if (triggerCSCID <= 3)
38 <<
"CSCTriggerNumbering::chamberFromTriggerLabels():"
39 <<
" Trigger Sector: " << TriggerSector <<
" Trigger SubSector: " << TriggerSubSector <<
" Station: " << station
40 <<
" TriggerCSCID: " << TriggerCSCID <<
" is not a valid set of labels."
41 <<
" Cannot Convert!!";
44 int realsubsector = (TriggerSubSector + 2 * (TriggerSector - 1)) % 12 + 1;
47 if (TriggerCSCID <= 3)
50 chamber = (TriggerCSCID + 3 * (TriggerSector - 1)) % 18 + 1;
53 chamber = (TriggerCSCID + 6 * (TriggerSector - 1) - 2) % 36 + 1;
54 else if (TriggerCSCID <= 3)
55 chamber = (TriggerCSCID + 3 * (realsubsector - 1) + 34) % 36 + 1;
56 else if (TriggerCSCID <= 6)
57 chamber = (TriggerCSCID + 3 * (realsubsector - 1) + 31) % 36 + 1;
59 chamber = (TriggerCSCID + 3 * (realsubsector - 1) + 28) % 36 + 1;
68 <<
"CSCTriggerNumbering::sectorFromTriggerLabels():"
69 <<
" Trigger Sector: " << TriggerSector <<
" Trigger SubSector: " << TriggerSubSector <<
" Station: " << station
70 <<
" is not a valid set of labels."
71 <<
" Cannot Convert!!";
73 return ((station == 1) ? ((TriggerSubSector + 2 * (TriggerSector - 1)) % 12 + 1) : TriggerSector);
80 <<
"CSCTriggerNumbering::triggerSectorFromLabels():"
81 <<
" Station: " << station <<
" Ring: " << ring <<
" Chamber: " << chamber <<
" is not a valid set of labels."
82 <<
" Cannot Convert!!";
89 if (station > 1 && ring > 1) {
90 result = ((
static_cast<unsigned>(chamber - 3) & 0x7f) / 6) + 1;
92 result = (station != 1) ? ((static_cast<unsigned>(chamber - 2) & 0x1f) / 3) + 1 :
93 ((
static_cast<unsigned>(chamber - 3) & 0x7f) / 6) + 1;
98 return (result <= 6) ? result : 6;
109 <<
"CSCTriggerNumbering::triggerSectorFromLabels():"
110 <<
" Station: " << station <<
" Chamber: " << chamber <<
" is not a valid set of labels."
111 <<
" Cannot Convert!!";
128 chamber = ((chamber - 1) % 6) + 1;
130 return ((chamber - 1) / 3) + 1;
142 <<
"CSCTriggerNumbering::triggerSectorFromLabels():"
143 <<
" Station: " << station <<
" Ring: " << ring <<
" Chamber: " << chamber <<
" is not a valid set of labels."
144 <<
" Cannot Convert!!";
149 result = (chamber) % 3 + 1;
162 result = (chamber + 1) % 3 + 1;
164 result = (chamber + 3) % 6 + 4;
static int maxStationId()
static int ringFromTriggerLabels(int station, int triggerCSCID)
static int minChamberId()
static int sectorFromTriggerLabels(int TriggerSector, int TriggerSubSector, int station)
static int minStationId()
static int triggerCscIdFromLabels(int station, int ring, int chamber)
static int maxChamberId()
static int triggerSectorFromLabels(int station, int ring, int chamber)
static int triggerSubSectorFromLabels(int station, int chamber)
static int chamberFromTriggerLabels(int TriggerSector, int TriggerSubSector, int station, int TriggerCSCID)