95 return (*fIter)->mDcsId;
105 std::vector<const HcalDcsMap::Item*>::const_iterator item;
106 std::vector<const HcalDcsMap::Item *>
result;
112 if (item ==
mItemsById.end() || (*item)->mId != fId){
117 if(item !=
mItemsById.end() && !lessById(&target, *item)){
118 result.push_back( *item );
127 std::vector<const HcalDcsMap::Item*>::const_iterator item;
128 std::vector<const HcalDcsMap::Item *>
result;
134 if (item ==
mItemsByDcsId.end() || (*item)->mDcsId != fDcsId) {
139 if(item !=
mItemsByDcsId.end() && !lessByDcsId(&target, *item)){
140 result.push_back( *item );
156 const std::vector<const Item *> items =
findByDcsId (fDcsId_notype.rawId ());
157 std::vector<HcalDetId> _ids;
158 for (std::vector<const Item *>::const_iterator item = items.begin();
161 _ids.push_back(
DetId(*item ? (*item)->mId : 0) );
167 const std::vector<const Item *> items =
findById (fId.
rawId ());
168 std::vector<HcalDcsDetId> _ids;
169 for (std::vector<const Item *>::const_iterator item = items.begin();
186 std::vector <HcalDcsDetId>
result;
187 for (std::vector<Item>::const_iterator item =
mItems.begin (); item !=
mItems.end (); item++)
188 if (item->mDcsId) result.push_back(
HcalDcsDetId(item->mDcsId));
194 std::vector <HcalGenericDetId>
result;
195 std::set <unsigned long> allIds;
196 for (std::vector<Item>::const_iterator item =
mItems.begin (); item !=
mItems.end (); item++)
197 if (item->mId) allIds.insert (item->mId);
198 for (std::set <unsigned long>::const_iterator channel = allIds.begin (); channel != allIds.end (); channel++) {
214 const std::vector<const Item *> items =
findByDcsId(fDcsId_notype);
215 for (std::vector<const Item *>::const_iterator item = items.begin();
218 if ((*item)->mId == fId){
219 edm::LogWarning(
"HCAL") <<
"HcalDcsMap::mapGeomId2DcsId-> Geom channel " << fId
220 <<
" already mapped to DCS channel " << fDcsId_notype;
224 Item _item(fId, fDcsId_notype);
235 for (std::vector<Item>::const_iterator
i=
mItems.begin();
i!=
mItems.end(); ++
i) {
246 for (std::vector<Item>::const_iterator
i=
mItems.begin();
i!=
mItems.end(); ++
i) {
std::vector< const Item * >::const_iterator fIter
bool mapGeomId2DcsId(HcalDetId fId, HcalDcsDetId fDcsId)
std::vector< HcalDcsDetId > allHcalDcsDetId() const
const_iterator operator++()
uint32_t rawId() const
get the raw id
const_iterator endById(void) const
const_iterator beginById(void) const
bool operator()(const HcalDcsMap::Item *a, const HcalDcsMap::Item *b)
const std::vector< HcalDetId > lookup(HcalDcsDetId fId) const
HcalDetId getHcalDetId(void)
const std::vector< const Item * > findByDcsId(unsigned long fDcsId) const
HcalDcsDetId getHcalDcsDetId(void)
const std::vector< const Item * > findById(unsigned long fId) const
HcalOtherSubdetector subdet() const
get the category
std::vector< HcalGenericDetId > allHcalDetId() const
bool operator()(const HcalDcsMap::Item *a, const HcalDcsMap::Item *b)
bool operator!=(const const_iterator &other)
std::vector< const Item * > mItemsByDcsId
const_iterator endByDcsId(void) const
std::vector< Item > mItems
const_iterator beginByDcsId(void) const
std::vector< const Item * > mItemsById