#include <RPCBasicTrigConfig.h>
Public Member Functions | |
virtual const RPCPacData * | getPac (const RPCConst::l1RpcConeCrdnts &coneCrdnts) const |
Returns pointer to m_PAC that should run given LogCone. The PACs are holded by L1PacManager. More... | |
virtual int | getTBNum (const RPCConst::l1RpcConeCrdnts &coneCrdnts) |
Returns the index of TB (in TC) that should run given LogCone. More... | |
virtual int | getTBsInTC () |
returns number og Trigger Boards in one Trigger Crate. More... | |
virtual int | getTCNum (const RPCConst::l1RpcConeCrdnts &coneCrdnts) |
Returns the index of TC that should run given LogCone. More... | |
virtual int | getTCsCnt () |
returns count of Trigger Crates in system. More... | |
virtual int | getTowerNumOnTb (const RPCConst::l1RpcConeCrdnts &coneCrdnts) |
virtual int | getTowsCntOnTB (int tbNum) |
Returns the count of Towers (3 or 4), that are covered by given TB. More... | |
RPCBasicTrigConfig (RPCPacManager< RPCPacData > *pacManager) | |
Ctor. More... | |
RPCBasicTrigConfig () | |
Ctor. More... | |
virtual int | towAddr2TowNum (int towAddr) |
virtual int | towNum2TowNum2Comp (int towNum) |
virtual | ~RPCBasicTrigConfig () |
Public Member Functions inherited from RPCTriggerConfiguration | |
int | getDebugLevel () const |
void | setDebugLevel (int debgLevel) |
virtual | ~RPCTriggerConfiguration ()=default |
Private Attributes | |
RPCPacManager< RPCPacData > * | m_PacManager |
Static Private Attributes | |
static const int | m_TB_IN_TC_CNT = 9 |
static const int | m_TB_NUM_FOR_TOWER [2 *RPCConst::ITOW_MAX+1] |
static const int | m_TOW_ADDR_2_TOW_NUM [36] |
static const int | m_TOWER_ON_TB [2 *RPCConst::ITOW_MAX+1+1] |
static const int | m_TOWERS_CNT_ON_TB [m_TB_IN_TC_CNT] |
static const int | m_TRIGGER_CRATES_CNT = 12 |
Definition at line 14 of file RPCBasicTrigConfig.h.
RPCBasicTrigConfig::RPCBasicTrigConfig | ( | RPCPacManager< RPCPacData > * | pacManager | ) |
Ctor.
Definition at line 5 of file RPCBasicTrigConfig.cc.
References m_PacManager.
RPCBasicTrigConfig::RPCBasicTrigConfig | ( | ) |
Ctor.
Definition at line 10 of file RPCBasicTrigConfig.cc.
References m_PacManager.
|
inlinevirtual |
Definition at line 51 of file RPCBasicTrigConfig.h.
|
virtual |
Returns pointer to m_PAC that should run given LogCone. The PACs are holded by L1PacManager.
Implements RPCTriggerConfiguration.
Definition at line 77 of file RPCBasicTrigConfig.cc.
References RPCPacManager< TPacType >::getPac(), RPCConst::l1RpcConeCrdnts::m_LogSector, RPCConst::l1RpcConeCrdnts::m_LogSegment, m_PacManager, and RPCConst::l1RpcConeCrdnts::m_Tower.
|
virtual |
Returns the index of TB (in TC) that should run given LogCone.
Implements RPCTriggerConfiguration.
Definition at line 81 of file RPCBasicTrigConfig.cc.
References RPCConst::ITOW_MAX, m_TB_IN_TC_CNT, m_TB_NUM_FOR_TOWER, m_TOW_ADDR_2_TOW_NUM, RPCConst::l1RpcConeCrdnts::m_Tower, m_TOWER_ON_TB, m_TOWERS_CNT_ON_TB, and m_TRIGGER_CRATES_CNT.
|
virtual |
returns number og Trigger Boards in one Trigger Crate.
returns number og Trigger Boards in one Trigger Crate.
Implements RPCTriggerConfiguration.
Definition at line 40 of file RPCBasicTrigConfig.cc.
References m_TB_IN_TC_CNT.
|
virtual |
Returns the index of TC that should run given LogCone.
Returns the index of TC that should run given LogCone.
Implements RPCTriggerConfiguration.
Definition at line 48 of file RPCBasicTrigConfig.cc.
References RPCConst::l1RpcConeCrdnts::m_LogSector.
|
virtual |
returns count of Trigger Crates in system.
returns count of Trigger Crates in system.
Implements RPCTriggerConfiguration.
Definition at line 33 of file RPCBasicTrigConfig.cc.
References m_TRIGGER_CRATES_CNT.
|
virtual |
One TB covers 3 or 4 Towers. The function returns the index of m_tower on TB.
Implements RPCTriggerConfiguration.
Definition at line 73 of file RPCBasicTrigConfig.cc.
References RPCConst::ITOW_MAX, RPCConst::l1RpcConeCrdnts::m_Tower, and m_TOWER_ON_TB.
|
virtual |
Returns the count of Towers (3 or 4), that are covered by given TB.
Returns the count of Towers (3 or 4), that are covered by given TB.
Implements RPCTriggerConfiguration.
Definition at line 56 of file RPCBasicTrigConfig.cc.
References m_TOWERS_CNT_ON_TB.
|
virtual |
Converts TC GB-Sorter input m_tower address <0...35> ("m_tower number natural") to m_tower number <-16...0...16> TC GB-Sorter input m_tower address is 8 bits: [7...2] TB num, [1...0] m_tower num on TB.
Implements RPCTriggerConfiguration.
Definition at line 62 of file RPCBasicTrigConfig.cc.
References m_TOW_ADDR_2_TOW_NUM.
|
virtual |
Converts TC GB-Sorter output m_tower address <0...31> ("m_tower number continous") to m_tower number 2'complement
Implements RPCTriggerConfiguration.
Definition at line 16 of file RPCBasicTrigConfig.cc.
|
private |
Definition at line 66 of file RPCBasicTrigConfig.h.
Referenced by getPac(), and RPCBasicTrigConfig().
|
staticprivate |
Definition at line 56 of file RPCBasicTrigConfig.h.
Referenced by getTBNum(), and getTBsInTC().
|
staticprivate |
Definition at line 62 of file RPCBasicTrigConfig.h.
Referenced by getTBNum().
|
staticprivate |
Definition at line 64 of file RPCBasicTrigConfig.h.
Referenced by getTBNum(), and towAddr2TowNum().
|
staticprivate |
Definition at line 58 of file RPCBasicTrigConfig.h.
Referenced by getTBNum(), and getTowerNumOnTb().
|
staticprivate |
Definition at line 60 of file RPCBasicTrigConfig.h.
Referenced by getTBNum(), and getTowsCntOnTB().
|
staticprivate |
Definition at line 54 of file RPCBasicTrigConfig.h.
Referenced by getTBNum(), and getTCsCnt().