12 switch (tempId.subdet()) {
22 if (tempId.ring() == 0) {
58 if (fid.
ring() == 0) {
90 if (fid.
ring() == 0) {
111 DcsSet::const_iterator lb =
lower_bound(valList->begin(), valList->end(), dummy);
112 if ((lb != valList->end()) && (lb->DcsId() == fid.
rawId())) {
113 DcsSet::const_iterator ub =
upper_bound(valList->begin(), valList->end(), dummy);
209 DcsSet::const_iterator lb =
lower_bound(valList.begin(), valList.end(), dummy);
210 if ((lb != valList.end()) && (lb->DcsId() == fid.
rawId()))
216 std::set<uint32_t> badIds;
217 DcsSet::const_iterator
val = valList.begin();
218 while ((val != valList.end()) && ((LS > -1) ? (val->LS() <= LS) :
true)) {
219 if (!val->isValueGood()) {
220 badIds.insert(val->DcsId());
222 std::set<uint32_t>::iterator fnd = badIds.find(val->DcsId());
223 if (*fnd == val->DcsId())
228 return (badIds.empty());
232 sort(valList.begin(), valList.end());
DcsSet getValues(HcalDcsDetId const &fid)
bool exists(HcalDcsDetId const &fid)
DcsSet const & getAllSubdetValues(DcsSubDet subd) const
constexpr uint32_t rawId() const
get the raw id
__host__ __device__ constexpr RandomIt upper_bound(RandomIt first, RandomIt last, const T &value, Compare comp={})
bool foundDcsId(DcsSet const &valList, HcalDcsDetId const &fid) const
std::vector< HcalDcsValue > DcsSet
bool DcsValuesOK(DcsSubDet subd, int LS=-1)
HcalOtherSubdetector subdet() const
get the category
bool addValue(HcalDcsValue const &newVal)
__host__ __device__ constexpr RandomIt lower_bound(RandomIt first, RandomIt last, const T &value, Compare comp={})
bool sortList(DcsSet &valList) const
bool subDetOk(DcsSet const &valList, int LS) const