58 bool& discCat)
const {
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);
73 dead_HV =
data.dead_HV;
74 dead_TP =
data.dead_TP;
75 dead_RO =
data.dead_RO;
76 discCat =
data.discCat;
84 id.wheel(),
id.station(),
id.sector(),
id.superLayer(),
id.layer(),
id.wire(), dead_HV, dead_TP, dead_RO, discCat);
92 get(wheelId, stationId, sectorId, slId, layerId, cellId, dead_HV, dead_TP, dead_RO, discCat);
105 get(wheelId, stationId, sectorId, slId, layerId, cellId, dead_HV, dead_TP, dead_RO, discCat);
118 get(wheelId, stationId, sectorId, slId, layerId, cellId, dead_HV, dead_TP, dead_RO, discCat);
131 get(wheelId, stationId, sectorId, slId, layerId, cellId, dead_HV, dead_TP, dead_RO, discCat);
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);
172 data.dead_HV = dead_HV;
173 data.dead_TP = dead_TP;
174 data.dead_RO = dead_RO;
175 data.discCat = discCat;
179 key.wheelId = wheelId;
180 key.stationId = stationId;
181 key.sectorId = sectorId;
183 key.layerId = layerId;
186 data.dead_HV = dead_HV;
187 data.dead_TP = dead_TP;
188 data.dead_RO = dead_RO;
189 data.discCat = discCat;
191 dataList.push_back(std::pair<const DTDeadFlagId, DTDeadFlagData>(
key,
data));
192 dBuf->
insert(chanKey.begin(), chanKey.end(), ientry);
201 id.wheel(),
id.station(),
id.sector(),
id.superLayer(),
id.layer(),
id.wire(), dead_HV, dead_TP, dead_RO, discCat);
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);
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);
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);
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);
265 std::stringstream
name;
275 std::vector<int> chanKey;
277 while (entryNum < entryMax) {
281 chanKey.push_back(
chan.wheelId);
282 chanKey.push_back(
chan.stationId);
283 chanKey.push_back(
chan.sectorId);
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++);
bool getCellDead_RO(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId) const
bool getCellDiscCat(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId) const
std::vector< std::pair< DTDeadFlagId, DTDeadFlagData > > dataList
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 std::string & version() const
access version
std::string mapName() const
read and store full content
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)
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
U second(std::pair< T, U > const &p)
const_iterator begin() const
int setCellDiscCat(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
int setCellDead_TP(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId, bool flag)
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
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)
chan
lumi = TPaveText(lowX+0.38, lowY+0.061, lowX+0.45, lowY+0.161, "NDC") lumi.SetBorderSize( 0 ) lumi...
bool getCellDead_TP(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId) const
int find(ElementKey fKey, ElementKey lKey, typename DTBufferTreeTrait< Content >::outputTypeOfConstFind &cont) const
const_iterator end() const
char data[epos_bytes_allocation]
int insert(ElementKey fKey, ElementKey lKey, Content cont)
void clear()
reset content
bool getCellDead_HV(int wheelId, int stationId, int sectorId, int slId, int layerId, int cellId) 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