1 #ifndef CalibFormats_SiStripObjects_SiStripHashedDetId_H 2 #define CalibFormats_SiStripObjects_SiStripHashedDetId_H 38 std::vector<uint32_t> raw_ids;
39 raw_ids.reserve(
other.size());
59 typedef std::vector<uint32_t>::iterator
iterator;
67 inline uint32_t
unhashIndex(uint32_t hashed_index)
const;
79 void init(
const std::vector<uint32_t> &);
99 return iter -
begin();
107 if (hashed_index < static_cast<uint32_t>(
end() -
begin())) {
116 #endif // CalibFormats_SiStripObjects_SiStripHashedDetId_H std::vector< uint32_t >::const_iterator const_iterator
std::vector< uint32_t >::iterator iterator
static const uint32_t invalid32_
std::ostream & operator<<(std::ostream &os, const SiStripHashedDetId &)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
uint32_t hashedIndex(uint32_t det_id)
Provides dense hash map in place of DetId.
uint32_t unhashIndex(uint32_t hashed_index) const
const size_t size() const
std::vector< uint32_t > detIds_
const_iterator end() const
void init(const std::vector< uint32_t > &)
const_iterator begin() const
SiStripHashedDetId & operator=(const SiStripHashedDetId &other)