1 #ifndef CalibFormats_SiStripObjects_SiStripHashedDetId_H 2 #define CalibFormats_SiStripObjects_SiStripHashedDetId_H 6 #include <boost/cstdint.hpp> 44 typedef std::vector<uint32_t>::iterator
iterator;
52 inline uint32_t
unhashIndex( uint32_t hashed_index )
const;
57 inline const_iterator
begin()
const;
59 inline const_iterator
end()
const;
63 void init(
const std::vector<uint32_t>& );
78 if ( iter !=
end() ) {
89 if ( hashed_index < static_cast<uint32_t>(
end()-
begin()) ) {
return detIds_[hashed_index]; }
95 #endif // CalibFormats_SiStripObjects_SiStripHashedDetId_H uint32_t unhashIndex(uint32_t hashed_index) const
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.
const_iterator begin() const
std::vector< uint32_t > detIds_
const_iterator end() const
void init(const std::vector< uint32_t > &)