Go to the documentation of this file. 1 #ifndef SimDataFormats_TrackerDigiSimLink_interface_StripCompactDigiSimLinks_h
2 #define SimDataFormats_TrackerDigiSimLink_interface_StripCompactDigiSimLinks_h
7 #include <boost/range.hpp>
17 typedef std::pair<EncodedEventId, unsigned int>
key_type;
25 typedef boost::sub_range<const std::vector<HitRecord> >
Links;
46 typedef std::map<key_type, std::vector<HitRecord> >
Map;
std::vector< HitRecord > hitRecords_
U second(std::pair< T, U > const &p)
unsigned int keySize() const
std::map< key_type, std::vector< HitRecord > > Map
std::pair< EncodedEventId, unsigned int > key_type
Links operator[](const key_type &key) const
unsigned int dataSize() const
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
bool operator==(const key_type &otherKey) const
Links getLinks(const key_type &key) const
void swap(StripCompactDigiSimLinks &other)
std::vector< TrackRecord > trackRecords_
~StripCompactDigiSimLinks()
RevLink(const TrackRecord &track, const HitRecord &hit)
void insert(const key_type &key, const HitRecord &record)
nStrips
1.2 is to make the matching window safely the two nearest strips 0.35 is the size of an ME0 chamber i...
std::map< uint32_t, std::vector< RevLink > > makeReverseMap() const
Make the map in the reverse direction. SLOW! call it only once.
HitRecord(uint32_t detid, uint16_t first, uint16_t size)
StripCompactDigiSimLinks()
Empty constructor, for ROOT persistence.
void swap(StripCompactDigiSimLinks &a, StripCompactDigiSimLinks &b)
bool operator<(const TrackRecord &other) const
TrackRecord(key_type k, unsigned int offset)
boost::sub_range< const std::vector< HitRecord > > Links
bool operator<(const key_type &otherKey) const
const Map & storage() const