59 dead_HV = dead_TP = dead_RO = discCat =
false;
61 std::vector<int> chanKey;
63 chanKey.push_back(wheelId);
64 chanKey.push_back(stationId);
65 chanKey.push_back(sectorId);
66 chanKey.push_back(slId);
67 chanKey.push_back(layerId);
68 chanKey.push_back(cellId);
70 int searchStatus = dBuf->find(chanKey.begin(), chanKey.end(), ientry);
97 return getCellDead_HV(
id.
wheel(),
id.
station(),
id.sector(),
id.superLayer(),
id.layer(),
id.wire());
110 return getCellDead_TP(
id.
wheel(),
id.
station(),
id.sector(),
id.superLayer(),
id.layer(),
id.wire());
123 return getCellDead_RO(
id.
wheel(),
id.
station(),
id.sector(),
id.superLayer(),
id.layer(),
id.wire());
136 return getCellDiscCat(
id.
wheel(),
id.
station(),
id.sector(),
id.superLayer(),
id.layer(),
id.wire());
159 std::vector<int> chanKey;
161 chanKey.push_back(wheelId);
162 chanKey.push_back(stationId);
163 chanKey.push_back(sectorId);
164 chanKey.push_back(slId);
165 chanKey.push_back(layerId);
166 chanKey.push_back(cellId);
168 int searchStatus = dBuf->find(chanKey.begin(), chanKey.end(), ientry);
190 ientry = dataList.size();
191 dataList.push_back(std::pair<const DTDeadFlagId, DTDeadFlagData>(key, data));
192 dBuf->insert(chanKey.begin(), chanKey.end(), ientry);
209 int status = cellStatus(wheelId, stationId, sectorId, slId, layerId, cellId, dead_HV, dead_TP, dead_RO, discCat);
210 setCellStatus(wheelId, stationId, sectorId, slId, layerId, cellId, flag, dead_TP, dead_RO, discCat);
215 return setCellDead_HV(
id.
wheel(),
id.
station(),
id.sector(),
id.superLayer(),
id.layer(),
id.wire(), flag);
223 int status = cellStatus(wheelId, stationId, sectorId, slId, layerId, cellId, dead_HV, dead_TP, dead_RO, discCat);
224 setCellStatus(wheelId, stationId, sectorId, slId, layerId, cellId, dead_HV, flag, dead_RO, discCat);
229 return setCellDead_TP(
id.
wheel(),
id.
station(),
id.sector(),
id.superLayer(),
id.layer(),
id.wire(), flag);
237 int status = cellStatus(wheelId, stationId, sectorId, slId, layerId, cellId, dead_HV, dead_TP, dead_RO, discCat);
238 setCellStatus(wheelId, stationId, sectorId, slId, layerId, cellId, dead_HV, dead_TP, flag, discCat);
243 return setCellDead_RO(
id.
wheel(),
id.
station(),
id.sector(),
id.superLayer(),
id.layer(),
id.wire(), flag);
251 int status = cellStatus(wheelId, stationId, sectorId, slId, layerId, cellId, dead_HV, dead_TP, dead_RO, discCat);
252 setCellStatus(wheelId, stationId, sectorId, slId, layerId, cellId, dead_HV, dead_TP, dead_RO, flag);
257 return setCellDiscCat(
id.
wheel(),
id.
station(),
id.sector(),
id.superLayer(),
id.layer(),
id.wire(), flag);
265 std::stringstream
name;
266 name << dataVersion <<
"_map_DeadFlag" <<
this;
274 int entryMax = dataList.size();
275 std::vector<int> chanKey;
277 while (entryNum < entryMax) {
281 chanKey.push_back(chan.
wheelId);
284 chanKey.push_back(chan.
slId);
285 chanKey.push_back(chan.
layerId);
286 chanKey.push_back(chan.
cellId);
287 dBuf->insert(chanKey.begin(), chanKey.end(), entryNum++);
static AlgebraicMatrix initialize()
std::vector< std::pair< DTDeadFlagId, DTDeadFlagData > > dataList
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 > >::const_iterator const_iterator
Access methods to data.
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
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)
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
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