#include <RPCPacManager.h>
Public Member Functions | |
TPacType * | getPac (int m_tower, int logSector, int logSegment) const |
TPacType * | getPac (const RPCConst::l1RpcConeCrdnts &coneCrdnts) const |
void | init (std::string patFilesDirectory, L1RpcPACsCntEnum _PACsCnt) |
void | init (const L1RPCConfig *rpcconf) |
~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 42 of file RPCPacManager.h.
|
inline |
Definition at line 44 of file RPCPacManager.h.
|
inlineprivate |
Definition at line 209 of file RPCPacManager.h.
Referenced by RPCPacManager< RPCPacData >::init().
|
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 175 of file RPCPacManager.h.
Referenced by RPCBasicTrigConfig::getPac(), and RPCPacManager< RPCPacData >::getPac().
|
inline |
Definition at line 196 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 61 of file RPCPacManager.h.
Referenced by RPCTrigger::produce().
|
inline |
Definition at line 95 of file RPCPacManager.h.
|
private |
Definition at line 207 of file RPCPacManager.h.
Referenced by RPCPacManager< RPCPacData >::getPac(), and RPCPacManager< RPCPacData >::init().
|
private |
m_PacTab[m_tower][logSector][m_LogSegment]
Definition at line 201 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 203 of file RPCPacManager.h.
Referenced by RPCPacManager< RPCPacData >::init().
|
private |
Count of used differnt segments.
Definition at line 205 of file RPCPacManager.h.
Referenced by RPCPacManager< RPCPacData >::init().