ATLAS Offline Software
|
#include <PRDtoTrackMap.h>
Public Types | |
using | TrackPrepRawDataMap = std::unordered_map< const Track *, std::vector< const PrepRawData * >, std::hash< const Track * >, std::equal_to< const Track * >, SG::ArenaPoolSTLAllocator< std::pair< const Track *const, std::vector< const PrepRawData * > >> > |
using | PrepRawDataTrackMap = std::unordered_multimap< const PrepRawData *, const Track *, std::hash< const PrepRawData * >, std::equal_to< const PrepRawData * >, SG::ArenaPoolSTLAllocator< std::pair< const PrepRawData *const, const Track * > > > |
using | PrepRawDataTrackMapRange = std::pair< PrepRawDataTrackMap::iterator, PrepRawDataTrackMap::iterator > |
using | ConstPrepRawDataTrackMapRange = std::pair< PrepRawDataTrackMap::const_iterator, PrepRawDataTrackMap::const_iterator > |
Public Member Functions | |
PRDtoTrackMap ()=default | |
virtual | ~PRDtoTrackMap ()=default |
PRDtoTrackMap (const PRDtoTrackMap &a)=default | |
PRDtoTrackMap (PRDtoTrackMap &&a) noexcept=default | |
PRDtoTrackMap & | operator= (const PRDtoTrackMap &a)=default |
PRDtoTrackMap & | operator= (PRDtoTrackMap &&a) noexcept=default |
virtual const std::type_info & | getType () const |
bool | isUsed (const PrepRawData &prd) const |
does this PRD belong to at least one track? More... | |
bool | isShared (const PrepRawData &prd) const |
does this PRD belong to more than one track? More... | |
PrepRawDataTrackMapRange | onTracks (const PrepRawData &prd) |
get the Tracks associated with this PrepRawData. More... | |
ConstPrepRawDataTrackMapRange | onTracks (const PrepRawData &prd) const |
get the Tracks associated with this PrepRawData. More... | |
std::vector< const Trk::PrepRawData * > | getPrdsOnTrack (const Track &track) const |
returns a vector of PRDs belonging to the passed track. More... | |
void | clear () |
void | reserve (size_t nTracks, size_t nRawData) |
Protected Attributes | |
PrepRawDataTrackMap | m_prepRawDataTrackMap |
holds the tracks associated with each PRD (i.e. More... | |
TrackPrepRawDataMap | m_trackPrepRawDataMap |
holds the PRDs associated with each Track (i.e. More... | |
Definition at line 16 of file PRDtoTrackMap.h.
using Trk::PRDtoTrackMap::ConstPrepRawDataTrackMapRange = std::pair<PrepRawDataTrackMap::const_iterator, PrepRawDataTrackMap::const_iterator> |
Definition at line 42 of file PRDtoTrackMap.h.
using Trk::PRDtoTrackMap::PrepRawDataTrackMap = std::unordered_multimap< const PrepRawData*, const Track*, std::hash<const PrepRawData*>, std::equal_to<const PrepRawData*>, SG::ArenaPoolSTLAllocator< std::pair<const PrepRawData* const, const Track*> > > |
Definition at line 29 of file PRDtoTrackMap.h.
using Trk::PRDtoTrackMap::PrepRawDataTrackMapRange = std::pair<PrepRawDataTrackMap::iterator, PrepRawDataTrackMap::iterator> |
Definition at line 39 of file PRDtoTrackMap.h.
using Trk::PRDtoTrackMap::TrackPrepRawDataMap = std::unordered_map<const Track*, std::vector<const PrepRawData*>, std::hash<const Track*>, std::equal_to<const Track*>, SG::ArenaPoolSTLAllocator<std::pair< const Track* const, std::vector<const PrepRawData*> >> > |
Definition at line 19 of file PRDtoTrackMap.h.
|
default |
|
virtualdefault |
|
default |
|
defaultnoexcept |
void Trk::PRDtoTrackMap::clear | ( | ) |
std::vector<const Trk::PrepRawData*> Trk::PRDtoTrackMap::getPrdsOnTrack | ( | const Track & | track | ) | const |
returns a vector of PRDs belonging to the passed track.
|
virtual |
Reimplemented in InDet::InDetPRDtoTrackMapToolGangedPixels::PRDtoTrackMap, and Trk::PRDtoTrackMapTool::PRDtoTrackMap.
bool Trk::PRDtoTrackMap::isShared | ( | const PrepRawData & | prd | ) | const |
does this PRD belong to more than one track?
prd | the PrepRawData in question |
bool Trk::PRDtoTrackMap::isUsed | ( | const PrepRawData & | prd | ) | const |
does this PRD belong to at least one track?
prd | the PrepRawData in question |
PrepRawDataTrackMapRange Trk::PRDtoTrackMap::onTracks | ( | const PrepRawData & | prd | ) |
get the Tracks associated with this PrepRawData.
ConstPrepRawDataTrackMapRange Trk::PRDtoTrackMap::onTracks | ( | const PrepRawData & | prd | ) | const |
get the Tracks associated with this PrepRawData.
|
default |
|
defaultnoexcept |
void Trk::PRDtoTrackMap::reserve | ( | size_t | nTracks, |
size_t | nRawData | ||
) |
|
protected |
holds the tracks associated with each PRD (i.e.
the PRD* is the key)
Definition at line 82 of file PRDtoTrackMap.h.
|
protected |
holds the PRDs associated with each Track (i.e.
the Track* is the key)
Definition at line 85 of file PRDtoTrackMap.h.