1 #ifndef L1Trigger_RPCPacManager_h 2 #define L1Trigger_RPCPacManager_h 29 #endif // _STAND_ALONE 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];
81 m_PacTab.push_back(std::vector<std::vector<TPacType*> >());
82 for (
int logSector = 0; logSector <
m_SectorsCnt; logSector++) {
83 m_PacTab[m_tower].push_back(std::vector<TPacType*>());
84 for (
int logSegment = 0; logSegment <
m_SegmentCnt; logSegment++) {
85 TPacType* pac =
new TPacType(patFilesDirectory, m_tower, logSector, logSegment);
86 m_PacTab[m_tower][logSector].push_back(pac);
95 switch (rpcconf->
getPPT()){
149 m_PacTab.push_back(std::vector<std::vector<TPacType*> >());
150 for (
int logSector = 0; logSector <
m_SectorsCnt; logSector++) {
151 m_PacTab[tower].push_back(std::vector<TPacType*>());
152 for (
int logSegment = 0; logSegment <
m_SegmentCnt; logSegment++) {
160 TPacType* pac =
new TPacType(rpcconf, tower, logSector, logSegment);
161 m_PacTab[tower][logSector].push_back(pac);
172 TPacType*
getPac(
int m_tower,
int logSector,
int logSegment)
const {
174 throw RPCException(
"RPCPacManager::getPac: given towerNum to big");
198 std::vector<std::vector<std::vector<TPacType*> > >
m_PacTab;
207 for (
size_t tower = 0; tower < m_PacTab.size() ; ++tower) {
208 for (
size_t logSector = 0; logSector < m_PacTab.at(tower).size(); logSector++) {
209 for (
size_t logSegment = 0; logSegment < m_PacTab.at(tower).at(logSector).size() ; logSegment++) {
210 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)