1 #ifndef L1Trigger_RPCPacManager_h
2 #define L1Trigger_RPCPacManager_h
30 #endif // _STAND_ALONE
45 for (
unsigned int m_tower = 0; m_tower <
m_PacTab.size(); m_tower++)
46 for (
unsigned int logSector = 0; logSector <
m_PacTab[m_tower].size(); logSector++) {
47 for (
unsigned int logSegment = 0; logSegment <
m_PacTab[m_tower][logSector].size(); logSegment++) {
48 TPacType* pac =
m_PacTab[m_tower][logSector][logSegment];
82 m_PacTab.push_back(std::vector<std::vector<TPacType*> >());
83 for (
int logSector = 0; logSector <
m_SectorsCnt; logSector++) {
84 m_PacTab[m_tower].push_back(std::vector<TPacType*>());
85 for (
int logSegment = 0; logSegment <
m_SegmentCnt; logSegment++) {
86 TPacType* pac =
new TPacType(patFilesDirectory, m_tower, logSector, logSegment);
87 m_PacTab[m_tower][logSector].push_back(pac);
97 switch (rpcconf->
getPPT()){
151 m_PacTab.push_back(std::vector<std::vector<TPacType*> >());
152 for (
int logSector = 0; logSector <
m_SectorsCnt; logSector++) {
153 m_PacTab[tower].push_back(std::vector<TPacType*>());
154 for (
int logSegment = 0; logSegment <
m_SegmentCnt; logSegment++) {
162 TPacType* pac =
new TPacType(rpcconf, tower, logSector, logSegment);
163 m_PacTab[tower][logSector].push_back(pac);
175 TPacType*
getPac(
int m_tower,
int logSector,
int logSegment)
const {
176 if (
m_PacTab.size() <= (
unsigned int)
abs(m_tower))
177 throw RPCException(
"RPCPacManager::getPac: given towerNum to big");
201 std::vector<std::vector<std::vector<TPacType*> > >
m_PacTab;
210 for (
size_t tower = 0; tower <
m_PacTab.size() ; ++tower) {
211 for (
size_t logSector = 0; logSector <
m_PacTab.at(tower).size(); logSector++) {
212 for (
size_t logSegment = 0; logSegment <
m_PacTab.at(tower).at(logSector).size() ; logSegment++) {
213 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)