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];
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);
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);