1 #ifndef SimDataFormats_TrackerDigiSimLink_interface_StripCompactDigiSimLinks_h
2 #define SimDataFormats_TrackerDigiSimLink_interface_StripCompactDigiSimLinks_h
6 #include <boost/cstdint.hpp>
7 #include <boost/range.hpp>
16 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;
void swap(ora::Record &rh, ora::Record &lh)
TrackRecord(key_type k, unsigned int offset)
boost::sub_range< const std::vector< HitRecord > > Links
Links getLinks(const key_type &key) const
RevLink(const TrackRecord &track, const HitRecord &hit)
void insert(const key_type &key, const HitRecord &record)
HitRecord(uint32_t detid, uint16_t first, uint16_t size)
U second(std::pair< T, U > const &p)
const Map & storage() const
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
bool operator<(const TrackRecord &other) const
unsigned int keySize() const
std::vector< TrackRecord > trackRecords_
~StripCompactDigiSimLinks()
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
std::map< key_type, std::vector< HitRecord > > Map
void swap(StripCompactDigiSimLinks &other)
std::map< uint32_t, std::vector< RevLink > > makeReverseMap() const
Make the map in the reverse direction. SLOW! call it only once.
StripCompactDigiSimLinks()
Empty constructor, for ROOT persistence.
Links operator[](const key_type &key) const
std::pair< EncodedEventId, unsigned int > key_type
bool operator==(const key_type &otherKey) const
tuple size
Write out results.
std::vector< HitRecord > hitRecords_
unsigned int dataSize() const