67 fCell = lCell = flagA = flagC = flagS = 0;
69 std::vector<int> chanKey;
71 chanKey.push_back(wheelId);
72 chanKey.push_back(stationId);
73 chanKey.push_back(sectorId);
74 chanKey.push_back(slId);
75 chanKey.push_back(layerId);
76 chanKey.push_back(partId);
78 int searchStatus =
dBuf->
find(chanKey.begin(), chanKey.end(), ientry);
93 id.wheel(),
id.station(),
id.sector(),
id.superLayer(),
id.layer(), partId, fCell, lCell, flagA, flagC, flagS);
97 flagA = flagC = flagS = 0;
98 int iCell =
id.wire();
102 get(
id.wheel(),
id.station(),
id.sector(),
id.superLayer(),
id.layer(), 0, fCell, lCell, flagA, flagC, flagS);
103 if ((fCheck == 0) && (fCell <= iCell) && (lCell >= iCell))
106 get(
id.wheel(),
id.station(),
id.sector(),
id.superLayer(),
id.layer(), 1, fCell, lCell, flagA, flagC, flagS);
107 if ((fCheck == 0) && (fCell <= iCell) && (lCell >= iCell))
109 flagA = flagC = flagS = 0;
117 while (iter != iend) {
118 const std::pair<DTHVStatusId, DTHVStatusData>&
entry = *iter++;
121 int offA =
data.flagA & 1;
122 int offC =
data.flagC & 1;
123 int offS =
data.flagS & 1;
124 if (offA || offC || offS)
125 offNum += (1 +
data.lCell -
data.fCell);
134 while (iter != iend) {
135 const std::pair<DTHVStatusId, DTHVStatusData>&
entry = *iter++;
138 if (hvId.
wheelId !=
id.wheel())
144 int offA =
data.flagA & 1;
145 int offC =
data.flagC & 1;
146 int offS =
data.flagS & 1;
147 if (offA || offC || offS)
148 offNum += (1 +
data.lCell -
data.fCell);
157 while (iter != iend) {
158 const std::pair<DTHVStatusId, DTHVStatusData>&
entry = *iter++;
162 offNum += (1 +
data.lCell -
data.fCell);
171 while (iter != iend) {
172 const std::pair<DTHVStatusId, DTHVStatusData>&
entry = *iter++;
175 if (hvId.
wheelId !=
id.wheel())
182 offNum += (1 +
data.lCell -
data.fCell);
209 std::vector<int> chanKey;
211 chanKey.push_back(wheelId);
212 chanKey.push_back(stationId);
213 chanKey.push_back(sectorId);
214 chanKey.push_back(slId);
215 chanKey.push_back(layerId);
216 chanKey.push_back(partId);
218 int searchStatus =
dBuf->
find(chanKey.begin(), chanKey.end(), ientry);
230 key.wheelId = wheelId;
231 key.stationId = stationId;
232 key.sectorId = sectorId;
234 key.layerId = layerId;
243 dataList.push_back(std::pair<DTHVStatusId, DTHVStatusData>(
key,
data));
244 dBuf->
insert(chanKey.begin(), chanKey.end(), ientry);
253 id.wheel(),
id.station(),
id.sector(),
id.superLayer(),
id.layer(), partId, fCell, lCell, flagA, flagC, flagS);
262 get(wheelId, stationId, sectorId, slId, layerId, partId, fCell, lCell, flagA, flagC, flagS);
263 return set(wheelId, stationId, sectorId, slId, layerId, partId, fCell, lCell,
flag, flagC, flagS);
276 get(wheelId, stationId, sectorId, slId, layerId, partId, fCell, lCell, flagA, flagC, flagS);
277 return set(wheelId, stationId, sectorId, slId, layerId, partId, fCell, lCell, flagA,
flag, flagS);
290 get(wheelId, stationId, sectorId, slId, layerId, partId, fCell, lCell, flagA, flagC, flagS);
291 return set(wheelId, stationId, sectorId, slId, layerId, partId, fCell, lCell, flagA, flagC,
flag);
303 std::stringstream
name;
313 std::vector<int> chanKey;
315 while (entryNum < entryMax) {
319 chanKey.push_back(
chan.wheelId);
320 chanKey.push_back(
chan.stationId);
321 chanKey.push_back(
chan.sectorId);
322 chanKey.push_back(
chan.slId);
323 chanKey.push_back(
chan.layerId);
324 chanKey.push_back(
chan.partId);
325 dBuf->
insert(chanKey.begin(), chanKey.end(), entryNum++);
const std::string & version() const
access version
int setFlagS(int wheelId, int stationId, int sectorId, int slId, int layerId, int partId, int flag)
void clear()
reset content
int badChannelsNumber() const
int setFlagC(int wheelId, int stationId, int sectorId, int slId, int layerId, int partId, int flag)
constexpr std::array< uint8_t, layerIndexSize > layer
int setFlagA(int wheelId, int stationId, int sectorId, int slId, int layerId, int partId, int flag)
U second(std::pair< T, U > const &p)
int get(int wheelId, int stationId, int sectorId, int slId, int layerId, int partId, int &fCell, int &lCell, int &flagA, int &flagC, int &flagS) const
get content
std::string mapName() const
read and store full content
std::vector< std::pair< DTHVStatusId, DTHVStatusData > > dataList
std::vector< std::pair< DTHVStatusId, DTHVStatusData > >::const_iterator const_iterator
Access methods to data.
int set(int wheelId, int stationId, int sectorId, int slId, int layerId, int partId, int fCell, int lCell, int flagA, int flagC, int flagS)
chan
lumi = TPaveText(lowX+0.38, lowY+0.061, lowX+0.45, lowY+0.161, "NDC") lumi.SetBorderSize( 0 ) lumi...
int find(ElementKey fKey, ElementKey lKey, typename DTBufferTreeTrait< Content >::outputTypeOfConstFind &cont) const
char data[epos_bytes_allocation]
int insert(ElementKey fKey, ElementKey lKey, Content cont)
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
const_iterator begin() const
int offChannelsNumber() const
const_iterator end() const