#include <L1Trigger/RPCTrigger/interface/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. | |
virtual int | getTBNum (const RPCConst::l1RpcConeCrdnts &coneCrdnts) |
Returns the index of TB (in TC) that should run given LogCone. | |
virtual int | getTBsInTC () |
returns number og Trigger Boards in one Trigger Crate. | |
virtual int | getTCNum (const RPCConst::l1RpcConeCrdnts &coneCrdnts) |
Returns the index of TC that should run given LogCone. | |
virtual int | getTCsCnt () |
returns count of Trigger Crates in system. | |
virtual int | getTowerNumOnTb (const RPCConst::l1RpcConeCrdnts &coneCrdnts) |
One TB covers 3 or 4 Towers. | |
virtual int | getTowsCntOnTB (int tbNum) |
Returns the count of Towers (3 or 4), that are covered by given TB. | |
RPCBasicTrigConfig () | |
Ctor. | |
RPCBasicTrigConfig (RPCPacManager< RPCPacData > *pacManager) | |
Ctor. | |
virtual int | towAddr2TowNum (int towAddr) |
Converts TC GB-Sorter input m_tower address <0. | |
virtual int | towNum2TowNum2Comp (int towNum) |
Converts TC GB-Sorter output m_tower address <0. | |
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.
00005 { 00006 m_PacManager = pacManager; 00007 }
RPCBasicTrigConfig::RPCBasicTrigConfig | ( | ) |
Ctor.
Definition at line 10 of file RPCBasicTrigConfig.cc.
References m_PacManager.
00010 { 00011 m_PacManager = 0; 00012 }
const RPCPacData * RPCBasicTrigConfig::getPac | ( | const RPCConst::l1RpcConeCrdnts & | coneCrdnts | ) | const [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.
00077 { 00078 return m_PacManager->getPac(coneCrdnts.m_Tower, coneCrdnts.m_LogSector, coneCrdnts.m_LogSegment); 00079 }
int RPCBasicTrigConfig::getTBNum | ( | const RPCConst::l1RpcConeCrdnts & | coneCrdnts | ) | [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_NUM_FOR_TOWER, and RPCConst::l1RpcConeCrdnts::m_Tower.
00081 { 00082 return m_TB_NUM_FOR_TOWER[RPCConst::ITOW_MAX + coneCrdnts.m_Tower]; 00083 }
int RPCBasicTrigConfig::getTBsInTC | ( | ) | [virtual] |
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.
00040 { return m_TB_IN_TC_CNT; }
int RPCBasicTrigConfig::getTCNum | ( | const RPCConst::l1RpcConeCrdnts & | coneCrdnts | ) | [virtual] |
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.
00048 { 00049 return coneCrdnts.m_LogSector; 00050 }
int RPCBasicTrigConfig::getTCsCnt | ( | ) | [virtual] |
returns count of Trigger Crates in system.
Implements RPCTriggerConfiguration.
Definition at line 33 of file RPCBasicTrigConfig.cc.
References m_TRIGGER_CRATES_CNT.
00033 { return m_TRIGGER_CRATES_CNT; }
int RPCBasicTrigConfig::getTowerNumOnTb | ( | const RPCConst::l1RpcConeCrdnts & | coneCrdnts | ) | [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.
00073 { 00074 return m_TOWER_ON_TB[RPCConst::ITOW_MAX + coneCrdnts.m_Tower]; 00075 }
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.
00056 { 00057 return m_TOWERS_CNT_ON_TB[tbNum]; 00058 }
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.
00062 { 00063 00064 if (m_TOW_ADDR_2_TOW_NUM[towAddr] == -99 || towAddr < 0 || towAddr > 35){ 00065 throw RPCException("RPCBasicTrigConfig::towAddr2TowNum - wrong towAddr"); 00066 //edm::LogError("RPC")<< "RPCBasicTrigConfig::towAddr2TowNum - wrong towAddr"; 00067 } 00068 00069 00070 return m_TOW_ADDR_2_TOW_NUM[towAddr]; 00071 }
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.
00016 { 00017 if(towNum >= 0) 00018 return towNum; 00019 else 00020 return 0x3F + towNum + 1; 00021 }
RPCPacManager<RPCPacData>* RPCBasicTrigConfig::m_PacManager [private] |
Definition at line 64 of file RPCBasicTrigConfig.h.
Referenced by getPac(), and RPCBasicTrigConfig().
const int RPCBasicTrigConfig::m_TB_IN_TC_CNT = 9 [static, private] |
const int RPCBasicTrigConfig::m_TB_NUM_FOR_TOWER [static, private] |
Initial value:
{ 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4,4,4,5,5,5,6,6,6,6,7, 7, 7, 7, 8, 8, 8, 8 }
Definition at line 60 of file RPCBasicTrigConfig.h.
Referenced by getTBNum().
const int RPCBasicTrigConfig::m_TOW_ADDR_2_TOW_NUM [static, private] |
Initial value:
{ -16,-15,-14,-13,-12,-11,-10,-9,-8,-7,-6,-5, -4, -3, -2,-99, -1, 0, 1,-99, 2, 3, 4,-99, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 }
Definition at line 62 of file RPCBasicTrigConfig.h.
Referenced by towAddr2TowNum().
const int RPCBasicTrigConfig::m_TOWER_ON_TB [static, private] |
Initial value:
{ 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0 }
Definition at line 56 of file RPCBasicTrigConfig.h.
Referenced by getTowerNumOnTb().
const int RPCBasicTrigConfig::m_TOWERS_CNT_ON_TB [static, private] |
Initial value:
{ 4, 4, 4, 3, 3, 3, 4, 4, 4 }
Definition at line 58 of file RPCBasicTrigConfig.h.
Referenced by getTowsCntOnTB().
const int RPCBasicTrigConfig::m_TRIGGER_CRATES_CNT = 12 [static, private] |