19 mItems(helper.mItems.
begin(),helper.mItems.
end())
75 if (fIter != other.
fIter)
return true;
95 return (*fIter)->mDcsId;
104 return HcalObjectAddons::findByT<Item,HcalDcsMapAddons::LessById>(&
target,
mItemsById);
109 return HcalObjectAddons::findByT<Item,HcalDcsMapAddons::LessByDcsId>(&
target,
mItemsByDcsId);
122 return item ? item->
mId : 0;
129 _id.zside()*_id.ring(),
138 std::vector <HcalDcsDetId>
result;
139 for (std::vector<Item>::const_iterator item =
mItems.begin (); item !=
mItems.end (); item++)
140 if (item->mDcsId) result.push_back(
HcalDcsDetId(item->mDcsId));
146 std::vector <HcalGenericDetId>
result;
147 std::set <unsigned long> allIds;
148 for (std::vector<Item>::const_iterator item =
mItems.begin (); item !=
mItems.end (); item++)
149 if (item->mId) allIds.insert (item->mId);
150 for (std::set <unsigned long>::const_iterator channel = allIds.begin (); channel != allIds.end (); channel++) {
170 auto iter =
mItems.find(target);
171 if(iter !=
mItems.end() and iter->mId == fId){
172 edm::LogWarning(
"HCAL") <<
"HcalDcsMap::mapGeomId2DcsId-> Geom channel " << fId
173 <<
" already mapped to DCS channel " << fDcsId_notype;
182 HcalObjectAddons::sortByT<Item,HcalDcsMapAddons::LessById>(
mItems,
mItemsById);
std::vector< const Item * >::const_iterator fIter
std::vector< HcalDcsDetId > allHcalDcsDetId() const
const_iterator operator++()
const Item * findById(unsigned long fId) const
void swap(HcalDcsMap &other)
HcalDetId lookup(HcalDcsDetId fId) const
uint32_t rawId() const
get the raw id
const_iterator endById(void) const
const_iterator beginById(void) const
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
HcalDetId getHcalDetId(void)
HcalDcsMap & operator=(const HcalDcsMap &rhs)
HcalDcsDetId getHcalDcsDetId(void)
bool mapGeomId2DcsId(HcalDetId fId, HcalDcsDetId fDcsId)
HcalOtherSubdetector subdet() const
get the category
std::vector< HcalGenericDetId > allHcalDetId() const
bool operator!=(const const_iterator &other)
const Item * findByDcsId(unsigned long fDcsId) const
std::vector< const Item * > mItemsByDcsId
const_iterator endByDcsId(void) const
std::vector< Item > mItems
const_iterator beginByDcsId(void) const
std::vector< const Item * > mItemsById