CMS 3D CMS Logo

RPCBasicTrigConfig.cc
Go to the documentation of this file.
3 
6  m_PacManager = pacManager;
7 }
8 
11  m_PacManager = nullptr;
12 }
13 
17  if(towNum >= 0)
18  return towNum;
19  else
20  return 0x3F + towNum + 1;
21 }
22 
23 //#############################################################################################
24 //
25 // Simple getters and setters
26 //
27 //#############################################################################################
34 
41 
49  return coneCrdnts.m_LogSector;
50 }
57  return m_TOWERS_CNT_ON_TB[tbNum];
58 }
63 
64  if (m_TOW_ADDR_2_TOW_NUM[towAddr] == -99 || towAddr < 0 || towAddr > 35){
65  throw RPCException("RPCBasicTrigConfig::towAddr2TowNum - wrong towAddr");
66  //edm::LogError("RPC")<< "RPCBasicTrigConfig::towAddr2TowNum - wrong towAddr";
67  }
68 
69 
70  return m_TOW_ADDR_2_TOW_NUM[towAddr];
71 }
72 
74  return m_TOWER_ON_TB[RPCConst::ITOW_MAX + coneCrdnts.m_Tower];
75 }
76 
78  return m_PacManager->getPac(coneCrdnts.m_Tower, coneCrdnts.m_LogSector, coneCrdnts.m_LogSegment);
79 }
80 
82  return m_TB_NUM_FOR_TOWER[RPCConst::ITOW_MAX + coneCrdnts.m_Tower];
83 }
84 //#############################################################################################
85 //
86 // Constants
87 //
88 //#############################################################################################
90 
92 //-16 -15 -14 -13
93  0, 1, 2, 3, //tbn4
94 //-12 -11 -10 -9
95  0, 1, 2, 3, //tbn3
96 //-8 -7 -6 -5
97  0, 1, 2, 3, //tbn2
98 //-4 -3 -2
99  0, 1, 2, //tbn1
100 //-1 0 1
101  0, 1, 2, //tb0
102 //2 3 4
103  0, 1, 2, //tbp1
104 //5 6 7 8
105  0, 1, 2, 3, //tbp2
106 //9 10 11 12
107  0, 1, 2, 3, //tbp3
108 //13 14 15 16
109  0, 1, 2, 3, //tbp4
110  0 //one more extra
111 };
112 
114  4, 4, 4, 3, 3, 3, 4, 4, 4
115 };
116 
118 //-16 -15 -14 -13 -12 -11 -10 -9 -8 -7 -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
119  0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4,4,4,5,5,5,6,6,6,6,7, 7, 7, 7, 8, 8, 8, 8
120 };
121 
123 //0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
124 -16,-15,-14,-13,-12,-11,-10,-9,-8,-7,-6,-5, -4, -3, -2,-99, -1, 0,
125 //18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
126  1,-99, 2, 3, 4,-99, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16
127 };
int getTBsInTC() override
returns number og Trigger Boards in one Trigger Crate.
Maximal number of abs(m_tower_number)
Definition: RPCConst.h:29
The coordinates of Logic Cone: m_Tower, m_LogSector, m_LogSegment.
Definition: RPCConst.h:119
int getTCNum(const RPCConst::l1RpcConeCrdnts &coneCrdnts) override
Returns the index of TC that should run given LogCone.
static const int m_TOWERS_CNT_ON_TB[m_TB_IN_TC_CNT]
int getTowsCntOnTB(int tbNum) override
Returns the count of Towers (3 or 4), that are covered by given TB.
int towAddr2TowNum(int towAddr) override
static const int m_TOWER_ON_TB[2 *RPCConst::ITOW_MAX+1+1]
static const int m_TOW_ADDR_2_TOW_NUM[36]
const RPCPacData * getPac(const RPCConst::l1RpcConeCrdnts &coneCrdnts) const override
Returns pointer to m_PAC that should run given LogCone. The PACs are holded by L1PacManager.
TPacType * getPac(int m_tower, int logSector, int logSegment) const
static const int m_TB_IN_TC_CNT
int towNum2TowNum2Comp(int towNum) override
int getTBNum(const RPCConst::l1RpcConeCrdnts &coneCrdnts) override
Returns the index of TB (in TC) that should run given LogCone.
static const int m_TB_NUM_FOR_TOWER[2 *RPCConst::ITOW_MAX+1]
RPCPacManager< RPCPacData > * m_PacManager
int getTCsCnt() override
returns count of Trigger Crates in system.
int getTowerNumOnTb(const RPCConst::l1RpcConeCrdnts &coneCrdnts) override
static const int m_TRIGGER_CRATES_CNT