1 #ifndef L1Trigger_RPCPacManager_h 2 #define L1Trigger_RPCPacManager_h 29 #endif // _STAND_ALONE 40 template <
class TPacType>
44 for (
unsigned int m_tower = 0; m_tower <
m_PacTab.size(); m_tower++)
45 for (
unsigned int logSector = 0; logSector <
m_PacTab[m_tower].size(); logSector++) {
46 for (
unsigned int logSegment = 0; logSegment <
m_PacTab[m_tower][logSector].size(); logSegment++) {
47 TPacType* pac =
m_PacTab[m_tower][logSector][logSegment];
76 m_PacTab.push_back(std::vector<std::vector<TPacType*> >());
77 for (
int logSector = 0; logSector <
m_SectorsCnt; logSector++) {
78 m_PacTab[m_tower].push_back(std::vector<TPacType*>());
79 for (
int logSegment = 0; logSegment <
m_SegmentCnt; logSegment++) {
80 TPacType* pac =
new TPacType(patFilesDirectory, m_tower, logSector, logSegment);
81 m_PacTab[m_tower][logSector].push_back(pac);
89 switch (rpcconf->
getPPT()) {
138 m_PacTab.push_back(std::vector<std::vector<TPacType*> >());
139 for (
int logSector = 0; logSector <
m_SectorsCnt; logSector++) {
141 for (
int logSegment = 0; logSegment <
m_SegmentCnt; logSegment++) {
149 TPacType* pac =
new TPacType(rpcconf,
tower, logSector, logSegment);
161 TPacType*
getPac(
int m_tower,
int logSector,
int logSegment)
const {
163 throw RPCException(
"RPCPacManager::getPac: given towerNum to big");
186 std::vector<std::vector<std::vector<TPacType*> > >
m_PacTab;
196 for (
size_t logSector = 0; logSector < m_PacTab.at(
tower).size(); logSector++) {
197 for (
size_t logSegment = 0; logSegment < m_PacTab.at(
tower).at(logSector).size(); logSegment++) {
198 TPacType* pac = m_PacTab.at(
tower).at(logSector).at(logSegment);
int m_SegmentCnt
Count of used differnt segments.
The coordinates of Logic Cone: m_Tower, m_LogSector, m_LogSegment.
TPacType * getPac(int m_tower, int logSector, int logSegment) const
L1RpcPACsCntEnum m_PACsCnt
Abs< T >::type abs(const T &t)
TPacType * getPac(const RPCConst::l1RpcConeCrdnts &coneCrdnts) const
static const int m_TOWER_COUNT
Only half of the detector.
std::vector< std::vector< std::vector< TPacType * > > > m_PacTab
m_PacTab[m_tower][logSector][m_LogSegment]
int m_SectorsCnt
Count of used differnt sectors.
L1RpcPACsCntEnum
Suported configurations.
void init(const L1RPCConfig *rpcconf)
void init(std::string patFilesDirectory, L1RpcPACsCntEnum _PACsCnt)