37 dataVersion( version ) {
90 bool& discCat )
const {
106 std::vector<int> chanKey;
108 chanKey.push_back( wheelId );
109 chanKey.push_back( stationId );
110 chanKey.push_back( sectorId );
111 chanKey.push_back( slId );
112 chanKey.push_back( layerId );
113 chanKey.push_back( cellId );
115 int searchStatus =
dBuf->
find( chanKey.begin(), chanKey.end(), ientry );
116 if ( !searchStatus ) {
133 bool& discCat )
const {
134 return get(
id.wheel(),
140 dead_HV, dead_TP, dead_RO, discCat );
161 dead_HV, dead_TP, dead_RO, discCat );
194 dead_HV, dead_TP, dead_RO, discCat );
227 dead_HV, dead_TP, dead_RO, discCat );
260 dead_HV, dead_TP, dead_RO, discCat );
316 std::vector<int> chanKey;
318 chanKey.push_back( wheelId );
319 chanKey.push_back( stationId );
320 chanKey.push_back( sectorId );
321 chanKey.push_back( slId );
322 chanKey.push_back( layerId );
323 chanKey.push_back( cellId );
325 int searchStatus =
dBuf->
find( chanKey.begin(), chanKey.end(), ientry );
327 if ( !searchStatus ) {
337 key. wheelId = wheelId;
339 key. sectorId = sectorId;
341 key. layerId = layerId;
342 key. cellId = cellId;
351 dBuf->
insert( chanKey.begin(), chanKey.end(), ientry );
365 return set(
id.wheel(),
371 dead_HV, dead_TP, dead_RO, discCat );
393 dead_HV, dead_TP, dead_RO, discCat );
400 flag, dead_TP, dead_RO, discCat );
436 dead_HV, dead_TP, dead_RO, discCat );
443 dead_HV, flag, dead_RO, discCat );
479 dead_HV, dead_TP, dead_RO, discCat );
486 dead_HV, dead_TP, flag, discCat );
522 dead_HV, dead_TP, dead_RO, discCat );
529 dead_HV, dead_TP, dead_RO, flag );
558 std::stringstream
name;
575 std::vector<int> chanKey;
577 while ( entryNum < entryMax ) {
582 chanKey.push_back( chan. wheelId );
584 chanKey.push_back( chan. sectorId );
585 chanKey.push_back( chan. slId );
586 chanKey.push_back( chan. layerId );
587 chanKey.push_back( chan. cellId );
588 dBuf->
insert( chanKey.begin(), chanKey.end(), entryNum++ );
DTBufferTree< int, int > * dBuf
bool getCellDiscCat(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId) const
int setCellDead_HV(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
int set(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool dead_HV, bool dead_TP, bool dead_RO, bool discCat)
int insert(ElementKey fKey, ElementKey lKey, const Content &cont)
const_iterator begin() const
bool getCellDead_TP(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId) const
std::vector< std::pair< DTDeadFlagId, DTDeadFlagData > > dataList
int setCellDead_RO(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
U second(std::pair< T, U > const &p)
const_iterator end() const
std::string mapName() const
std::vector< std::pair< DTDeadFlagId, DTDeadFlagData > >::const_iterator const_iterator
Access methods to data.
int setCellDiscCat(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
const std::string & version() const
access version
bool getCellDead_HV(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId) const
int setCellDead_TP(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
int setCellStatus(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool dead_HV, bool dead_TP, bool dead_RO, bool discCat)
void cacheMap() const
read and store full content
int find(ElementKey fKey, ElementKey lKey, Content &cont)
int get(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool &dead_HV, bool &dead_TP, bool &dead_RO, bool &discCat) const
int cellStatus(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool &dead_HV, bool &dead_TP, bool &dead_RO, bool &discCat) const
get content
char data[epos_bytes_allocation]
volatile std::atomic< bool > shutdown_flag false
bool getCellDead_RO(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId) const
void clear()
reset content