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)
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)
157 while (iter != iend) {
158 const std::pair<DTHVStatusId, DTHVStatusData>&
entry = *iter++;
171 while (iter != iend) {
172 const std::pair<DTHVStatusId, DTHVStatusData>&
entry = *iter++;
175 if (hvId.
wheelId !=
id.wheel())
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);
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);
256 int DTHVStatus::setFlagA(
int wheelId,
int stationId,
int sectorId,
int slId,
int layerId,
int partId,
int flag) {
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);
267 return setFlagA(
id.wheel(),
id.
station(),
id.sector(),
id.superLayer(),
id.
layer(), partId, flag);
270 int DTHVStatus::setFlagC(
int wheelId,
int stationId,
int sectorId,
int slId,
int layerId,
int partId,
int flag) {
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);
281 return setFlagC(
id.wheel(),
id.
station(),
id.sector(),
id.superLayer(),
id.
layer(), partId, flag);
284 int DTHVStatus::setFlagS(
int wheelId,
int stationId,
int sectorId,
int slId,
int layerId,
int partId,
int flag) {
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);
295 return setFlagS(
id.wheel(),
id.
station(),
id.sector(),
id.superLayer(),
id.
layer(), partId, flag);
303 std::stringstream
name;
313 std::vector<int> chanKey;
315 while (entryNum < entryMax) {
319 chanKey.push_back(chan.
wheelId);
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++);
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
int setFlagS(int wheelId, int stationId, int sectorId, int slId, int layerId, int partId, int flag)
tuple chan
lumi = TPaveText(lowX+0.38, lowY+0.061, lowX+0.45, lowY+0.161, "NDC") lumi.SetBorderSize( 0 ) lumi...
void clear()
reset content
int setFlagC(int wheelId, int stationId, int sectorId, int slId, int layerId, int partId, int flag)
constexpr std::array< uint8_t, layerIndexSize > layer
int find(ElementKey fKey, ElementKey lKey, typename DTBufferTreeTrait< Content >::outputTypeOfConstFind &cont) const
int setFlagA(int wheelId, int stationId, int sectorId, int slId, int layerId, int partId, int flag)
U second(std::pair< T, U > const &p)
std::string mapName() const
read and store full content
int offChannelsNumber() const
tuple key
prepare the HTCondor submission files and eventually submit them
int badChannelsNumber() const
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)
char data[epos_bytes_allocation]
int insert(ElementKey fKey, ElementKey lKey, Content cont)
const_iterator end() const
const_iterator begin() const
edm::ConstRespectingPtr< DTBufferTree< int, int > > dBuf
const std::string & version() const
access version