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 ) {
121 return get(
id.wheel(),
155 return getCellDead_HV(
id.
wheel(),
188 return getCellDead_TP(
id.
wheel(),
221 return getCellDead_RO(
id.
wheel(),
254 return getCellDiscCat(
id.
wheel(),
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;
324 ientry = dataList.size();
327 dBuf->insert( chanKey.begin(), chanKey.end(), ientry );
341 return set(
id.wheel(),
363 int status = cellStatus( wheelId,
369 dead_HV, dead_TP, dead_RO, discCat );
370 setCellStatus( wheelId,
376 flag, dead_TP, dead_RO, discCat );
384 return setCellDead_HV(
id.
wheel(),
406 int status = cellStatus( wheelId,
412 dead_HV, dead_TP, dead_RO, discCat );
413 setCellStatus( wheelId,
419 dead_HV, flag, dead_RO, discCat );
427 return setCellDead_TP(
id.
wheel(),
449 int status = cellStatus( wheelId,
455 dead_HV, dead_TP, dead_RO, discCat );
456 setCellStatus( wheelId,
462 dead_HV, dead_TP, flag, discCat );
470 return setCellDead_RO(
id.
wheel(),
492 int status = cellStatus( wheelId,
498 dead_HV, dead_TP, dead_RO, discCat );
499 setCellStatus( wheelId,
505 dead_HV, dead_TP, dead_RO, flag );
513 return setCellDiscCat(
id.
wheel(),
524 return dataList.begin();
529 return dataList.end();
534 std::stringstream
name;
535 name << dataVersion <<
"_map_DeadFlag" <<
this;
545 int entryMax = dataList.size();
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++ );
static AlgebraicMatrix initialize()
edm::ConstRespectingPtr< 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)
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 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
chan
lumi = TPaveText(lowX+0.38, lowY+0.061, lowX+0.45, lowY+0.161, "NDC") lumi.SetBorderSize( 0 ) lumi...
char data[epos_bytes_allocation]
bool getCellDead_RO(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId) const
void clear()
reset content