1 #ifndef L1Trigger_RPCPacManager_h
2 #define L1Trigger_RPCPacManager_h
26 #include <xercesc/util/PlatformUtils.hpp>
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];
79 m_PacTab.push_back(std::vector<std::vector<TPacType*> >());
80 for (
int logSector = 0; logSector <
m_SectorsCnt; logSector++) {
81 m_PacTab[m_tower].push_back(std::vector<TPacType*>());
82 for (
int logSegment = 0; logSegment <
m_SegmentCnt; logSegment++) {
83 TPacType* pac =
new TPacType(patFilesDirectory, m_tower, logSector, logSegment);
84 m_PacTab[m_tower][logSector].push_back(pac);
88 xercesc::XMLPlatformUtils::Terminate();
94 switch (rpcconf->
getPPT()){
148 m_PacTab.push_back(std::vector<std::vector<TPacType*> >());
149 for (
int logSector = 0; logSector <
m_SectorsCnt; logSector++) {
150 m_PacTab[tower].push_back(std::vector<TPacType*>());
151 for (
int logSegment = 0; logSegment <
m_SegmentCnt; logSegment++) {
159 TPacType* pac =
new TPacType(rpcconf, tower, logSector, logSegment);
160 m_PacTab[tower][logSector].push_back(pac);
164 xercesc::XMLPlatformUtils::Terminate();
172 TPacType*
getPac(
int m_tower,
int logSector,
int logSegment)
const {
173 if (
m_PacTab.size() <= (
unsigned int)
abs(m_tower))
174 throw RPCException(
"RPCPacManager::getPac: given towerNum to big");
198 std::vector<std::vector<std::vector<TPacType*> > >
m_PacTab;
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
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)