1 #ifndef CondFormats_RPCObjects_L1RPCHwConfig_h 2 #define CondFormats_RPCObjects_L1RPCHwConfig_h 79 bool isActive(
int tower,
int sector,
int segment)
const 81 return m_disabledDevices.find(
L1RPCDevCoords(tower, sector, segment) )==m_disabledDevices.end();
86 return m_disabledDevices.end()==m_disabledDevices.find(
L1RPCDevCoords(tower, PAC/12, PAC%12) );
89 void enablePAC(
int tower,
int sector,
int segment,
bool enable);
91 void enableTower(
int tower,
bool enable);
93 void enableTowerInCrate(
int tower,
int crate,
bool enable);
95 void enableCrate(
int logSector,
bool enable);
97 void enableAll(
bool enable);
99 int size()
const {
return m_disabledDevices.size(); } ;
101 for(std::set<L1RPCDevCoords>::const_iterator it=m_disabledDevices.begin(); it!=m_disabledDevices.end();++it){
102 std::cout << it->toString() << std::endl;
bool isActive(int tower, int PAC) const
L1RPCDevCoords(int tower, int sector, int segment)
bool isActive(int tower, int sector, int segment) const
bool operator<(const L1RPCDevCoords &l2) const
std::string toString() const
std::set< L1RPCDevCoords > m_disabledDevices
#define COND_SERIALIZABLE
bool operator==(const L1RPCDevCoords &l2) const