1 #include <trg/cdc/dataobjects/CDCTriggerSegmentHit.h>
6 unsigned short priorityPosition,
7 unsigned short leftRight,
12 m_segmentID(segmentID), m_priorityPosition(priorityPosition), m_leftRight(leftRight),
13 m_priorityTime(priorityTime), m_fastestTime(fastestTime), m_foundTime(foundTime), m_quadrant(quadrant)
16 std::array<int, 9> nWiresInSuperLayer = {
17 160, 160, 192, 224, 256, 288, 320, 352, 384
19 unsigned short iSL = 0;
20 unsigned short iWire = segmentID;
21 while (iWire >= nWiresInSuperLayer[iSL]) {
22 iWire -= nWiresInSuperLayer[iSL];
26 if (priorityPosition == 1) {
28 iWire = nWiresInSuperLayer[iSL] - 1;
32 unsigned short iLayer = (iSL == 0) ? 3 : 2;
33 if (priorityPosition == 1 || priorityPosition == 2)
40 unsigned short priorityPosition,
41 unsigned short leftRight,
46 m_priorityPosition(priorityPosition), m_leftRight(leftRight),
47 m_priorityTime(priorityTime), m_fastestTime(fastestTime), m_foundTime(foundTime), m_quadrant(quadrant)
50 std::array<int, 9> nWiresInSuperLayer = {
51 160, 160, 192, 224, 256, 288, 320, 352, 384
54 for (
unsigned i = 0; i < iSL; ++i) {
58 if (priorityPosition == 1) {
60 iWire = nWiresInSuperLayer[iSL] - 1;
64 unsigned short iLayer = (iSL == 0) ? 3 : 2;
65 if (priorityPosition == 1 || priorityPosition == 2)
71 unsigned short segmentID,
72 unsigned short priorityPosition,
73 unsigned short leftRight,
78 m_segmentID(segmentID), m_priorityPosition(priorityPosition), m_leftRight(leftRight),
79 m_priorityTime(priorityTime), m_fastestTime(fastestTime), m_foundTime(foundTime),
80 m_eWire(priorityHit.
getID()), m_quadrant(quadrant)
86 std::array<int, 9> nWiresInSuperLayer = {
87 160, 160, 192, 224, 256, 288, 320, 352, 384
93 if (iWire == nWiresInSuperLayer[iSL]) {