#include <CondFormats/RPCObjects/interface/L1RPCHwConfig.h>
Public Member Functions | |
void | dump () const |
void | enableAll (bool enable) |
void | enableCrate (int logSector, bool enable) |
void | enablePAC (int tower, int sector, int segment, bool enable) |
void | enableTower (int tower, bool enable) |
void | enableTowerInCrate (int tower, int crate, bool enable) |
bool | isActive (int tower, int sector, int segment) const |
bool | isActive (int tower, int PAC) const |
L1RPCHwConfig () | |
int | size () const |
virtual | ~L1RPCHwConfig () |
Private Attributes | |
std::set< L1RPCDevCoords > | m_disabledDevices |
Description: Contains multiple BX triggering info. Also info about disabled devices
Usage: <usage>
Definition at line 66 of file L1RPCHwConfig.h.
L1RPCHwConfig::L1RPCHwConfig | ( | ) |
Definition at line 31 of file L1RPCHwConfig.cc.
{ }
L1RPCHwConfig::~L1RPCHwConfig | ( | ) | [virtual] |
Definition at line 40 of file L1RPCHwConfig.cc.
{ }
void L1RPCHwConfig::dump | ( | void | ) | const [inline] |
Definition at line 96 of file L1RPCHwConfig.h.
References gather_cfg::cout, and m_disabledDevices.
{ for(std::set<L1RPCDevCoords>::const_iterator it=m_disabledDevices.begin(); it!=m_disabledDevices.end();++it){ std::cout << it->toString() << std::endl; } };
void L1RPCHwConfig::enableAll | ( | bool | enable | ) |
Definition at line 91 of file L1RPCHwConfig.cc.
References enableCrate().
{ for (int seg = 0; seg<12; ++seg ) { // std::cout << seg << " "; enableCrate(seg,enable); // std::cout << std::endl; } }
void L1RPCHwConfig::enableCrate | ( | int | logSector, |
bool | enable | ||
) |
Definition at line 79 of file L1RPCHwConfig.cc.
References enablePAC().
Referenced by enableAll().
{ for (int tower = -16; tower < 17; ++tower){ for (int seg = 0; seg<12; ++seg ) { enablePAC(tower, crate, seg, enable); } } }
void L1RPCHwConfig::enablePAC | ( | int | tower, |
int | sector, | ||
int | segment, | ||
bool | enable | ||
) |
Definition at line 45 of file L1RPCHwConfig.cc.
References m_disabledDevices.
Referenced by enableCrate(), enableTower(), and enableTowerInCrate().
{ if (enable){ // std::cout << "+"; m_disabledDevices.erase(L1RPCDevCoords(tower, sector, segment)) ; } else{ // std::cout << "-"; m_disabledDevices.insert(L1RPCDevCoords(tower, sector, segment)) ; } }
void L1RPCHwConfig::enableTower | ( | int | tower, |
bool | enable | ||
) |
Definition at line 59 of file L1RPCHwConfig.cc.
References enablePAC().
{ for (int sec = 0; sec <12 ; ++sec ){ for (int seg = 0; seg<12; ++seg ) { enablePAC(tower,sec,seg,enable); } } }
void L1RPCHwConfig::enableTowerInCrate | ( | int | tower, |
int | crate, | ||
bool | enable | ||
) |
Definition at line 73 of file L1RPCHwConfig.cc.
References enablePAC().
{ for (int seg = 0; seg<12; ++seg ) { enablePAC(tower,crate,seg,enable); } }
bool L1RPCHwConfig::isActive | ( | int | tower, |
int | PAC | ||
) | const [inline] |
Definition at line 80 of file L1RPCHwConfig.h.
References m_disabledDevices.
{ return m_disabledDevices.end()==m_disabledDevices.find( L1RPCDevCoords(tower, PAC/12, PAC%12) ); };
bool L1RPCHwConfig::isActive | ( | int | tower, |
int | sector, | ||
int | segment | ||
) | const [inline] |
Definition at line 75 of file L1RPCHwConfig.h.
References m_disabledDevices.
Referenced by popcon::L1RPCHwConfigSourceHandler::Compare2Configs().
{ return m_disabledDevices.find( L1RPCDevCoords(tower, sector, segment) )==m_disabledDevices.end(); };
int L1RPCHwConfig::size | ( | void | ) | const [inline] |
Definition at line 95 of file L1RPCHwConfig.h.
References m_disabledDevices.
Referenced by popcon::L1RPCHwConfigSourceHandler::Compare2Configs().
{return m_disabledDevices.size(); } ;
std::set<L1RPCDevCoords> L1RPCHwConfig::m_disabledDevices [private] |
Definition at line 100 of file L1RPCHwConfig.h.
Referenced by dump(), enablePAC(), isActive(), and size().