2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
5 inline const std::type_info&
6 Trk::PRDtoTrackMap::getType() const
8 return typeid(PRDtoTrackMap);
11 inline Trk::PRDtoTrackMap::PrepRawDataTrackMapRange
12 Trk::PRDtoTrackMap::onTracks(const PrepRawData& prd)
14 return m_prepRawDataTrackMap.equal_range(&prd);
17 inline Trk::PRDtoTrackMap::ConstPrepRawDataTrackMapRange
18 Trk::PRDtoTrackMap::onTracks(const PrepRawData& prd) const
20 return m_prepRawDataTrackMap.equal_range(&prd);
24 Trk::PRDtoTrackMap::reserve(size_t nTracks, size_t nRawData) {
25 m_prepRawDataTrackMap.reserve(nRawData);
26 m_trackPrepRawDataMap.reserve(nTracks);
30 Trk::PRDtoTrackMap::clear()
32 m_prepRawDataTrackMap.clear();
33 m_trackPrepRawDataMap.clear();
36 inline std::vector<const Trk::PrepRawData*>
37 Trk::PRDtoTrackMap::getPrdsOnTrack(const Track& track) const
39 PRDtoTrackMap::TrackPrepRawDataMap::const_iterator itvec =
40 m_trackPrepRawDataMap.find(&track);
41 if (itvec != m_trackPrepRawDataMap.end()) {
44 return std::vector<const PrepRawData*>();
48 Trk::PRDtoTrackMap::isUsed(const PrepRawData& prd) const
50 return (m_prepRawDataTrackMap.find(&prd) != m_prepRawDataTrackMap.end());
54 Trk::PRDtoTrackMap::isShared(const PrepRawData& prd) const
56 return (m_prepRawDataTrackMap.count(&prd) > 1);