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::map< uint32_t, std::vector< RevLink > > makeReverseMap() const
Make the map in the reverse direction. SLOW! call it only once.
Links getLinks(const key_type &key) const
TrackRecord(key_type k, unsigned int offset)
boost::sub_range< const std::vector< HitRecord > > Links
std::pair< EncodedEventId, unsigned int > key_type
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)
const Map & storage() const
Links operator[](const key_type &key) const
nStrips
1.2 is to make the matching window safely the two nearest strips 0.35 is the size of an ME0 chamber i...
U second(std::pair< T, U > const &p)
void swap(StripCompactDigiSimLinks &a, StripCompactDigiSimLinks &b)
key
prepare the HTCondor submission files and eventually submit them
std::vector< TrackRecord > trackRecords_
~StripCompactDigiSimLinks()
std::map< key_type, std::vector< HitRecord > > Map
bool operator<(const key_type &otherKey) const
bool operator==(const key_type &otherKey) const
bool operator<(const TrackRecord &other) const
void swap(StripCompactDigiSimLinks &other)
unsigned int dataSize() const
StripCompactDigiSimLinks()
Empty constructor, for ROOT persistence.
unsigned int keySize() const
std::vector< HitRecord > hitRecords_