#include <RPCPacManager.h>
Public Member Functions | |
TPacType * | getPac (const RPCConst::l1RpcConeCrdnts &coneCrdnts) const |
TPacType * | getPac (int m_tower, int logSector, int logSegment) const |
void | init (const L1RPCConfig *rpcconf) |
void | init (std::string patFilesDirectory, L1RpcPACsCntEnum _PACsCnt) |
~RPCPacManager () | |
Private Member Functions | |
void | destroy () |
Private Attributes | |
L1RpcPACsCntEnum | m_PACsCnt |
std::vector< std::vector< std::vector< TPacType * > > > | m_PacTab |
m_PacTab[m_tower][logSector][m_LogSegment] More... | |
int | m_SectorsCnt |
Count of used differnt sectors. More... | |
int | m_SegmentCnt |
Count of used differnt segments. More... | |
The singleton object of thise class stores all PACs of L1RPC trigger. The tempalte type TPacTypeshould be derived from RPCPacBase, and containe the constructor: RPCPacData(std::string patFilesDir, int m_tower, int logSector, int logSegment). 3 configuration are suported: ONE_PAC_PER_TOWER - the same m_PAC (set of patterns etc.) for every LogCone in a m_tower _12_PACS_PER_TOWER - the same m_PAC in the same segment in every sector, (i.e. 12 PACs in sector (one for LogicCone (segment)), all sectors are treat as one) _144_PACS_PER_TOWER - one m_PAC for every LogicCone of given m_tower
Definition at line 41 of file RPCPacManager.h.
|
inline |
Definition at line 43 of file RPCPacManager.h.
|
inlineprivate |
Definition at line 194 of file RPCPacManager.h.
Referenced by RPCPacManager< RPCPacData >::init().
|
inline |
Definition at line 181 of file RPCPacManager.h.
|
inline |
Returns the pointer to m_PAC for given LogCone defined by m_tower, logSector, logSegment. Here you do not have to care, what configuration is curent used.
m_tower | -16 : 16, |
logSector | 0 : 11, |
logSegment | 0 : 11. |
Definition at line 161 of file RPCPacManager.h.
Referenced by RPCBasicTrigConfig::getPac(), and RPCPacManager< RPCPacData >::getPac().
|
inline |
Definition at line 87 of file RPCPacManager.h.
|
inline |
Gets data for PACs.
patFilesDirectory | The directory where files defining PACs are stored. The files should be named acording to special convencion. |
_PACsCnt | The configuration version. Should be caled once, before using PACs |
Definition at line 58 of file RPCPacManager.h.
Referenced by RPCTrigger::produce().
|
private |
Definition at line 192 of file RPCPacManager.h.
Referenced by RPCPacManager< RPCPacData >::getPac(), and RPCPacManager< RPCPacData >::init().
|
private |
m_PacTab[m_tower][logSector][m_LogSegment]
Definition at line 186 of file RPCPacManager.h.
Referenced by RPCPacManager< RPCPacData >::destroy(), RPCPacManager< RPCPacData >::getPac(), RPCPacManager< RPCPacData >::init(), and RPCPacManager< RPCPacData >::~RPCPacManager().
|
private |
Count of used differnt sectors.
Definition at line 188 of file RPCPacManager.h.
Referenced by RPCPacManager< RPCPacData >::init().
|
private |
Count of used differnt segments.
Definition at line 190 of file RPCPacManager.h.
Referenced by RPCPacManager< RPCPacData >::init().