35 dataVersion( version ),
86 bool& discCat )
const {
93 std::vector<int> chanKey;
95 chanKey.push_back( wheelId );
96 chanKey.push_back( stationId );
97 chanKey.push_back( sectorId );
98 chanKey.push_back( slId );
99 chanKey.push_back( layerId );
100 chanKey.push_back( cellId );
102 int searchStatus = dBuf->find( chanKey.begin(), chanKey.end(), ientry );
103 if ( !searchStatus ) {
120 bool& discCat )
const {
121 return get(
id.wheel(),
127 dead_HV, dead_TP, dead_RO, discCat );
148 dead_HV, dead_TP, dead_RO, discCat );
181 dead_HV, dead_TP, dead_RO, discCat );
214 dead_HV, dead_TP, dead_RO, discCat );
247 dead_HV, dead_TP, dead_RO, discCat );
292 std::vector<int> chanKey;
294 chanKey.push_back( wheelId );
295 chanKey.push_back( stationId );
296 chanKey.push_back( sectorId );
297 chanKey.push_back( slId );
298 chanKey.push_back( layerId );
299 chanKey.push_back( cellId );
301 int searchStatus = dBuf->find( chanKey.begin(), chanKey.end(), ientry );
303 if ( !searchStatus ) {
313 key. wheelId = wheelId;
315 key. sectorId = sectorId;
317 key. layerId = layerId;
318 key. cellId = cellId;
327 dBuf->insert( chanKey.begin(), chanKey.end(), ientry );
341 return set(
id.wheel(),
347 dead_HV, dead_TP, dead_RO, discCat );
369 dead_HV, dead_TP, dead_RO, discCat );
376 flag, dead_TP, dead_RO, discCat );
412 dead_HV, dead_TP, dead_RO, discCat );
419 dead_HV, flag, dead_RO, discCat );
455 dead_HV, dead_TP, dead_RO, discCat );
462 dead_HV, dead_TP, flag, discCat );
498 dead_HV, dead_TP, dead_RO, discCat );
505 dead_HV, dead_TP, dead_RO, flag );
534 std::stringstream
name;
546 std::vector<int> chanKey;
548 while ( entryNum < entryMax ) {
553 chanKey.push_back( chan. wheelId );
555 chanKey.push_back( chan. sectorId );
556 chanKey.push_back( chan. slId );
557 chanKey.push_back( chan. layerId );
558 chanKey.push_back( chan. cellId );
559 dBuf->insert( chanKey.begin(), chanKey.end(), entryNum++ );
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)
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
read and store full content
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)
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